OSDN Git Service

* config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
4         LIBPATH_ARCH64_SPEC): Define.
5         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
7         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9
10 2002-04-22      Joel Sherrill <joel@OARcorp.com>
11
12         * gthr-rtems.h: Correct prototypes to remove warnings.
13
14 2002-04-22  Richard Henderson  <rth@redhat.com>
15
16         PR c/6344
17         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
18
19         * gcse.c (free_insn_expr_list_list): New.
20         (clear_modify_mem_tables): Use it.  Fix bit set usage.
21         (canon_list_insert): Use EXPR_LISTs for expressions.
22         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
23
24 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
25
26         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
27         file change and include code to _cpp_pop_buffer.
28         * cpphash.h (struct pending_option): Predeclare.
29         (struct cpp_reader): New member next_include_file.
30         (_cpp_pop_file_buffer): Update.
31         (_cpp_push_next_buffer): Update, rename.
32         * cppinit.c (cpp_destroy): Free include chain and pending here.
33         (cpp_finish_options): Simplify.
34         (_cpp_push_next_buffer): Rename and clean up.
35         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
36         Clarify.
37         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
38
39 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
40
41         * config/rs6000/altivec.h (vec_xor): Add variant for both args
42         being vector signed int.
43         (vec_andc): Same.
44         (vec_xor): Add variant for both args being vector signed char.
45         Remove redundant variant.
46         (vec_andc): Same.
47
48 2002-04-21  David S. Miller  <davem@redhat.com>
49
50         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
51         compare mode in output RTL.
52
53 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
54
55         * config/rs6000/rs6000.c (rs6000_override_options): Correct
56         style and formatting of previous patch.
57
58 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
59
60         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
61         flag_pic for ABI_AIX.
62
63 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
64
65         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
66         * cppfiles.c (read_include_file): Similarly.
67         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
68         uxstrdup ustrchr, ufputs): Similarly.
69         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
70         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
71         cpp_ideq, parse_identifier, parse_number): Similarly.
72         * cpplib.c (struct directive, dequote_string, D, run_directive,
73         cpp_push_buffer): Similarly.
74         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
75         _cpp_create_definition, check_trad_stringification,
76         cpp_macro_definition): Similarly.
77
78 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
79
80         * cppmacro.c (funlike_invocation_p): Don't step back
81         over CPP_EOF.
82
83 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
84
85         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
86         labelno.
87
88 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
89
90         * doc/invoke.texi: Remove Chill references.
91         * doc/gcc.texi: Update last modified date.
92
93 2002-04-20  Kazu Hirata  <kazu@hxi.com>
94
95         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
96         push and pop.  Replace add.l with add.w.
97
98 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
99
100         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
101         multiply instructions for H8/300H case.
102
103 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
104
105         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
106         Bum three instructions from each routine.
107
108 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
109
110         * Makefile.in: Update.
111         * decl.c (push_c_function_context, pop_c_function_context,
112         mark_c_function_context): Rename for consistency.
113         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
114         * c-tree.h (push_c_function_context, pop_c_function_context,
115         mark_c_function_context): Rename for consistency.
116         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
117         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
118         * function.c (init_lang_status, save_lang_status,
119         restore_lang_status, mark_lang_status, free_lang_status):
120         Move to langhooks.h.
121         (push_function_context_to, pop_function_context_from,
122         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
123         Update.
124         * function.h (init_lang_status, save_lang_status,
125         restore_lang_status, mark_lang_status, free_lang_status):
126         Move to langhooks.h.
127         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
128         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
129         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
130         LANG_HOOKS_FUNCTION_INITIALIZER): New.
131         (LANG_HOOKS_INITIALIZER): Update.
132         (lhd_do_nothing_f): New.
133         * langhooks.h (struct lang_hooks_for_functions): New.
134         (struct lang_hooks): New hooks.
135         * langhooks.c (lhd_do_nothing_f): New.
136 objc:
137         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
138         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
139
140 2002-04-19  David S. Miller  <davem@redhat.com>
141
142         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
143         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
144
145 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
146
147         PR optimization/3756
148         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
149         x = ((int) y < 0) ? cst1 : cst2.
150
151 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
152
153         PR c/6358
154         * function.c: Reapply patch for c/6358.
155         (expand_function_end): Copy decl_rtl's mode, not
156         current_function_return_rtx mode.
157
158 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
159
160         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
161         targets.
162
163 2002-04-19  Tom Tromey  <tromey@redhat.com>
164
165         * doc/install.texi (Specific): Update status of Solaris 2.8.
166         For PR libgcj/6158.
167
168 2002-04-19  Andreas Schwab  <schwab@suse.de>
169
170         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
171         (PUT_REAL): Restore old definition.
172
173 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
174             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
175
176         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
177         binutils 2.11.2 and higher generate smaller binaries than Sun's
178         native tools.
179
180 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
181
182         PR c++/6352
183         * toplev.c (rest_of_compilation): Do not defer functions for which
184         TREE_SYMBOL_REFERENCED has already been set.
185
186 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
187
188         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
189         alternative.
190
191 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
192
193         * builtins.c: Include langhooks.h.
194         (lang_type_promotes_to): Remove.
195         (expand_builtin_va_arg): Use new hook.
196         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
197         (simple_type_promotes_to): Move to c-typeck.c.
198         * c-common.h (simple_type_promotes_to): Remove.
199         * c-decl.c (duplicate_decls, grokdeclarator): Update.
200         * c-format.c: Include langhooks.h.
201         (check_format_types): Update.
202         * c-tree.h (c_type_promotes_to): New.
203         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
204         (type_lists_compatible_p): Update.
205         * langhooks-def.h (lhd_type_promotes_to): New.
206         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
207         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
208         * langhooks.c (lhd_type_promotes_to): New.
209         * langhooks.h (struct lang_hooks_for_types): New hook.
210         * tree.h (lang_type_promotes_to): Remove.
211 objc:
212         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
213
214 2002-04-18  Richard Henderson  <rth@redhat.com>
215
216         * function.c: Revert patch for c/6358.
217
218 2002-04-18  Richard Henderson  <rth@redhat.com>
219
220         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
221         blocks.  Handle multiple references to the TRAP block.  Handle
222         non-adjacent THEN and OTHER blocks.
223
224 2002-04-18  Richard Henderson  <rth@redhat.com>
225
226         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
227         crash with no type for by-mode libcalls.
228
229         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
230
231 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
232
233         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
234         __xtensa_nonlocal_goto): Use a syscall instructions to flush
235         the register windows.
236
237 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
238
239         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
240         appropriate.  Document need for extended precision even when
241         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
242         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
243         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
244         instead of relying on later syntax error when REAL_WIDTH > 5.
245         * real.c: Define NE based only on whether or not we have a
246         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
247         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
248         define GET_REAL and PUT_REAL as simple memcpy operations; no
249         need to byteswap or round.
250         Use #error instead of #ifdef-ing out the entire file, for
251         prompt error detection.
252
253         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
254
255 2002-04-18  David S. Miller  <davem@redhat.com>
256
257         * config/sparc/sparc.h (BRANCH_COST): Define.
258
259         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
260         does it.
261
262 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
263
264         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
265         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
266         propagate_block calls after relaxation loop using new variable
267         stabilized_prop_flags.
268
269 2002-04-18  Richard Henderson  <rth@redhat.com>
270
271         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
272         (ia64_va_arg): Expect variable sized types by reference.
273         * config/ia64/ia64-protos.h: Update.
274         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
275         ia64_function_arg_pass_by_reference.
276
277 2002-04-18  Richard Henderson  <rth@redhat.com>
278
279         * ifcvt.c: Include except.h.
280         (block_has_only_trap): Break out from find_cond_trap.
281         (find_cond_trap): Use it.  Always delete the trap block.
282         (merge_if_block): Allow then block null.  Be less simplistic about
283         what insns can end a block.
284         * Makefile.in (ifcvt.o): Depend on except.h.
285
286         * config/ia64/ia64.md (trap, conditional_trap): New.
287
288 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
289
290         PR c/6358
291         * function.c (assign_parms): Assign hard current_function_return_rtx
292         register here...
293         (expand_function_end): ...not here.
294
295 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
296
297         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
298         * c-tree.h (c_incomplete_type_error): New.
299         * c-typeck.c (require_complete_type, build_component_ref): Update.
300         (incomplete_type_error): Rename.
301         * langhooks-def.h (lhd_incomplete_type_error): New.
302         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
303         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
304         * langhooks.c (lhd_incomplete_type_error): New.
305         * langhooks.h (struct lang_hooks_for_types): New hook.
306         * tree.c (size_in_bytes): Use new hook.
307         * tree.h (incomplete_type_error): Remove.
308 objc:
309         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
310
311 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
312
313         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
314         TARGET_FLOAT_FORMAT blocks.
315
316 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
317
318         * doc/install.texi (Downloading the source): Do not mention Chill
319         any longer, but mention Ada.
320         (Configuration): Do not mention Chill any longer.
321
322 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
323
324         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
325
326 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
327
328         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
329         in last patch.
330
331 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
332
333         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
334         instead of unsigned_type.
335
336 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
337
338         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
339         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
340         later.
341
342 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
343
344         * attribs.c (vector_type_node_list): New static variable.
345         (handle_vector_size_attribute): Use it to avoid generating a
346         new type node each time we are called.
347
348         * combine.c (subst): Avoid trying to make a vector mode subreg of
349         an integer constant.
350         (gen_lowpart_for_combine): Likewise.
351
352 2002-04-18  Roger Sayle  <roger@eyesopen.com>
353             Jakub Jelinek  <jakub@redhat.com>
354
355         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
356         for integer constant c (if x has unsigned type or sign bit is not
357         set in c).  This folds the zero/sign extension into the bit-wise and
358         operation.
359
360 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
361
362         PR middle-end/6205
363         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
364         otherwise xorps.
365
366 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
367
368         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
369
370 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
371
372         * gcc.c (read_specs): Detect and fail if an attempt is made to
373         rename a spec string to an already existing string.
374
375 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
376
377         * config/s390/s390.c (legitimize_pic_address): Do not generate
378         illegal address constant without CONST.
379
380 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
381
382         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
383         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
384
385 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
386
387         PR optimization/6305
388         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
389         to make sure previous reloads are taken into account.  Generate
390         better code if one operand is an in-range immediate constant.
391
392 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
393
394         * doc/install.texi (Building): libgcj requires GNU make.
395
396 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
397
398         PR bootstrap/6315
399         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
400         even if hard quad and register is not floating.
401         (movtf reg<-mem split): Disallow splitting if hard quad and
402         register is floating.
403         (movtf mem<-reg split): Likewise.
404         * config/sparc/sparc.c (fp_register_operand): New predicate.
405         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
406
407 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
408
409         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
410         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
411         (unprotoize.o): Ditto.  Build from protoize.c.  Define
412         UNPROTOIZE on command line.
413         * protoize.c: Include cppdefault.h.  Delete include_defaults.
414         (in_system_include_dir): Use cpp_include_defaults (defined in
415         cppdefault.o).
416         * unprotoize.c: Delete file.
417
418 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
419
420         * config/rs6000/altivec.h (vec_ld): Add array variants.
421         (vec_lde): Same.
422         (vec_ldl): Same.
423
424 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
425             Aldy Hernandez <aldyh@redhat.com>
426
427         * config/rs6000/altivec.h: Define __ALTIVEC__.
428         (bool): New.
429         (__pixel): New.
430         (pixel): New.
431         (vec_cfux): New.
432         (vec_vmaddfp): New.
433         (vec_vsldoi): New.
434         Add parentheses to all macro arguments.
435
436 2002-04-16  Richard Henderson  <rth@redhat.com>
437
438         PR c++/6320
439         * except.c (remove_eh_handler): Insert inner regions at beginning
440         of sibling chain.  Refactor expressions.
441
442 2002-04-16  Richard Henderson  <rth@redhat.com>
443
444         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
445         * config/sparc/sol2-gas-bi.h: New file.
446         * config.gcc (sparc*-solaris): Add it as needed.
447         * configure.in (AS_SPARC64_FLAG): Remove check.
448         * config.in, configure: Regenerate.
449
450         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
451
452 2002-04-16  Richard Henderson  <rth@redhat.com>
453
454         * config/mips/mips.c (override_options): Don't override N32 for
455         a 64-bit ISA.
456
457         PR 6202
458         * config/mips/mips.md (can_delay): Split out of existing define_delays.
459         (HILO_delay): Set can_delay false.
460
461 2002-04-16  Dale Johannesen <dalej@apple.com>
462
463         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
464         instruction addresses.
465         (rs6000_output_function_epilogue): Likewise.
466
467 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
468
469         * c-parse.in (poplevel, compstmt_start,
470         compstmt_primary_start): Add ending ';', in accordance
471         with POSIX.
472
473 2002-04-16  Richard Henderson  <rth@redhat.com>
474
475         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
476         Adjust tm_file order to get TARGET_DEFAULT set properly.
477         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
478         * doc/install.texi (sparc-solaris): Update.
479
480 2002-04-16  Dale Johannesen <dalej@apple.com>
481
482         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
483         comparison operands do not match each other or if modes of
484         conditions do not match result.
485
486 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
487
488         PR target/6305
489         * config/s390/s390.md (mulsidi3): Set both subregs of the
490         multiword register.
491
492 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
493
494         * config/rs6000/altivec.h (vec_addc): Type check.
495
496 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
497
498         PR middle-end/6279
499         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
500
501         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
502
503 2002-04-15  Richard Henderson  <rth@redhat.com>
504
505         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
506         call_really_used_regs too.
507
508 2002-04-15  Richard Henderson  <rth@redhat.com>
509
510         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
511
512 2002-04-15  David S. Miller  <davem@redhat.com>
513
514         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
515         as being CLOBBERed.
516
517 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
518
519         PR c/6290
520         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
521         CONST_VECTOR is { 0, ... 0 }.
522
523 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
524
525         * doc/install.texi (Installing GCC: Configuration): Clarify
526         the only supported ways to configure gcc.
527
528 2002-04-15  Roland McGrath  <roland@frob.com>
529
530         * config.gcc (alpha*-*-gnu*): New target configuration.
531         * config/alpha/gnu.h: New file for it.
532         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
533
534 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
535
536         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
537         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
538         * tree.h (expand_start_stmt_expr): Update prototype.
539         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
540         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
541         on the STMT_EXPR created for the inline function.
542
543 2002-04-15  Richard Henderson  <rth@redhat.com>
544
545         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
546         config/i386/linux-aout.h, config/i386/linux-oldld.h,
547         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
548         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
549         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
550         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
551         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
552         Define __gnu_linux__, not gnu_linux.
553         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
554
555 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
556
557         Remove Chill front end.
558         * gcc.c (default_compilers): Remove Chill entries.
559         * ch: Remove directory.
560         * doc/frontends.texi: Remove information about Chill.
561         * doc/sourcebuild.texi: Likewise.
562         * doc/standards.texi: Likewise.
563
564 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
565
566         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
567         (LONGLONG_STANDALONE): Define.
568
569 2002-04-15  David S. Miller  <davem@redhat.com>
570
571         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
572         Call emit_library_call with LCT_NORMAL.
573         (sparc_initialize_trampoline): Use LCT_foo instead of
574         magic constant in emit_library_call invocations.
575         (sparc64_initialize_trampoline): Likewise.
576         (sparc_profile_hook): Likewise.
577         * config/sparc/sparc.md: Likewise.
578
579         * config/sparc/sparc.c (sparc_extra_constraint_check):
580         Fix type of argument 'c'.
581         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
582         Likewise.
583
584 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
585
586         * diagnostic.h (output_buffer_state): Redefine.
587         (output_format_decoder): New macro.
588         (output_prefixing_rule): Likewise.
589         (output_line_cutoff): Likewise.
590         (diagnostic_format_decoder): Adjust.
591         (diagnostic_prefixing_rule): Likewise.
592         (diagnostic_line_cutoff): Likewise.
593         (diagnostic_state): Likewise.
594         (diagnostic_kind_count): Likewise.
595         (diagnostic_buffer): Now a macro.
596
597         * diagnostic.c (diagnostic_buffer): Remove definition.
598         (output_is_line_wrapping): Adjust.
599         (set_real_maximum_length): Likewise.
600         (output_set_maximum_length): Likewise.
601         (init_output_buffer): Likewise.
602         (lhd_print_error_function): Likewise.
603         (output_do_verbatim): Likewise.
604
605 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
606
607         * cpperror.c (print_location): Don't print include chain
608         if line == 0.
609         (cpp_begin_message): Update to use DL_ macros.
610         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
611         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
612         cpp_notice, cpp_notice_from_errno): Remove.
613         (cpp_error, cpp_error_with_line): Update to take a diagnostic
614         level.
615         (cpp_errno): New.
616         * cppexp.c (CPP_ICE): Remove.
617         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
618         lex, integer_overflow, _cpp_parse_expr): Update.
619         * cppfiles.c (read_include_file, find_include_file,
620         handle_missing_header, _cpp_read_file, remap_filename): Update.
621         * cpphash.h (enum error_type): Remove.
622         (_cpp_begin_message): Update.
623         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
624         cpp_handle_option, cpp_post_options): Update.
625         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
626         skip_whitespace, parse_identifier, parse_slow, parse_string,
627         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
628         cpp_interpret_charconst): Update.
629         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
630         lex_macro_node, do_undef, glue_header_name, parse_include,
631         do_include_common, read_flag, do_line, do_linemarker, do_ident,
632         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
633         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
634         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
635         _cpp_pop_buffer, do_diagnostic): Update.
636         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
637         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
638         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
639         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
640         cpp_notice, cpp_notice_from_errno): Remove.
641         (cpp_error, cpp_error_with_line): Update to take a diagnostic
642         level.
643         (cpp_errno): New.
644         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
645         collect_args, enter_macro_context, save_parameter, parse_params,
646         _cpp_create_definition, check_trad_stringification,
647         cpp_macro_definition): Update.
648         * cppmain.c (cpp_preprocess_file): Update.
649         * fix-header.c (read_scan_file): Update.
650
651 2002-04-14  Andreas Schwab  <schwab@suse.de>
652
653         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
654
655 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
656
657         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
658
659 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
660
661         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
662         not gnu_hurd.
663
664 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
665
666         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
667
668 2002-04-13      Joel Sherrill <joel@OARcorp.com>
669
670         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
671         sparc-elf and sparc-rtems targets.
672
673 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
674
675         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
676         defined, and __gnu_hurd__ wherever __GNU__ is defined.
677         * arm/linux-elf.h: Likewise.
678         * cris/aout.h: Likewise.
679         * cris/linux.h: Likewise.
680         * i370/linux.h: Likewise.
681         * i386/gnu.h: Likewise.
682         * i386/linux-aout.h: Likewise.
683         * i386/linux-oldld.h: Likewise.
684         * i386/linux.h: Likewise.
685         * i386/linux64.h: Likewise.
686         * ia64/linux.h: Likewise.
687         * m68k/linux-aout.h: Likewise.
688         * m68k/linux.h: Likewise.
689         * mips/linux.h: Likewise.
690         * pa/pa-linux.h: Likewise.
691         * pj/linux.h: Likewise.
692         * rs6000/sysv4.h: Likewise.
693         * s390/linux.h: Likewise.
694         * sh/linux.h: Likewise.
695         * sparc/linux-aout.h: Likewise.
696         * sparc/linux.h: Likewise.
697         * sparc/linux64.h: Likewise.
698         * xtensa/linux.h: Likewise.
699
700 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
701
702         * stmt.c (check_unique_operand_names): Expect operand names to
703         be strings rather than identifiers.  Use simple_cst_equal to
704         compare them.
705         (resolve_operand_name_1): Make same identifier to string change here.
706         * c-parse.in (asm_operand): Convert a named operand into a string.
707         * cp/parse.y (asm_operand): Likewise.
708
709 2002-04-13  Andreas Schwab  <schwab@suse.de>
710
711         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
712
713 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
714
715         Revert these changes:
716
717         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
718
719         PR c++/5571
720         * stor-layout.c (layout_decl): Reset the RTL for the decl.
721
722 2002-04-12  Richard Henderson  <rth@redhat.com>
723
724         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
725         (sparc*-*-solaris): Clean up header files.
726         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
727         and plan on generating 64-bit code.
728         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
729         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
730         * config/sparc/sol2-sld-64.h: Rename ...
731         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
732         for AS_SPARC64_FLAG not defined.
733         * config/sparc/sol2-gld-bi.h: New.
734         * config/sparc/sol2-sld.h: Remove.
735         * config/sparc/sol26-sld.h: New.
736         * config/sparc/sol2.h: Tidy comments.
737         * doc/install.texi: Document sparc-solaris configury changes.
738
739 2002-04-12  Richard Henderson  <rth@redhat.com>
740
741         * recog.c (offsettable_address_p): Match the logic in adjust_address.
742
743         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
744         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
745
746 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
747
748         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
749
750 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
751
752         * pa.c (pa_can_combine_p): Call extract_insn before calling
753         constrain_operands.
754
755 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
756
757         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
758         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
759         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
760         (CPP_PREDEFINES): Handle __declspec.
761         * config/i386/t-interix (USER_H): Remove.
762
763 2002-04-12  DJ Delorie  <dj@redhat.com>
764
765         * integrate.c (compare_blocks): Make comparisons safe for when
766         sizeof(int) < sizeof(char *).
767         (find_block): Likewise.
768
769 2002-04-12  Jan Hubicka  <jh@suse.cz>
770             David Edelsohn  <edelsohn@gnu.org>
771
772         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
773         registers.
774         (symbol_ref_operand): New.
775         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
776         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
777
778 2002-04-12  Andreas Schwab  <schwab@suse.de>
779
780         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
781         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
782         overrides the definition in config/svr4.h.
783
784 2002-04-12      Eric Norum <eric.norum@usask.ca>
785
786         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
787         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
788         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
789         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
790         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
791         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
792         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
793         definitions to config/rtems.h and make the targets more similar.
794
795 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
796
797         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
798         POINTERS_EXTEND_UNSIGNED.
799         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
800         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
801
802         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
803         not specified.
804
805 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
806
807         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
808         depends on TARGET_SHMEDIA, not TARGET_SH5.
809
810 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
811
812         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
813         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
814
815 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
816
817         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
818         no r0 clobber.
819
820 2002-04-12  Andreas Schwab  <schwab@suse.de>
821
822         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
823
824 2002-04-12  Richard Henderson  <rth@redhat.com>
825
826         PR bootstrap/4191
827         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
828
829         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
830         modes spanning multiple hard regs.
831
832         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
833
834 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
835
836         * pa.c (pa_output_function_prologue): Don't accumulate the total
837         number of code bytes when using TARGET_64BIT, or gas, SOM and not
838         the portable runtime.
839         (output_deferred_plabels): Handle 64bit plabels.
840         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
841         generating pic code using the GAS assembler for object formats that
842         are not SOM (ie., ELF32 and ELF64).
843         (output_millicode_call): Check attribute type if attribute length is 28.
844         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
845         dbr_sequence_length once.
846         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
847         dbr_sequence_length once.
848         * pa.h (TARGET_SOM): Define if not defined.
849         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
850         with GAS and not SOM.
851         (jump, call_internal_reg, call_value_internal_reg): Likewise.
852         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
853
854 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
855
856         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
857         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
858         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
859         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
860         elfos.h and dbxelf.h values are fine now.
861         * config/i386/freebsd.h, config/alpha/freebsd.h
862         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
863
864 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
865
866         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
867         or set Acpu or Amachine.  Reformat.
868         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
869         define.
870         (LINK_SPEC): Do not need to undef.
871         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
872         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
873         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
874         define.
875         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
876         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
877         (LINK_SPEC): Do not need to undef.
878         (DONT_USE_BUILTIN_SETJMP): Do not define.
879         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
880         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
881         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
882         Remove trailing spaces.
883         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
884         __ELF__, or set Acpu or Amachine.  Reformat.
885         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
886         define.
887
888 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
889
890         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
891         all other *-*-freebsd* targets.
892
893 2002-04-11  Richard Henderson  <rth@redhat.com>
894
895         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
896
897 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
898
899         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
900         Include {cpu}/{cpu}.h thru tm_file.
901         (alpha*-*-linux*ecoff): Remove target.
902         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
903         (LINK_SPEC): Remove, is not OS independent.
904         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
905         (LINK_SPEC): Do not need to #undef any longer.
906         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
907         any longer.
908         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
909         __ELF__.
910         (LINK_SPEC): Moved here from alpha/elf.h.
911         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
912         SUB_CPP_PREDEFINES.
913         * config/alpha/linux-ecoff.h: Remove.
914         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
915         (CPP_SPEC): Define _POSIX_SOURCE as needed.
916         (CPP_SUBTARGET_SPEC): Do not define.
917         (LINK_SPEC): Do not need to #undef any longer.
918         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
919         * config/alpha/vms.h: Likewise.
920
921 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
922
923         * doc/extend.texi: Remove old claim that typedefs cannot have
924         an alignment attribute.
925
926 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
927
928         PR optimization/6177
929         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
930         bitpos is 0 and bitsize CONCAT size.
931
932 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
933
934         PR c/6223
935         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
936
937 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
938
939         * config/alpha/freebsd.h: Minor reformatting.
940         (CPP_SPEC): Define ELF and add cpp_subtarget.
941         (ASM_SPEC): No longer needed.
942
943 2002-04-11  Richard Henderson  <rth@redhat.com>
944
945         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
946         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
947         (dimode mem/zero splitter): New.
948
949 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
950
951         * config/cris/cris.c (cris_override_options): Tweak error message
952         for PIC not implemented.
953
954         * config/cris/cris.h: Tweak comments related to parameter-passing.
955
956         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
957
958 2002-04-10  Richard Henderson  <rth@redhat.com>
959
960         * except.c (add_ehl_entry): Allow duplicates after landing pad
961         creation.
962
963 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
964
965         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
966
967 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
968
969         * c-decl.c (c_init_decl_processing): Move generation of
970         decls for g77_integer_type_node and friends from here ...
971         * c-common.c (c_common_nodes_and_builtins): ... to here.
972
973 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
974
975         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
976         is only used as frame pointer when frame_pointer_needed is true.
977
978 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
979
980         PR target/817
981         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
982         for the fact that the pool entry uses two words.
983         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
984         1k bytes.
985         (movdf_soft_insn): Similarly.
986         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
987         for the fact that the pool entry uses three words.
988
989 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
990
991         * config/mips/mips.c (mips_va_arg): When using the struct version
992         of the EABI va_list, allow arguments in the register save area to
993         take up less room than a stack argument.
994
995 2002-04-10  Richard Henderson  <rth@redhat.com>
996
997         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
998         if EXPAND_INITIALIZER.
999
1000 2002-04-09  Richard Henderson  <rth@redhat.com>
1001
1002         * config/alpha/alpha.md (movdi_er_maybe_g): New.
1003         * config/alpha/alpha.c (alpha_expand_mov): Use it.
1004
1005 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
1006
1007         PR optimization/6233
1008         * rtlanal.c (pure_call_p): New function.
1009         * rtl.h (pure_call_p): Declare.
1010         * loop.c (prescan_loop): Use it to set has_nonconst_call.
1011         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1012
1013 2002-04-09  Eric Christopher  <echristo@redhat.com>
1014
1015         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1016         information to .comm directive.
1017
1018 2002-04-09  Richard Henderson  <rth@redhat.com>
1019
1020         PR c/5078
1021         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1022
1023 2002-04-09  Richard Henderson  <rth@redhat.com>
1024
1025         * basic-block.h (flow_delete_block_noexpunge): Declare.
1026         (expunge_block_nocompact): Declare.
1027         * cfg.c (expunge_block_nocompact): Split out from ...
1028         (expunge_block): ... here.
1029         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1030         (flow_delete_block_noexpunge): Split out from ...
1031         (flow_delete_block): ... here.
1032         * cfgcleanup.c (delete_unreachable_blocks): Compact while
1033         removing dead blocks.
1034         * except.c (exception_handler_labels): Remove.
1035         (exception_handler_label_map): New.
1036         (struct eh_region): Add aka member.
1037         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1038         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1039         (for_each_eh_label, for_each_eh_label_1): New.
1040         (init_eh): Register exception_handler_label_map.
1041         (free_eh_status): Use free_region.
1042         (find_exception_handler_labels): Use the map, not the list.
1043         (remove_exception_handler_label): Likewise.
1044         (maybe_remove_eh_handler): Likewise.
1045         (remove_eh_handler): Use the region aka bitmap.
1046         * except.h (exception_handler_labels): Remove.
1047         (for_each_eh_label): Declare.
1048         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1049         * loop.c (invalidate_loops_containing_label): New.
1050         (find_and_verify_loops): Use it.  Use for_each_eh_label.
1051         * sched-rgn.c (is_cfg_nonregular): Use
1052         current_function_has_exception_handlers.
1053
1054 2002-04-09  Richard Henderson  <rth@redhat.com>
1055
1056         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1057         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1058         Do not return changed status.
1059         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1060         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1061         New functions that do return changed status.
1062         * sbitmap.h: Update decls.
1063         * gcse.c, lcm.c: Use _cg functions as needed.
1064
1065 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1066
1067         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1068         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1069         * config/sh/embed_bb.c: New file.
1070         * config/sh/embed-elf.h: New file.
1071         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1072         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1073         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1074         __PTRDIFF_TYPE__ .
1075         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1076         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1077         Add subtarget_asm_endian_spec.
1078         (ASM_SPEC): Use subtarget_asm_endian_spec.
1079         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1080         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1081         (WCHAR_UNSIGNED): Define.
1082         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1083         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1084         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1085         Fix value.
1086         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1087         (sh_adjust_cost): Likewise.
1088         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1089         __PTRDIFF_TYPE__ .
1090         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1091         (WCHAR_TYPE_SIZE): Likewise.
1092         (ASM_SPEC): Use subtarget_asm_endian_spec.
1093         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1094         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1095         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1096         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1097         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1098         (USER_LABEL_PREFIX): Don't #undef /#define .
1099         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1100         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1101         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1102         (ASM_SPEC): Likewise.
1103         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1104         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1105         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1106         (LIB2FUNCS_EXTRA): Define.
1107         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1108         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1109         (LIB1ASMFUNCS_CACHE): Define.
1110         (LIB2FUNCS_EXTRA): Redefine empty.
1111
1112 2002-04-08  Richard Henderson  <rth@redhat.com>
1113
1114         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1115
1116 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1117
1118         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1119         and optimize for size.
1120         (__do_global_ctors): Fix pointer comparison.
1121         (__do_global_dtors): Likewise.
1122
1123 2002-04-09  David S. Miller  <davem@redhat.com>
1124
1125         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1126         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1127         allow reloading pseudos.
1128         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1129         * config/sparc/sparc-protos.h: Declare it.
1130
1131         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1132         unsigned comparison warning.
1133         (output_restore_regs): Mark leaf_function as unused.
1134
1135 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1136
1137         * expr.c (is_aligning_offset): New function.
1138         (expand_expr, case COMPONENT_EXPR): Call it.
1139
1140 2002-04-08  David S. Miller  <davem@redhat.com>
1141
1142         PR target/6082
1143         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1144
1145         Make init_priority work on Sparc when using GNU ld.
1146         * config/sparc/linux.h, config/sparc/linux64.h,
1147         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1148         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1149         * config/sparc/sol2-gld.h: New file to do the same.
1150         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1151         sparc/sol2-gld.h to tm_file.
1152
1153         PR optimization/4328
1154         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1155         * doc/md.texi: Document it.
1156         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1157         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1158         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1159         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1160         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1161
1162 2002-04-08  Andreas Jaeger  <aj@suse.de>
1163
1164         * stmt.c (expand_asm_operands): Revert last patch from Richard
1165         Henderson.
1166
1167 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1168
1169         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1170         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1171
1172 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1173
1174         * doc/contrib.texi (Contributors): Add David O'Brien.
1175
1176 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1177
1178         * configure.in (auto-build.h): Use target_alias and build_alias
1179         when running configure.
1180         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1181         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1182         * configure: Regenerate.
1183
1184 2002-04-07  David S. Miller  <davem@redhat.com>
1185
1186         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1187
1188 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1189
1190         PR 5933
1191         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1192         generating 32-bit pic code.
1193
1194 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1195
1196         * cppinit.c (cpp_create_reader): Initialize
1197         discard_comments_in_macro_exp.
1198         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1199         (cpp_handle_option): Handle "-CC" option.
1200         * cpplex.c (save_comment): If saving a C++ comment in
1201         a directive, convert it to a C comment.
1202         (_cpp_lex_direct): Pass second comment start character to
1203         save_comment to indicate comment type.
1204         * cpplib.c (_cpp_handle_directive): If processing
1205         a "#define" directive and discard_comments_in_macro_exp
1206         is false,  re-enable saving of comments.
1207         (lex_macro_node): If discard_comments_in_macro_exp is false,
1208         discard any comments before the macro identifier.
1209         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1210         member.
1211         * cppmacro.c (cpp_get_token): If expanding a macro while
1212         processing a directive, discard any comments we might encounter.
1213         (parse_params): If discard_comments_in_macro_exp is false,
1214         ignore comments in the macro parameter list.
1215         * gcc.c (cpp_unique_options): Add "-CC" option.
1216         (option_map): Map "--comments-in-macros" to "-CC".
1217         * doc/cppopts.texi: Document "-CC" option.
1218         * f/lang-specs.h: Add "-CC" option.
1219         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1220         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1221         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1222         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1223         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1224         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1225
1226 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1227
1228         PR middle-end/6180
1229         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1230
1231 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1232
1233         PR c++/5571
1234         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1235
1236         PR opt/5120
1237         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1238         RTX_UNCHANGING_P for the functions arguments when a tail call
1239         is made.
1240
1241 2002-04-06  Jason Merrill  <jason@redhat.com>
1242
1243         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1244         (parse_options_and_default_flags): Set them appropriately.
1245         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1246
1247 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1248
1249         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1250         here.
1251
1252         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1253         semicolon.
1254
1255         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1256         types come in by-reference.  Fix typo in comment.
1257
1258 2002-04-05  David S. Miller  <davem@redhat.com>
1259
1260         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1261         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1262         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1263         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1264
1265 2002-04-05  David S. Miller  <davem@redhat.com>
1266
1267         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1268         are not going to emit return instructions, emit at least a nop
1269         for the sake of sane backtraces.
1270
1271 2002-04-05  Richard Henderson  <rth@redhat.com>
1272
1273         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1274
1275 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1276
1277         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1278
1279 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1280
1281         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1282         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1283         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1284
1285 2002-04-05  Andreas Schwab  <schwab@suse.de>
1286
1287         * c-convert.c: Include c-common.h.
1288         * Makefile.in (c-convert.o): Updated.
1289
1290 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1291
1292         * mklibgcc.in: Use separate libgcc.map for each multilib.
1293         * Makefile.in (distclean): Don't remove libgcc.map here.
1294
1295 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1296
1297         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1298         genmultilib invocation.
1299
1300 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1301
1302         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1303         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1304         to num_gprs for symmetry.
1305         * config/mips/mips.c: Adjust accordingly.
1306
1307 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1308
1309         * c-common.c (truthvalue_conversion): Rename, update.
1310         * c-common.h (c_common_truthvalue_conversion): New.
1311         * c-convert.c (convert): Update.
1312         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1313         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1314         * c-typeck.c (build_binary_op, build_unary_op,
1315         build_conditional_expr): Update.
1316         * fold-const.c (constant_boolean_node, fold): Use langhook.
1317         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1318         * langhooks.h (struct lang_hooks): New hook.
1319         * stmt.c (expand_decl_cleanup): Use langhook.
1320         * tree.h (truthvalue_conversion): Remove.
1321 objc:
1322         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1323
1324 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1325
1326         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1327         Add rules to make null object file.
1328
1329 2002-04-04  Jim Blandy  <jimb@redhat.com>
1330
1331         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1332         macro formal parameter names.
1333
1334 2002-04-04  David S. Miller  <davem@redhat.com>
1335
1336         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1337
1338 2002-04-04  Richard Henderson  <rth@redhat.com>
1339
1340         PR middle-end/5099
1341         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1342         Support copies into and out of memory.  Don't accept allows_reg
1343         and allows_mem as gospel.
1344
1345 2002-04-04  Richard Henderson  <rth@redhat.com>
1346
1347         PR opt/6165
1348         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1349         (write_dependence_p): Likewise.
1350
1351 2002-04-04  Richard Henderson  <rth@redhat.com>
1352
1353         * predict.c (estimate_bb_frequencies): Do frequency calculation
1354         with a volatile temporary.
1355
1356 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1357
1358         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1359
1360 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1361
1362         PR c++/6119
1363         * final.c (final_start_function): Don't bump profile_label_no here...
1364         (final_end_function): ...but here.
1365
1366 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1367
1368         * config/sparc/sparc.md (pic): New attribute.
1369         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1370         into stack slots.
1371         (split after do_builtin_setjmp_setup): New.
1372
1373 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1374
1375         PR fortran/6106
1376         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1377         change.
1378
1379 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1380
1381         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1382         UNITS_PER_WORD for zero sized aggregates.
1383
1384 2002-04-03  David S. Miller  <davem@redhat.com>
1385
1386         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1387         one-character spec for this, just use %(link_gcc_c_sequence).
1388
1389 2002-04-03  David S. Miller  <davem@redhat.com>
1390
1391         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1392         handling.
1393
1394 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1395
1396         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1397         (DWARF_FRAME_RETURN_COLUMN): Move.
1398         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1399         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1400         * pa.c (except.h, predict.h): Include.
1401         (FRP): Delete.
1402         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1403         (output_ascii): Add cast.
1404         (store_reg_modify): Revise to add frame notes.
1405         (set_reg_plus_d): Likewise.
1406         (compute_frame_size): Include space for eh data registers in frame if
1407         the current function calls eh_return.
1408         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1409         function calls eh_return.  Save eh data registers if the current
1410         function calls eh_return.  Fix code to add frame notes.  Emit
1411         blockage to prevent insns with frame notes being scheduled in the
1412         delay slot of calls.
1413         (hppa_expand_epilogue): Restore eh data registers and do final stack
1414         adjustment if the current function calls eh_return.  Don't add frame
1415         notes.
1416         (output_call): Revise for change in length of call insn.  Don't do
1417         return pointer adjustment for an unconditional jump in the delay slot
1418         of a call when using frame notes.
1419         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1420         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1421         (ARG_POINTER_CFA_OFFSET): Define.
1422         * pa.md (return_external_pic): New pattern.
1423         (prologue): Correct formatting.  Use return_external_pic if current
1424         function calls eh_return.
1425         (call_internal_symref, call_value_internal_symref,
1426         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1427         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1428         respectively.
1429         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1430
1431         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1432         list of targets to check using "nop" insn.
1433         * configure: Rebuilt.
1434
1435 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1436
1437         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1438
1439 2002-04-03  David S. Miller  <davem@redhat.com>
1440
1441         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1442         library sequence passed to the linker.
1443         (LINK_COMMAND_SPEC): Use it.
1444         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1445         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1446         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1447
1448 2002-04-03  Jason Merrill  <jason@redhat.com>
1449
1450         * except.c (struct eh_status): Remove protect_list.
1451         (begin_protect_partials, end_protect_partials): Remove.
1452         (add_partial_entry): Remove.
1453         * except.h: Remove prototypes.
1454
1455         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1456         expand_decl_cleanup_eh.
1457
1458         PR c++/5636
1459         * tree.h (CLEANUP_EH_ONLY): New macro.
1460         * stmt.c (expand_decl_cleanup_eh): New fn.
1461         (expand_cleanups): Check CLEANUP_EH_ONLY.
1462         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1463         Use expand_decl_cleanup_eh.
1464         (expand_stmt): Adjust.
1465         * c-common.h: Adjust prototype.
1466
1467 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1468
1469         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1470         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1471         (cris_target_asm_function_epilogue): Ditto.
1472         (cris_initial_frame_pointer_offset): Ditto.
1473         (cris_simple_epilogue): Ditto.
1474         (cris_expand_builtin_va_arg): Variable-size types come in
1475         by-reference.
1476
1477 2002-04-03  David S. Miller  <davem@redhat.com>
1478
1479         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1480         little-endian.
1481         (set_fast_math): Correct 'fsr' type.
1482
1483 2002-04-03  Richard Henderson  <rth@redhat.com>
1484
1485         PR opt/3569
1486         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1487         * toplev.c (check_global_declarations): Use it.
1488         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1489         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1490         (LANG_HOOKS_DECLS): Add it.
1491         * langhooks.c (lhd_warn_unused_global_decl): New.
1492         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1493         * c-objc-common.c (c_warn_unused_global_decl): New.
1494         * c-tree.h (c_warn_unused_global_decl): Declare.
1495         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1496
1497 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1498
1499         * langhooks-def.h (lhd_set_decl_assembler_name,
1500         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1501         (LANG_HOOKS_INITIALIZER): Update.
1502         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1503         * langhooks.h (struct lang_hooks): New hook.
1504         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1505         (lang_set_decl_assembler_name): Remove.
1506         (init_obstacks): Don't set hook.
1507         (decl_assembler_name): New function.
1508         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1509         (decl_assembler_name): New.
1510         (lang_set_decl_assembler_name): Remove.
1511
1512 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1513
1514         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1515         works properly with .hidden symbols.
1516         * configure: Rebuilt.
1517         * config.in: Rebuilt.
1518         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1519         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1520         properly with .hidden symbols.
1521
1522 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1523
1524         PR middle-end/6102
1525         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1526         USE argument.
1527
1528 2002-04-03  Richard Henderson  <rth@redhat.com>
1529
1530         PR opt/4120
1531         * sched-rgn.c (sets_likely_spilled): New.
1532         (sets_likely_spilled_1): New.
1533         (add_branch_dependences): Use it.
1534
1535 2002-04-02  Richard Henderson  <rth@redhat.com>
1536
1537         PR opt/4311
1538         * loop.h (LOOP_FIRST_PASS): New.
1539         * loop.c (strength_reduce): Mind it when deciding to unroll.
1540         * toplev.c (rest_of_compilation): Set it.
1541
1542 2002-04-02  David S. Miller  <davem@redhat.com>
1543
1544         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1545         mems_ok_for_ldd_peep when the order of the loads being examined
1546         is reversed.
1547         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1548         existing comment to increase comprehension of this situation.
1549
1550 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1551
1552         * config/sh/sh.md: Don't use union real_extract.
1553
1554 2002-04-02  Richard Henderson  <rth@redhat.com>
1555
1556         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1557
1558 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1559
1560         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1561         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1562         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1563         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1564         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1565         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1566         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1567         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1568         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1569         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1570         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1571         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1572         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1573         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1574         Include as many configury headers via tm_file as possible.  This
1575         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1576         * config/openbsd-oldgas.h: New file.
1577         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1578         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1579         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1580         config/i386/i386-coff.h, config/i386/i386-interix.h,
1581         config/i386/iscdbx.h, config/i386/linux-aout.h,
1582         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1583         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1584         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1585         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1586         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1587         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1588         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1589         config/i386/vxi386.h: Do not directly include configury headers.
1590         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1591         Directly include configury headers that are no longer automatically
1592         included by the above headers.
1593         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1594         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1595         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1596         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1597         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1598         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1599         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1600         (TARGET_VERSION): Define.
1601         * config/i386/beos-elf.h, config/i386/freebsd.h,
1602         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1603         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1604         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1605         config/i386/sco5.h, config/i386/sysv4.h
1606         (TARGET_VERSION): Do not need to protect.
1607         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1608         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1609         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1610         config/i386/i386-interix.h, config/i386/linux-aout.h,
1611         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1612         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1613         (YES_UNDERSCORES): Do not define - not needed.
1614         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1615         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1616         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1617         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1618         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1619         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1620         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1621         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1622
1623 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1624             Richard Henderson  <rth@redhat.com>
1625
1626         PR c/5484
1627         * function.c (assign_temp): Accept either type or decl argument.
1628         Detect variables whose size is too large to fit into an integer.
1629         * stmt.c (expand_decl): Pass the decl, not the type.
1630
1631 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1632
1633         * protoize.c: Match include directory usage with cppdefault.c.
1634
1635 2002-04-03  Jeffrey A Law  (law@redhat.com)
1636             Hans-Peter Nilsson  <hp@bitrange.com>
1637
1638         * combine.c (simplify_comparison): Avoid narrowing a comparison
1639         with a paradoxical subreg when doing so would drop signficant bits.
1640
1641 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1642
1643         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1644         if POINTERS_EXTEND_UNSIGNED is defined.
1645
1646 2002-04-02  Richard Henderson  <rth@redhat.com>
1647
1648         PR opt/3967
1649         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1650         replace regs.
1651
1652 2002-04-02  Richard Henderson  <rth@redhat.com>
1653
1654         * doc/standards.texi: Document required freestanding libc entry points.
1655
1656 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1657
1658         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1659         associated splitter.  Remove MQ constraint.
1660         (ctrdi_internal4): Correct CCmode clobber.
1661
1662 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1663
1664         * milli64.S ($$dyncall): New function.
1665         * t-linux (LIB1ASMFUNCS): Revise module list.
1666         (LIB1ASMSRC): Use pa/milli64.S.
1667
1668 2002-04-02  Richard Henderson  <rth@redhat.com>
1669
1670         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1671         rename solaris_sys_varargs_h.
1672
1673 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1674
1675         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1676         the same mode as its component.
1677
1678 2002-04-02  Richard Henderson  <rth@redhat.com>
1679
1680         PR opt/190
1681         * final.c (this_is_asm_operands): Export.
1682         * output.h (this_is_asm_operands): Declare.
1683         * config/i386/i386.c (print_operand): Error odd asm operands.
1684
1685 2002-04-02  Richard Henderson  <rth@redhat.com>
1686
1687         PR opt/420
1688         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1689
1690 2002-04-01  Richard Henderson  <rth@redhat.com>
1691
1692         PR target/1538
1693         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1694         * fixinc/fixincl.x: Rebuild.
1695
1696 2002-04-01  Richard Henderson  <rth@redhat.com>
1697
1698         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1699         (atomic_alloc, atomic_free): New.
1700         (SIZE, MASK_FOR, PTR_IN): New.
1701         (emergency_reg_state, emergency_reg_state_free): New.
1702         (emergency_labeled_state, emergency_labeled_state_free): New.
1703         (reg_state_alloced, labeled_state_alloced): New.
1704         (alloc_reg_state, free_reg_state): New.
1705         (alloc_label_state, free_label_state, free_label_states): New.
1706         (push, pop, dup_state_stack, free_state_stack): Use them.
1707         (desc_label_state): Likewise.
1708         (uw_frame_state_for): Free label states and state stack.
1709         (uw_update_reg_address): Eliminate warnings.
1710
1711 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1712
1713         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1714         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1715
1716 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1717
1718         * c-decl.c (grokdeclarator): Update.
1719         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1720         * c-tree.h (c_mark_addressable): New.
1721         * c-typeck.c (default_function_array_conversion, build_unary_op,
1722         build_array_ref, convert_for_assignment): Update.
1723         (mark_addressable): Rename.
1724         * calls.c (try_to_integrate, expand_call): Use langhook.
1725         * expr.c (expand_expr): Use langhook.
1726         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1727         * langhooks.h (struct lang_hooks): New hook.
1728         * stmt.c (expand_asm_operands): Use langhook.
1729         * tree.h (mark_addressable): Remove.
1730 objc:
1731         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1732
1733 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1734
1735         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1736         in previous change.
1737
1738 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1739
1740         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1741         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1742
1743 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1744
1745         * c-common.c (unsigned_conversion_warning, convert_and_check,
1746         unsigned_type, signed_type, shorten_compare,
1747         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1748         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1749         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1750         New.
1751         * c-decl.c (grokdeclarator): Update.
1752         * c-format.c (check_format_types): Update.
1753         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1754         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1755         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1756         * convert.c (convert_to_integer): Use new hooks.
1757         * expmed.c (make_tree): Use new hooks.
1758         * expr.c (store_expr): Use new hooks.
1759         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1760         all_ones_mask_p, unextend, fold): Use new hooks.
1761         * langhooks.h (struct lang_hooks_for_types): New hooks.
1762         * tree.h (signed_or_unsigned_type, signed_type,
1763         unsigned_type): Remove.
1764 objc:
1765         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1766         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1767
1768 2002-03-31  Richard Henderson  <rth@redhat.com>
1769
1770         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1771         (desc_frgr_mem): Fix reference to f16-f31.
1772
1773 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1774
1775         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1776         RTVEC_ELT): Const-ify.
1777         * varray.h (VARRAY_CHECK): Const-ify.
1778         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1779         ggc_mark_rtvec, ggc_mark): Const-ify.
1780
1781 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1782
1783         * diagnostic.c: Include langhooks-def.h.
1784         * Makefile.in (diagnostic.o): Update.
1785
1786 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1787
1788         * c-common.c (c_unsafe_for_reeval): Rename.
1789         * c-common.h (c_unsafe_for_reeval): Rename.
1790         * c-decl.c (finish_incomplete_decl): Rename.
1791         (c_init_decl_processing): Don't set langhook.
1792         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1793         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1794         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1795         * c-tree.h (finish_incomplete_decl): Rename.
1796         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1797         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1798         (LANG_HOOKS_INITIALIZER): Update.
1799         * langhooks.c (lhd_unsafe_For_reeval): New.
1800         * langhooks.h (struct langhooks): New hooks.
1801         * toplev.c (incomplete_decl_finalize_hook): Remove.
1802         (wrapup_global_declarations): Update.
1803         * tree.c (lang_unsafe_for_reeval): Remove.
1804         (unsafe_for_reeval): Update.
1805         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1806         Remove.
1807 objc:
1808         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1809         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1810
1811 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1812
1813         * diagnostic.c (print_error_function): Remove.
1814         (default_print_error_function): Rename.
1815         (report_error_function): Update.
1816         * diagnostic.h (print_error_function): Remove.
1817         (default_print_error_function): Remove.
1818         * langhooks-def.h (struct diagnostic_context): Predeclare.
1819         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1820         (LANG_HOOKS_INITIALIZER): Update.
1821         * langhooks.h (struct diagnostic context): Predeclare.
1822         (struct lang_hooks): New hook.
1823
1824 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1825
1826         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1827         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1828         !flag_pic.
1829         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1830         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1831         of PIC_OFFSET_TABLE_REGNUM thruout.
1832         * config/rs6000/rs6000.md: Likewise.
1833         * config/rs6000/darwin.h: Likewise.
1834
1835 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1836
1837         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1838         unsigned HOST_WIDE_INT, not unsigned int.
1839
1840 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1841
1842         PR middle-end/6096, middle-end/6098, middle-end/6099
1843         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1844         CODE_LABELs.
1845         (fill_slots_from_thread): Likewise.
1846
1847 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1848
1849         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1850         floating fields in float regs.
1851         (function_arg_record_value_2): Likewise.
1852
1853 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1854
1855         * config/mmix/mmix.md (define_constants): Remove misleading
1856         FIXME.  Add MMIX_fp_rO_OFFSET.
1857         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1858         saved rO as part of the pattern.  Remove FIXME.
1859         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1860         here, at output-time.
1861
1862 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1863
1864         PR middle-end/6100
1865         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1866         REG_BR_PRED.
1867         (output_v9branch): Likewise.
1868
1869 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1870
1871         * gcc.c: Revert previous patch for now.
1872         * config/i386/djgpp.h: Likewise.
1873
1874 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1875
1876         * config/mmix/crti.asm (_init): Register _fini with atexit.
1877         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1878
1879 2002-03-31  Richard Henderson  <rth@redhat.com>
1880
1881         PR target/3997
1882         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1883         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1884
1885 2002-03-31  Richard Henderson  <rth@redhat.com>
1886
1887         * libgcc2.c (__bb_exit_func): Make static.
1888
1889         * config/alpha/alpha.md (trap): New.
1890
1891 2002-03-31  Richard Henderson  <rth@redhat.com>
1892
1893         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1894         promoted argument types; build trap.
1895         (expand_builtin_trap): New.
1896         (expand_builtin): Use it.
1897         * stmt.c (expand_nl_goto_receivers): Likewise.
1898         * expr.h (expand_builtin_trap): Declare.
1899         * libfuncs.h (LTI_abort, abort_libfunc): New.
1900         * optabs.c (init_optabs): Init abort_libfunc.
1901
1902 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1903
1904         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1905         (LINK_COMMAND_SPEC): ... from here.
1906         (init_gcc_specs): Duplicate it here too, omitting
1907         shared_name in the second copy.
1908         (init_spec): Test for duplicate
1909         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1910
1911 2002-03-30  David S. Miller  <davem@redhat.com>
1912
1913         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1914         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1915
1916 2002-03-30  Roger Sayle <roger@eyesopen.com>
1917             Richard Henderson  <rth@redhat.com>
1918
1919         * regmove.c (combine_stack_adjustments_for_block): Avoid
1920         emitting a stack adjustment of zero bytes.  Let delete_insn
1921         update bb->head.
1922
1923 2002-03-30  Richard Henderson  <rth@redhat.com>
1924
1925         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1926         (sparc_emitting_epilogue): New.
1927         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1928         * config/sparc/sparc-protos.h: Update.
1929         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1930         (TARGET_SWITCHES): Update.
1931         * config/sparc/sparc.md (return): Remove.
1932         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1933         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1934         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1935         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1936         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1937         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1938         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1939         Remove MASK_EPILOGUE.
1940         * doc/invoke.texi: Update.
1941
1942 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1943
1944         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1945         CPP will start the file for us.
1946
1947 2002-03-30  Richard Henderson  <rth@redhat.com>
1948
1949         PR target/5446
1950         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1951         prologue_allocate_stack.
1952         (ia64_single_set): Use insn codes for recognition of special
1953         cases, not rtl matching.
1954         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1955
1956 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1957
1958         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1959
1960 2002-03-30  Richard Henderson  <rth@redhat.com>
1961
1962         PR target/6032
1963         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1964         or -fomit-frame-pointer with profiling.
1965         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1966         (FUNCTION_PROFILER): Do nothing.
1967         (PROFILE_HOOK): New.
1968         * config/sparc/sparc.c (sparc_override_options): Don't check
1969         code models for profiling.
1970         (sparc_function_profiler): Remove.
1971         (sparc_profile_hook): New.
1972         * config/sparc/sparc-protos.h: Update.
1973
1974 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1975
1976         PR optimization/6086
1977         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1978         of SUBREG of volatile MEM or because the MEM was mode dependent,
1979         return CLOBBER instead of unmodified SUBREG.
1980
1981 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1982
1983         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1984         when not optimizing.
1985
1986         * toplev.c (rest_of_compilation): Cann mark_constant_function
1987         only when optimizing.
1988
1989         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1990         are NULL.
1991
1992         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1993         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1994         (try_optimize_cfg): clear all AUX fields.
1995
1996         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1997         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1998         (ix86_address_cost): Be prepared for SUBREGed registers.
1999         (legitimate_address_p): Accept SUBREGed registers.
2000
2001 2002-03-29  Richard Henderson  <rth@redhat.com>
2002
2003         PR target/5672
2004         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2005
2006 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2007
2008         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2009         for aggregate and TFmode types.
2010
2011 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2012
2013         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2014
2015 2002-03-29  Richard Henderson  <rth@redhat.com>
2016
2017         PR target/5886
2018         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2019         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2020
2021 2002-03-29  Richard Henderson  <rth@redhat.com>
2022
2023         PR target/6041
2024         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2025         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2026         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2027         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2028         conditional.
2029         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2030
2031 2002-03-29  Dale Johannesen <dalej@apple.com>
2032
2033         * loop.c (combine_movables): Do allow combination of pseudos.
2034
2035 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
2036
2037         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2038         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2039         No functional change except ...
2040         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
2041         * doc/install.texi (*-*-freebsd*): Document port configuration.
2042
2043 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2044
2045         * Makefile.in (convert.o, calls.o, expmed.o): Update.
2046         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2047         Use new hooks.
2048         * builtin-types.def (BT_PTRMODE): Update.
2049         * c-common.c (type_for_size): Rename c_common_type_for_size.
2050         (type_for_mode): Similarly.
2051         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2052         Use new hook.
2053         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2054         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2055         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2056         Redefine.
2057         * c-typeck.c (common_type, comptypes, default_conversion):
2058         Use new hooks.
2059         * calls.c: Include langhooks.h.
2060         (emit_library_call_value_1): Use new hooks.  Avoid redundant
2061         calls.
2062         * convert.c: Include langhooks.h
2063         (convert_to_pointer, convert_to_integer): Use new hooks.
2064         * except.c (init_eh): Similarly.
2065         * expmed.c: Include langhooks.h.
2066         (expand_mult_add): Use new hooks.
2067         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2068         try_casesi): Similarly.
2069         * fold-const.c (optimize_bit_field_compare, make_range,
2070         decode_field_reference, fold_truthop, fold): Similarly.
2071         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2072         put_var_into_stack): Similarly.
2073         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2074         LANG_HOOKS_TYPE_FOR_SIZE): New.
2075         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2076         * langhooks.h (lang_hooks_for_types): New hooks.
2077         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2078         * tree.c (get_unwidened, get_narrower): Similarly.
2079         * tree.h (type_for_mode, type_for_size): Remove.
2080         * varasm.c (force_const_mem): Use new hooks.
2081         * utils2.c (nonbinary_modular_operation): Update.
2082 objc:
2083         * objc-act.c (handle_impent): Update.
2084         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2085         Redefine.
2086
2087 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2088
2089         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2090         * config/ia64/ia64.c (basereg_operand): New.
2091         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2092         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2093
2094 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2095
2096         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2097         unwind information when frame_pointer_needed.
2098         (mmix_assemble_integer): Tweak wording in comment.
2099
2100 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2101
2102         * Makefile.in (except.o): Update.
2103         * except.c: Include langhooks.h.
2104         (init_eh): Use langhook.
2105         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2106         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2107         (LANG_HOOKS_INITIALIZER): Update.
2108         * langhooks.h (lang_hooks_for_types): New.
2109         (struct lang_hooks): Add it.
2110         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2111         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2112 config:
2113         * alpha/alpha.c: Include langhooks.h.
2114         (alpha_build_va_list): Use langhook.
2115         * d30v/d30v.c: Include langhooks.h.
2116         (d30v_build_va_list): Use langhook.
2117         * i386/i386.c: Include langhooks.h.
2118         (ix86_build_va_list): Use langhook.
2119         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2120         * s390/s390.c: Include langhooks.h.
2121         (s390_build_va_list): Use langhook.
2122         * stormy16/stormy16.c: Include langhooks.h.
2123         (stormy16_build_va_list): Use langhook.
2124
2125 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2126
2127         PR c++/5964
2128         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2129         attributes.
2130         (length): Compute variable length for branches/calls/jumps here.
2131         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2132         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2133         define branch_type attribute.
2134         (divsi3_sp32): Maximum length is 6 not 7.
2135         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2136         call_address_untyped_struct_value_sp32,
2137         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2138         * config/sparc/sparc.c (empty_delay_slot): New function.
2139         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2140         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2141
2142 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2143
2144         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2145         nonzero_bits if not needed.
2146         (nonzero_bits) [XOR]: Likewise.
2147         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2148         reg_last_set_mode and mode are both MODE_INT, but not equal.
2149         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2150         in nonzero_bits_mode for MODE_INT modes.
2151
2152 2002-03-28  Richard Henderson  <rth@redhat.com>
2153
2154         PR target/5715
2155         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2156         to GAS.  Correct drift between alternatives.
2157
2158 2002-03-28  Richard Henderson  <rth@redhat.com>
2159
2160         PR target/6087
2161         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2162
2163 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2164
2165         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2166         emulation to the linker.
2167
2168 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2169
2170         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2171         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2172
2173 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2174
2175         * combine.c (simplify_and_const_int): Make sure to apply mask
2176         when force_to_mode returns a constant integer.  PR3311.
2177
2178 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2179
2180         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2181
2182 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2183
2184         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2185         and Objective-C Dialect Options.
2186
2187 2002-03-28  Richard Henderson  <rth@redhat.com>
2188
2189         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2190         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2191
2192 2002-03-28  Richard Henderson  <rth@redhat.com>
2193
2194         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2195         on to c_expand_body.
2196         * c-tree.h (finish_function): Update decl.
2197         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2198
2199 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2200
2201         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2202
2203 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2204
2205         * rtlanal.c: Include flags.h
2206         (may_trap_p): Do not mark FP operations if trapping
2207         if !flag_trapping_math
2208         * Makefile.in (rtlanal.o): Add dependency on flag.h
2209         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2210
2211 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2212
2213         * mips.md: Use dconst1, not 1.0, as first argument of
2214         REAL_VALUE_LDEXP.  Don't use union real_extract.
2215
2216 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2217
2218         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2219         rather than $target.  Heed program_prefix and
2220         program_transform_name.  Search for gas in cross-compiler case too.
2221         "test -x" rather than "test -f".
2222         (gcc_cv_ld): Likewise.
2223         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2224         (gcc_cv_objdump): Likewise.
2225         * configure: Regenerate.
2226
2227 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2228
2229         * Makefile.in (attribs.o): Update.
2230         * attribs.c: Include langhooks.h.
2231         (decl_attributes): Use langhook.
2232         * c-decl.c (insert_default_attributes): Rename.
2233         * c-tree.h (c_insert_default_attributes): New.
2234         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2235         (LANG_HOOKS_INITIALIZER): Update.
2236         * langhooks.h (struct lang_hooks): New hook.
2237         * tree.h (insert_default_attributes): Remove.
2238 objc:
2239         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2240
2241 2002-03-27  Andreas Schwab  <schwab@suse.de>
2242
2243         * config/i386/i386.c (classify_argument): Also check for
2244         QUAL_UNION_TYPE.
2245
2246 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2247
2248         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2249         any more.
2250
2251 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2252
2253         * i960.md (ret): Set PC.
2254         (nonlocal_goto): Fix expander.
2255         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2256         some jump or call.
2257
2258 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2259
2260         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2261         of libcall regions.
2262
2263 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2264
2265         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2266         assigning to BLOCK_FOR_INSN directly.
2267
2268 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2269
2270         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2271
2272 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2273
2274         * c-common.c (c_expand_expr): Fix prototype.
2275         * c-common.h (c_expand_expr): Always declare, update.
2276         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2277         * c-objc-common.c (c_objc_common_init): No global hook.
2278         * expr.c (expand_expr): Use langhook.
2279         * expr.h (enum expand_modifier): Conditionally declare.
2280         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2281         (LANG_HOOKS_INITIALIZER): Update.
2282         * langhooks.c (lhd_expand_expr): New.
2283         * langhooks.h (struct lang_hooks): New hook.
2284         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2285         (lang_independent_init): Don't default hook.
2286 objc:
2287         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2288
2289 2002-03-27  Richard Henderson  <rth@redhat.com>
2290
2291         PR target/6054
2292         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2293         TARGET_CONST_GP.  Simplify conditions.
2294
2295 2002-03-27  Richard Henderson  <rth@redhat.com>
2296
2297         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2298         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2299         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2300
2301 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2302
2303         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2304         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2305         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2306         Remove unnecessary masks.
2307         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2308         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2309         -mwindows, -mdll switches and their negations.
2310
2311 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2312
2313         * gcc-common.c (lang_mark_false_label_stack): Remove.
2314         * ggc.h (lang_mark_false_label_stack): Similarly.
2315
2316 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2317
2318         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2319
2320         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2321         or __rtems_ is defined.
2322
2323 2002-03-26  Richard Henderson  <rth@redhat.com>
2324
2325         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2326         if a non-trivial load was emitted.
2327         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2328         in high+extra+low case.
2329
2330 2002-03-26  Richard Henderson  <rth@redhat.com>
2331
2332         * config.gcc (sparc*-solaris): Use float_format=sparc.
2333
2334 2002-03-26  Richard Henderson  <rth@redhat.com>
2335
2336         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2337         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2338         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2339         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2340         (WINT_TYPE_SIZE): Fix at 32.
2341
2342 2002-03-26  Richard Henderson  <rth@redhat.com>
2343
2344         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2345         until after eh landing pad generation.
2346         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2347         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2348
2349 2002-03-26  Richard Henderson  <rth@redhat.com>
2350
2351         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2352
2353 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2354
2355         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2356         and warning switches.
2357         (cc1_options):  Likewise.
2358
2359 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2360
2361         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2362         Restore more of the signal context.  Set no_reg_stack_frame.
2363         * config/ia64/unwind-ia64.c (unw_state_record):
2364         Add no_reg_stack_frame, comments.
2365         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2366         (uw_update_context): Adjust bsp when unwinding from leaf,
2367         but not signal frame.
2368
2369 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2370
2371         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2372
2373 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2374
2375         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2376
2377 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2378
2379         PR target/5621
2380         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2381         "Add a pool_range attribute", which was lost during the ARM/Thumb
2382         merge.
2383
2384 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2385
2386         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2387         a register into the MAC16 accumulator.
2388
2389 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2390
2391         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2392         (Warning Options): Document -Wswitch-enum.
2393         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2394         -Wswitch.
2395         (warn_switch_enum): Define variables.
2396         * flags.h (warn_switch_enum): Declare variables.
2397         * stmt.c (expand_end_case_type): When warn_switch_enum /
2398         -Wswitch-enum, perform switch checks.
2399         Fix PR c/5044.
2400
2401 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2402
2403         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2404         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2405         (reload_muladdsi_compare0_scratch): Delete.
2406
2407 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2408
2409         * doc/install.texi (*-*-freebsd*): Update.
2410
2411 2002-03-26  Richard Henderson  <rth@redhat.com>
2412
2413         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2414         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2415
2416         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2417         types from the normal argument frame.
2418
2419         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2420         variable sized objects by reference.
2421         (sparc_va_arg): Receive them by reference too.
2422
2423 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2424
2425         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2426         code to not restoring global registers.
2427
2428 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2429
2430         * Makefile.in (ggc-common.o): Update.
2431         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2432         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2433         * c-tree.h (c_mark_tree): New.
2434         * ggc-common.c: Include langhooks.h.
2435         (gcc_mark_trees): Use new langhook.
2436         * ggc-callbacks.c: Delete file.
2437         * ggc.h (lang_mark_tree): Remove.
2438         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2439         (LANG_HOOKS_INITIALIZER): Update.
2440         * langhooks.h (struct lang_hooks): New hook.
2441 objc:
2442         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2443
2444 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2445
2446         * doc/cpp.texi: Exclude entire Top node from printed manual.
2447         Move option index after directive index.  Insert page breaks
2448         before GFDL and concept index.  Index environment variables
2449         with command line options.
2450         * doc/cppenv.texi: Use @vtable for environment variable list.
2451         Add paragraph explaining semantics of empty elements in path
2452         variables.  Exclude a cross-reference to Fishkill from the
2453         manpage.  Remove an unnecessary cross-reference of the entry
2454         right above the referer.  Don't use @anchor in text that goes
2455         into manpage.
2456         * doc/cppopts.texi: Cross-reference the environment variables
2457         section, not the specific environment variable, for consistency.
2458
2459 2002-03-25  Richard Henderson  <rth@redhat.com>
2460
2461         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2462         anywhere in the block.  Don't refer to insns that have been
2463         removed from the chain.  Iterate backward through the new insns.
2464         Don't refer to edges that have been removed.
2465
2466 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2467
2468         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2469         test for overflow of constant.
2470
2471 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2472
2473         PR target/2623
2474         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2475         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2476         these patterns on arm_archv4.
2477
2478 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2479
2480         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2481         int".
2482
2483 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2484
2485         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2486         float_handled, float_handler, float_signal, set_float_handler,
2487         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2488         * toplev.h: Don't prototype do_float_handler.
2489
2490         * c-lex.c: Fold parse_float into lex_number.  Make warning
2491         about portability of hex float constants more informative, and
2492         don't issue it on top of a syntax error.
2493         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2494         their callers.
2495         * real.h: Define REAL_VALUE_ABS here...
2496         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2497         simplify_unary_real, simplify_binary_real, and
2498         simplify_binary_is2orm1 into their callers.
2499         * tree.c: Fold build_real_from_int_cst_1 into caller.
2500
2501         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2502
2503         * tsystem.h: Include float.h here...
2504         * libgcc2.c: ... not here.
2505
2506 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2507
2508         Fixes for: PR bootstrap/3591, target/5676
2509         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2510         defined.  Do not disable exceptions or rtti.
2511         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2512         mcore.h.  Disable exceptions and rtti, since they are not
2513         supported by EPOC.
2514
2515 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2516
2517         * c-decl.c (maybe_build_cleanup): Remove.
2518         * expr.c (expand_expr): Use langhook.
2519         * langhooks-def.h (lhd_return_null_tree,
2520         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2521         (LANGHOOKS_INITIALIZER): Update.
2522         * langhooks.c (lhd_return_null_tree): New.
2523         * langhooks.h (struct lang_hooks): New hook.
2524         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2525         * tree.h (maybe_build_cleanup): Remove.
2526
2527 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2528
2529         * regrename.c (build_def_use): Move recog_memoized
2530         before extract_insn.
2531
2532 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2533
2534         PR target/6043
2535         * expr.c (emit_group_store): Handle storing into CONCAT.
2536
2537 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2538
2539         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2540         corresponding MATCH_DUP.
2541
2542 2002-03-24  Richard Henderson  <rth@redhat.com>
2543
2544         * unroll.c (unroll_loop): Zero label_map.
2545
2546         * gcse.c: Include except.h.
2547         * Makefile.in (gcse.o): Update.
2548
2549 2002-03-24  Richard Henderson  <rth@redhat.com>
2550
2551         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2552         Do resolve_unique_section before shared data clause.
2553
2554 2002-03-24  Richard Henderson  <rth@redhat.com>
2555
2556         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2557
2558 2002-03-24  Richard Henderson  <rth@redhat.com>
2559
2560         * recog.c (peephole2_optimize): Split blocks when EH insns are
2561         generated in the middle of a block.  Do global life update if
2562         zapped EH edges.
2563
2564 2002-03-24  Richard Henderson  <rth@redhat.com>
2565
2566         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2567
2568 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2569
2570         preprocessor/3951
2571         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2572         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2573         (init_dependency_output): Don't make no_output decision here.
2574
2575 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2576
2577         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2578         warn_switch.  Update description.
2579         (expand_end_case_type): Call check_for_full_enumeration_handling
2580         when warn_switch.
2581
2582 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2583
2584         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2585         (m68hc11_split_move): Call it to see if the source and destination
2586         operands use the same direction auto inc/dec mode, otherwise make the
2587         source an offsetable memory operand and generate an add.
2588
2589 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2590
2591         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2592         register for operand 2.
2593         ("*subsi3_zero_extendqi"): Likewise.
2594         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2595         bits so that it is compatible with a pop.
2596         ("*andhi3_gen"): Likewise.
2597         ("xorhi3"): Likewise.
2598
2599 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2600
2601         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2602         -pedantic here...
2603         (cpp_post_options): ... not here.
2604
2605 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2606             Aldy Hernandez  <aldyh@redhat.com>
2607
2608         Removal of separate preprocessor cpp0.
2609
2610         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2611         cpp0, install-common): Update.
2612         * c-common.c (flag_preprocess_only): New.
2613         (c_common_init): Preprocess for -E.
2614         * c-common.h (flag_preprocess_only): New.
2615         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2616         * c-objc-common.c (c_init_decl_processing): Exit quickly
2617         for NULL return from c_common_init.
2618         * cpplib.h (cpp_preprocess_file): New.
2619         * cppmain.c (main, general_init, pfile, progname): Remove.
2620         (do_preprocessing): Rename cpp_preprocess_file, don't call
2621         cpp_finish.  Don't close stdout here.
2622         (setup_callbacks): Update prototype.
2623         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2624         Update.
2625         * tradcpp.c (main): Ignore -quiet.
2626 objc:
2627         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2628
2629 2002-03-24  Richard Henderson  <rth@redhat.com>
2630
2631         PR optimization/5742
2632         * machmode.def: Add inner mode field to complex modes.
2633         * config/mips/mips.c (mips_function_value): Always define.  Add
2634         new argument to handle libcalls.
2635         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2636         (FUNCTION_VALUE): Likewise.
2637         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2638         * config/mips/mips-protos.h: Update.
2639
2640 2002-03-23  Richard Henderson  <rth@redhat.com>
2641
2642         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2643         * config/sparc/sparc-protos.h: Update.
2644         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2645
2646 2002-03-23  Richard Henderson  <rth@redhat.com>
2647
2648         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2649         _start or _init begins the text segment.
2650
2651 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2652
2653         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2654         not HOST_WIDEST_INT.
2655         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2656
2657 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2658
2659         PR java/5489
2660         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2661         operand argument to output_return_instruction.
2662         * arm.c (arm_print_operand, case 'd'): If the operand is
2663         const_true_rtx then just return.
2664         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2665         then abort.
2666
2667 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2668
2669         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2670         (Warning Options): Document -Wswitch-default.
2671         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2672         -Wswitch.
2673         (warn_switch_default): Define variable.
2674         (warn_switch): Update comment.
2675         * flags.h (warn_switch_default): Declare variable.
2676         (warn_switch): Update comment.
2677         * stmt.c (expand_end_case): Check for and, when
2678         warn_switch_no_default, warn of a missing default case.
2679
2680 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2681
2682         * real.h (N): Special case 128 bit doubles.
2683
2684         * combine.c (simplify_comparison): When widening modes, ignore
2685         sign extension on CONST_INTs.
2686
2687 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2688
2689         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2690         passed to adjust_address.  Fix comment formatting.
2691
2692
2693 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2694
2695         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2696         Always make REAL_VALUE_TYPE a struct containing an array of
2697         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2698         big it is.  Don't declare or use union real_extract.
2699
2700         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2701         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2702         (print_operand), config/arm/arm.c (output_move_double),
2703         config/arm/arm.md (consttable_4, consttable_8),
2704         config/romp/romp.c (output_fpops), config/s390/s390.h
2705         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2706         (xtensa_output_literal): Don't use union real_extract.
2707
2708         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2709         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2710         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2711         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2712         (PRINT_OPERAND): Don't use local version of union
2713         real_extract.
2714
2715         * config/convex/convex.c (check_float_value), config/vax/vax.c
2716         (vax_float_literal), config/m88k/m88k.md (divdf3),
2717         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2718         config/pdp11/pdp11.c (output_move_quad): Don't do host
2719         arithmetic on target floating point quantities.
2720
2721         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2722         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2723
2724         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2725         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2726
2727         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2728         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2729         INFINITY.
2730         * print-rtl.c (print_rtx): Disable code which needs
2731         floating-point emulator.
2732         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2733         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2734         depending on HOST_FLOAT_FORMAT to be defined properly.
2735
2736         * config/1750a/1750a.c (get_double, float_label): Delete.
2737         (print_operand): Delete huge commented-out chunk.  Use
2738         REAL_VALUE_TO_DECIMAL.
2739         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2740         functions.
2741         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2742         IEEE_FLOAT_FORMAT.
2743         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2744         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2745         * config/m88k/m88k.c (real_power_of_2_operand,
2746         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2747         real_extract out of the union; run the input through
2748         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2749         from that into the union.
2750         * config/pdp11/pdp11.c (output_move_double): Rearrange
2751         parentheses to make automatic indenter happy.
2752
2753         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2754         Point" and rewrite to describe current situation.  Also adjust
2755         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2756         match code.
2757         * doc/rtl.texi: Adjust cross reference.
2758
2759 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2760
2761         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2762         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2763         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2764         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2765         prevent use of sp as a reload register.
2766         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2767         non_acc_reg_operand.
2768         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2769         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2770         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2771         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2772
2773 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2774
2775         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2776         * cpplex.c (unterminated): Delete.
2777         (parse_string): No string literal may extend over multiple
2778         lines.  Suppress the error when preprocessing assembly.
2779         * cppmain.c (scan_translation_unit): Strings are single-line.
2780
2781         * doc/cpp.texi: Update to match.
2782
2783 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2784
2785         PR optimization/5854
2786         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2787         Shut up warnings.
2788         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2789         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2790         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2791         const0 if scratch register was not allocated.
2792         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2793         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2794         with GEN_INT (...).
2795         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2796         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2797         with GEN_INT (...) everywhere.  Remove constraints in define_split
2798         patterns.
2799         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2800         require scratch register for setting 0 into regs/non-pushable memory.
2801
2802 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2803
2804         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2805         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2806
2807 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2808
2809         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2810         * cppinit.c (cpp_create_reader):  On by default.
2811         (cpp_handle_option):  Handle -W[no-]endif-labels.
2812         (cpp_post_options):  Also enable if -pedantic.
2813         * cpplib.c (do_else):  Use it.
2814         (do_endif):  Likewise.
2815         * doc/cppopts.texi:  Document new option.
2816         * doc/invoke.texi:  Document new option.
2817
2818 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2819
2820         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2821         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2822
2823 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2824
2825         * flow.c (calculate_global_regs_live): Clear aux fields of
2826         ENTRY and EXIT.
2827
2828 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2829
2830         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2831         REG or MEM subregs, pass rtx * instead of rtx to it.
2832         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2833         rtx * instead of rtx to alter_subreg.
2834         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2835         * config/pj/pj.c (pj_output_rval): Likewise.
2836
2837 2002-03-22  Richard Henderson  <rth@redhat.com>
2838
2839         PR target/3177
2840         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2841         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2842         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2843         (ia64_expand_prologue): Look at int_regs, not words, for number
2844         of incomming int regs.
2845
2846 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2847
2848         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2849
2850 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2851
2852         * toplev.c (flag_loop_optimize, flag_crossjumping):
2853         New static variables.
2854         (rest_of_compilation): Conditionalize crossjumping and
2855         loop optimizer.
2856         (parse_options_and_default_flags): Default loop_optimize and
2857         crossjumping.
2858         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2859         * invoke.texi (crossjumping, loop-optimize): Document.
2860
2861 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2862
2863         * real.c (eiisneg): Move outside #ifdef NANS.
2864
2865 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2866
2867         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2868         frequencies match; avoid match on different loop depths.
2869         (try_crossjump_to_bb): Kill tests that no longer brings time
2870         savings.
2871         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2872         updating code.
2873         (split_edge): Likewise.
2874
2875         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2876         variable.
2877
2878         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2879         * cfgrtl.c: Include insn-config.h
2880         (split_block) Dirtify block in presence of conditional execution
2881
2882 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2883
2884         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2885         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2886         (function_arg): Constify CUMULATIVE_ARGS.
2887         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2888         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2889         (UNITS_PER_DOUBLE): New macro.
2890         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2891         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2892         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2893         fp_regs and stack_words.
2894         (EABI_FLOAT_VARARGS_P): New macro.
2895         * config/mips/mips.c (struct mips_arg_info): New.
2896         (mips_arg_info): New function.
2897         (function_arg_advance): Use it.  Add adjustment instructions here
2898         rather than in function_arg.
2899         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2900         for VOIDmode at the beginning of the function.
2901         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2902         (function_arg_pass_by_reference): Likewise.
2903         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2904         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2905         (mips_va_start): Likewise.  Use the new stack_words field of
2906         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2907         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2908         doubles and other types, aligning the overflow pointer for non-doubles
2909         too.  Remove some code duplication.  Replace hard-coded constants.
2910
2911 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2912
2913         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2914         (CLASS_UNITS): Undefine.
2915         (CLASS_MAX_NREGS): Use FP_INC.
2916         * config/mips/mips.c (compute_frame_size): Likewise.
2917         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2918
2919 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2920
2921         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2922         prototype, and handle lexing numbers and identifiers.
2923         (parse_identifier): Update to new form of parse_slow.
2924         (parse_number): Fast path only, use parse_slow otherwise.
2925         (_cpp_lex_direct): Update calls to parse_number.
2926
2927 2002-03-21  DJ Delorie  <dj@redhat.com>
2928
2929         * bb-reorder.c (make_reorder_chain_1): Protect against
2930         when redundant edges are omitted.
2931         * predict.c (dump_prediction): Likewise.
2932
2933 2002-03-21  Richard Henderson  <rth@redhat.com>
2934
2935         PR target/5996
2936         * fixinc/inclhack.def (solaris_stdio_tag): New.
2937         * fixinc/fixincl.x: Regenerate.
2938
2939 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2940
2941         PR c/5597
2942         * c-typeck.c (process_init_element): Flag non-static
2943         initialization of a flexible array member as illegal.
2944
2945 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2946
2947         * config/rs6000/t-linux64: New.
2948         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2949         t-ppccomm.  Use t-rs6000 and t-linux64.
2950         (powerpc64-*-gnu* <tmake_file>): Likewise.
2951         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2952         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2953         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2954
2955 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2956
2957         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2958         flag_really_no_inline instead of optimize == 0.
2959
2960         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2961
2962         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2963
2964         * flags.h (flag_really_no_inline): New.
2965
2966         * c-common.c (c_common_post_options): Initialize
2967         flag_really_no_inline.
2968
2969         * toplev.c (flag_really_no_inline): New.
2970
2971 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2972
2973         * config/avr/avr.md (length): Fix length computation for
2974         conditional branches.
2975
2976 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2977
2978         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2979         sdbout.o, profile.o): Update.
2980         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2981         langhook.
2982         * c-common.h (gettags): Move here from tree.h.
2983         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2984         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2985         * dbxout.c (dbxout_init): Use getdecls langhook.
2986         * expr.c (expand_expr): Use insert_block langhook.
2987         * fold-const.c: Include langhooks.h.
2988         (fold_range_test, fold_binary_op_with_conditional_arg,
2989         fold): Use global_bindings_p langhook.
2990         * integrate.c (expand_inline_function): Use insert_block langhook.
2991         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2992         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2993         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2994         LANG_HOOKS_GETDECLS): New.
2995         (LANG_HOOKS_INITIALIZER): Update.
2996         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2997         langhook.
2998         * langhooks.h (struct lang_hooks_for_decls): New.
2999         (struct lang_hooks): Update.
3000         * profile.c: Include langhooks.h.
3001         (output_func_start_profiler): Use new langhooks.
3002         * sdbout.c: Include langhooks.h.
3003         (sdbout_init, sdbout_finish): Use getdecls langhook.
3004         * stmt.c: Include langhooks.h.
3005         (expand_fixup, fixup_gotos): Use new langhooks.
3006         * stor-layout.c: Include langhooks.h.
3007         (variable_size): Use global_bindings_p langhook.
3008         * toplev.c (compile_file): Use getdecls langhook.
3009         * tree-inline.c (remap_block): Use insert_block langhook.
3010         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3011         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3012
3013 2002-03-21  Richard Henderson  <rth@redhat.com>
3014
3015         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3016         constants in .data when -fpic.
3017
3018 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3019
3020         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3021         where appropriate.
3022
3023 2002-03-21  Tom Tromey  <tromey@redhat.com>
3024
3025         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
3026
3027 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3028
3029         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3030
3031         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3032
3033 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3034             Richard Henderson  <rth@redhat.com>
3035
3036         PR c/5354
3037         * c-common.c (c_expand_expr): Preserve result of a statement
3038         expression if needed.
3039
3040 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3041
3042         PR bootstrap/4195
3043         * genrecog.c (maybe_both_true_mode): Remove.
3044         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3045         * machmode.def (Pmode): Likewise.
3046
3047 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
3048
3049         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3050         (nonlocal_mentioned_p_1): New function.
3051         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3052         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3053         (mark_constant_function): Recognize pure functions.
3054         * rtl.h (global_reg_mentioned_p): New prototype.
3055         * rtlanal.c (global_reg_mentioned_p,
3056         global_reg_mentioned_p_1): New function.
3057
3058 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3059
3060         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3061         UNIX assert.h.
3062         * fixinc/fixincl.x: Regenerate.
3063
3064 2002-03-20  Jason Merrill  <jason@redhat.com>
3065
3066         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3067
3068 2002-03-20  Michael Meissner  <meissner@redhat.com>
3069
3070         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3071         -fstrict-aliasing.
3072
3073 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3074
3075         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3076         ".literal_position" directive before the constant pool.
3077
3078 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3079
3080         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3081         Add Craig Rodrigues.
3082         Add Brad Lucier to testers.
3083
3084 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3085
3086         PR target/4792
3087         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3088         to if_then_else.
3089         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3090         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3091         instead of insn_extract.
3092
3093 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3094
3095         PR bootstrap/4192
3096         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3097
3098         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3099         stmt if some case has been output.
3100
3101 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3102
3103         PR c/5972
3104         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3105         movsfcc_1, movdfcc_1): Add %O2.
3106         * config/i386/i386.c (print_operand): Handle %ON.
3107         Print . before float condition codes in Sun as cmov syntax.
3108         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3109         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3110         no longer true.
3111
3112 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3113
3114         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3115         return instruction if PC was popped.
3116
3117 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3118
3119         * config/xtensa/xtensa.md: Remove unused type attributes.
3120         (adddi_carry, subddi_carry): Change type attribute to "multi".
3121
3122 2002-03-19  Dale Johannesen  <dalej@apple.com>
3123
3124         PR optimization/5999, middle-end/5731
3125         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3126         multiplications by reciprocals.
3127
3128 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3129
3130         * Makefile.in: Update.
3131         * c-common.c: Include langhooks.h.
3132         (inline_forbidden_p): Use new hook.
3133         * diagnostic.c: Include langhooks.h.
3134         (format_with_decl, announce_function,
3135         default_print_error_function): Use new hook.
3136         * dwarf2out.c (dwarf2_name): Use new hook.
3137         * function.c: Include langhooks.h.
3138         (init_function_start): Use new hook.
3139         * langhooks-def.h (lhd_decl_printable_name): New.
3140         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3141         (LANGHOOKS_INITIALIZER): Update.
3142         * langhooks.c (lhd_decl_printable_name): New.
3143         * langhooks.h (struct lang_hooks): New hook.
3144         * toplev.c (decl_name, decl_printable_name): Remove.
3145         (open_dump_file): Use new hook.
3146         (process_options): Remove old hook.
3147         * tree.h (decl_printable_name): Remove.
3148 objc:
3149         * objc-act.c (objc_init): Remove old hook.
3150         (objc_printable_name): Export.
3151         * objc-act.h (objc_printable_name): New.
3152         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3153
3154 2002-03-19  Jim Blandy  <jimb@redhat.com>
3155
3156         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3157         the start_source_file debug hook, not the current line number.
3158
3159 2002-03-19  Richard Henderson  <rth@redhat.com>
3160
3161         * flow.c (EH_USES): Provide default.
3162         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3163         * doc/tm.texi (EH_USES): New.
3164
3165         * config/ia64/ia64.c (ia64_eh_uses): New.
3166         * config/ia64/ia64-protos.h: Update.
3167         * config/ia64/ia64.h (EH_USES): New.
3168
3169 2002-03-19  Richard Henderson  <rth@redhat.com>
3170
3171         * varasm.c (output_constant_def): Fix stupid typo.
3172
3173 2002-03-19  Richard Henderson  <rth@redhat.com>
3174
3175         PR 5879
3176         * except.c (current_function_has_exception_handlers): New.
3177         * except.h: Declare it.
3178         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3179         Combine tests that disable all sibcalls for the function.
3180
3181 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3182
3183         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3184         for INTEGER_CST.
3185
3186 2002-03-19  Richard Henderson  <rth@redhat.com>
3187
3188         PR 5977, 5991
3189         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3190         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3191
3192 2002-03-19  Jim Blandy  <jimb@redhat.com>
3193
3194         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3195         name, even if the replacement list contains no tokens, as required
3196         by Dwarf.
3197
3198 2002-03-19  Jason Merrill  <jason@redhat.com>
3199
3200         * varasm.c (globalize_decl): Get the name from the RTL, not
3201         DECL_ASSEMBLER_NAME.
3202
3203         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3204
3205 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3206
3207         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3208         subdi_carry): Define.
3209
3210 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3211
3212         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3213         about -fpic/-fPIC if extra_warnings set.
3214
3215 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3216
3217         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3218         TREE_STRING_POINTER.
3219         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3220
3221 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3222
3223         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3224         in favor of SP if FRAME_POINTER_REQUIRED is false.
3225
3226 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3227
3228         * emit-rtl.c (gen_int_mode): New function.
3229         * rtl.h: Prototype for it.
3230         * combine.c (make_extraction, simplify_comparison), expmed.c
3231         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3232         (convert_modes, store_field), optabs.c (expand_fix),
3233         simplify-rtx.c (neg_const_int, simplify_unary_real),
3234
3235         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3236         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3237
3238 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3239
3240         PR c/5656
3241         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3242         convert_parm_for_inlining.
3243         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3244         Define.
3245         * langhooks-def.h: Likewise.
3246         * objc/objc-lang.c: Likewise.
3247         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3248         function.
3249         * tree-inline.c (initialize_inlined_parameters):
3250         Call convert_parm_for_inlining lang hook if needed.
3251         * c-typeck.c (c_convert_parm_for_inlining): New function.
3252         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3253
3254 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3255
3256         * calls.c (precompute_arguments): Do not assume that temporaries
3257         can be destroyed after expanding the argument.
3258         (expand_call): Likewise.
3259
3260 2002-03-15  Eric Christopher  <echristo@redhat.com>
3261
3262         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3263         Fix register preference on last change.
3264         * config/mips/mips.c (mips_return_in_memory): New function.
3265         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3266         * config/mips/mips-protos.h: Declare.
3267         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3268         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3269
3270 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3271
3272         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3273         a register too.
3274         (anddi3, iorsi3): Likewise.
3275
3276         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3277         use %gprel for symbols that are going to be placed in linkonce
3278         sections.
3279
3280         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3281         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3282         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3283         not needed.  Disregard leaf_function_p().
3284         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3285         mips16 frame pointer.
3286         * config/mips/mips.md (store ra): Only to small SP offsets.
3287         2001-08-22  Graham Stott  <grahams@redhat.com>
3288         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3289         return a REG rtx for the return address register.
3290
3291 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3292
3293         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3294         constant-pool addresses as "mode-dependent".
3295         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3296
3297 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3298
3299         PR target/5740
3300         * expr.c (emit_group_load): Use extract_bit_field if
3301         needed for CONCAT arguments.
3302
3303 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3304
3305         PR target/4863
3306         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3307         offset to the base of the table.
3308         (thumb_tablejump): Matcher for Thumb tablejump insn.
3309         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3310         as the difference of two labels.
3311         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3312         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3313         tables in the code.
3314         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3315         * arm.c (get_jump_table_size): If the table is not in the text
3316         section, return zero.
3317
3318 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3319
3320         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3321         of gen_rtx_SUBREG.
3322         (arm_reload_out_hi): Use gen_lowpart instead of
3323         gen_rtx_SUBREG to access QImode components.
3324         * config/arm/arm.md: Disable zero_extend split for QImode
3325         subregs in BIG_ENDIAN mode.
3326         (storehi_bigend): Match use of least significant byte.
3327         (storeinthi): Remove extraneous SUBREG.
3328         Add missing construction of operands[2].
3329         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3330         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3331         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3332
3333 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3334
3335         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3336         any_operand.
3337
3338 2002-03-17  Richard Henderson  <rth@redhat.com>
3339
3340         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3341         explicitly.
3342
3343 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3344
3345         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3346         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3347
3348 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3349
3350         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3351
3352         * predict.c (estimate_bb_frequencies): Delete unused variables.
3353
3354 2002-03-17  Richard Henderson  <rth@redhat.com>
3355
3356         * config/ia64/ia64.c (ia64_attribute_table): Move before
3357         targetm definition.  Make static.
3358
3359 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3360
3361         * c-common.h (yyparse, c_common_parse_file): New.
3362         * c-lang.c: Include c-common.h.
3363         (LANG_HOOKS_PARSE_FILE): Redefine.
3364         * c-lex.c: Include c-common.h.
3365         (yyparse): Rename c_common_parse_file.  Call yyparse.
3366         * c-parse.in (yyparse): Remove macro.
3367         * c-tree.h (yyparse_1): Remove.
3368         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3369         (LANG_HOOKS_INITIALIZER): Update.
3370         * langhooks.h (struct lang_hoooks): New hook parse_file.
3371         * toplev.c (compile_file): Use parse_file hook.
3372         * tree.h (yyparse): Remove.
3373         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3374
3375 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3376
3377         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3378         float_truncate, not fix.
3379         ("*truncdfsf2_real"): Ditto.
3380         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3381
3382         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3383
3384 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3385
3386         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3387         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3388         where appropriate.  Make the second reference to
3389         leaf_function_p a function call, as intended.  Reindented.
3390
3391         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3392         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3393
3394         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3395         add register to non-constant into sp.
3396
3397         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3398         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3399         (mips16_gp_pseudo_rtx): Lose.
3400         (INIT_EXPANDERS): Deleted.
3401         * config/mips/mips.c (mips_init_machine_status): New.
3402         (mips_free_machine_status): New.
3403         (mips_mark_machine_status): New.
3404         (override_options): Set them.
3405         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3406         (struct machine_function): ... new.  Replaced all references.
3407         (mips_add_gc_roots): Don't mark them.
3408         (embedded_pic_fnaddr_reg): New, extracted from...
3409         (embedded_pic_offset): ... here.
3410         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3411         (movsi): Likewise.
3412
3413 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3414
3415         * cppinit.c: Revert -MD removal.
3416
3417 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3418
3419         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3420         soft registers by default for 68HC12.
3421         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3422         when compiling with -fomit-frame-pointer.
3423         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3424         (expand_epilogue): Likewise.
3425         (m68hc11_gen_rotate): Use exg when rotating by 8.
3426
3427 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3428
3429         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3430         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3431         (splits): Remove unused add splits.
3432         ("*addhi3_68hc12"): Tune constraints.
3433         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3434         constant fits in 8-bits and D is dead use abx/aby instructions.
3435         ("*addhi3"): Remove extern declaration of ix_reg.
3436         ("*subsi3"): Optimize and provide new split.
3437         ("subhi3"): Cleanup.
3438         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3439         (arith splits): For 68hc12 save the address register on the stack
3440         and do the arithmetic operation with a pop.
3441
3442 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3443
3444         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3445         allocating QImode in address registers.
3446         ("*movqi_m68hc11"): Likewise.
3447
3448 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3449
3450         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3451
3452 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3453
3454         * cppinit.c (print_help): Display -MD and -MMD.
3455         Don't display usage string.  Update assertion syntax and
3456         typo.
3457         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3458         (cpp_handle_option): Update.
3459
3460 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3461
3462         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3463         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3464         and define it so that regardless of target CPU size,
3465         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3466         of "int" rather than "long."
3467
3468 2002-03-15  Richard Henderson  <rth@redhat.com>
3469
3470         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3471         size as a tree.
3472
3473 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3474
3475         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3476         ("tstqi" split): Avoid using memory for tstqi on address register.
3477         (splits): Remove constraints.
3478         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3479         ("cmpdf", "cmpsf"): Remove since not used.
3480         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3481         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3482
3483 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3484
3485         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3486         ("neghi2"): Tighten constraints.
3487         ("one_cmplsi2"): Optimize and simplify split.
3488         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3489
3490 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3491
3492         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3493         and split of AND operation to clear the upper bits.
3494         ("*logicalsi3_zextqi"): Likewise.
3495         ("*logicallhi3_zexthi_ashift8"): Likewise.
3496         ("*logicalsi3_silshr16"): Likewise.
3497         ("logicalsi3_silshl16"): Likewise.
3498         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3499
3500 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3501
3502         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3503         (m68hc11_indirect_p): New function.
3504         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3505         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3506         TARGET_M6812.
3507         (asm_print_register): Likewise.
3508         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3509         (m68hc11_indirect_p): Declare.
3510         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3511         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3512         (TARGET_SWITCHES): New option -mrelax.
3513         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3514         destination.
3515         ("iorsi3", "xorsi3"): Likewise.
3516         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3517         ("*andhi3_mem"): New to handle destination in memory with bclr
3518         and a scratch register.
3519         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3520         ("*andhi3_const"): New when operand2 is constant.
3521         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3522         ("*andhi3_gen"): Cleanup of the old "andhi3".
3523         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3524         ("xorqi3"): Update constraints.
3525
3526 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3527
3528         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3529         for reg_equiv_memory_loc when the operand is a register that does
3530         not get a hard register (stack location).
3531         (tst_operand): After reload, accept all memory operand.
3532         (symbolic_memory_operand): Fix detection of symbolic references.
3533         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3534         accept symbols and any constant.
3535
3536 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3537
3538         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3539         note on the insn that sets the soft frame register.
3540         (must_parenthesize): ix and iy are also reserved names.
3541         (print_operand_address): One more place where parenthesis are required
3542         to avoid confusion with register names.
3543         (m68hc11_gen_movhi): Allow push of stack pointer.
3544         (m68hc11_check_z_replacement): Fix handling of parallel with a
3545         clobber.
3546         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3547         the replacement register is.
3548         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3549         and D8_REGS classes.
3550         (MODES_TIEABLE_P): All modes are tieable except QImode.
3551
3552 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3553
3554         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3555         (___subdi3): Likewise.
3556         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3557         (__map_data_section): Optimize 68hc11 case.
3558
3559 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3560
3561         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3562         than a shift to avoid adding a register with itself.
3563         (m68hc11_memory_move_cost): Take into account NO_REGS.
3564         (m68hc11_register_move_cost): Update and use memory move cost
3565         for soft registers.
3566         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3567         it gives more opportunities to cse to optimize.
3568         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3569         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3570
3571 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3572
3573         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3574         * c-common.def (CLEANUP_STMT): New tree node.
3575         * c-common.h (CLEANUP_DECL): New macro.
3576         (CLEANUP_EXPR): Likewise.
3577         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3578         * expr.c (expand_expr): Tidy.
3579         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3580         * tree-inline.c (initialize_inlined_parameters): Clean up
3581         new local variables.
3582
3583 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3584
3585         PR bootstrap/4128
3586         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3587         before movrXX only, use reg_overlap_mentioned_p.
3588         Only special case NE if just one insn can be generated.
3589
3590 2002-03-15  Jason Merrill  <jason@redhat.com>
3591
3592         * varasm.c (assemble_variable): Call resolve_unique_section before
3593         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3594         of error_mark_node.
3595
3596 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3597
3598         PR target/5170
3599         * arm.md (split pattern for thumb shiftable immediates): Add comment
3600         explaining non-obvious test.
3601
3602 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3603
3604         PR target/5712
3605         * arm.md (movaddr, movaddr_insn): Delete.
3606
3607 2002-03-15  Jason Merrill  <jason@redhat.com>
3608
3609         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3610         -fkeep-static-consts doesn't apply to comdats.
3611
3612 2002-03-14  Richard Henderson  <rth@redhat.com>
3613
3614         * c-decl.c: Include c-pragma.h.
3615         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3616         (finish_function): Tidy.
3617         * c-pragma.c: Include c-common.h.
3618         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3619         (handle_pragma_weak): Use them.
3620         (init_pragma): Register pending_weaks.
3621         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3622         * print-tree.c (print_node): Print DECL_WEAK.
3623         * varasm.c (mark_weak_decls): Remove.
3624         (remove_from_pending_weak_list): Remove.
3625         (add_weak): Remove.
3626         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3627         (weak_decls): Make a tree_list.
3628         (declare_weak): Cons weak_decls directly.
3629         (globalize_decl): Remove weak_decls elements directly.
3630         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3631         symbols.  Don't pretend to handle aliases.
3632         (init_varasm_once): Update weak_decls registry.
3633         * Makefile.in: Update dependencies.
3634
3635 2002-03-14  Richard Henderson  <rth@redhat.com>
3636
3637         PR target/5312
3638         * config/ia64/ia64.c: Include tm_p.h last.
3639         (gen_nop_type): Remove duplicate definition.
3640         (cycle_end_fill_slots): Set sched_data for second L slot.
3641         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3642         (nop_cycles_until): Fix typos.
3643
3644 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3645
3646         PR optimization/5891
3647         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3648
3649 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3650
3651         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3652           descriptors correctly.
3653
3654 2002-03-14  Michael Meissner  <meissner@redhat.com>
3655
3656         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3657         100, allowing MAX_UNROLLED_INSNS to be overridden.
3658
3659         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3660         --param.
3661
3662         * unroll.c (params.h): Include.
3663         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3664
3665         * doc/invoke.texi (--param max-unroll-insns): Document.
3666
3667         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3668
3669 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3670
3671         * arm.md: Fix warnings about constraints in peepholes and splits.
3672
3673 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3674
3675         * cpphash.h (struct lexer_state): Remove line_extension member.
3676         * cpplib.c (dequote_string, do_linemarker): New functions.
3677         (linemarker_dir): New data object.
3678         (DIRECTIVE_TABLE): No longer need to interpret #line in
3679         preprocessed source.  Delete obsolete comment about return
3680         values of handlers.
3681         (end_directive, directive_diagnostics, _cpp_handle_directive):
3682         Don't muck with line_extension.
3683         (directive_diagnostics): No need to issue warnings for
3684         linemarkers here.
3685         (_cpp_handle_directive): Issue warnings for linemarkers here,
3686         when appropriate.  Dispatch linemarkers to do_linemarker, not
3687         do_line.
3688         (do_line): Code to handle linemarkers split out to do_linemarker.
3689         Convert escape sequences in filename argument, both places.
3690
3691         * cppmacro.c (quote_string): Rename cpp_quote_string and
3692         export.  All callers changed.
3693         * cpplib.h (cpp_quote_string): Prototype.
3694         * cppmain.c (print_line): Call cpp_quote_string on to_file
3695         before printing it.
3696
3697         * doc/cpp.texi: Document that escapes are now interpreted in
3698         #line and in linemarkers, and that non-printing characters are
3699         converted to octal escapes when linemarkers are generated.
3700
3701 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3702
3703         * emit-rtl.c (try_split): Use delete_insns.
3704         * recog.c (split_all_insns): Fix terminating condition.
3705
3706 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3707             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3708
3709         PR target/5828
3710         * arm.c (arm_output_epilogue): Fix floating-point register save
3711         adjustment when using a frame pointer.
3712
3713 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3714
3715         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3716         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3717         (save_restore_insns, mips_expand_epilogue): And here.
3718         (build_mips16_call_stub): And here.
3719         (mips_function_value): Use the new macros to decide whether a single
3720         or complex float can be returned in floating-point registers.  Return
3721         a parallel rtx in the complex case.
3722
3723 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3724
3725         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3726         call after liveness analysis.
3727
3728         * recog.c (split_insn): Use delete_insn_and_edges.
3729
3730         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3731         instructions to have branch prediction notes.
3732         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3733
3734 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3735
3736         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3737         that doesn't support it.
3738         * configure: Regenerate.
3739
3740 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3741
3742         PR target/5626
3743         * config/sparc/sparc.md (normal_branch, inverted_branch,
3744         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3745         inverted_fp_branch): Adjust calls to output_cbranch.
3746         Set length attribute.
3747         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3748         output_v9branch.  Set length attribute.
3749         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3750         predicates.
3751         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3752         (output_cbranch): Likewise.  Handle far branches.
3753         (output_v9branch): Handle far branches.
3754         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3755         Adjust prototypes.
3756         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3757         noov_compare64_op predicates.
3758
3759 2002-03-13  Jason Merrill  <jason@redhat.com>
3760
3761         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3762         into the function and constify it.
3763         * gthr-dce.h, gthr-solaris.h: Likewise.
3764
3765 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3766
3767         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3768         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3769         std_expand_builtin_va_arg if not ABI_V4.
3770
3771 2002-03-13  Jason Merrill  <jason@redhat.com>
3772
3773         * varasm.c (globalize_decl): New fn.
3774         (assemble_start_function): Use it.
3775         (asm_emit_uninitialized): Use it.
3776         (assemble_alias): Use it.
3777         (assemble_variable): Use it.
3778
3779 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3780
3781         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3782         2002-03-12 internal visibility change.
3783         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3784         visibility into SYMBOL_REF_FLAG.
3785
3786 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3787
3788         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3789         VOIDmode operand.  Add compile-time optimization for constant results.
3790
3791 2002-03-12  Jason Merrill  <jason@redhat.com>
3792
3793         * c-typeck.c (convert_for_assignment): Don't allow conversions
3794         between pointers and references.  Only allow lvalues to convert to
3795         reference.
3796
3797 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3798
3799         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3800         before prologue, to avoid scheduling problems.
3801
3802 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3803
3804         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3805         (ELIMINABLE_REGS): Add sfp->sp.
3806         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3807
3808 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3809
3810         PR optimization/5892
3811         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3812
3813 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3814
3815         * loop.c (basic_induction_var): Don't call convert_modes if mode
3816         classes are different.
3817
3818 2002-03-12  Richard Henderson  <rth@redhat.com>
3819
3820         PR optimization/5901
3821         * function.c (reposition_prologue_and_epilogue_notes): Position
3822         the markers after/before the last/first insn not deleted.
3823
3824 2002-03-12  Richard Henderson  <rth@redhat.com>
3825
3826         PR optimization/5878
3827         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3828         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3829         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3830
3831         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3832         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3833         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3834
3835         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3836         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3837         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3838         also.  Don't set it if not flag_pic.
3839         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3840         to be INVALID_REGNUM when not used.
3841
3842 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3843
3844         * expmed.c (store_bit_field): Reset alias set for memory.
3845         (extract_bit_field): Same.
3846
3847 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3848
3849         * c-common.c (c_tree_code_type, c_tree_code_length,
3850         c_tree_code_name, add_c_tree_codes): Delete.
3851         * c-common.h (add_c_tree_codes): Delete.
3852         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3853         Define.
3854         * c-objc-common.c (c_objc_common_init): Don't call
3855         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3856         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3857         objc_tree_code_name, add_objc_tree_codes): Delete.
3858         (objc_init): Don't call add_objc_tree_codes.
3859         * objc/objc-lang.c (tree_code_type, tree_code_length,
3860         tree_code_name): Define.
3861         * toplev.c (lang_independent_init): Don't set
3862         tree_code_length[IDENTIFIER_NODE].
3863         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3864         Delete definitions, moved to language front-ends.
3865         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3866         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3867         Const-ify.
3868         (tree_code_length): Change type to unsigned char.
3869
3870 2002-03-12  Richard Henderson  <rth@redhat.com>
3871
3872         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3873         internal visibility change.
3874
3875 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3876
3877         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3878         validize_mem() instead of change_address to avoid clobbering
3879         memory attributes.
3880
3881 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3882
3883         * c-lex.h (position_after_whitespace): Remove.
3884
3885 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3886
3887         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3888         (lex_string): Use unsigned char pointers.
3889
3890 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3891
3892         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3893         is not a valid memory_operand.
3894
3895 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3896
3897         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3898         * config/xtensa/lib1funcs.asm: Fix copyright to include
3899         special case for libgcc files.
3900         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3901         (__divsi3): Likewise.
3902         (__umodsi3): Likewise.
3903         (__modsi3): Likewise.
3904         * config/xtensa/lib2funcs.S: Fix copyright to include
3905         special case for libgcc files.
3906
3907 2002-03-12  Tom Rix  <trix@redhat.com>
3908
3909         * collect2.c (resolve_lib_name): Move outside of
3910         OBJECT_FORMAT_COFF ifdef.
3911         (ignore_library): Same.
3912
3913 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3914
3915         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3916
3917 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3918
3919         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3920         to function_section before writing out the constant pool.
3921
3922 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3923
3924         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3925         zero_constant.
3926         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3927
3928 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3929
3930         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3931         (adddi3): Likewise.
3932         (movdf): Likewise.
3933         (movdi): Likewise.
3934         (cmpsi splitter): Likewise.
3935         (modsi3): Fail if <= 0.
3936         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3937         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3938         (reg_or_sub_cint64_operand): Likewise.
3939         (num_insns_constant_wide): Optimize sign extension.
3940         (rs6000_legitimize_address): Likewise.
3941
3942 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3943
3944         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3945         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3946
3947 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3948
3949         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3950         address calculation.
3951
3952 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3953
3954         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3955         scratch register to DImode / TImode.
3956         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3957         register used does not overlap the target.
3958
3959 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3960
3961         * Makefile.in (debug.o): Depend on debug.h.
3962         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3963         * debug.c (do_nothing_debug_hooks): Likewise.
3964         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3965         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3966         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3967         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3968         * dwarfout.c (dwarf_debug_hooks): Likewise.
3969         * integrate.c (output_inline_function): Likewise.
3970         * objc/objc-act.c (synth_module_prologue): Likewise.
3971         * sdbout.c (sdb_debug_hooks): Likewise.
3972         * toplev.c (debug_hooks): Likewise.
3973         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3974
3975 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3976
3977         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3978         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3979         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3980         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3981         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3982         * defaults.h (POINTER_SIZE): Define.
3983         * doc/tm.texi (POINTER_SIZE): Document default.
3984
3985 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3986
3987         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3988
3989 2002-03-11  Richard Henderson  <rth@redhat.com>
3990
3991         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3992         if rebuild_label_notes_after_reload.
3993
3994 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3995
3996         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3997         emit pic register load if "internal" visibility.
3998         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3999         (cris_expand_builtin_va_arg): Do all computations on trees.
4000
4001 2002-03-11  Richard Henderson  <rth@redhat.com>
4002
4003         * rtlanal.c: Include recog.h.
4004         (keep_with_call_p): Fix thinko.
4005         * Makefile.in (rtlanal.o): Update dependencies.
4006
4007 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
4008
4009         * genflags.c (gen_insn): Use IS_VSPACE.
4010         * genoutput.c (output_insn_data): Likewise.
4011         (process_template): Likewise.
4012
4013 2002-03-11  Richard Henderson  <rth@redhat.com>
4014
4015         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4016
4017 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4018
4019         * Makefile.in: Update.
4020         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4021         Update documentation.
4022         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4023         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4024
4025 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
4026
4027         * Makefile.in: Give texi2pod its input file as a command line
4028         argument, not on stdin.
4029
4030 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
4031             Daniel Berlin  <dan@dberlin.org>
4032
4033         C++ alias analysis improvement.
4034         * alias.c (record_component_aliases): Record aliases for base
4035         classes too.
4036
4037 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
4038
4039         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4040
4041 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4042
4043         * toplev.c (vms_fopen): Remove, not needed.
4044
4045         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4046
4047         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4048
4049         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4050         for FP, already done later.
4051
4052         * toplev.c (debug_args): Add entry for VMS_DEBUG.
4053         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4054
4055 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
4056
4057         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4058         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4059         LARGEST_EXPONENT_IS_NORMAL for the given mode.
4060         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4061         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4062         (ediv, emul, eldexp, esqrt): Likewise.
4063         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4064         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4065         (saturate): New function.
4066         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4067         (make_nan): Use a saturation value instead of a NaN if
4068         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4069         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4070         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4071         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4072         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4073         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4074         !ROUND_TOWARDS_ZERO.
4075         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4076         (ROUND_TOWARDS_ZERO): Document.
4077
4078 2002-03-11  Andreas Jaeger  <aj@suse.de>
4079
4080         * cfg.c (dump_flow_info): Remove unused variable.
4081
4082 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4083
4084         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4085         computations on trees.
4086
4087 2002-03-10  Richard Henderson  <rth@redhat.com>
4088
4089         PR 5693:
4090         * reload.c (copy_replacements_1): New.
4091         (copy_replacements): Use it to recurse through the rtx.
4092
4093 2002-03-10  Richard Henderson  <rth@redhat.com>
4094
4095         * loop.c (strength_reduce): Compute number of iterations as
4096         unsigned HOST_WIDE_INT.
4097
4098 2002-03-10  Richard Henderson  <rth@redhat.com>
4099
4100         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4101         to move away from the end of the block.
4102
4103 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4104
4105         PR preprocessor/5899
4106         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4107
4108 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4109
4110         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4111
4112         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4113
4114 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4115
4116         * config/mmix/mmix.c: Improve comments.
4117         (mmix_target_asm_function_prologue): Drop variable
4118         empty_stack_frame.  Don't allocate unused slot above fp.
4119         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4120         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4121         brace in first column.
4122         (enum reg_class): Ditto.
4123         (FIRST_PARM_OFFSET): Now 0.
4124         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4125
4126 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4127
4128         * combine.c (make_extraction): Fix error in last change.
4129
4130 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4131
4132         * c4x.c (c4x_fp_reglist): Const-ify.
4133         * cris.c (cris_print_operand): Likewise.
4134         * i386.c (ix86_va_arg): Likewise.
4135         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4136         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4137         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4138         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4139         * mcore.h (regno_reg_class): Likewise.
4140         * mips.c (gen_int_relational): Likewise.
4141         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4142         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4143         * pdp11.c (move_costs): Likewise.
4144         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4145         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4146         Likewise.
4147         * s390.h (regclass_map): Likewise.
4148         * sh.c (shift_amounts): Likewise.
4149         * sh.md (rotlsi3): Likewise.
4150
4151 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4152
4153         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4154         (ne0+5): Use new clobber to generate proper shift pattern.
4155         Patch by Michael Matz <matz@kde.org>.
4156
4157 2002-03-09  Andreas Schwab  <schwab@suse.de>
4158
4159         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4160
4161 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4162
4163         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4164
4165 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4166
4167         PR middle-end/5877
4168         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4169         even for non-representable constants.
4170
4171 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4172
4173         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4174         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4175         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4176         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4177         (pop_function_context): Compute MAY_SHARE parameter for
4178         fixup_var_refs.
4179         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4180         (gen_mem_addressof): Call fixup_var_refs with new parm.
4181
4182         * combine.c (make_extraction): Don't make extension of CONST_INT.
4183
4184 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4185
4186         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4187         in o32 and o64 ABIs.
4188         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4189         but getting fixed-size structs passed in registers regardless of
4190         padding in o32 and o64 ABIs.
4191
4192         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4193         offset before loading address of argument passed by transparent
4194         reference.
4195
4196 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4197
4198         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4199
4200 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4201
4202         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4203         marker such that registers after it are saved.
4204
4205 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4206
4207         * sparc.c (arith_4096_operand): Fix error in last change.
4208
4209 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4210
4211         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4212         defaults for MEABI.
4213
4214 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4215
4216         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4217         vectors.
4218
4219 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4220
4221         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4222
4223 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4224
4225         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4226         removed; fix return value.
4227         * combine.c (combine_instructions): Dirtify blocks where we failed to
4228         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4229         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4230
4231 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4232
4233         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4234
4235 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4236
4237         * recog.c (peephole2_optimize): Re-distribute EH edges.
4238
4239 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4240
4241         * expr.c (expand_expr): Use unsave lang hook.
4242         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4243         (LANG_HOOKS_INITIALIZER): Update.
4244         * langhooks.h (struct lang_hooks): New hook unsave.
4245         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4246         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4247         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4248         (unsave_expr_now): Remove.
4249         * tree.h (unsave_expr_now, lang_unsave,
4250         lang_unsave_expr_now): Remove.
4251         (lhd_unsave): New.
4252
4253 2002-03-08  Andreas Jaeger  <aj@suse.de>
4254
4255         * flow.c (propagate_block_delete_insn): Remove unused variable.
4256
4257 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4258
4259         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4260         insn length for memory load/store.
4261
4262 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4263
4264         * doc/install.texi (--with-libiconv-prefix): Document.
4265
4266 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4267
4268         * doc/sourcebuild.texi: Fix typo.
4269
4270 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4271
4272         PR c/3711
4273         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4274         trees.
4275
4276 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4277
4278         * rtl.c (copy_most_rtx): Move from here ...
4279         * emit-rtl.c (copy_most_rtx): ... to here.
4280
4281 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4282
4283         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4284         SUBTARGET_CPP_SIZE_SPEC.
4285         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4286
4287         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4288
4289 2002-03-07  Matt Hiller  <hiller@redhat.com>
4290
4291         * gensupport.c (first_dir_md_include): Renamed from include;
4292         change all references.
4293         (last_dir_md_include): Renamed from last_include; change all
4294         references.
4295         (init_md_reader): Unconditionally initialize base_dir whether or
4296         not filename is a relative path.
4297
4298 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4299
4300         * config/fp-bit.c (_unord_f2): Compile it in even if
4301         US_SOFTWARE_GOFAST is enabled.
4302
4303         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4304         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4305         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4306         NULL_RTX, try reversing the comparison and the operands.
4307
4308 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4309
4310         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4311         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4312         and MATCH_OP_DUP.
4313
4314 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4315
4316         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4317
4318 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4319
4320         * basic-block.h (fixup_abnormal_edges): Declare.
4321         * reload1.c (fixup_abnormal_edges): New function.
4322         * reg-stack.c (convert_regs): Use it.
4323
4324         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4325
4326         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4327
4328 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4329
4330         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4331         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4332         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4333         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4334         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4335         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4336         unless x and y could be infinite.
4337         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4338         Check that the common type of both arguments is a real, even for
4339         targets without unordered comparisons.  Allow an integer argument
4340         to be compared against a real.
4341         (expand_tree_builtin): Use expand_unordered_cmp.
4342         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4343         * cse.c (fold_rtx): Likewise.  Fix indentation.
4344         * fold-const.c (fold_real_zero_addition_p): New.
4345         (fold): Use it, and the new HONOR_... macros.
4346         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4347         * jump.c (reversed_comparison_code_parts): After searching for
4348         the true comparison mode, use HONOR_NANS to decide whether it
4349         can be safely reversed.
4350         (reverse_condition_maybe_unordered): Remove IEEE check.
4351         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4352         to decide which simplifications are valid.  Allow the following
4353         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4354         and (a - -b) to (a + b).
4355         (simplify_relational_operation): Use HONOR_NANS.
4356         * doc/tm.texi: Document the MODE_HAS_... macros.
4357
4358 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4359
4360         * combine.c (simplify_comparison): If simplifying a logical shift
4361         right and compare with constant, force the comparison to unsigned.
4362
4363 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4364
4365         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4366
4367         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4368         -mabi=no-altivec
4369         (alt_reg_names): Remove % for vrsave.
4370
4371 2002-03-06  Richard Henderson  <rth@redhat.com>
4372
4373         PR optimization/5844
4374         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4375         if used indicates we've already emitted one copy of an operand.
4376         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4377         (gen_split): Supply a non-null used.
4378
4379 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4380
4381         * reload1.c (reload): Unshare all rtl after reload is done.
4382
4383         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4384         but simply fail if the expression is too complex to simplify.
4385         (simplify_gen_binary): Handle simplify_plus_minus failures.
4386
4387 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4388
4389         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4390         consistently call delete_trivially_dead_insns after CSE and GCSE;
4391         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4392         after liveness2; update comment in last crossjumping.
4393         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4394
4395 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4396
4397         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4398         after completing fast dead code elimination.
4399
4400         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4401         COMPARE operator.
4402
4403 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4404
4405         * version.c:  Fix misplaced leading blanks on first line.
4406
4407 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4408
4409         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4410
4411 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4412
4413         * cfgcleanup.c (mentions_nonequal_regs): New function.
4414         (thread_jump): Use it.
4415         * toplev.c (rest_of_compilation): Run jump threading after
4416         liveness.
4417
4418 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4419
4420         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4421         patch.
4422
4423 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4424
4425         * predict.c (estimate_bb_frequencies): Do not reload the
4426         frequencies from notes.
4427
4428 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4429
4430         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4431         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4432
4433         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4434         delete_noop_moves): Return indeger.
4435         * flow.c (ndead): New variable.
4436         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4437         BB argument; update callers.
4438         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4439         (life_analysis): Do not call purge_all_dead_edges.
4440         (update_life_info): Return number of deleted insns; print statistics.
4441         (update_life_info_in_dirty_blocks): likewise.
4442         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4443         return number of insns deleted.
4444
4445         * cse.c: Include timevar.h
4446         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4447         iterate until stabilizes; print statistics; return number of killed
4448         insns.
4449         * Makefile.in: (cse.o): Add timevar.h dependency
4450         * rtl.h (delete_trivially_dead_insns): New.
4451         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4452         * toplev.c (rest_of_compilation): Update callers.
4453
4454         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4455         (try_optimize_cfg): Do not update liveness.
4456         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4457         removal stabilizes; use delete_trivially_dead_insns.
4458
4459         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4460
4461 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4462
4463         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4464         callbacks when processing assembly language.
4465
4466 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4467
4468         * pa.h (ASM_FILE_END): Define.
4469         * som.h (ASM_FILE_END): Delete.
4470
4471         * pa.c (function_arg): Don't pass floats in general registers in
4472         indirect calls if TARGET_ELF32.
4473
4474 2002-03-05  Richard Henderson  <rth@redhat.com>
4475
4476         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4477
4478 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4479
4480         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4481
4482 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4483
4484         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4485         -r command line.  Don't hide any symbols if not building
4486         shared libgcc.
4487
4488 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4489
4490         * cfg.c (dump_flow_info): Warn about profile mismatches.
4491         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4492         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4493
4494 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4495
4496         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4497         wide volatile memory by parts.
4498
4499 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4500
4501         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4502         is NULL.
4503
4504 2002-03-05  Richard Henderson  <rth@redhat.com>
4505
4506         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4507
4508 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4509
4510         * toplev.c (documented_lang_options): Document more
4511         language-specific options.
4512         * doc/invoke.texi (Warning Options): Correct documentation for
4513         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4514         * c-decl.c (c_decode_option): Use a table to handle warning options.
4515
4516 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4517
4518         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4519         parameter to mmix_encode_section_info.
4520         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4521         relocatably.  Always produce ELF, not mmo if linking relocatably.
4522         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4523         first is non-zero, don't add symbol prefix.
4524         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4525         prototype accordingly.
4526
4527 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4528
4529         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4530
4531 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4532
4533         * configure.in: Increase required makeinfo version to 4.1.
4534         * configure: Regenerate.
4535
4536 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4537
4538         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4539         elsewhere now.
4540
4541 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4542
4543         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4544         * doc/invoke.texi: Fix @math uses.
4545
4546 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4547
4548         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4549         removal
4550
4551 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4552
4553         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4554         (powerpc-*-eabisimaltivec*): Same.
4555
4556         * config/rs6000/t-ppcendian: New.
4557
4558 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4559
4560         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4561         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4562         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4563
4564 2002-03-03  Richard Henderson  <rth@redhat.com>
4565
4566         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4567
4568 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4569
4570         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4571         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4572         tree.c, config/m68k/m68k.c:
4573         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4574         REAL_ARITHMETIC blocks unconditional.  Delete some further
4575         #ifdef blocks predicated on REAL_ARITHMETIC.
4576         * flags.h, toplev.c: Delete remaining references to
4577         flag_pretend_float.
4578
4579         * doc/invoke.texi: Remove documentation of -fpretend-float.
4580         * doc/tm.texi: Describe the various REAL_* macros as provided by
4581         real.h, not by the target configuration files.
4582
4583         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4584         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4585         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4586         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4587         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4588         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4589         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4590         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4591         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4592         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4593         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4594         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4595         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4596         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4597         config/xtensa/xtensa.h:
4598         Do not define, undefine, or mention in comments any of
4599         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4600         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4601         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4602         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4603         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4604         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4605         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4606         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4607         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4608
4609 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4610
4611         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4612         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4613         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4614         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4615         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4616         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4617         Delete.
4618         * defaults.h (BITS_PER_WORD): Define.
4619         * doc/tm.texi (BITS_PER_WORD): Document default value.
4620
4621         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4622         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4623         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4624
4625 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4626
4627         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4628         lieu of explicit sizeof/sizeof.
4629         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4630         ix86_expand_builtin): Likewise.
4631         * mips.c (mips_add_gc_roots): Likewise.
4632         * mmix.c (mmix_output_condition): Likewise.
4633         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4634         altivec_init_builtins): Likewise.
4635         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4636         * cppexp.c (Nsuff, parse_number): Likewise.
4637         * cppinit.c (builtin_array_end): Likewise.
4638         * gcc.c (n_default_compilers, process_command): Likewise.
4639         * genpreds.c (output_predicate_decls): Likewise.
4640         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4641         * lcm.c (N_ENTITIES): Likewise.
4642         * stor-layout.c (set_sizetype): Likewise.
4643
4644 2002-03-03  Richard Henderson  <rth@redhat.com>
4645
4646         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4647         for types or labels.
4648
4649 2002-03-03  Richard Henderson  <rth@redhat.com>
4650
4651         * c-decl.c (start_decl): Initialized variables are not common.
4652
4653 2002-03-02  Per Bothner  <per@bothner.com>
4654
4655         * gcc.c (option_map):  Suport new --bootclasspath option.
4656         --CLASSPATH is now just an alias for --classpath.
4657
4658 2002-03-02  Richard Henderson  <rth@redhat.com>
4659
4660         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4661         load if "internal" visibility.
4662         * doc/extend.texi: Document visibility meanings.
4663
4664 2002-03-02  Richard Henderson  <rth@redhat.com>
4665
4666         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4667         to functions as well.
4668
4669 2002-03-02  Richard Henderson  <rth@redhat.com>
4670
4671         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4672         (handle_visibility_attribute): Don't call assemble_visibility.
4673         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4674         without asmspec.  Invoke assemble_alias when needed.
4675         * varasm.c (maybe_assemble_visibility): New.
4676         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4677
4678 2002-03-02  Richard Henderson  <rth@redhat.com>
4679
4680         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4681         invoke ENCODE_SECTION_INFO with first call flag.
4682
4683         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4684         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4685         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4686         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4687         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4688         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4689         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4690         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4691         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4692         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4693         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4694         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4695         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4696         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4697         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4698         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4699         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4700         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4701         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4702         config/sh/sh.h, config/sparc/sparc.h,
4703         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4704         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4705         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4706         FIRST argument.  As needed, examine it and do nothing.
4707
4708         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4709         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4710         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4711
4712         * config/arm/t-pe (pe.o): Add dependencies.
4713
4714 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4715
4716         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4717         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4718         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4719         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4720         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4721         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4722         * defaults.h (BITS_PER_UNIT): Define.
4723         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4724
4725 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4726
4727         * config/h8300/h8300-protos.h: Add a prototype for
4728         compute_a_shift_length.
4729         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4730         (compute_a_shift_length): Likewise.
4731         (h8300_adjust_insn_length): Do not adjust insn length of shift
4732         insns.
4733         * config/h8300/h8300.md (anonymous shift patterns): Use
4734         compute_a_shift_length.
4735
4736 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4737
4738         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4739         trunc_int_for_mode.
4740
4741         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4742
4743 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4744
4745         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4746         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4747         * flags.h (flag_zero_initialized_in_bss): Declare.
4748         * toplev.c (flag_zero_initialized_in_bss): New flag.
4749         (lang_independent_options): Add flag_zero_initialized_in_bss.
4750         * tree.c (initializer_zerop): New function.
4751         * tree.h (initializer_zerop): Declare.
4752         * varasm.c (assemble_variable): If we can emit bss, put zero
4753         initializers in the bss section.
4754
4755 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4756
4757         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4758         like more than one symbol per .weak directive.
4759
4760 2002-03-01  Richard Henderson  <rth@redhat.com>
4761
4762         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4763         adjust argument_pointer by pretend_args_size.
4764         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4765
4766 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4767
4768         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4769
4770 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4771
4772         * toplev.c (rest_of_compilation): Delete dead jumptables before
4773         loop.
4774         * flow.c (delete_dead_jumptables): Make global.
4775         * rtl.h (delete_dead_jumptables): Declare.
4776
4777 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4778
4779         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4780         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4781         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4782
4783 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4784
4785         * config/h8300/h8300-protos.h: Fix formatting.
4786         * config/h8300/h8300.c: Likewise.
4787         * config/h8300/h8300.h: Likewise.
4788
4789 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4790
4791         * config/h8300/h8300.c (print_operand): Support 16-bit
4792         constant addresses.
4793         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4794
4795 2002-02-28  Richard Henderson  <rth@redhat.com>
4796
4797         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4798         pun complex values as integers; use gen_lowpart instead of
4799         gen_rtx_SUBREG.
4800         (extract_bit_field): Likewise.
4801
4802 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4803             David Edelsohn  <edelsohn@gnu.org>
4804
4805         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4806         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4807         (SUPPORTS_WEAK): Likewise.
4808         * output.h (add_weak): Add tree param.
4809         * varasm.c (add_weak): Likewise.  Save decl.
4810         (struct weak_syms): Add decl field.
4811         (mark_weak_decls): New function.
4812         (init_varasm_once): ggc_add_root mark_weak_decls.
4813         (assemble_start_function): Use ASM_WEAKEN_DECL.
4814         (assemble_variable): Likewise.
4815         (assemble_alias): Likewise.
4816         (declare_weak): Pass decl to add_weak.
4817         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4818         (remove_from_pending_weak_list): Declare and define for
4819         ASM_WEAKEN_DECL.
4820         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4821         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4822         * defaults.h (SUPPORTS_WEAK): Likewise.
4823         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4824         .weak for code sym.  Do emit .size for descriptor sym.
4825         (ASM_DECLARE_FUNCTION_SIZE): Define.
4826         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4827         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4828         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4829         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4830         .weak for code sym.
4831         (HANDLE_PRAGMA_WEAK): Remove.
4832         (ASM_WEAKEN_LABEL): Remove.
4833         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4834
4835 2002-03-01  Jason Merrill  <jason@redhat.com>
4836
4837         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4838         (TARGET_EXPR_CLEANUP): New macro.
4839
4840 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4841
4842         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4843         to take ptr_extend into account as third type of extension.
4844         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4845         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4846         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4847         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4848         * calls.c (precompute_arguments): Use new macro.
4849         (expand_call): Ditto.
4850         * combine.c (nonzero_bits): Ditto.
4851         (record_promoted_value): Ditto.
4852         * expr.c (store_expr): Ditto.
4853         (expand_expr): Ditto.
4854         * function.c (assign_parms): Ditto.
4855
4856 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4857
4858         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4859         override -shared and -shared-libgcc.
4860
4861 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4862
4863         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4864         of "ultrasparc".
4865         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4866         to be broken.
4867
4868 2002-02-28  Richard Henderson  <rth@redhat.com>
4869
4870         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4871         4 cycle latency from MM producers.
4872         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4873
4874 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4875
4876         * mklibgcc.in: Don't use GNU make extension.
4877
4878 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4879
4880         * c-parse.in (STATIC): New terminal.
4881         (scspec): New non-terminal.  Update productions accordingly.
4882         (program): Remove bogus ifc / end ifc.
4883         (array_declarator): Simplify production using STATIC.
4884
4885 2002-02-28  Jim Meyering  <meyering@lucent.com>
4886
4887         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4888         \a still means TARGET_BELL.
4889
4890 2002-02-28  Richard Henderson  <rth@redhat.com>
4891
4892         * haifa-sched.c (sched_emit_insn): New.
4893         (schedule_block): Use last_scheduled_insn to track last insn.
4894         * sched-int.h (sched_emit_insn): Prototype.
4895         * config/ia64/ia64.c (last_issued): Remove.
4896         (ia64_variable_issue): Don't set it.
4897         (nop_cycles_until): Use sched_emit_insn.
4898
4899 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4900
4901         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4902         extended constants.
4903
4904 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4905
4906         * config/h8300/h8300.c: Fix formatting.
4907         * config/h8300/h8300.h: Likewise.
4908
4909 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4910
4911         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4912         which may overwrite the high byte of the frame pointer.
4913
4914 2002-02-28  Bo Thorsen  <bo@suse.de>
4915
4916         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4917         (STARTFILE_SPEC): Add 64 bit files.
4918         (ENDFILE_SPEC): Likewise.
4919
4920 2002-02-28  Jason Merrill  <jason@redhat.com>
4921
4922         * c-decl.c (finish_function): Only warn about missing return
4923         statement with -Wreturn-type.
4924
4925 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4926
4927         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4928
4929         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4930         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4931
4932 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4933
4934         * basic-block.h (BB_REACHABLE): Renumber.
4935         (BB_DIRTY, BB_NEW): New flags.
4936         (clear_bb_flags): Declare.
4937         (update_life_info_in_dirty_blocks): Declare.
4938         * cfg.c (clear_bb_flags): New function.
4939         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4940         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4941         reorder_insns, emit_insn_after): Mark block as dirty.
4942         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4943         (update_life_info_in_dirty_blocks): New function.
4944         * recog.c (apply_change_group): Dirtify block.
4945
4946         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4947         cfg consistent.
4948         * gcse.c (delete_null_pointer_checks): Likewise.
4949
4950         * toplev.c (dump_file_index): Move cse2 after bp,
4951         add DFI_null
4952         (dump_file_info): Similary.
4953         (rest_of_compilation): Avoid most of CFG rebuilds;
4954         do first if converision after null pointer checks, do cse2
4955         after branch prediction; avoid full liveness rebuild after
4956         initializing subregs.
4957         * invoke.texi (-d options): Document -du, renumber.
4958
4959         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4960         (notice_new_block): Do not set BB_UPDATE_LIFE.
4961         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4962          merge_blocks_move_successor_nojumps, merge_blocks,
4963          try_crossjump_to_edge): Likewise.
4964         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4965         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4966         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4967         (merge_of_block): Do not use life_data_ok.
4968         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4969         (if_convert): Use BB_DIRTY mechanizm to update life.
4970         * lcm.c (optimize_mode_switching): Update
4971         update_life_info_in_dirty_blocks
4972
4973 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4974
4975         * Makefile.in (integrate.o): Update.
4976         * c-decl.c (copy_lang_decl): Rename.
4977         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4978         * integrate.c: Include langhooks.h.
4979         (copy_decl_for_inlining): Update to use langhook.
4980         * langhooks-def.h (lhd_do_nothing_t,
4981         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4982         (LANG_HOOKS_INITIALIZER): Update.
4983         * langhooks.c (lhd_do_nothing_t): New.
4984         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4985         * tree.h (copy_lang_decl): Remove.
4986 objc:
4987         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4988
4989 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4990
4991         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4992         POST_DEC, and POST_MODIFY.
4993
4994 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4995
4996         * c-typeck.c (digest_init): Remove unused parameter; all
4997         callers changed.
4998
4999 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
5000
5001         * expmed.c (expand_shift): Correctly test for low part of a
5002         subreg.
5003
5004 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
5005
5006         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5007         insn UIDs with insn addresses.
5008
5009 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5010
5011         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5012         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5013         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5014         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5015         gcc.c, toplev.c: Delete code implementing -traditional mode.
5016
5017         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5018         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5019         Document removal of -traditional mode for compilation, and
5020         remove documentation only relevant to that mode.
5021
5022         * config/nextstep.h, config/ptx4.h, config/svr4.h,
5023         config/convex/convex.h, config/d30v/d30v.h,
5024         config/i386/dgux.h, config/i386/osf1elf.h,
5025         config/i386/osfelf.h, config/i386/osfrose.h,
5026         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5027         config/m68k/hp310.h, config/m88k/dgux.h,
5028         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5029         config/m88k/m88k.h, config/m88k/openbsd.h,
5030         config/mips/abi64.h, config/mips/osfrose.h,
5031         config/mips/svr4-5.h, config/mips/svr4-t.h,
5032         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5033         config/stormy16/stormy16.h: Remove all references to
5034         -traditional from target specs.  Delete all mention of the
5035         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
5036         delete a couple of commented-out definitions of
5037         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5038         to -traditional.
5039
5040         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5041         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5042
5043 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5044
5045         * mklibgcc.in: Don't use \n in a line subject to
5046         interpretation by echo.
5047
5048 2002-02-27  Graham Stott  <grahams@redhat.com>
5049
5050         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5051         Constify NAME.
5052
5053         * loop.c (prescan_loop): Handle PARALLEL.
5054
5055         * unroll.c (loop_iterations): Return 0 if the add_val for
5056         a BIV is REG.
5057
5058         * final.c (output_operand_lossage): Constify PFX_STR.
5059
5060         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5061
5062 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5063
5064         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5065         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5066
5067 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5068
5069         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5070
5071 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5072
5073         * cpplex.c (_cpp_lex_token): Handle directives in macro
5074         arguments.
5075         * cpplib.c (_cpp_handle_directive): Save and restore state
5076         if parsing macro args when entering a directive.
5077         * cppmacro.c (collect_args): No need to handle directives
5078         in macro arguments.
5079         (enter_macro_context, replace_args): Use the original macro
5080         definition in case it was redefined whilst collecting arguments.
5081 doc:
5082         * cpp.texi: Update.
5083
5084 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5085
5086         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5087         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5088         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5089         method on AIX.
5090         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5091         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5092         (load_toc_v4_PIC_2): Same.
5093
5094 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5095
5096         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5097
5098 2002-02-26  Richard Henderson  <rth@redhat.com>
5099
5100         * config/alpha/alpha.md (ashldi_se): Re-enable.
5101
5102 2002-02-26  Richard Henderson  <rth@redhat.com>
5103
5104         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5105         MODULE_LOCAL_P; improve commentary.
5106
5107 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5108
5109         * doc/cpp.texi: Clarify documentation of relationship between
5110         #line and #include.
5111
5112 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5113
5114         * config/h8300/h8300-protos.h: Update the prototype for
5115         compute_logical_op_length.  Add the prototype for
5116         compute_logical_op_cc.
5117         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5118         code from operands.
5119         (compute_logical_op_cc): New.
5120         * config/h8300/h8300.md: Combine all the logical op patterns
5121         in HImode and SImode.  Use compute_logical_op_cc.
5122
5123 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5124
5125         * config/i386/i386.c (print_operand): Don't append ATT-style
5126         length suffixs to x87 opcodes when in Intel mode.
5127
5128 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5129
5130         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5131         (init_emit_once): Update calls.
5132         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5133         (init_syntax_once): Prototype.
5134
5135 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5136
5137         * pa-linux.h (LIB_SPEC): Update definition.
5138         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5139
5140 2002-02-26  Richard Henderson  <rth@redhat.com>
5141
5142         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5143         if we emitted a stop bit.
5144
5145 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5146
5147         * configure.in (libgcc_visibility): Substitute.
5148         * configure: Rebuilt.
5149         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5150         defined symbols .hidden.
5151
5152 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5153
5154         * attribs.c (c_common_attribute_table): Add visibility.
5155         (handle_visibility_attribute): New function.
5156         * varasm.c (assemble_visibility): New function.
5157         * output.h (assemble_visibility): Add prototype.
5158         * tree.h (MODULE_LOCAL_P): Define.
5159         * crtstuff.c (__dso_handle): Use visibility attribute.
5160         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5161         for MODULE_LOCAL_P symbols too.
5162         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5163         MODULE_LOCAL_P symbols the same way as local symbols.
5164         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5165         into .sdata/.sbss by the user.
5166         * doc/extend.texi (Function Attributes): Document visibility
5167         attribute.
5168
5169 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5170
5171         PR debug/5770
5172         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5173         STRING_CST initializer spanning the whole variable without
5174         embedded zeros.
5175         If expand_expr returned MEM, don't use it.
5176
5177 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5178
5179         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5180         generate a die for the lexical block.
5181
5182 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5183
5184         * config/h8300/h8300-protos.h: Add a prototype for
5185         compute_logical_op_length.
5186         * config/h8300/h8300.c (compute_logical_op_length): New.
5187         * config/h8300/h8300.md (anonymous logical patterns): Use
5188         compute_logical_op_length for length.
5189
5190 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5191
5192         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5193         for vectors.
5194         (gen_type_die): Same.
5195
5196         * attribs.c (handle_vector_size_attribute): Set debug information.
5197
5198 2002-02-26  Daniel Egger  <degger@fhm.edu>
5199
5200         * config/rs6000/rs6000.md: Swap define_insn attributes to
5201         fix incorrect generation of merge high instructions instead
5202         of merge low.
5203
5204 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5205
5206         * c-typeck.c (really_start_incremental_init): Use
5207         bitsize_zero_node for vectors.
5208
5209 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5210
5211         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5212         ("*set_vrsave_internal"): Same.
5213
5214 2002-02-25  Richard Henderson  <rth@redhat.com>
5215
5216         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5217         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5218
5219 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5220
5221         PR target/5755
5222         * config/i386/i386.c (ix86_return_pops_args): Only pop
5223         fake structure return argument if it was passed on the stack.
5224
5225 2002-02-25  Jason Merrill  <jason@redhat.com>
5226
5227         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5228         RESULT_DECL.
5229
5230 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5231
5232         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5233         link with shared_name only.
5234         * doc/invoke.texi (Link Options): Document new behavior.
5235
5236 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5237
5238         * c-typeck.c (push_init_level): Handle vectors.
5239
5240 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5241
5242         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5243         operands of SPARC_SETHI_P.
5244         (input_operand): Likewise.
5245         (sparc_emit_set_const32): Likewise.
5246         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5247         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5248         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5249         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5250         (movdi_insn_sp64_vis): Likewise.
5251         (movdi split, movdf split): Use SETHI32.
5252         * doc/md.texi: Document SPARC constraints L, M and N.
5253
5254 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5255
5256         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5257         ("*set_vrsave_internal"): use mfspr for Darwin.
5258
5259         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5260         gen_get_vrsave_internal.
5261
5262 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5263
5264         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5265
5266 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5267
5268         * cpplex.c (cpp_interpret_charconst): Get signedness or
5269         otherwise of wide character constants correct.
5270         * cppexp.c (lex): Get signedness of wide charconsts correct.
5271
5272 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5273
5274         * optabs.c (widen_operand): Only call convert_modes for
5275         promoted SUBREG if signedness matches.
5276         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5277
5278 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5279
5280         * cpplib.c (glue_header_name): Use local buffer to build up
5281         header name.
5282
5283 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5284
5285         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5286
5287 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5288
5289         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5290         H8/300[HS] separately.
5291         * config/h8300/h8300.md: Remove the early clobber constraint
5292         from bit field patterns.
5293
5294 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5295
5296         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5297         register_operand.
5298         (mulhisi3): Likewise.
5299         (umulqisi3): Likewise.
5300         (umulhisi3): Likewise.
5301
5302 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5303
5304         * cppinit.c (output_deps): Correct test for stdout output.
5305         (init_dependency_output): Cure warning.
5306
5307 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5308
5309         * expr.c (store_expr): When converting expression to promoted
5310         equivalent type, allow using SUBREG_REG of TARGET as the target
5311         of the expansion of EXP.
5312         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5313         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5314         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5315         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5316         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5317
5318 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5319
5320         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5321         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5322         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5323
5324 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5325
5326         PR optimization/5747
5327         * loop.c (scan_loop): Update reg info if move_movables created new
5328         pseudos.
5329
5330 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5331
5332         * gcc.c (init_gcc_spec): Revert last change.
5333
5334 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5335
5336         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5337         gpc_reg_operand constraint.
5338
5339 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5340
5341         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5342         Simplify comparison of `low'.
5343         (add_operand): Fix formatting.
5344         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5345         (mask_operand): Disallow mask to wrap in 64-bit mode.
5346         (rs6000_stack_info): Remove redundant test setting push_p.
5347         (output_toc): Fix formatting.
5348         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5349         cc_reg_not_cr0_operand constraint.
5350         (booldi3, boolcdi3 splitters): Same.
5351
5352 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5353
5354         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5355
5356 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5357
5358         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5359         gcc invoked with -shared-libgcc.
5360
5361 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5362
5363         PR c++/5748
5364         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5365         decl if any of elements was TREE_USED.
5366
5367 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5368
5369         * config/sparc/sol2.h: Don't include sys/mman.h.
5370         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5371         (arith_4096_operand): Don't throw high bits away.
5372         (const64_operand): Take sign extension of CONST_INTs into account.
5373         (const64_high_operand, sparc_emit_set_const32): Likewise.
5374         (GEN_HIGHINT64): Likewise.
5375         (sparc_emit_set_const64_quick1): Likewise.
5376         (const64_is_2insns): Likewise.
5377         (print_operand): Use trunc_int_for_mode for sign extension.
5378         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5379         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5380         chars.  Assume CONST_INT is already properly sign-extended.
5381         (movdi split): Sign-extend each SImode part.
5382         (andsi3 split): Don't mask high bits off, so that result
5383         remains properly sign-extend.
5384         (iorsi3 split): Likewise.
5385         (xorsi3 split): Likewise.
5386
5387 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5388
5389         * fold-const.c (fold): Fix typo in comments.
5390
5391 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5392
5393         * Makefile.in (langhooks.o): Update dependencies.
5394
5395 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5396
5397         * langhooks.c: Include flags.h.
5398
5399 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5400
5401         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5402
5403         * c-common.c (c_common_post_options): Set inline trees by
5404         default.
5405
5406         * doc/extend.texi (Function Attributes): Document always_inline
5407         attribute.
5408         Update documentation about inlining when not optimizing.
5409
5410         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5411
5412         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5413         unless DECL_ALWAYS_INLINE.
5414
5415         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5416         unless DECL_ALWAYS_INLINE.
5417         (c_disregard_inline_limits): Disregard if always_inline set.
5418
5419         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5420         Disregard if always_inline set.
5421         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5422         unless DECL_ALWAYS_INLINE.
5423
5424         * attribs.c (handle_always_inline_attribute): New.
5425         (c_common_attribute_table): Add always_inline.
5426
5427         * config/rs6000/altivec.h: Add prototypes for builtins
5428         requiring the always_inline attribute.
5429
5430 2002-02-21  Eric Christopher  <echristo@redhat.com>
5431
5432         * expmed.c (store_bit_field): Try to simplify the subreg
5433         before generating a new one when when the mode size of
5434         value is less than maxmode.
5435
5436 2002-02-21  Richard Henderson  <rth@redhat.com>
5437
5438         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5439         than gen_rtx_PLUS to form the sum.
5440         * explow.c (force_reg): Rearrange to not allocate new pseudo
5441         when force_operand returns a register.
5442         * expr.c (expand_assignment): Allow offset_rtx expansion to
5443         return a sum.  Do not force addresses into registers.
5444         (expand_expr): Likewise.
5445         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5446         to canonicalize arithmetic that didn't simpify.
5447         (simplify_plus_minus): New argument force; update
5448         all callers.  Don't split CONST unless we can do something with it,
5449         and wouldn't lose the constness of the operands.
5450
5451         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5452         that we generated earlier.
5453
5454 2002-02-21  Tom Tromey  <tromey@redhat.com>
5455
5456         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5457         (output_line_info): Use constant `1', with a long explanatory
5458         comment.
5459         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5460
5461 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5462
5463         * jump.c (redirect_jump): If old label has no UID, don't try to
5464         delete it.
5465
5466 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5467
5468         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5469         If input is constant, do shifts at compile time.
5470
5471 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5472
5473         * doc/extend.texi: Fix some more overfull hboxes.
5474
5475 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5476
5477         PR optimization/4994
5478         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5479         register moves.
5480
5481 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5482
5483         PR c++/4574
5484         * expr.h (expand_and): Add mode argument.
5485         * expmed.c (expand_and): Add mode argument.
5486         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5487         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5488         * except.c (expand_builtin_extract_return_addr): Likewise.
5489         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5490         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5491         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5492         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5493         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5494         gen_rtx (CONST_INT, VOIDmode, x).
5495
5496 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5497
5498         PR c/4697:
5499         * stmt.c (warn_if_unused_value): Move side effects test once more.
5500
5501 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5502
5503         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5504         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5505
5506 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5507
5508         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5509         SUBREG or ZERO_EXTEND.
5510
5511 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5512
5513         * sh.h (current_function_anonymous_args): Remove.
5514         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5515         of current_function_varargs and current_function_stdarg is set.
5516         * sh.c (sh_expand_prologue): Check current_function_varargs /
5517         current_function_stdarg / TARGET_SH5 instead of
5518         current_function_anonymous_args.
5519
5520         * sh64.h (TARGET_VERSION): Define.
5521
5522 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5523
5524         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5525         VRSAVE_REGNO on TARGET_ALTIVEC.
5526
5527 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5528
5529         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5530         bits of SImode const_int.
5531         (includes_rshift_p): Likewise.
5532         (print_operand): Call mask_operand and mask64_operand with correct
5533         mode.
5534         (rs6000_output_function_epilogue): Pad traceback table to word.
5535         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5536         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5537         mask64_operand with correct mode.
5538         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5539
5540 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5541
5542         PR debug/4461
5543         * varasm.c (get_pool_constant_mark): New.
5544         * rtl.h (get_pool_constant_mark): Add prototype.
5545         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5546         be represented if it has not been output.
5547
5548 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5549
5550         * combine.c (do_SUBST): Sanity check substitutions of
5551         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5552         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5553         CONST_INT into its operand.
5554         (known_cond): Likewise, for ZERO_EXTEND.
5555         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5556         allow for simplification of wide modes.  Reject CONST_INTs in
5557         ZERO_EXTEND when their actual mode is not given.
5558
5559 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5560
5561         * c-decl.c (pushdecl): If no global declaration is found for an
5562         extern declaration in block scope, try a limbo one.
5563
5564 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5565
5566         PR c++/4401
5567         * c-common.c (pointer_int_sum): Moved from...
5568         * c-typeck.c (pointer_int_sum): ...here.
5569         * c-common.h (pointer_int_sum): Add prototype.
5570
5571 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5572
5573         PR c++/5713
5574         * c-decl.c (duplicate_decls): Return 0 if issued error about
5575         redeclaration.
5576
5577 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5578             Jakub Jelinek  <jakub@redhat.com>
5579
5580         PR c/4389
5581         * tree.c (host_integerp): Ensure that the constant integer is
5582         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5583         when pos is zero or non-zero respectively.  Clarify comment.
5584         * c-format.c (check_format_info_recurse): Fix host_integerp
5585         usage; the pos argument should be zero when assigning to a
5586         signed HOST_WIDE_INT.
5587
5588 2002-02-20  Richard Henderson  <rth@redhat.com>
5589
5590         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5591         of the operand, rather than assuming TImode.
5592         (ix86_expand_binop_builtin): Cope with commutative patterns
5593         using nonimmediate_operand for both operands.
5594         (ix86_expand_timode_binop_builtin): Likewise.
5595         (ix86_expand_store_builtin): Validate operand 1.
5596         (ix86_expand_unop1_builtin): Likewise.
5597
5598 2002-02-20  Philip Blundell  <philb@gnu.org>
5599
5600         PR 5705
5601         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5602
5603 2002-02-20  Richard Henderson  <rth@redhat.com>
5604
5605         PR c/5615
5606         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5607
5608 2002-02-20  Tom Tromey  <tromey@redhat.com>
5609
5610         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5611         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5612         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5613         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5614         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5615         unconditionally.
5616
5617 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5618
5619         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5620           for (const_int 0) in X not just INTVAL.
5621
5622 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5623
5624         * doc/extend.texi: Avoid or reduce overfull hboxes.
5625
5626 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5627
5628         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5629         operations if the field does not start at a mode boundary.
5630
5631 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5632
5633         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5634         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5635         Also done for -Acpu and -Amachine.
5636
5637 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5638
5639         * cppinit.c (init_dependency_output): Take deps output file
5640         from -o if none given with -MF.  Suppress normal output.
5641         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5642         * doc/cpp.texi, doc/invoke.texi: Update.
5643
5644 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5645
5646         * toplev.c (output_quoted_string): Write unprintable
5647         characters with octal escapes.
5648
5649 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5650
5651         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5652         really_call_used[VRSAVE_REGNO] if not Altivec.
5653
5654 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5655
5656         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5657         MODE_MASK.
5658         (constant_pool_expr_1): Fix formatting.
5659         (rs6000_legitimize_reload_address): Likewise.
5660
5661 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5662
5663         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5664         now that we have one.
5665
5666 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5667
5668         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5669         end of first block of bitfields (which was only seven bits);
5670         rename dummy to unused_1; remove comment which is no longer true.
5671
5672 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5673
5674         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5675
5676 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5677
5678         PR 5399
5679         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5680         if generating PIC.
5681
5682         PR 5054
5683         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5684         arm_is_longcall_p rather than inspecting call-type cookie
5685         directly.
5686         (call_value_insn) [TARGET_THUMB]: Likewise.
5687
5688 2002-02-19  Graham Stott  <grahams@redhat.com>
5689
5690         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5691
5692 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5693
5694         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5695         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5696         (FP_SAVE_INLINE): Delete.
5697
5698         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5699         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5700         * config/rs6000/t-ppccomm: Build crtsavres.o.
5701         * config/rs6000/crtsavres.asm: New file.
5702
5703 2002-02-19  Philip Blundell  <philb@gnu.org>
5704
5705         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5706         functions.
5707         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5708         (output_return_instruction): Allow interrupt functions to return with
5709         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5710         (arm_expand_prologue): Subtract 4 before stacking LR in an
5711         interrupt function.
5712
5713 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5714
5715         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5716         decl, not just FUNCTION_DECL.
5717         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5718         (arm_assemble_integer): Likewise.
5719         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5720         marked local.
5721
5722 2002-02-19  matthew green  <mrg@eterna.com.au>
5723
5724         * config.gcc (sparc-*-netbsdelf*): Enable target.
5725         (sparc64-*-netbsd*): New target.
5726         * config/sparc/netbsd-elf.h: New file.
5727         * config/sparc/t-netbsd64: New file.
5728
5729 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5730
5731         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5732
5733 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5734
5735         * doc/invoke.texi: explicitly list the style guidelines that
5736         -Weffc++ checks for.
5737
5738 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5739
5740         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5741
5742 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5743
5744         PR other/5718
5745         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5746         only if not -E.  If -E, pass -o through to the preprocessor.
5747
5748 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5749
5750         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5751         register number with an appropriate macro.
5752
5753 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5754
5755         * doc/rtl.texi (Constants): Close @code tag.
5756
5757 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5758
5759         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5760         ("mmx_uavgv4hi3"): Same.
5761         ("pmulhrwv4hi3"): Same.
5762
5763         * tree-inline.c (walk_tree): Handle vectors.
5764
5765         * c-common.c (constant_expression_warning): Handle vectors.
5766         (overflow_warning): Same.
5767
5768         * sched-deps.c (sched_analyze_2): Handle vectors.
5769
5770         * rtlanal.c (rtx_unstable_p): Handle vectors.
5771         (rtx_varies_p): Same.
5772         (count_occurrences): Same.
5773         (regs_set_between_p): Same.
5774         (modified_between_p): Same.
5775         (modified_in_p): Same.
5776         (volatile_insn_p): Same.
5777         (volatile_refs_p): Same.
5778         (side_effects_p): Same.
5779         (may_trap_p): Same.
5780         (inequality_comparisons_p): Same.
5781         (replace_regs): Same.
5782         (computed_jump_p_1): Same.
5783
5784         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5785         argument.
5786         (inner_mode_array): New.
5787         (copy_rtx): Handle vectors.
5788         (copy_most_rtx): Same.
5789         (rtx_equal_p): Same.
5790         (get_mode_alignment): Adjust for vectors.
5791
5792         * resource.c (mark_referenced_resources): Handle vectors.
5793         (mark_set_resources): Same.
5794
5795         * reload1.c (eliminate_regs): Handle vectors.
5796         (elimination_effects): Same.
5797         (scan_paradoxical_subregs): Same.
5798
5799         * reload.c (subst_reg_equivs): Handle vectors.
5800
5801         * regrename.c (scan_rtx): Handle vectors.
5802
5803         * regclass.c (reg_scan_mark_refs): Handle vectors.
5804
5805         * recog.c (find_single_use_1): Handle vectors.
5806
5807         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5808         (contains_replace_regs): Same.
5809         (memref_referenced_p): Same.
5810
5811         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5812         (subst_constants): Same.
5813
5814         * genattrtab.c (attr_copy_rtx): Handle vectors.
5815         (encode_units_mask): Same.
5816         (clear_struct_flag): Same.
5817         (count_sub_rtxs): Same.
5818
5819         * gcse.c (want_to_gcse_p): Handle vectors.
5820         (oprs_unchanged_p): Same.
5821         (hash_expr_1): Same.
5822         (oprs_not_set_p): Same.
5823         (expr_killed_p): Same.
5824         (compute_transp): Same.
5825         (store_ops_ok): Same.
5826
5827         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5828         of vectors.
5829         (fixup_var_refs_1): Same.
5830         (instantiate_virtual_regs_1): Same.
5831
5832         * fold-const.c (operand_equal_p): Handle vectors.
5833         (fold): Same.
5834         (rtl_expr_nonnegative_p): Same.
5835
5836         * flow.c (mark_used_regs): Handle vectors.
5837
5838         * df.c (df_uses_record): Handle vectors.
5839
5840         * cselib.c (cselib_subst_to_values): Handle vectors.
5841         (cselib_mem_conflict_p): Same.
5842         (hash_rtx): Same.
5843
5844         * cse.c (canon_reg): Handle vectors.
5845         (fold_rt): Same.
5846         (cse_process_notes): Same.
5847         (count_reg_usage): Same.
5848         (canon_hash): Same.
5849
5850         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5851
5852         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5853
5854         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5855         (gen_rtx): Handle CONST_VECTOR.
5856         (gen_const_vector_0): New.
5857         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5858         (reset_used_flags): Same.
5859         (copy_insn_1): Same.
5860         (initializer_constant_valid_p): Handle VECTOR_CST.
5861
5862         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5863
5864         * doc/rtl.texi (Constants): Document const_vector.
5865         (CONST0_RTX): Update for vectors.
5866         (RTL sharing): Same.
5867
5868         * print-tree.c (print_node): Add case for VECTOR_CST.
5869
5870         * tree.h (TREE_VECTOR_CST_ELTS): New.
5871         (struct tree_vector): New.
5872         (union tree_node): Add vector node.
5873         (build_vector): Add prototype.
5874
5875         * tree.def (VECTOR_CST): New.
5876
5877         * tree.c (build_vector): New.
5878
5879         * expmed.c (make_tree): Handle CONST_VECTOR.
5880
5881         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5882         (CONST_VECTOR_ELT): New.
5883         (CONST_VECTOR_NUNITS): New.
5884
5885         * machmode.h (GET_MODE_INNER): New.
5886         (DEF_MACHMODE): Accept 8th arg.
5887
5888         * machmode.def: Add 8th argument for vector inner mode.
5889         Add inner vector modes for vectors.
5890
5891         * rtl.def (VEC_CONST): Remove.
5892         (CONST_VECTOR): New.
5893
5894         * expr.c (clear_storage): Allow vectors.
5895         (is_zeros_p): Handle VECTOR_CST.
5896
5897         * varasm.c (output_constant_pool): Handle vectors.
5898         (rtx_const): Add veclo and vechi fields.
5899         (kind): Add RTX_VECTOR.
5900         (decode_rtx_const): Add case for vector.
5901
5902         * config/rs6000/rs6000-protos.h: Add zero_constant.
5903
5904         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5905         constants.  Force easy vector constants into memory.
5906         (easy_vector_constant): New.
5907         (emit_easy_vector_constant): New.
5908         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5909         darwin.
5910
5911         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5912         instruction does.
5913         ("altivec_lvxl"): Same.
5914         (altivec_lvebx): Same.
5915         (altivec_lvehx): Same.
5916         (altivec_lvewx): Same.
5917         ("*movv4si_const0"): New.
5918         ("*movv4sf_const0"): New.
5919         ("*movv8hi_const0"): New.
5920         ("*movv16qi_const0"): New.
5921
5922 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5923
5924         * config/h8300/h8300.c (notice_update_cc): Use
5925         cc_status.value2.
5926
5927 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5928
5929         * config/h8300/h8300.md (divmod patterns): Change the
5930         constraints for operands[1] to register_operand.
5931
5932 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5933
5934         * config/h8300/h8300-protos.h: Remove the prototype for
5935         p_operand.
5936         * config/h8300/h8300.c (p_operand): Remove.
5937         * config/h8300/h8300.md: Replace p_operand with
5938         const_int_operand.
5939
5940 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5941
5942         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5943         comment.
5944         (output_return_instruction): Allow use of LDR to unstack
5945         return addresss even for interrupt handlers or when
5946         interworking.  If compiling for ARMv5, use interworking-safe
5947         return instructions by default.  Remove duplicated code and
5948         lengthy "strcat" sequences.
5949
5950 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5951
5952         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5953         (LINK_EH_SPEC): Define.
5954         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5955
5956 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5957
5958         * config/s390/s390.c (s390_emit_prologue): Do not set the
5959         frame_related flag for call-clobbered registers.
5960
5961 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5962
5963         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5964         (construct_container): Fix handling of SSE operands.
5965         (ix86_expand_builtin): Fix handling of 64bit pointers.
5966         (mmx_maskmovq_rex): New pattern.
5967
5968 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5969
5970         * regrename.c (kill_set_value): Handle subregs properly.
5971
5972 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5973
5974         * objc/objc-act.c (handle_impent): Remove leading '*'
5975         from objc_class_name.
5976
5977 2002-02-17  Richard Henderson  <rth@redhat.com>
5978
5979         * config/alpha/alpha.c (some_small_symbolic_operand,
5980         some_small_symbolic_operand_1, split_small_symbolic_operand,
5981         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5982         Handle small SYMBOL_REFs anywhere, not just inside memories.
5983         * config/alpha/alpha-protos.h: Update.
5984         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5985         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5986
5987 2002-02-17  Roland McGrath  <roland@frob.com>
5988
5989         * config.gcc (powerpc-*-gnu-gnualtivec*,
5990         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5991         * config/rs6000/gnu.h: New file.
5992         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5993         Grok "gnu" in rs6000_abi_name.
5994         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5995         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5996         Grok -mcall-gnu analogous to -mcall-linux et al.
5997         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5998         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5999         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6000
6001 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
6002
6003         PR c/3444:
6004         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6005         shortening.
6006
6007 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6008
6009         * config/cris/cris.h: Undefine STARTFILE_SPEC and
6010         ENDFILE_SPEC before (re)defining them.
6011
6012 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6013
6014         * config/h8300/h8300.c: Fix formatting.
6015         * config/h8300/h8300.h: Likewise.
6016
6017 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6018
6019         * doc/tm.texi: Explain why empty strings should not be
6020         marked for translation.
6021
6022 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6023
6024         * final.c (output_operand_lossage): Changed to accept
6025         printf style arguments. Change calls where necessary.
6026         * output.h (output_operand_lossage): Change declaration
6027         accordingly. Update copyright.
6028         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6029         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6030         Update copyright date where necessary.
6031
6032         * config/i386/i386.c (print_operand): Likewise. Remove use of
6033         sprintf.
6034
6035         * config/cris/cris.c (cris_operand_lossage): Likewise.
6036         Rename parameter so that exgettext recognizes it as
6037         translatable message.
6038         (LOSE_AND_RETURN): Rename parameter to msgid.
6039
6040 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6041
6042         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6043         hard coded register number with an appropriate macro.
6044         (HARD_REGNO_MODE_OK): Likewise.
6045         (ARG_POINTER_REGNUM): Likewise.
6046         (STATIC_CHAIN_REGNUM): Likewise.
6047         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6048         * config/h8300/h8300.md (define_constants): Define more
6049         register numbers.
6050
6051 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6052
6053         * config/i386/i386.h: Don't mark empty strings for translation.
6054
6055 2002-02-16  H.J. Lu <hjl@gnu.org>
6056
6057         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6058
6059 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6060
6061         * cppinit.c (merge_include_chains): Check for brack being
6062         NULL before attempting to merge it with qtail.
6063
6064 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6065
6066         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6067         DBX_DEBUG.
6068
6069 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6070
6071         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6072
6073 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6074
6075         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6076         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6077         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6078
6079 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6080
6081         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6082         now only if !TARGET_FIX.
6083         (*movsi_nt_vms_fix): New pattern.
6084
6085 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6086
6087         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6088         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6089         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6090         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6091         (alpha_start_function, alpha_expand_epilogue): Likewise.
6092         (unicosmk_gen_dsib): Likewise.
6093
6094 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6095
6096         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6097
6098 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6099
6100         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6101         check_and_change_labels, s390_final_chunkify): Delete.
6102         (s390_split_branches, s390_chunkify_pool): New functions.
6103         (s390_function_prologue): Call them.
6104
6105         * config/s390/s390.h (S390_REL_MAX): Delete.
6106         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6107
6108         * config/s390/s390.md (cjump, icjump, jump): Fix length
6109         attribute calculation.
6110
6111
6112 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6113
6114         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6115         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6116
6117 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6118
6119         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6120         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6121         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6122
6123 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6124
6125         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6126
6127 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6128
6129         * reload.c (find_dummy_reload): Check that an output register
6130         is valid for its mode.
6131
6132 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6133
6134         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6135         to simplify it.
6136
6137         * function.c (assign_parms): Demote promoted argument passed by
6138         transparent reference.
6139
6140 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6141
6142         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6143         -Acpu() and -Amachine() to eliminate warnings.
6144
6145 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6146
6147         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6148
6149 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6150
6151         * config/h8300/h8300-protos.h: Update the prototype for
6152         const_costs.
6153         * config/h8300/h8300.c (const_costs): Treat SET as a little
6154         more expensive operation.
6155         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6156         reference to const_costs.
6157
6158 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6159
6160         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6161
6162 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6163
6164         PR c/5503:
6165         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6166         use arguments from newtype.
6167
6168 2002-02-13  Eric Christopher  <echristo@redhat.com>
6169
6170         * config/mips/mips.c (override_options): Add check for march/mipsX
6171         on the same command line. Fix error message in cpu processing.
6172         Remove architecture and ISA checks.
6173
6174 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6175
6176         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6177
6178         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6179
6180 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6181
6182         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6183         alternatives.
6184         ("*movv8hi_internal1"): Same.
6185         ("*movv16qi_internal1"): Same.
6186         ("*movv4sf_internal1"): Same.
6187
6188         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6189         not push_reload for altivec modes.
6190
6191 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6192
6193         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6194         all RTEMS targets including removal of #includes from config/*/rtems*.h
6195         file and adding them to tm_file setting. Added xm_defines=POSIX to
6196         many targets.
6197         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6198         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6199         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6200         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6201         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6202         config/m68k/rtemself.h: Ditto.
6203         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6204         config/mips/rtems64.h: Ditto.
6205         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6206         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6207         Ditto.
6208         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6209         config/sparc/rtemself.h: Ditto.
6210         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6211         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6212         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6213         more like arm-elf.
6214         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6215         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6216         target made more similar to i386-elf.
6217         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6218         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6219         be similar to config/m68k/t-m68kelf.
6220         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6221
6222 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6223
6224         * regmove.c (kill_value): Handle subregs.
6225
6226 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6227
6228         * i386.md (mul patterns): Allow memory operand to be first;
6229         add expanders where needed; fix constraints.
6230         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6231         Allow memory operand to be the first.
6232
6233         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6234         operands.
6235
6236 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6237
6238         PR c/5681:
6239         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6240         GET_MODE (x).
6241
6242 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6243
6244         PR optimization/5547:
6245         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6246         all valid IA-32 address modes involving non-scaled %ebx and
6247         GOT/GOTOFF as displacement.
6248
6249 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6250
6251         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6252         after emitting ltorg insns.
6253
6254         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6255         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6256         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6257         *abssf2): Fix "op_type" attribute.
6258
6259 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6260
6261         * mkconfig.sh: Avoid using a subshell redirect.
6262         ($output.T): Change to $(output)T.
6263         (ENABLE_NLS): Remove unneeded undef.
6264
6265         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6266         * config/alpha/x-vms (libsubdir): Define.
6267
6268         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6269         register frame procedures. Optimize retrieving context.
6270
6271         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6272         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6273         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6274
6275 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6276
6277         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6278         Make same change as for find_base_value.
6279
6280 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6281
6282         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6283         of QImode and SImode.
6284
6285 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6286
6287         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6288         length computation of movsi.
6289         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6290
6291 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6292
6293         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6294         operands[2] to register_operand.
6295
6296 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6297
6298         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6299
6300 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6301
6302         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6303         for altivec_lvx* and altivec_stvx*.
6304         ("*movv4si_internal"): Add constraint for loading from GPRs.
6305         ("*movv8hi_internal1"): Same.
6306         ("*movv16qi_internal1"): Same.
6307         ("*movv4sf_internal1"): Same.
6308
6309         * config/rs6000/rs6000.c (altivec_register_operand): New.
6310
6311         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6312         altivec_register_operand.
6313
6314 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6315
6316         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6317         handle SYMBOL_REF.
6318
6319 2002-02-13  Stan Shebs  <shebs@apple.com>
6320
6321         * c-typeck.c (digest_init): Handle vectors.
6322         (really_start_incremental_init): Same.
6323         (pop_init_level): Same.
6324         (process_init_element): Same.
6325
6326         * varasm.c (output_constant): Same.
6327
6328         * expr.c (clear_storage): Same.
6329         (store_constructor): Same.
6330
6331 2002-02-12  Eric Christopher  <echristo@redhat.com>
6332
6333         * explow.c (hard_function_value): Add comment explaining
6334         signed/unsigned comparison.
6335
6336 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6337
6338         * jump.c (never_reached_warning): Add finish argument.
6339         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6340         real insn after end.
6341         * rtl.h (never_reached_warning): Adjust prototype.
6342         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6343         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6344         never_reached_warning.
6345
6346 2002-02-12  Graham Stott  <grahams@redhat.com>
6347
6348         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6349
6350 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6351
6352         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6353         logical shifts on H8/300.
6354         (shift_alg_si): Improve several shifts on H8/300.
6355         (get_shift_alg): Likewise.
6356
6357 2002-02-12  Graham Stott  <grahams@redhat.com>
6358
6359         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6360
6361 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6362
6363         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6364         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6365
6366 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6367
6368         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6369         non-CONST_INT through default_assemble_integer.
6370         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6371         <case 8>: Abort for CONST_DOUBLE.
6372
6373 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6374
6375         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6376         is specified.
6377         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6378         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6379
6380 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6381
6382         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6383
6384 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6385
6386         * regrename.c (regrename_optimize): Don't accept a
6387         part-clobbered register if the replaced register is not part
6388         clobbered.
6389
6390         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6391         take padding into account when computing the argument value.
6392
6393         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6394
6395         * combine.c (try_combine): Apply substitutions in
6396         CALL_INSN_FUNCTION_USAGE too.
6397
6398 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6399
6400         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6401         __builtin_altivec_abs*.
6402         (bdesc_abs): New.
6403
6404         * config/rs6000/rs6000.h (rs6000_builtins): Add
6405         ALTIVEC_BUILTIN_ABS*.
6406
6407         * config/rs6000/altivec.h: Use const char for builtins expecting
6408         literals.
6409         (vec_abs): New versions for C and C++.
6410         (vec_abss): Same.
6411
6412 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6413
6414         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6415         using Pmode.
6416
6417 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6418
6419         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6420         constant definition from h8300.md.
6421         (FRAME_POINTER_REGNUM): Likewise.
6422         * config/h8300/h8300.md (define_constants): Add FP_REG.
6423
6424 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6425
6426         * config/h8300/h8300.c (print_operand): Remove redundant code.
6427
6428 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6429
6430         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6431         * config/h8300/h8300.c (byte_reg): Make it static.
6432
6433 2002-02-10  Richard Henderson  <rth@redhat.com>
6434
6435         PR c/5623
6436         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6437
6438 2002-02-10  Richard Henderson  <rth@redhat.com>
6439
6440         PR c++/5624
6441         * tree.c (append_random_chars): Don't abort if main_input_filename
6442         does not exist.
6443
6444 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6445
6446         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6447
6448 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6449
6450         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6451         (pushhi1): Likewise.
6452
6453 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6454
6455         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6456         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6457
6458 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6459
6460         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6461         remove MASK_VIS.
6462         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6463
6464 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6465
6466         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6467         a half of an SImode register on H8/300.
6468
6469 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6470
6471         * i386.md (movdi_2): Add missing '!'.
6472
6473 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6474
6475         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6476         definitions.
6477
6478 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6479
6480         * config/h8300/h8300.md (length): Correct the distance valid
6481         for the short branch.
6482
6483 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6484
6485         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6486
6487 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6488
6489         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6490         registers in SImode.
6491         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6492         part-clobbered.
6493
6494         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6495         patch.
6496
6497         Contribute sh64-elf.
6498         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6499         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6500         (sh_cannot_modify_jumps_p): New function.
6501         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6502         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6503         (sh_ms_bitfield_layout_p): New function.
6504         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6505                     Zack Weinberg  <zack@codesourcery.com>
6506         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6507         expand_simple_binop instead of expand_binop.
6508         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6509         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6510         use of .quad and .uaquad.
6511         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6512         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6513         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6514         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6515         movdi_const_16bit): Make sure all CONSTs have modes.
6516         (sym2PIC): Ditto, but by adjusting all callers.
6517         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6518         if the prologue calls the SHmedia argument decoder or register
6519         saver.
6520         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6521         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6522         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6523         (sh_expand_epilogue): Don't emit USE of return target register.
6524         (prepare_move_operands): Legitimize DImode PIC addresses.
6525         (sh_media_register_for_return): Skip tr0, used to initialize the
6526         PIC register.
6527         (sh_expand_prologue): Remove explicit USE of return register.
6528         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6529         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6530         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6531         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6532         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6533         EXTRA_CONSTRAINT_T.
6534         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6535         (MOVI_SHORI_BASE_OPERAND_P): New.
6536         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6537         (EXTRA_CONSTRAINT_T): Define in terms of them.
6538         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6539         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6540         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6541         alternatives supporting TARGET_REGS.
6542         (UNSPEC_GOTPLT): New constant.
6543         (movdi split): Move incrementing of LABEL_NUSES...
6544         (movdi_const, movdi_const_32bit): Here.  Use
6545         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6546         (movdi_const_16bit): New.
6547         (call, call_value) [flag_pic]: Use GOTPLT.
6548         (call_pop, call_value_pop): New expands.
6549         (call_pop_compact, call_pop_rettramp): New insns.
6550         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6551         (sibcall) [flag_pic]: Use GOT.
6552         (builtint_setjmp_receiver): Remove bogus, unused expand.
6553         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6554         (*pt, *ptb, ptrel): New insns.
6555         (sym2GOT): Handle DImode GOT.
6556         (sym2GOTPLT, symGOTPLT2reg): New expands.
6557         (sym2PIC): New expand.
6558         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6559         (shcompact_return_tramp_i): Use return register explicitly.
6560         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6561         disable flag_reorder_blocks.
6562         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6563         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6564         clobbers, for clarity.
6565         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6566         restoring of r0 in macl as MAYBE_DEAD.
6567         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6568         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6569         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6570         alter_subreg all over.
6571         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6572         reload, instead of emitting instructions that would require
6573         reloading.
6574         (casesi_load_media): Add missing modes.
6575         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6576         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6577         as used if the argument decoder is called.
6578         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6579         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6580         Pmode, then extend it to DImode if necessary.
6581         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6582         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6583         constants in FPU-enabled SHmedia, let them be loaded from memory.
6584         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6585         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6586         Adjust whitespace in assembly output templates.
6587         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6588         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6589         mode of if_then_else.
6590         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6591         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6592         sh.h.
6593         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6594                     Joern Rennecke <amylaar@redhat.com>
6595         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6596         (SUBTARGET_CPP_PTR_SPEC): New.
6597         (SUBTARGET_CPP_SPEC): Remove.
6598         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6599         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6600         Fix typo in previous checkin.
6601         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6602         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6603         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6604                     Alexandre Oliva  <aoliva@redhat.com>
6605         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6606         what single FP register can hold for SHmedia target.
6607         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6608                     Alexandre Oliva  <aoliva@redhat.com>
6609         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6610         Do not split into SUBREG.
6611         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6612         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6613         and added new functions as specified in SH5 ABI r9.
6614         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6615         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6616         8-byte boundary.
6617         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6618         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6619         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6620         and consttable_window_ends.
6621         2001-06-03  Graham Stott  <grahams@redhat,com>
6622         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6623         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6624         * config/sh/sh.c (print_operand): Handle floating-point pair,
6625         vector and matrix registers.
6626         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6627         vector modes into account.
6628         * config/sh/sh.md (movv2sf): Split move between registers into
6629         movdf.
6630         (movv4sf, movv16sf): Introduce insns that get split only after
6631         reload.
6632         * config/sh/shmedia.h: Fix Copyright dates.
6633         * config/sh/ushmedia.h: Likewise.  Move loop counter
6634         declarations into conditionals that uses them.
6635         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6636         loop boundary.
6637         * config/sh/sshmedia.h: Fix Copyright dates.
6638         (sh_media_PUTCFG): Fix constraints.
6639         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6640         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6641         ptrmemfunc_vbit_in_delta for SH5.
6642         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6643         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6644         * invoke.texi: Likewise.
6645         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6646         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6647         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6648         GCC_pop_shmedia_regs_nofpu): New global symbols.
6649         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6650         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6651         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6652         compact function with nonlocal labels.
6653         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6654         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6655         (initial_elimination_offset): Account for their stack space.
6656         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6657         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6658         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6659         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6660         least one of the operands to be a register.
6661         (movv2sf): Likewise.  Renamed to movv2sf_i.
6662         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6663         prepare_move_operands() before emitting SHmedia insns.
6664         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6665         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6666         Don't save nor initialize r12.  Don't mis-align the stack.
6667         Pad the code with a nop.
6668         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6669         stack.
6670         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6671         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6672         [__SHMEDIA__]: Implement.
6673         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6674         * config/sh/sh.md: Set latency of `pt' closer to reality.
6675         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6676         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6677         Set move, load and store type attributes.
6678         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6679         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6680         profiling.
6681         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6682         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6683         * config/sh/sh.c (sh_media_register_for_return): New function.
6684         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6685         branch-target register.
6686         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6687         * config/sh/sh.md (return_media_i): Use any call-clobbered
6688         branch-target register.
6689         (return_media): If r18 wasn't copied in the prologue, copy it
6690         here.
6691         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6692         Clear class FP0_REGS.
6693         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6694         from elf.h.
6695         2001-03-08  DJ Delorie  <dj@redhat.com>
6696         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6697         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6698         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6699         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6700         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6701         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6702         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6703         return value correctly for call_cookie.
6704         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6705         * config/sh/crt1.asm (start): Modified so as to call
6706         ___setup_argv_and_call_main.
6707         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6708         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6709         SHmedia mode.
6710         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6711         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6712         (STRIP_NAME_ENCODING): Use it.
6713         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6714         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6715         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6716         prepare_scc_operands().
6717         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6718         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6719         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6720         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6721         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6722         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6723         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6724         used in shcompact_incoming_args.
6725         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6726         change.
6727         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6728         mode.
6729         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6730         Adjust accordingly.
6731         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6732         Simplify.  Adjust.  Add sanity check.
6733         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6734         FPU_SINGLE_BIT.
6735         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6736         TARGET_SHCOMPACT.
6737         (udivsi3, divsi3): Use them.
6738         (force_mode_for_call): New insn.
6739         (call, call_value, sibcall_value): Emit it before SHcompact
6740         calls.
6741         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6742         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6743         call cookie is non-NULL before taking its value.
6744         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6745         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6746         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6747         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6748         block.
6749         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6750         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6751         temporary for stack adjusts.  Use MACL and MACH to pass
6752         arguments to shcompact_incoming_args.
6753         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6754         clobber r1.
6755         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6756         (nested_trampoline): Load static chain address into r1.
6757         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6758         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6759         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6760         fp_arith_reg_operand().
6761         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6762         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6763         and use signed compares for them.
6764         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6765         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6766         ones properly aligned.
6767         (find_barrier): Account for extra alignment needed for 8-byte wide
6768         constants.
6769         (machine_dependent_reorg): Require a label for the second 4-byte
6770         constant after an 8-byte one.
6771         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6772         change.
6773         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6774         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6775         last_float when switching float modes.
6776         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6777         auto-increment for general-purpose registers.
6778         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6779         result.
6780         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6781         for stack adjust.
6782         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6783         registers for varargs.
6784         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6785         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6786         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6787         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6788         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6789         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6790         call_cookie accordingly.
6791         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6792         (SHCOMPACT_BYREF): Likewise.
6793         (SHCOMPACT_FORCE_ON_STACK): New macro.
6794         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6795         (sh_builtin_saveregs): Likewise.
6796         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6797         shcompact_incoming_args): Use new shift values.  Support
6798         sequences of consecutive and non-consecutive pushes/pops.
6799         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6800         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6801         * config/sh/sh.h (TEXT_SECTION): Define.
6802         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6803         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6804         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6805         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6806         return values on FPU-enabled SHmedia.
6807         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6808         FPU-enabled SHmedia.
6809         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6810         value is returned in a non-FP reg and is not returned by
6811         reference.
6812         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6813         jump_ind.
6814         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6815         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6816         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6817         quad-aligned to be passed by callee-copy reference.
6818         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6819         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6820         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6821         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6822         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6823         copying low-numbered FP regs to r7 and r8.
6824         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6825         FP regs to general-purpose regs only if the copy was passed on the
6826         stack.
6827         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6828         copying FP reg to r9.
6829         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6830         copy FP regs to general-purpose regs only in outgoing calls.
6831         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6832         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6833         HOST_WIDE_INT.
6834         * config/sh/sh.h (struct sh_args): Document all fields.
6835         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6836         passed partially on the stack should not consider making
6837         sibcalls.
6838         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6839         stack_regs only for incoming calls.  When passing FP args,
6840         make sure there are FP regs available before modifying
6841         call_cookie.
6842         (SHCOMPACT_BYREF): Pass double args in general-purpose
6843         registers by reference.
6844         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6845         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6846         attempt to generate sibcalls if the caller got any arguments
6847         by reference.
6848         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6849         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6850         to 8-byte boundaries.
6851         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6852         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6853         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6854         stored in the stack.
6855         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6856         for the offsets to have the ISA bit set.
6857         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6858         invocation.  Use beq instead of bgt to mark end of sequence of
6859         loads.
6860         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6861         bgt to mark end of sequence of stores.
6862         * config/sh/sh.c (arith_operand): Don't check whether
6863         CONST_OK_FOR_J for now.
6864         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6865         instead of long for conversion.
6866         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6867         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6868         before passing it to fprintf.
6869         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6870         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6871         Call set_fpscr before reading/writing SR.
6872         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6873         Call set_fpscr.
6874         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6875         SHmedia code.
6876         (FMOVD_WORKS): Define on SH5 with FPU.
6877         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6878         setting.
6879         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6880         _fpscr_values.
6881         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6882         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6883         address.
6884         (ia_main_table): Ditto.
6885         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6886         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6887         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6888         the definitions from sh.h.
6889         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6890         TARGET_SH5.
6891         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6892         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6893         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6894         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6895         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6896         Increment LABEL_NUSES.
6897
6898         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6899         TARGET_SH5.
6900         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6901         defined.
6902         * config/sh/elf.h (SIZE_TYPE): Likewise.
6903         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6904         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6905         shcompact_incoming_args): Load switch table addresses using
6906         datalabel.
6907         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6908         (NO_BUILTIN_SIZE_TYPE): Define.
6909         (SIZE_TYPE): Don't define.
6910         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6911         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6912         definition of __SH5__=32 for -m5-compact-nofpu.
6913         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6914         ADDR_DIFF_VEC.
6915         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6916         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6917         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6918         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6919         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6920         (INSN_LENGTH_ALIGNMENT): Likewise.
6921         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6922         * config/sh/sh.md (call, call_value, sibcall): Simplify
6923         copying of non-branch-target register.
6924         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6925         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6926         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6927         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6928         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6929         floating-point values as structs.
6930         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6931         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6932         general-purpose register.
6933         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6934         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6935         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6936         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6937         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6938         (ENCODE_SECTION_INFO): Enclose variables and constants in
6939         DATALABEL unspecs.
6940         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6941         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6942         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6943         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6944         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6945         SH_DATALABEL_ENCODING to the symbol name.
6946         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6947         convert_mode().
6948         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6949         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6950         UNSPEC_DATALABEL.
6951         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6952         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6953         (DATALABEL_REF_P): Don't require CONST.
6954         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6955         REL label.
6956         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6957         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6958         right.
6959         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6960         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6961         Use shallow_copy_rtx and PUT_MODE to change the mode of
6962         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6963         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6964         on SHmedia using GENERAL_REGs.
6965         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6966         bltu_media_i): Fix reversion of conditions.
6967         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6968         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6969         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6970         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6971         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6972         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6973         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6974         (GCC_nested_trampoline): Likewise.
6975         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6976         * config/sh/sh.c (gen_datalabel_ref): Define.
6977         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6978         (INITIALIZE_TRAMPOLINE): Likewise.
6979         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6980         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6981         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6982         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6983         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6984         (ic_invalidate): Adjust for SH5.
6985         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6986         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6987         _nested_trampoline.
6988         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6989         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6990         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6991         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6992         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6993         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6994         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6995         * config/sh/sh.c (target_reg_operand): Match only target-branch
6996         registers and pseudos that aren't virtual registers.
6997         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6998         Copy operands that don't match target_reg_operand to pseudos.
6999         (call_media, call_value_media, sibcall_media): Use
7000         target_reg_operand instead of target_operand.
7001         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
7002         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7003         * config/sh/sh.c (target_reg_operand): Match hardware registers
7004         other than branch-target registers.
7005         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7006         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7007         (fpscr_values) [SH5 == 32]: Define.
7008         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7009         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7010         Handle function addresses coming in SUBREGs.
7011         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
7012         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7013         shcompact_return_trampoline): Use datalabel where appropriate.
7014         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
7015         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7016         general-purpose register to copy one branch-target register to
7017         another.
7018         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7019         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7020         SYMBOL_REFs with VOIDmode.
7021         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7022         bltu_media_i): New insns.
7023         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7024         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7025         (INIT_CUMULATIVE_ARGS): Likewise.
7026         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7027         * machmode.def (V16SFmode): New mode.
7028         * c-common.c (type_for_mode): Support V2SF and V16SF.
7029         * tree.c (build_common_tree_nodes_2): Likewise.
7030         * tree.h (tree_index): Likewise.
7031         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7032         callers.  Introduce CALL_POPS_ARGS.
7033         * tm.texi (CALL_POPS_ARGS): Document.
7034         * config/sh/crt1.asm: Implement in SHmedia mode.
7035         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7036         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7037         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7038         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7039         Implement divsi and udivsi in SHmedia mode.  Introduce
7040         SHcompact trampolines.
7041         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7042         only in SHmedia64.
7043         (regno_reg_class): Rewrite.
7044         (fp_reg_names): Remove.
7045         (sh_register_names, sh_additional_register_names): New.
7046         (print_operand): Added `u'.  Support SUBREGs in addresses.
7047         Add parentheses around shifted CONSTs.
7048         (output_file_start): Output .mode and .abi directives.
7049         (shiftcosts, addsubcosts, multcosts): Adjust.
7050         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7051         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7052         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7053         bytes, not registers.  Take into account the need for the
7054         SHcompact incoming args trampoline.  Adjust all callers.
7055         (sh_expand_prologue): Take stack_regs into account.  Call
7056         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7057         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7058         stack aligned as per SH5 ABI.
7059         (sh_builtin_saveregs): Support SH5 ABI.
7060         (sh_build_va_list, sh_va_start): Likewise.
7061         (initial_elimination_offset): Take alignment into account.
7062         Compute location of PR according to the SH5 stack frame.
7063         (arith_reg_operand): Reject branch-target registers.
7064         (shmedia_6bit_operand): New.
7065         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7066         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7067         (target_operand): New.
7068         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7069         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7070         SIBCALL_REGS for SHmedia.
7071         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7072         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7073         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7074         (TARGET_SWITCHES): New SH5 flags.
7075         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7076         VALID_REGISTER_P to disable unsupported registers.
7077         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7078         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7079         (FUNCTION_ARG_PADDING): Define.
7080         (FASTEST_ALIGNMENT): Adjust.
7081         (SH_REGISTER_NAMES_INITIALIZER): New.
7082         (sh_register_names): Declare.
7083         (DEBUG_REGISTER_NAMES): Define.
7084         (REGISTER_NAMES): Define based on sh_register_names.
7085         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7086         (sh_additional_register_names): Declare.
7087         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7088         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7089         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7090         (REGISTER_NATURAL_MODE): Define.
7091         (FIRST_PSEUDO_REGISTER): Adjust.
7092         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7093         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7094         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7095         (VECTOR_MODE_SUPPORTED_P): Define.
7096         (REG_CLASS_CONTENTS): Adjust.
7097         (SMALL_REGISTER_CLASSES): Adjust.
7098         (REG_ALLOC_ORDER): Adjust.
7099         (INDEX_REG_CLASS): Adjust.
7100         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7101         (CONST_OK_FOR_LETTER_P): Adjust.
7102         (PREFERRED_RELOAD_CLASS): Adjust.
7103         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7104         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7105         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7106         (FIRST_FP_PARM_REG): Adjust.
7107         (CALL_POPS_ARGS): Define.
7108         (FUNCTION_ARG_REGNO_P): Adjust.
7109         (struct sh_args): New fields.
7110         (GET_SH_ARG_CLASS): Adjust.
7111         (INIT_CUMULATIVE_ARGS): Adjust.
7112         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7113         (FUNCTION_ARG_ADVANCE): Adjust.
7114         (FUNCTION_ARG): Adjust.
7115         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7116         (FUNCTION_ARG_CALLEE_COPIES): Define.
7117         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7118         (STRICT_ARGUMENT_NAMING): Define.
7119         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7120         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7121         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7122         (SETUP_INCOMING_VARARGS): Adjust.
7123         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7124         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7125         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7126         (SUBREG_OK_FOR_INDEX_P): Adjust.
7127         (EXTRA_CONSTRAINT_S): Update.
7128         (EXTRA_CONSTRAINT_T): New.
7129         (EXTRA_CONSTRAINT): Adjust.
7130         (GO_IF_LEGITIMATE_INDEX): Adjust.
7131         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7132         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7133         (MOVE_MAX): Adjust.
7134         (MAX_MOVE_MAX): Define.
7135         (Pmode): Adjust.
7136         (CONST_COSTS): Adjust.
7137         (REGISTER_MOVE_COST): Adjust.
7138         (BRANCH_COST): Adjust.
7139         (TEXT_SECTION_ASM_OP): Adjust.
7140         (DBX_REGISTER_NUMBER): Adjust.
7141         (ASM_OUTPUT_DOUBLE_INT): New.
7142         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7143         (PREDICATE_CODES): Adjust.
7144         (PROMOTE_MODE): Adjust.
7145         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7146         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7147         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7148         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7149         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7150         (TR0_REG, TR1_REG, TR2_REG): New.
7151         (XD0_REG): Renumber.
7152         (UNSPEC_COMPACT_ARGS): New.
7153         (type): Added pt and ptabs.
7154         (length): Default to 4 on SHmedia.  Default pt length to 12
7155         and     20 on SHmedia32 and SHmedia64, respectively.
7156         (pt): New function unit.
7157         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7158         Add whitespace between operands of SHmedia instructions.
7159         (movdicc): Fix.
7160         (adddi3_media, addsi3_media): Adjust constraints.
7161         (subsi3) [SHmedia]: Force operand 1 into a register.
7162         (udivsi3_i1_media, udivsi3_i4_media): New.
7163         (udivsi3): Support SHmedia.
7164         (divsi3_i1_media, divsi3_i4_media): New.
7165         (divsi3): Support SHmedia.
7166         (anddi3, iordi3, xordi3): Adjust constraints.
7167         (zero_extendhidi2, zero_extendqidi2): New.
7168         (extendsidi2, extendhidi2, extendqidi2): New.
7169         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7170         (pop_e, pop_fpul, pop_4): Likewise.
7171         (movsi_media): Support FP and BT registers.
7172         (movsi_media_nofpu): New.  Adjust splits to DImode.
7173         (lduw, ldub): Renamed to zero_extend* above.
7174         (movqi_media): Fix typo.
7175         (movdi_media): Support FP and BT registers.
7176         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7177         (movdi_const_32bit): New.
7178         (shori_media): Require immediate operand.  Use `u' for output.
7179         (movdf_media, movsf_media): Simplified.
7180         (movdf_media_nofpu, movsf_media_nofpu): New.
7181         (movdf, movsf): Adjust
7182         (movv2sf, movv2sf, movv16sf): New.
7183         (beq_media, beq_media_i): Adjust constraints.  Don't use
7184         scratch BT register.
7185         (bne_media, bne_media_i): Likewise.
7186         (bgt_media, bgt_media_i): Likewise.
7187         (bge_media, bge_media_i): Likewise.
7188         (bgtu_media, bgtu_media_i): Likewise.
7189         (bgeu_media, bgeu_media_i): Likewise.
7190         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7191         bunordered): Emit jump insn.  Force operands to registers when
7192         needed.
7193         (jump_media, jump): Simplify.
7194         (call_compact, call_compact_rettramp): New.
7195         (call_value_compact, call_value_compact_rettramp): New.
7196         (call_media, call_value_media): Simplify.
7197         (sibcall_compact, sibcall_media): New.
7198         (call, call_value): Adjust for SHmedia and SHcompact.
7199         (sibcall, sibcall_value, untyped_call): Likewise.
7200         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7201         (indirect_jump): Adjust for SHmedia.
7202         (casesi_jump_media): New.
7203         (nop): Re-enable for SHmedia.
7204         (call_site): Restrict to SH1.
7205         (casesi): Adjust for SHmedia.
7206         (casesi_shift_media, casesi_load_media): New.
7207         (return): Explicitly use PR register.  Call return trampoline
7208         on SHcompact.
7209         (return_i): Explicitly use PR register.
7210         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7211         (return_media): Adjust.
7212         (shcompact_incoming_args): New.
7213         (epilogue): Adjust.
7214         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7215         (movstrsi): Disable on SH5.
7216         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7217         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7218         (subsf3, subsf3_media): Likewise.
7219         (mulsf3, mulsf3_media, mac_media): Likewise.
7220         (divsf3, divsf3_media): Likewise.
7221         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7222         (floatsisf2, fux_truncsfsi2): Likewise.
7223         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7224         constraints.
7225         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7226         (cmpunsf_media, cmpsf): Likewise.
7227         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7228         (abssf2, abssf2_media): Likewise.
7229         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7230         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7231         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7232         (floatsidf2, fix_truncdfsi2): Likewise.
7233         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7234         constraints.
7235         (cmpeqdf_media, cmpgtdf_media): Likewise.
7236         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7237         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7238         (absdf2, absdf2_media): Likewise.
7239         (extendsfdf2, extendsfdf2_media): Likewise.
7240         (truncsfdf2, truncsfdf2_media): Likewise.
7241         * config/sh/sh64.h: New file.
7242         * config/sh/t-sh64: New file.
7243         * config/sh/shmedia.h: New file.
7244         * config/sh/ushmedia.h: New file.
7245         * config/sh/sshmedia.h: New file.
7246         * configure.in: Added sh64-*-elf.
7247         * configure: Rebuilt.
7248         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7249         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7250         (reg_class_from_letter): Use `b' for TARGET_REGS.
7251         (print_operand): Support `%M', `%m', `AND' and
7252         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7253         (andcosts): Adjust for SHmedia.
7254         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7255         Likewise.
7256         (target_reg_operand): New function.
7257         * config/sh/sh-protos.h (target_reg_operand): Declare.
7258         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7259         FP registers on SH5.
7260         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7261         on SH4.
7262         (TARGET_REGISTER_P): New macro.
7263         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7264         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7265         (EXTRA_CONSTRAINT_S): New macro.
7266         (EXTRA_CONSTRAINT): Adjust.
7267         (FLOAT_TYPE_SIZE): Define to 32.
7268         (Pmode): DImode on SHmedia.
7269         (CONST_COSTS): Adjust for SHmedia literals.
7270         (PREDICATE_CODES): Added target_reg_operand.
7271         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7272         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7273         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7274         (cmpdi): Accept SHmedia.
7275         (movdicc_false, movdicc_true): New insns.
7276         (movdicc): New expand.
7277         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7278         no_new_pseudos.
7279         (addsi3_media): Match `S' constraint.
7280         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7281         (negdi2): Expand for SHmedia.
7282         (one_cmpldi2): New expand.
7283         (zero_extendsidi2): Change from expand to insn.
7284         (extendsidi2): Add constraints.
7285         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7286         LD/ST address.  Fix SI immediate loading split.
7287         (movhi_media, movqi_media, lduw, ldub): New insns.
7288         (movhi, movqi): Accept SHmedia.
7289         (shori_media, movdi_media): Relax input constraints.  Split
7290         symbolic constants.
7291         (movdf_media, movsf_media): New insn.  New split to movdi.
7292         (movdf, movsf): Match on SHmedia.
7293         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7294         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7295         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7296         (bunordered): New expand.
7297         (jump_compact): Renamed from `jump'.
7298         (jump_media): New insn.
7299         (jump): New expand.
7300         (call_media, call_value_media): New insns.
7301         (call, call_value): Adjust.
7302         (indirect_jump_compact): Renamed from `indirect_jump'.
7303         (indirect_jump_media): New insn.
7304         (indirect_jump): New expand.
7305         (untyped_call, return): Accept SHmedia.
7306         (return_media): New insn.
7307         (prologue, epilogue, blockage): Accept SHmedia.
7308         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7309         (sunordered): New expand.
7310         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7311         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7312         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7313         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7314         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7315         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7316         abssf2_media): New insns.
7317         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7318         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7319         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7320         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7321         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7322         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7323         absdf2_media): New insns.
7324         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7325         (extendsfdf2_media, truncdfsf2_media): New insns.
7326         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7327         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7328         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7329         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7330         * config/sh/sh.md (adddi3): New expand.
7331         (adddi3_media, adddi3z_media): New insns.
7332         (adddi3_compact): Renamed from adddi3.
7333         (addsi3_media): Use add.l r63 to add constant zero.
7334         (subdi3): New expand.
7335         (subdi3_media): New insn.
7336         (subdi3_compact): Renamed from subdi3.
7337         (mulsidi3): New expand.
7338         (mulsidi3_media): New insn.
7339         (mulsidi3_compact): Renamed from mulsidi3.
7340         (umulsidi3): New expand.
7341         (umulsidi3_media): New insn.
7342         (umulsidi3_compact): Renamed from umulsidi3.
7343         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7344         (ashlsi3, ashrsi3, lshrsi3): Use them.
7345         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7346         (ashldi3, ashrdi3, lshrdi3): Use them.
7347         (zero_extendsidi2): New expand.
7348         (extendsidi2): New insn.
7349         (movsi_media): New insn.  Split to movdi to load constants.
7350         (movsi): Enable for shmedia.
7351         (movdi_media): New insn.  Use shori_media to load wide constants.
7352         (short_media): New insn.
7353         (movdi): Enable for shmedia.
7354         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7355         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7356         (SUBTARGET_CPP_SPEC): Added `!m5'.
7357         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7358         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7359         to all other SH variants.
7360         (TARGET_DEFAULT): Set to SH1_BIT.
7361         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7362         (BITS_PER_WORD): Raise to 64 on shmedia.
7363         (MAX_BITS_PER_WORD): Change to 64.
7364         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7365         (INT_TYPE_SIZE): Keep as 32.
7366         (UNITS_PER_WORD): Raise to 8 on shmedia.
7367         (MIN_UNITS_PER_WORD): Keep as 4.
7368         (POINTER_SIZE): Raise to 64 on shmedia.
7369         (CONST_OK_FOR_J): New macro.
7370         (CONST_OK_FOR_LETTER_P): Use it.
7371         (processor_type): Add PROCESSOR_SH5.
7372         * config/sh/sh.md: Conditionalize all expands, insns and
7373         splits to TARGET_SH1.
7374         (cpu): Added sh5.
7375         (addsi3_compact): Renamed from...
7376         (addsi3): Now an expand.
7377         (addsi3_media, subsi3_media): New insns.
7378         (subsi3): Don't negate constants with SHmedia.
7379
7380         * hooks.c: New file.
7381         * hooks.h: New file.
7382         * Makefile.in (HOOKS_H): New.
7383         (TARGET_DEF_H): Added $(HOOKS_H).
7384         (OBJS): Added hooks.o.
7385         (cfgcleanup.o, bb-reorder.o): Added target.h.
7386         (hooks.o): Added dependencies.
7387         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7388         (TARGET_INITIALIZER): this.
7389         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7390         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7391         * bb-reorder.c: Include target.h.
7392         (reorder_basic_blocks): Skip if cannot modify jumps.
7393         * cfgcleanup.c: Include target.h.
7394         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7395
7396 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7397
7398         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7399         Protect jump delay slot instructions with .set noreorder and
7400         .set nomacro.
7401
7402 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7403
7404         * config/mips/mips.md (casesi_internal_di): Calculate
7405         the index into the target offset table correctly.
7406
7407 2002-02-08  Richard Henderson  <rth@redhat.com>
7408
7409         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7410         * final.c (output_addr_const): Accept and discard SUBREG.
7411         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7412         mark them unknown instead.
7413         (simplify_subtraction): Handle RTX_UNKNOWN.
7414         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7415
7416 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7417
7418         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7419
7420 2002-02-08  Richard Henderson  <rth@redhat.com>
7421
7422         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7423
7424 2002-02-08  Andreas Jaeger  <aj@suse.de>
7425
7426         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7427         * config/i386/t-linux64: New file.
7428
7429 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7430
7431         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7432         * c-parse.in (compstmt): Clear last_expr_type.
7433
7434 2002-02-07  Richard Henderson  <rth@redhat.com>
7435
7436         * loop.c (strength_reduce): Sink final_value when not
7437         eliminating a biv.
7438
7439 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7440
7441         * config/sparc/freebsd.h: Fix mismatched spec {.
7442
7443 2002-02-07  Richard Henderson  <rth@redhat.com>
7444
7445         * cfgrtl.c: Include recog.h and insn-config.h.
7446         (keep_with_call_p): Fix general_operand invocation.
7447         * Makefile.in (cfgrtl.o): Update dependencies.
7448
7449 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7450
7451         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7452         comment.  Accept HImode only if TARGET_H8300.
7453
7454 2002-02-07  Eric Christopher  <echristo@redhat.com>
7455
7456         * config/mips/crtn.asm: Cleanup #ifdefs.
7457
7458 2002-02-07  Eric Christopher  <echristo@redhat.com>
7459
7460         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7461         register 7 as RA instead of $31.
7462         * config/mips/crtn.asm: Ditto.
7463         * config/mips/mips.c (mips_move_2words): Add case for
7464         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7465         (compute_frame_size): Fix typo.
7466         (save_restore_insns): Ditto.  Make documentation about using
7467         register $7 as return register more precise.
7468         (mips_expand_epilogue): Fix comment. Add code to work around not
7469         being able to add to the stack pointer directly.
7470         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7471         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7472         epilogue.
7473
7474 2002-02-07  Tom Rix  <trix@redhat.com>
7475
7476         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7477         immediates in ldu and stdu DS opcode field.
7478         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7479         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7480         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7481
7482 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7483
7484         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7485         offset for stack bias.
7486
7487 2002-02-07  H.J. Lu <hjl@gnu.org>
7488
7489         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7490
7491 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7492
7493         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7494
7495 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7496
7497         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7498         * i386.c (x86_order_regs_for_local_alloc): New global function.
7499         * i386.h (REG_ALLOC_ORDER): CLeanup.
7500         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7501
7502 2002-02-07  Richard Henderson  <rth@redhat.com>
7503
7504         PR optimization/2463
7505         * alias.c (find_base_value): Recall base values for fixed hard regs.
7506         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7507
7508 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7509
7510         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7511         length.
7512
7513 2002-02-06  Richard Henderson  <rth@redhat.com>
7514
7515         PR c/5609
7516         * stmt.c (resolve_operand_name_1): Take more care with mixed
7517         named and unnamed operands.
7518
7519 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7520             Jan Hubicka  <jh@suse.cz>
7521
7522         * loop.c (remove_constant_addition): Avoid clobbering a shared
7523         CONST expression.
7524
7525 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7526
7527         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7528         * config/s390/t-linux64: New file.
7529         * config/s390/libgcc-glibc.ver: New file.
7530
7531 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7532
7533         * config/s390/linux64.h: Delete file.
7534         * config/s390/s390x.h: New file.
7535         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7536         as target header file.
7537         * config/s390/linux.h (TARGET_VERSION): Define depending on
7538         DEFAULT_TARGET_64BIT.
7539         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7540         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7541         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7542         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7543         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7544         (EXTRA_SPEC): New define.
7545         * config/s390/s390.h (TARGET_VERSION): Define depending on
7546         DEFAULT_TARGET_64BIT.
7547         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7548
7549 2002-02-06  Jason Merrill  <jason@redhat.com>
7550
7551         * c-decl.c (finish_function): Warn about a non-void function with
7552         no return statement and no abnormal exit.
7553         (current_function_returns_abnormally): New variable.
7554         (start_function): Clear it.
7555         (struct c_language_function): Add returns_abnormally.
7556         (push_c_function_context): Save it.
7557         (pop_c_function_context): Restore it.
7558         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7559         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7560         an explicit return type.
7561         * c-tree.h: Declare current_function_returns_abnormally.
7562         (C_FUNCTION_IMPLICIT_INT): New macro.
7563         * c-typeck.c (build_function_call): Set it.
7564         (c_expand_return): Set current_function_returns_value even if the
7565         value is erroneous.
7566
7567 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7568
7569         PR c/5420:
7570         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7571         unsafe for reevaluation.
7572
7573 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7574
7575         PR c/5482:
7576         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7577         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7578
7579 2002-02-06  Richard Henderson  <rth@redhat.com>
7580
7581         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7582         be a general_operand.  Dest for function value must be a pseudo.
7583
7584 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7585
7586         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7587         as SYMBOL_REFs from the constant pool.
7588
7589 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7590
7591         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7592         passed by invisible reference.
7593
7594 2002-02-05  Richard Henderson  <rth@redhat.com>
7595
7596         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7597
7598 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7599
7600         Implement using "base addresses" in insn operands as default.
7601         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7602         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7603         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7604         used to read the rtx value.
7605         (mmix_target_asm_function_epilogue): Fix spacing.
7606         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7607         (mmix_legitimate_address): Ditto.
7608         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7609         should be loaded with a GETA insn.  Don't allocate needless extra
7610         char for nul termination and fix misleading comment.
7611         (mmix_print_operand_address): Handle constants if
7612         TARGET_BASE_ADDRESSES.
7613         (mmix_output_register_setting): Use base addressing if
7614         TARGET_BASE_ADDRESSES and the number of insns is 3.
7615         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7616         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7617         to use R as constraint, add LDA to match s.
7618         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7619         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7620         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7621         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7622         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7623         order with other fixed registers.
7624         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7625         other parameter/call-clobbered registers.
7626         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7627         -mbase-addresses, -mno-base-addresses.
7628         (MMIX Options): Ditto.
7629
7630 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7631
7632         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7633
7634 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7635
7636         * config/rs6000/altivec.h: Change elem to _S_elem.
7637
7638 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7639
7640         * config/netbsd.h (WCHAR_TYPE): Define.
7641         (WCHAR_TYPE_SIZE): Ditto.
7642         (WINT_TYPE): Ditto.
7643         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7644         (WCHAR_UNSIGNED): Ditto.
7645         (WCHAR_TYPE_SIZE): Ditto.
7646         (WINT_TYPE): Ditto.
7647         * config/arm/netbsd.h: Likewise.
7648         * config/i386/netbsd-elf.h: Likewise.
7649         * config/i386/netbsd.h: Likewise.
7650         * config/m68k/netbsd-elf.h: Likewise.
7651         * config/m68k/netbsd.h: Likewise.
7652         * config/ns32k/netbsd.h: Likewise.
7653         * config/sparc/netbsd.h: Likewise.
7654         * config/vax/netbsd.: Likewise.
7655
7656 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7657
7658         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7659         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7660         (TARGET_INITIALIZER): this.
7661         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7662         (BITFIELD_NBYTES_LIMITED): Markup fix.
7663         * tree.h (default_ms_bitfield_layout_p): Declare.
7664         (record_layout_info): Added prev_field.
7665         * tree.c (default_ms_bitfield_layout_p): New fn.
7666         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7667         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7668         * stor-layout.c: Include target.h.
7669         (start_record_layout): Initialize prev_field.
7670         (place_field): Handle MS bit-field layout, and disregard
7671         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7672         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7673         * Makefile.in (stor-layout.o): Adjust dependencies.
7674
7675 2002-02-05  Jason Merrill  <jason@redhat.com>
7676
7677         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7678
7679 2002-02-05  Andreas Jaeger  <aj@suse.de>
7680
7681         * crtstuff.c: Fix comments.
7682
7683 2002-02-05  Richard Henderson  <rth@redhat.com>
7684
7685         PR fortran/3393
7686         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7687         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7688
7689         PR fortran/3392
7690         * config/mips/mips.c (function_arg): Handle TImode.
7691         (function_arg_advance): Likewise.
7692
7693 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7694
7695         * config/rs6000/altivec.h (vec_step_help): Rename to
7696         __vec_step_help.
7697
7698 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7699
7700         * config/rs6000/altivec.h: Fix typos.
7701
7702 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7703
7704         * config/arm/netbsd.h: Correct a comment.
7705
7706 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7707
7708         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7709         building void typed builtins.
7710
7711         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7712         (vec_step): Implement for C++.
7713
7714 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7715
7716         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7717
7718 2002-02-04  Richard Henderson  <rth@redhat.com>
7719
7720         * combine.c (nonzero_bits): Re-introduce special case for
7721         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7722
7723 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7724
7725         * doc/extend.texi: Warn about unsupported usage of altivec
7726         builtins.
7727
7728         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7729         (altivec_predicate_*): New.
7730
7731         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7732         Add C++ version of vec_*() functions.
7733
7734         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7735         (bdesc_2arg): Remove altivec predicates.
7736         (altivec_expand_builtin): Handle predicates.
7737         (altivec_init_builtins): Handle predicates.
7738         (altivec_expand_predicate_builtin): New.
7739
7740 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7741
7742         * pa.c (DO_FRAME_NOTES): Move forward.
7743         (store_reg): Revise handling of frame notes.
7744         (load_reg): Likewise.
7745         (set_reg_plus_d): Likewise.
7746         (hppa_expand_prologue): Likewise.
7747         (hppa_expand_epilogue): Likewise.
7748
7749 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7750
7751         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7752
7753 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7754
7755         PR c/4475, c++/3780:
7756         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7757         * c-common.h (SWITCH_TYPE): Define.
7758         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7759         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7760         Rename spareness variable to sparseness.
7761         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7762         if non-NULL instead of TREE_TYPE (orig_index).
7763         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7764         (expand_end_case): Define using expand_end_case_type.
7765         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7766         to expand_end_case_type.
7767         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7768
7769 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7770
7771         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7772         (BIGGEST_ALIGNMENT): Change to 128.
7773
7774 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7775
7776         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7777
7778 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7779
7780         * pa.md (call_internal_reg_64bit): Remove unused variable.
7781
7782 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7783
7784         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7785         field.
7786         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7787         * config/arm/arm.c (current_function_anonymous_args): Delete,
7788         replace uses with cfun->machine->uses_anonymous_args.
7789         (arm_reorg): Do not reset uses_anonymous_args.
7790
7791         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7792         any geenral register.
7793
7794 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7795
7796         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7797         the entry block.
7798
7799 2002-02-04  Richard Henderson  <rth@redhat.com>
7800
7801         * combine.c (force_to_mode): Remove STACK_BIAS code.
7802         (nonzero_bits): Likewise.  Replace sp/fp special case with
7803         REGNO_POINTER_ALIGN.
7804
7805         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7806         (HARD_FRAME_POINTER_REGNUM): New.
7807         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7808         (FIXED_REGS, CALL_USED_REGS): Update.
7809         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7810         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7811         (HARD_REGNO_NREGS): Update for SFP.
7812         (STACK_POINTER_OFFSET): Include bias here ...
7813         (FIRST_PARM_OFFSET): ... not here.
7814         (STACK_BIAS): Remove.
7815         (INIT_EXPANDERS): New.
7816         (STARTING_FRAME_OFFSET): Do not include bias.
7817         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7818         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7819         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7820         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7821         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7822         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7823         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7824         (MUST_SAVE_REGISTER): Likewise.
7825         (sparc_flat_function_prologue): Likewise.
7826         (sparc_flat_function_epilogue): Likewise.
7827         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7828         (sparc_init_modes): SFP is GENERAL_REGS.
7829         (sparc_builtin_saveregs): SFP does not have bias applied.
7830
7831 2002-02-04  Richard Henderson  <rth@redhat.com>
7832
7833         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7834         current_function_is_thunk.
7835         (alpha_sa_mask): Distinguish between current_function_is_thunk
7836         called from ASM_OUTPUT_MI_THUNK and not.
7837         (alpha_does_function_need_gp): Thunks always need gp.
7838         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7839         (alpha_output_mi_thunk_osf): New.
7840         * config/alpha/alpha-protos.h: Update.
7841         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7842
7843 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7844
7845         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7846         function types, not when they're taken away.
7847
7848 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7849
7850         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7851         CODE_LABEL and jump table when replacing a table jump with a
7852         simple jump.
7853
7854 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7855
7856         * config/s390/s390-protos.h (legitimize_la_operand,
7857         s390_secondary_input_reload_class, s390_plus_operand,
7858         s390_expand_plus_operand): Add prototypes.
7859
7860         config/s390/s390.c (s390_secondary_input_reload_class,
7861         s390_plus_operand, s390_expand_plus_operand): New functions.
7862
7863         (struct s390_address): New member 'pointer'.
7864         (s390_decompose_address): Compute it.
7865         (legitimate_la_operand_p): Use it.
7866         (legitimize_la_operand): New function.
7867         (movti, movdi, movdf splitters): Call it.
7868
7869         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7870         (PREDICATE_CODES): Add s390_plus_operand.
7871
7872         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7873         (la_ccclobber): Allow GENERAL_REGS as output operand.
7874
7875         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7876         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7877         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7878
7879 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7880
7881         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7882         register names for regular asm () construct.
7883
7884 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7885
7886         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7887         registers.
7888
7889 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7890
7891         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7892         pat for recog.
7893
7894 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7895
7896         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7897         constant pool to be identical by string address and index.
7898
7899 2002-02-04  Anthony Green  <green@redhat.com>
7900
7901         * output.h (SECTION_OVERRIDE): Define.
7902         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7903
7904 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7905
7906         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7907         by existing arm*-*-netbsd* (a.out) target.
7908         (ns32k-*-netbsdelf*): Likewise.
7909         (sparc-*-netbsdelf*): Likewise.
7910         (vax-*-netbsdelf*): Likewise.
7911
7912 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7913
7914         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7915         headers and libobjc headers.
7916
7917 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7918
7919         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7920         (_mingw.h): Remove duplicate include.
7921
7922 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7923
7924         * config.gcc: Set cpu_type to m68k for 68010, as well.
7925         (m68010-*-netbsdelf*): New...
7926         (m68k*-*-netbsdelf*): ...targets.
7927         * config/m68k/netbsd-elf.h: New file.
7928
7929 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7930
7931         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7932
7933 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7934
7935         * config/h8300/h8300.c (h8_push_ops): Move inside
7936         h8300_init_once.
7937         (h8_pop_ops): Likewise.
7938         (h8_move_ops): Likewise.
7939
7940 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7941
7942         * config/h8300/h8300.c (os_task): Make it static.
7943         (monitor): Likewise.
7944         (pragma_saveall): Likewise.
7945
7946 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7947
7948         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7949         constant is a valid sign-extension for Pmode.
7950
7951 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7952
7953         * config/h8300/h8300.c: Fix formatting.
7954
7955 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7956
7957         * config/h8300/h8300.md: Fix formatting.
7958
7959 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7960
7961         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7962         predicates of operands[1].  Split the patterns for each
7963         processor variant.
7964
7965 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7966
7967         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7968         of operands[1] to register_operand.
7969
7970 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7971
7972         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7973         * cpphash.c (_cpp_init_hashtable): Similarly.
7974         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7975         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7976         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7977         (cpp_handle_option): Handle the new options.
7978         * cpplex.c (cpp_interpret_charconst): Use new flag.
7979         * cpplib.h (struct cpp_options): New member signed_char.
7980         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7981         (cpp_options): Handle -fsigned-char and -funsigned-char.
7982         (static_specs): Remove signed_char_spec.
7983         (do_spec1): Don't handle %c.
7984         * system.h: Poison SIGNED_CHAR_SPEC.
7985         * tradcif.y (yylex): Use flag_signed_char.
7986         * tradcpp.h (flag_signed_char): New.
7987         * tradcpp.c (flag_signed_char): New.
7988         (main): Handle new command-line options.
7989         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7990 config:
7991         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7992         * avr/avr.h: Remove old comments.
7993         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7994         (CC1_SPEC): Pass -fsigned-char if -mic*.
7995         (SIGNED_CHAR_SPEC): Remove.
7996 doc:
7997         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7998
7999 2002-02-01  Eric Christopher  <echristo@redhat.com>
8000
8001         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8002         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8003         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8004         (ASM_OUTPUT_REG_POP): Ditto.
8005
8006 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8007
8008         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8009         patch.
8010
8011 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8012
8013         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8014
8015 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8016
8017         PR c/5304:
8018         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8019         unconditionally.
8020
8021 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8022
8023         * cfganal.c: Include tm_p.h.
8024         (keep_with_call_p): Fix the test that determines if a register holds
8025         the return value of a call.
8026
8027 2002-02-01  DJ Delorie  <dj@redhat.com>
8028
8029         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8030         we are given conflicting registers, switch to the other one we
8031         had allocated for us.
8032         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8033         as TImode so we know when the "other" register is available.
8034
8035 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8036
8037         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8038         sparc/sparc_bi.h.
8039
8040 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8041
8042         * cfganal.c (keep_with_call_p): New function.
8043         (flow_call_edges_add): Prevent splitting a block between a call and
8044         a single-set instruction that should be kept in the same block.
8045
8046 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8047
8048         * doc/install.texi (avr): Update outdated URL.
8049
8050 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8051
8052         * config/stormy16/stormy16.md (pushqi): New.
8053         (popqi): New.
8054         (pushhi): New.
8055         (pophi): New.
8056         (movhi): Remove stack operands.
8057         (movqi): Likewise.
8058         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8059         nonimmediate_nonstack_operand.
8060         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8061         New.
8062         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8063         New.
8064
8065 2002-01-31  Jason Merrill  <jason@redhat.com>
8066
8067         * Makefile.in (c-parse.c): Handle .output file.
8068         * objc/Make-lang.in (objc-parse.c): Likewise.
8069
8070 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8071
8072         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8073         the -me[lb] option is given.  Don't output the default flag
8074         twice.
8075
8076 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8077
8078         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8079         the primary source file; this has not been done yet.
8080         * c-decl.c (c_expand_body): Reset input_filename from
8081         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8082
8083 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8084
8085         * rtlanal.c (subreg_regno_offset): Do not use
8086         SUBREG_REGNO_OFFSET.
8087         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8088         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8089
8090 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8091
8092         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8093         version rather than GNATS version in --version output.
8094
8095 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8096
8097         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8098         when copying back from a temporary.
8099
8100 2002-01-30  Richard Henderson  <rth@redhat.com>
8101
8102         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8103         and new_dest are the same.
8104
8105 2002-01-30  Richard Henderson  <rth@redhat.com>
8106
8107         PR opt/5076
8108         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8109         * rtl.c (note_insn_name): Update.
8110         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8111         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8112         to perform loop rotation.
8113         (expand_exit_loop_top_cond): New.
8114         * tree.h (expand_exit_loop_top_cond): Declare it.
8115         * c-semantics.c (genrtl_while_stmt): Use it.
8116         (genrtl_for_stmt): Likewise.
8117
8118 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8119
8120         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8121         arguments to 64-bit boundaries on 64-bit ABIs.
8122
8123 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8124
8125         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8126
8127 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8128
8129         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8130         invalid type.
8131
8132 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8133
8134         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8135         * config/sparc/sparc_bi.h: Remove file.
8136         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8137
8138 2002-01-30  Richard Henderson  <rth@redhat.com>
8139
8140         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8141
8142 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8143
8144         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8145
8146 2002-01-30  Jason Merrill  <jason@redhat.com>
8147
8148         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8149         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8150         (reg_save): Use DW_CFA_offset_extended_sf instead.
8151
8152         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8153
8154 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8155
8156         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8157         in cselib_lookup.
8158
8159 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8160
8161         * rs6000.md ("*call_value_local32"): Remove constraints.
8162         ("*call_value_local64"): Same.
8163         ("*call_value_indirect_nonlocal_aix32"): Same.
8164         ("*call_value_nonlocal_aix32"): Same.
8165         ("*call_value_indirect_nonlocal_aix64"): Same.
8166         ("*call_value_nonlocal_aix64"): Same.
8167         ("*call_value_nonlocal_sysv"): Same.
8168
8169 2002-01-29  Richard Henderson  <rth@redhat.com>
8170
8171         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8172
8173 2002-01-29  Richard Henderson  <rth@redhat.com>
8174
8175         * expr.c (force_operand): Ignore flag_pic for detecting pic
8176         address loads.
8177         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8178         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8179         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8180         instead of open-coded loop.
8181         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8182         be fixed when in use.
8183
8184 2002-01-29  Richard Henderson  <rth@redhat.com>
8185
8186         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8187         * sched-rgn.c (propagate_deps): Update them.
8188         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8189         clobbers list when either gets too long.
8190
8191 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8192
8193         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8194         and INDEX_REGS the same as GENERAL_REGS.
8195         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8196
8197 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8198
8199         * tree.c (build_nonstandard_integer_type): Correct prototype.
8200
8201 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8202
8203         * config/s390/s390.md (movstrsico, movstrdix_64,
8204         movstrsix_31): Remove, replace by ...
8205         (movstrdi_short, movstrsi_short, movstrdi_long,
8206         movstrsi_long): ... these.  New.
8207         (movstrdi, movstrsi): Adapt.
8208
8209         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8210         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8211         Remove unnecessary CC clobber.
8212         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8213         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8214
8215         (divmoddi4): Don't partially initialize TImode register.
8216
8217 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8218
8219         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8220
8221 2002-01-29  Richard Henderson  <rth@redhat.com>
8222
8223         * flow.c (print_rtl_and_abort): Remove.
8224         (print_rtl_and_abort_fcn): Remove.
8225         (verify_local_live_at_start): Use dump_bb instead.
8226         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8227         (verify_wide_reg_1): Return 2 on mode test failure.
8228
8229 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8230
8231         PR c/3325, c/3326, c/2511, c/3347
8232         * c-decl.c (enum_decl_context): Remove BITFIELD.
8233         (grokdeclarator): Take bitfield width as an input.
8234         Ensure bitfields are given the correct type.  Perform
8235         bitfield width validation with build_bitfield_integer_type
8236         rather than waiting for finish_struct.
8237         (grok_typename, grok_typename_in_parm_context, start_decl,
8238         push_parmdecl, grokfield, start_function): Update calls to
8239         grokdeclarator.
8240         (build_bitfield_integer_type): New function.
8241         (finish_struct): Move bitfield validation to grokdeclarator
8242         and build_bitfield_integer_type.
8243         * tree.c (build_nonstandard_integer_type): New function.
8244         * tree.h (build_nonstandard_integer_type): New prototype.
8245 objc:
8246         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8247
8248 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8249
8250         PR other/1502:
8251         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8252         don't ignore unrecognized -W* options.
8253         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8254         * cpplib.h (cpp_handle_option): Adjust prototype.
8255         * c-decl.c (c_decode_options): Pass 0 as last argument to
8256         cpp_handle_option.
8257
8258         PR c/2896:
8259         * gcc.c (cpp_unique_options): Split from cpp_options.
8260         (cpp_options): Source cpp_unique_options.
8261         (default_compilers): Use cpp_unique_options instead of cpp_options
8262         when used together with cc1_options.
8263         (static_specs): Add cpp_unique_options.
8264         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8265         when used together with cc1_options.
8266
8267 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8268
8269         * config/h8300/h8300-protos.h: Update the prototype of
8270         output_a_shift.
8271         * config/h8300/h8300.c (output_a_shift): Remove an unused
8272         argument 'insn'.  Remove redundant code.
8273         * config/h8300/h8300.md: Adust to the new prototype of
8274         output_a_shift.
8275
8276 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8277
8278         * config/h8300/h8300-protos.h: Update the prototypes of
8279         emit_a_rotate and expand_a_rotate.
8280         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8281         first argument to 'enum rtx_code'.
8282         (expand_a_rotate): Likewise.
8283
8284 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8285
8286         * config/h8300/h8300-protos.h: Update the prototype of
8287         output_simode_bld.
8288         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8289         'log2'.
8290         * config/h8300/h8300.md: Adjust to the new prototype.
8291
8292 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8293
8294         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8295         redundant code.
8296
8297 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8298
8299         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8300         is a fixed register before returning pic_offset_table_rtx.
8301         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8302         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8303
8304 2002-01-28  Jason Merrill  <jason@redhat.com>
8305
8306         * dwarf2.h: Sync with src version.
8307
8308 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8309
8310         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8311         BT_FN_VOID_PTR_VAR.
8312         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8313         * doc/extend.texi (__builtin_prefetch): Update documentation:
8314         first argument is now const void ptr.
8315
8316 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8317
8318         * config/h8300/h8300-protos.h: Remove an unused prototype.
8319
8320 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8321
8322         * toplev.c (lang_independent_init): Round up identifier size.
8323
8324 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8325
8326         * config.gcc: Revert previous change.
8327
8328 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8329
8330         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8331
8332 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8333
8334         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8335         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8336         other non-elf netbsd config frags.
8337         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8338         collect2 will does that.
8339         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8340         shared-lib frobbing will work.
8341
8342 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8343
8344         * config/h8300/h8300.h: Fix formatting.
8345         * config/h8300/h8300.md: Likewise.
8346
8347 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8348
8349         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8350         the old, removed AAA_standards fix.
8351         * fixinc/fixincl.x: Rebuilt.
8352
8353 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8354
8355         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8356         atexit call in crtbegin, hooked in after call to frame_dummy;
8357         register EH before registering __fini__start.
8358
8359 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8360
8361         * config/rs6000/altivec.h: Remove spurious semicolons.
8362
8363 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8364
8365         * config/h8300/h8300.md: Replace dead bit extraction patterns
8366         with ones that work.
8367
8368 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8369
8370         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8371         if not STRICT_ALIGNMENT.
8372         * rtl.h (MEM_ALIGN): Likewise.
8373
8374 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8375
8376         * doc/invoke.texi (-fdump-translation-unit): Revert this
8377         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8378
8379 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8380
8381         * config/h8300/h8300.md (define_constants): New.
8382         (anonymous patterns) Use defined constants appropriately.
8383
8384 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8385
8386         * config/h8300/h8300.c (function_arg): Remove redundant code.
8387
8388 2002-01-26  Richard Henderson  <rth@redhat.com>
8389
8390         * sched-deps.c (reg_pending_uses_head): New.
8391         (reg_pending_barrier): Rename from reg_pending_sets_all.
8392         (find_insn_list): Don't mark inline.
8393         (find_insn_mem_list): Remove.
8394         (add_dependence_list, add_dependence_list_and_free): New.
8395         (flush_pending_lists): Replace only_write param with separate
8396         for_read and for_write parameters.  Update all callers.  Use
8397         add_dependence_list_and_free.
8398         (sched_analyze_1): Do not add reg dependencies here; just set
8399         the pending bits.  Use add_dependence_list.
8400         (sched_analyze_2): Likewise.
8401         (sched_analyze_insn): Replace schedule_barrier_found with
8402         reg_pending_barrier.  Add all dependencies for pending reg
8403         uses, sets, and clobbers.
8404         (sched_analyze): Don't add reg dependencies for calls, just
8405         set pending bits.  Use regs_invalidated_by_call.  Treat
8406         sched_before_next_call as a normal list, not a fake insn.
8407         (init_deps): No funny init for sched_before_next_call.
8408         (free_deps): Free pending mems lists.  Don't zero reg_last.
8409         (init_deps_global): Init reg_pending_uses.
8410         (finish_deps_global): Free it.
8411         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8412         (find_insn_mem_list): Remove.
8413         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8414         (propagate_deps): Use them.  Zero temp mem lists.
8415
8416 2002-01-26  Richard Henderson  <rth@redhat.com>
8417
8418         * Makefile.in (CRTSTUFF_CFLAGS): New.
8419         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8420         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8421         crtstuff.c instead of alpha assembly version.
8422         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8423         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8424         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8425         (__do_global_dtors_aux): Mark used.
8426         (frame_dummy, __do_global_ctors_aux): Mark used.
8427         (fini_dummy, init_dummy): Remove.
8428
8429         * config/alpha/crtbegin.asm: Remove file.
8430         * config/alpha/crtend.asm: Remove file.
8431         * config/alpha/t-crtbe: Remove file.
8432         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8433         (LINK_EH_SPEC): New.
8434
8435         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8436         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8437         calling constructors.
8438         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8439
8440         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8441         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8442         CRT_END_INIT_DUMMY hack.
8443         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8444         FORCE_{INIT,FINI}_SECTION_ALIGN.
8445
8446         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8447         FORCE_{INIT,FINI}_SECTION_ALIGN.
8448
8449         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8450         invocation sequence.
8451         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8452
8453         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8454         (FORCE_CODE_SECTION_ALIGN): New.
8455
8456 2002-01-26  Richard Henderson  <rth@redhat.com>
8457
8458         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8459
8460 2002-01-26  Richard Henderson  <rth@redhat.com>
8461
8462         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8463         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8464
8465 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8466
8467         * config/h8300/h8300.md: Remove bit extraction patterns that
8468         cannot be triggered.
8469         Restrict each bit extraction pattern to a variant on which the
8470         pattern is tested.
8471
8472 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8473
8474         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8475
8476 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8477
8478         * config/h8300/h8300.md: Remove bit test patterns that cannot
8479         be triggered.
8480         Restrict each bit test pattern to a variant on which the
8481         pattern is tested.
8482
8483 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8484
8485         * builtins.c (expand_builtin_strncat): Remove redundant check for
8486         INTEGER_CST.
8487
8488 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8489
8490         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8491         default setting.
8492         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8493         existing setting.
8494
8495 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8496
8497         * dbxout.c (dbxout_init): Use assemble_name rather than just
8498         stripping off the first character.
8499         (dbxout_source_file): Likewise.
8500
8501 2002-01-25  DJ Delorie  <dj@redhat.com>
8502
8503         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8504         using rtx_equal_p, not by comparing pointers.
8505
8506 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8507
8508         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8509         for PIC_OFFSET_TABLE_REGNUM.
8510         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8511
8512 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8513
8514         * config.gcc (x86_64-*-freebsd*): New target.
8515         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8516         value.
8517         (i[34567]86-*-freebsd*): Don't include svr4.h.
8518         * config/i386/freebsd64.h: New file.
8519
8520 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8521
8522         * config/alpha/x-vms (version): Make static.
8523
8524         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8525         in previous checkin.
8526
8527         * Makefile.in (install-headers-cp): New target.
8528         * config.gcc (alpha-dec-*vms*): Install headers with
8529         install-headers-cp
8530
8531 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8532
8533         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8534         avoid it's copies.
8535
8536 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8537
8538         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8539         of compare_tree_int.
8540         (expand_builtin_strncat): Likewise.
8541         * c-decl.c (finish_struct): Use tree_low_cst.
8542         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8543         * tree.c (compare_tree_int): Likewise.
8544
8545 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8546
8547         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8548         adjustments even if they are implemented by more than two insns.
8549
8550 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8551
8552         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8553         * df.h (struct ref): Kill B.
8554         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8555
8556         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8557         * flow.c (propagate_one_insn): Use it.
8558         (mark_used_regs): Handle NIL.
8559
8560 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8561
8562         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8563         to help folding.
8564
8565 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8566
8567         * rs6000.md (prefetch): Make address V4SI mode so that the address
8568         is restricted to legitimate form for instruction.
8569
8570 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8571
8572         * doc/install.texi (xtensa-*-elf): New target.
8573         (xtensa-*-linux*): New target.
8574         * doc/contrib.texi: Add myself.
8575
8576 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8577
8578         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8579         purpose register to hold an SImode (or smaller) value.
8580
8581 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8582
8583         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8584         registry only.
8585         * crtstuff.c: Likewise.
8586
8587 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8588
8589         * config/h8300/h8300.md (negation patterns): Tighten
8590         predicates to register_operand.
8591
8592 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8593
8594         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8595         mode, not Pmode.
8596
8597         * builtins.c (expand_builtin_prefetch): Same.
8598
8599 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8600
8601         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8602         modes.
8603
8604 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8605
8606         * config/h8300/h8300.c (print_operand): Remove support for
8607         operand character 'A'.
8608         * config/h8300/h8300.md (three anonymous patterns): Replace
8609         operand character 'A' with either 'T' or 'S'.
8610
8611 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8612
8613         * config/h8300/h8300.c (print_operand): Remove support for
8614         operand character 'U'.
8615
8616 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8617
8618         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8619
8620 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8621
8622         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8623         values to be assigned to the stack pointer.
8624
8625 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8626
8627         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8628         to const_double needs to be done right for big-endian systems.
8629
8630 2002-01-24  Jason Merrill  <jason@redhat.com>
8631
8632         PR c++/2432
8633         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8634         to can_throw_internal.
8635
8636 2002-01-23  Richard Henderson  <rth@redhat.com>
8637
8638         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8639         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8640
8641 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8642
8643         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8644         (symGOT2reg): Use them, then set as GOT value as unchanging.
8645         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8646         as a temporary, if possible.
8647         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8648         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8649
8650 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8651
8652         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8653         accept to accept 0x80 as operands[2].
8654
8655 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8656
8657         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8658
8659 2002-01-23  Richard Henderson  <rth@redhat.com>
8660
8661         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8662
8663 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8664
8665         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8666         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8667         an attribute.
8668
8669 2002-01-23  Richard Henderson  <rth@redhat.com>
8670
8671         * expr.c (move_by_pieces_1): Extend size before negation.
8672
8673         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8674         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8675         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8676         * config/m68k/t-m68kelf: Likewise.
8677
8678 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8679
8680         * config/xtensa/elf.h: New file.
8681         * config/xtensa/lib1funcs.asm: New file.
8682         * config/xtensa/lib2funcs.S: New file.
8683         * config/xtensa/linux.h: New file.
8684         * config/xtensa/t-xtensa: New file.
8685         * config/xtensa/xtensa-config.h: New file.
8686         * config/xtensa/xtensa-protos.h: New file.
8687         * config/xtensa/xtensa.c: New file.
8688         * config/xtensa/xtensa.h: New file.
8689         * config/xtensa/xtensa.md: New file.
8690         * config.gcc (xtensa-*-elf*): New target.
8691         (xtensa-*-linux*): New target.
8692         * cse.c (canon_hash): Compare rtx pointers instead of register
8693         numbers.  This is required for the Xtensa port.
8694         * integrate.c (copy_insn_list): Handle case where the static
8695         chain is in memory and the memory address has to be copied to
8696         a register.
8697         * doc/invoke.texi (Option Summary): Add Xtensa options.
8698         (Xtensa Options): New node.
8699         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8700
8701 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8702
8703         * diagnostic.c (internal_error): Do ICE suppression only
8704         when ENABLE_CHECKING is not defined.
8705
8706         * c-typeck.c (require_complete_type): Return error_mark_node
8707         if type is error_mark_node.
8708
8709 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8710
8711         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8712         -Os and issue a warning.
8713
8714 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8715
8716         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8717         current (lack of) need for host configuration by hand.
8718
8719         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8720         references.  Documentation of some target macros moved from
8721         hostconfig.texi to tm.texi.
8722
8723 2002-01-23  Will Cohen  <wcohen@redhat.com>
8724
8725         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8726         defined.
8727
8728 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8729
8730         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8731         operand[3].
8732
8733 2002-01-23  Jason Merrill  <jason@redhat.com>
8734
8735         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8736
8737         * function.c (assign_parms): Don't put args of inline functions
8738         into registers when not optimizing.
8739
8740 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8741
8742         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8743         (prologue_use): New pattern.
8744         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8745         preference to gen_rtx_USE.
8746         (thumb_expand_prologue): Use gen_prologue_use in preference to
8747         gen_rtx_USE.
8748         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8749         gen_rtx_USE.
8750
8751 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8752
8753         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8754
8755 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8756
8757         PR c/3504
8758         * doc/extend.texi: Correct documentation of __alignof__.
8759
8760 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8761
8762         * params.h: Rename arguments of DEFPARAM so that it will be
8763         recognized as a translation keyword.
8764
8765 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8766
8767         * extend.texi: Document altivec functions.
8768         Fix N-bit adjectives in X86 builtin documentation.
8769
8770 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8771
8772         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8773         auto_inc_dec values.
8774
8775 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8776
8777         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8778         after backslash.
8779         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8780
8781 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8782
8783         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8784
8785 2002-01-22  Richard Henderson  <rth@redhat.com>
8786
8787         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8788         copy_insn not copy_rtx.
8789
8790 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8791
8792         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8793         "nonzero" as that might add "1" bits.  Ensure "constop" is
8794         properly sign extened.
8795         (force_to_mode): Tweak for sign extended constop.
8796
8797 2002-01-22  Richard Henderson  <rth@redhat.com>
8798
8799         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8800         for_each_rtx instead of assuming we're already looking at the MEM.
8801         (split_small_symbolic_mem_operand): Likewise.
8802         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8803         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8804
8805 2002-01-22  Richard Henderson  <rth@redhat.com>
8806
8807         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8808         sequence number for the literal.
8809         (divmoddi_internal_er): Likewise.
8810
8811 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8812
8813         PR java/4972
8814         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8815         in LIBICONV variable.
8816         * configure: Regenerated.
8817
8818 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8819
8820         * dependence.c (build_def_use): Remove array_idx.
8821
8822         * dwarfout.c (last_filename): Remove.
8823         (output_compile_unit_die): Remove last_filename.
8824
8825 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8826             Richard Henderson  <rth@redhat.com>
8827
8828         PR opt/3640
8829         * fold-const.c (fold): Optimize unsigned comparisons against
8830         UINT_MAX (and similar unsigned constants).
8831
8832 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8833
8834         * Makefile.in (loop.o): Depend on OPTABS_H.
8835         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8836         against the predicate.
8837
8838         PR target/5379
8839         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8840         for the address operand.
8841
8842 2002-01-22  Richard Henderson  <rth@redhat.com>
8843
8844         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8845
8846 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8847
8848         PR other/5450
8849         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8850         preprocessor flags.
8851
8852 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8853
8854         * config.gcc (x86_64-*-netbsd*): New target.
8855         * config/i386/netbsd64.h: New file.
8856
8857 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8858
8859         * regrename.c (kill_value): Fix typo.
8860
8861 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8862
8863         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8864
8865         * config/rs6000/rs6000.h: Same.
8866
8867         * function.c (instantiate_virtual_regs): Remove
8868         STARTING_FRAME_PHASE.
8869         (assign_stack_local_1): Same.
8870         Calculate frame phase.
8871
8872 2002-01-22  Nick Clifton  <nickc@redhat.com>
8873
8874         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8875         variable declaration to outer scope in order to simplify
8876         future extensions.
8877         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8878         arm_hard_regno_mode_ok.
8879         * config/arm/arm-protos.h: Add a prototype for
8880         arm_hard_regno_mode_ok.
8881         * config/arm/arm.c (soft_df_operand): Remove now redundant
8882         check for DImode values using IP_REGNUM.
8883         (nonimmediate_soft_df_operand): Remove now redundant check for
8884         DImode values using IP_REGNUM.
8885         (arm_hard_regno_mode_ok): New function. New check: make sure
8886         that DImode values are not stored in IP_REGNUM.
8887
8888         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8889         note with a USE.
8890         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8891
8892 2002-01-22  Jason Merrill  <jason@redhat.com>
8893
8894         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8895         consistency if this COMPOUND_STMT is scoped.
8896
8897 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8898
8899         * predict.c: Fix formatting.
8900         * print-tree.c: Likewise.
8901         * protoize.c: Likewise.
8902         * real.h: Likewise.
8903         * rtl.h: Likewise.
8904         * sbitmap.h: Likewise.
8905         * scan.c: Likewise.
8906         * sched-deps.c: Likewise.
8907         * sched-vis.c: Likewise.
8908         * sdbout.c: Likewise.
8909         * sibcall.c: Likewise.
8910         * ssa.c: Likewise.
8911         * ssa-ccp.c: Likewise.
8912         * ssa-dce.c: Likewise.
8913         * stmt.c: Likewise.
8914         * stor-layout.c: Likewise.
8915         * system.h: Likewise.
8916
8917 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8918
8919         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8920         if fits in bounds of base type.
8921
8922         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8923         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8924         (add_bound_info, default): If can't find a context, make a
8925         SAVE_EXPR.
8926         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8927
8928 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8929
8930         * c-typeck.c (parser_build_binary_op): If result from
8931         build_binary_op is ERROR_MARK just return error_mark_node without
8932         further processing.
8933
8934 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8935
8936         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8937         Split a.out-specific bits into...
8938         * config/netbsd-aout.h: ...this.
8939         * config/netbsd-elf.h: New file.
8940         * config/alpha/netbsd-elf.h: Remove.
8941         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8942         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8943         (STARTFILE_SPEC): Remove redundant definition.
8944         (ENDFILE_SPEC): Likewise.
8945         (LINK_SPEC): Likewise.
8946         (CPP_SPEC): Likewise.
8947         (ASM_SPEC): Likewise.
8948         (LIB_SPEC): Likewise.
8949         (SWITCH_TAKES_ARG): Likewise.
8950         (TARGET_MEM_FUNCTIONS): Likewise.
8951         (CPP_PREDEFINES): Redefine.
8952         (ASM_FINAL_SPEC): Remove redefinition.
8953         (ASM_COMMENT_START): Redefine.
8954         (FUNCTION_PROFILER): Define.
8955         (TARGET_VERSION): Redefine.
8956         Comment and formatting cleanup.
8957         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8958         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8959         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8960         big- or little-endian.
8961         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8962         * config.gcc (*-*-netbsd*): Add definitions common to all
8963         NetBSD configs.
8964         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8965         gnu_ld definitions.  Add netbsd-elf.h to and remove
8966         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8967         tmake_file, and don't lose previous tmake_file contents.
8968         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8969         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8970         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8971         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8972         (mipsel-*-netbsd*): Rename this to...
8973         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8974         mips/little.h to tm_file for mips*el-*.
8975         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8976         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8977         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8978
8979 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8980
8981         * pa-protos.h (reg_before_reload_operand): New function prototype.
8982         * pa.c (reg_before_reload_operand): New function implementation.
8983         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8984         contraints to "*m".
8985
8986 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8987
8988         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8989
8990 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8991
8992         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8993         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8994         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8995         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8996         (ENDFILE_SPEC): Undefine.
8997         (STARTFILE_SPEC): Redefine for PA.
8998
8999 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9000
9001         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9002
9003 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
9004
9005         * config.gcc: Add entries to supported PowerPC --with-cpu
9006         types.
9007
9008 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
9009
9010         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9011         true for 64-bit mode only SSE registers in 32-bit mode.
9012
9013 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9014
9015         * unwind-dw2.c: Fix formatting.
9016         * unwind-dw2-fde.c: Likewise.
9017         * unwind-dw2-fde.h: Likewise.
9018         * unwind-pe.h: Likewise.
9019         * varasm.c: Likewise.
9020         * varray.h: Likewise.
9021
9022 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9023
9024         Remove workaround for register stack overwrite bug in mmix.
9025         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9026         support for TARGET_REG_STACK_FILL_BUG.
9027         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9028         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9029         Delete.
9030         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9031         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9032         -mno-reg-stack-fill-bug-workaround.
9033         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9034         machine member has_call_without_parameters.
9035         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9036         -mreg-stack-fill-bug-workaround and
9037         -mno-reg-stack-fill-bug-workaround.
9038         (MMIX Options): Ditto.
9039
9040 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9041
9042         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9043         as appropriate.
9044         Remove redundant code.
9045
9046 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9047
9048         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9049         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9050         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9051         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9052         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9053         out target macro definitions and non-target-specific comments
9054         mostly taken from old versions of the manual.
9055
9056 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9057
9058         * config/h8300/h8300.h: Fix comment formatting.
9059         * config/ia64/aix.h: Likewise.
9060         * config/ia64/ia64-protos.h: Likewise.
9061         * config/ia64/ia64.c: Likewise.
9062         * config/ia64/ia64.h: Likewise.
9063         * config/ia64/ia64intrin.h: Likewise.
9064         * config/ia64/linux.h: Likewise.
9065         * config/ia64/unwind-aix.c: Likewise.
9066         * config/ia64/unwind-ia64.c: Likewise.
9067
9068 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9069
9070         * config/h8300/h8300.c: Revise comments about shift code.
9071
9072 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9073
9074         * config/h8300/h8300.c (function_arg): Update a comment.
9075
9076 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9077
9078         * config/h8300/h8300.md: Update the comments at the beginning
9079         of the file.
9080
9081 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9082
9083         * config/i370/i370.c: Fix comment formatting.
9084         * config/i370/i370.h: Likewise.
9085         * config/i370/i370.md: Likewise.
9086         * config/i370/linux.h: Likewise.
9087
9088 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9089
9090         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9091
9092         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9093         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9094         in incomplete case.
9095
9096 2002-01-20  Graham Stott  <grahams@redhat.com>
9097
9098         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9099
9100 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9101
9102         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9103
9104 2002-01-19  Tom Rix  <trix@redhat.com>
9105
9106         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9107
9108 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9109
9110         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9111
9112         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9113         STARTING_FRAME_PHASE.
9114         (STARTING_FRAME_PHASE): New.
9115         (instantiate_virtual_regs): Check saneness of
9116         STARTING_FRAME_PHASE.
9117
9118         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9119
9120 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9121
9122         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9123
9124 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9125
9126         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9127         be used for bootstrapping GCC 3.0.
9128
9129 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9130
9131         * config/h8300/h8300.md: Fix an insn length.
9132
9133 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9134
9135         * bitmap.h: Fix comment formatting.
9136         * combine.c: Likewise.
9137         * cppfiles.c: Likewise.
9138         * c-pragma.h: Likewise.
9139         * c-typeck.c: Likewise.
9140         * df.c: Likewise.
9141         * dwarf2out.c: Likewise.
9142         * function.c: Likewise.
9143         * gcc.c: Likewise.
9144         * genattrtab.c: Likewise.
9145         * gthr-win32.h: Likewise.
9146         * haifa-sched.c: Likewise.
9147         * predict.c: Likewise.
9148         * rtlanal.c: Likewise.
9149         * rtl.h: Likewise.
9150         * unwind-dw2-fde.h: Likewise.
9151         * unwind-pe.h: Likewise.
9152         * vmsdbgout.c: Likewise.
9153
9154 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9155
9156         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9157         if type_required and passed decl.
9158
9159 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9160
9161         * config.gcc (cpu_type): Include altivec.h in powerpc
9162         extra_headers.
9163         Same for darwin.
9164
9165         * config/rs6000/altivec.h: New.
9166
9167 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9168
9169         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9170         handling information.
9171         * doc/trouble.texi (Interoperation): Add libstdc++ information
9172         for AIX.
9173         (Misunderstandings): Add template instantiation and static template
9174         member information for AIX.
9175
9176 2002-01-17  Jason Merrill  <jason@redhat.com>
9177
9178         * dbxout.c (dbxout_type): Support const and volatile.
9179
9180         * except.c (add_partial_entry): Remove backwards compatibility code.
9181         (end_protect_partials): Likewise.
9182
9183 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9184
9185         * config/ia64/ia64.md (prologue_use): New.
9186         * config/ia64/ia64.c (ia64_expand_prologue): Use
9187         gen_prologue_use instead of gen_rtx_USE.
9188         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9189         as CODE_FOR_pred_rel_mutex.
9190         (ia64_sched_reorder2): Likewise.
9191
9192 2002-01-16  Eric Christopher  <echristo@redhat.com>
9193
9194         * config/mips/r3900.h: Reformat.
9195         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9196         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9197         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9198         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9199         * config/mips/t-elf: Remove mips3 multilib.
9200
9201 2002-01-16  H.J. Lu <hjl@gnu.org>
9202
9203         * config/mips/linux.h: Include "mips/abi64.h".
9204
9205 2002-01-16  H.J. Lu <hjl@gnu.org>
9206
9207         * config/mips/t-linux: New.
9208
9209         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9210
9211         * config/mips/linux.h: Don't include "gofast.h".
9212         (INIT_SUBTARGET_OPTABS): Removed.
9213
9214 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9215
9216         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9217         output_a_shift.
9218         * config/h8300/h8300.c: Likewise.
9219         * config/h8300/h8300.md: Likewise.
9220
9221 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9222
9223         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9224         spaces after an opcode name.
9225         (pushqi1_h8300hs): Likewise.
9226         (pushhi1_h8300hs): Likewise.
9227
9228 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9229
9230         * doc/extend.texi: Replace "option" with "attribute"
9231         appropriately.
9232
9233 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9234
9235         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9236         (and:DI () (const_int -8)).
9237         (split_small_symbolic_mem_operand): Split
9238         (mem (and:DI () (const_int -8)).
9239
9240 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9241
9242         PR target/5309:
9243         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9244         same way as TYPE_IMUL.
9245         (ultrasparc_sched_reorder): Likewise.
9246         * config/sparc/sparc.md (type): Add comment to update
9247         ultrasparc_sched_reorder when making changes.
9248
9249 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9250
9251         * doc/invoke.texi: Change the dump file name of block
9252         reordering pass from 28.bbro to 29.bbro.
9253         Mention -dk option.
9254
9255 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9256
9257         * i386.md (minsf splitter): Fix pasto.
9258
9259 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9260
9261         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9262         to frame pointer initialisation instruction.
9263         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9264         initialisation instruction.
9265         (soft_df_operand): Do not accept the IP register.
9266         (nonimmediate_soft_df_operand): Do not accept the IP register.
9267
9268 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9269
9270         PR target/5357:
9271         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9272         MASK_V8 being both set.
9273
9274 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9275
9276         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9277         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9278         config/s390/s390.md (call, call_value): Add GOT register to
9279         CALL_INSN_FUNCTION_USAGE where needed.
9280         (call_exp, call_value_exp): New.
9281
9282 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9283
9284         * config/arm/arm.c: General formatting tidy up.
9285
9286 2002-01-16  Graham Stott  <grahams@redhat.com>
9287
9288         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9289         cast and when casting an integer literal to "rtx" pointer.
9290         (expand_call): Likewise.
9291         * flow.c (try_pre_increment): Likewise.
9292         (find_use_as_address): Likewise.
9293         * integrate.c (expand_iline_function): Likewise.
9294         * regmove.c (try_auto_increment): Likewise.
9295
9296 2002-01-16  Graham Stott  <grahams@redhat.com>
9297
9298         * sched-rgn.c (passed): Use sbitmap_free.
9299         (header): Likewise.
9300         (inner): Likewise.
9301         (in_queue): Likewise.
9302         (in_stack): Likewise.
9303
9304 2002-01-15  Eric Christopher  <echristo@redhat.com>
9305
9306         * flow.c (propagate_one_insn): Change to use fatal_insn.
9307
9308 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9309
9310         * expmed.c (extract_fixed_bit_field): Remove unused code.
9311         * system.h: Poison SLOW_ZERO_EXTEND.
9312         * doc/tm.texi: Remove.
9313         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9314         * config/arm/arm.h: Likewise.
9315         * config/avr/avr.h: Likewise.
9316         * config/clipper/clipper.h: Likewise.
9317         * config/convex/convex.h: Likewise.
9318         * config/d30v/d30v.h: Likewise.
9319         * config/dsp16xx/dsp16xx.h: Likewise.
9320         * config/elxsi/elxsi.h: Likewise.
9321         * config/fr30/fr30.h: Likewise.
9322         * config/h8300/h8300.h: Likewise.
9323         * config/i370/i370.h: Likewise.
9324         * config/i386/i386.h: Likewise.
9325         * config/m68k/m68k.h: Likewise.
9326         * config/mips/mips.h: Likewise.
9327         * config/ns32k/ns32k.h: Likewise.
9328         * config/pdp11/pdp11.h: Likewise.
9329         * config/pj/pj.h: Likewise.
9330         * config/s390/s390.h: Likewise.
9331         * config/sh/sh.h: Likewise.
9332         * config/stormy16/stormy16.h: Likewise.
9333         * config/v850/v850.h: Likewise.
9334         * config/vax/vax.h: Likewise.
9335         * config/we32k/we32k.h: Likewise.
9336
9337 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9338
9339         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9340         (altivec_lvsl): Change constraint to b.
9341         (altivec_lvsr): Same.
9342         (altivec_lvebx): Same.
9343         (altivec_lvehx): Same.
9344         (altivec_lvewx): Same.
9345         (altivec_lvxl): Same.
9346         (altivec_lvx): Same.
9347         (altivec_stvx): Add parallel.
9348         (altivec_stvxl): Same.
9349         (altivec_stvehx): Same.
9350         (altivec_stvebx): Same.
9351         (altivec_stvebx): Same.
9352
9353 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9354
9355         * config.gcc: Change altivec.h to altivec-defs.h.
9356
9357         * config/rs6000/altivec.h: Delete.
9358
9359         * config/rs6000/altivec-defs.h: Add.
9360
9361 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9362
9363         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9364         and UMOD modes.
9365
9366         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9367         less than or equal to eight bytes.
9368
9369         * vax.md (andsi3): Remove constraints and change SET destination
9370         operand type to nonimmediate_operand.
9371         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9372         when it is a CONST_INT.
9373
9374 2002-01-15  Jason Merrill  <jason@redhat.com>
9375
9376         * c-common.def (FILE_STMT): New code.
9377         * c-common.c (statement_code_p): It's a statement.
9378         * c-common.h (stmt_tree_s): Add x_last_filename.
9379         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9380         (last_expr_filename): New macro.
9381         * c-semantics.c (begin_stmt_tree): Initialize it.
9382         (add_stmt): If the filename changed, also insert a
9383         FILE_STMT.
9384         (expand_stmt): Handle seeing one.
9385
9386 2002-01-15  Eric Christopher  <echristo@redhat.com>
9387
9388         * flow.c (propagate_one_insn): Add error message and print out
9389         insn for debugging.
9390
9391 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9392
9393         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9394         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9395         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9396         TRAMPOLINE_ALIGNMENT.
9397         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9398         to be in bits.
9399         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9400         PCC_BITFIELD_TYPE_MATTERS.
9401         * config/interix.h (STDC_VALUE): Remove.  Use
9402         STDC_0_IN_SYSTEM_HEADERS.
9403         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9404         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9405         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9406
9407 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9408
9409         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9410         not work on this platform currently.
9411
9412 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9413
9414         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9415         readonly_warning in _().
9416
9417 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9418
9419         * gcc.c (delete_if_ordinary): Backout previous change.
9420
9421 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9422
9423         * config/h8300/h8300.c (print_operand): Remove support for
9424         unused operand characters.
9425
9426         * read-rtl.c: Fix formatting.
9427         * real.c: Likewise.
9428         * recog.c: Likewise.
9429         * regclass.c: Likewise.
9430         * regmove.c: Likewise.
9431         * reg-stack.c: Likewise.
9432         * reload1.c: Likewise.
9433         * rtlanal.c: Likewise.
9434
9435 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9436
9437         * config/i386/i386.c: Fix formatting.
9438
9439 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9440
9441         * c-typeck.c (process_init_element): Don't save_expr
9442         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9443
9444 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9445
9446         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9447         emit optional traceback table if optimize_size or TARGET_ELF.
9448         * config/rs6000/rs6000.md (prefetch): New.
9449
9450 2002-01-15  Andreas Jaeger  <aj@suse.de>
9451
9452         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9453
9454 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9455
9456         * mips-tfile.c: Fix formatting.
9457
9458 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9459
9460         * unroll.c (final_reg_note_copy): Fix previous commit.
9461
9462 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9463
9464         * config/h8300/h8300-protos.h: Remove the prototype for
9465         eq_operator.
9466         * config/h8300/h8300.c (eq_operator): Remove.
9467
9468 2002-01-14  Richard Henderson  <rth@redhat.com>
9469
9470         * config/i386/i386.md (prefetch): Tidy.
9471         (prefetch_3dnow): Fix locality operand.
9472
9473 2002-01-14  Richard Henderson  <rth@redhat.com>
9474
9475         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9476         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9477
9478 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9479
9480         * reload1.c (reload_combine): Pass reg_sum replacement through
9481         copy_rtx in loop performing multiple changes.
9482
9483 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9484
9485         * except.c (remove_unreachable_regions): New.
9486         (free_eh_status): Clear exception_handler_labels.
9487         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9488         (find_exception_handler_labels): Don't add the same label more than
9489         once.
9490         (remove_exception_handler_label): Don't die if
9491         find_exception_handler_labels hasn't been called for the current
9492         function yet.
9493
9494 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9495
9496         * toplev.c (rest_of_compilation): Rebuild jump labels after
9497         gcse.
9498
9499 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9500
9501         * doc/extend.texi: Move documentation of X86 built-in functions
9502         here.
9503         * doc/invoke.texi: From here.
9504         * doc/sourcebuild.texi: Document location of documentation for
9505         machine built-in functions.
9506
9507 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9508
9509         * cppfiles.c (TEST_THRESHOLD): New macro.
9510         (SHOULD_MMAP): Ditto.
9511         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9512         be used.
9513
9514 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9515
9516         * unroll.c (final_reg_note_copy): Properly handle
9517         REG_LABEL
9518         (unroll_loops): Fix LOOP_CONDITION heuristics.
9519
9520 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9521
9522         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9523         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9524
9525 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9526
9527         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9528         threaded loop.
9529
9530 2002-01-14  Tom Rix  <trix@redhat.com>
9531
9532         * config/rs6000/rs6000.md: Fix typo with sradi.
9533
9534 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9535
9536         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9537         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9538         (clrstrdi, clrstrsi): Adapt callers.
9539
9540         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9541
9542         (movti splitter): Never use register 0 as base register.
9543
9544 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9545
9546         * combine.c (simplify_shift_const): Always generate new rtx
9547         for shift expression instead of reusing given expression.
9548
9549 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9550
9551         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9552         alpha_legitimize_address unless mode is Pmode.
9553
9554 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9555
9556         * doc/md.texi (Modifiers): Document the '*' constraint for the
9557         user.
9558
9559         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9560         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9561         for xstormy16 too.
9562
9563 2002-01-13  Richard Henderson  <rth@redhat.com>
9564
9565         * reload.c (find_reloads): Use a hard reg destination as reload reg
9566         for an input reload of the source.
9567
9568 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9569
9570         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9571         more generic.
9572
9573 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9574
9575         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9576         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9577
9578         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9579
9580 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9581
9582         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9583
9584 2002-01-12  Tom Rix  <trix@redhat.com>
9585
9586         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9587         TARGET_POWERPC64.
9588
9589 2002-01-12  Richard Henderson  <rth@redhat.com>
9590
9591         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9592
9593         * doc/invoke.texi: Update Alpha options.
9594
9595         * doc/invoke.texi: Update i386 built-in function lists.
9596
9597 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9598
9599         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9600         referencing outside.
9601
9602 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9603
9604         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9605         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9606         offsets, and change line folding.
9607         * optabs.c (expand_binop): Remove warnings.
9608         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9609
9610 2002-01-12  Graham Stott <grahams@redhat.com>
9611
9612         * attribs.c (handle_deprecated_attribute): constify WHAT.
9613         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9614         dangling else warning and constify WHAT.
9615         * except.h (struct function, struct inline_remap): Move
9616         struct tag forward defs before all prototypes.
9617         (duplicate_eh_regions): Whitespace.
9618
9619 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9620
9621         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9622         MODE_BASE_REG_CLASS.
9623         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9624
9625 2002-01-12  Richard Henderson  <rth@redhat.com>
9626
9627         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9628         (ix86_expand_vector_move): New.
9629         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9630         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9631         Remove old prefetch builtins.  Special case the logicals removed above.
9632         (ix86_expand_builtin): Likewise.
9633         (safe_vector_operand): Use V4SFmode, not TImode.
9634         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9635         (ix86_expand_timode_binop_builtin): New.
9636         * config/i386/i386-protos.h: Update.
9637         * config/i386/i386.h (enum ix86_builtins): Update.
9638         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9639         Use ix86_expand_vector_move in vector move expanders.
9640         (movti_internal, movti_rex64): Add xorps alternative.
9641         (sse_clrv4sf): Rename and adjust from sse_clrti.
9642         (prefetch): Don't work so hard.
9643         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9644         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9645         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9646
9647 2002-01-11  Richard Henderson  <rth@redhat.com>
9648
9649         * config/i386/mmintrin.h: New file.
9650         * config/i386/xmmintrin.h: New file.
9651         * config.gcc (i?86-*-*): Add extra_headers.
9652         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9653         truncation codes.
9654         (simplify_binary_operation): Handle saturating arithmetic codes.
9655         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9656         not the lowpart subreg.
9657         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9658         on error.
9659         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9660
9661 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9662
9663         * conflict.c (conflict_graph_compute): Free regsets when finished.
9664         * ssa.c (compute_coalesced_reg_partition): Likewise.
9665
9666 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9667
9668         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9669         every where we allocate a register.
9670
9671 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9672
9673         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9674         * lcm.c (compute_earliest, compute_farthest): Likewise.
9675
9676 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9677
9678         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9679
9680 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9681
9682         * doc/rtl.texi (Insns): Fix 2 typos.
9683
9684 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9685
9686         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9687         options.  Use @table @gcctabopt for MMIX options.  Add index
9688         entries for MMIX options.  Start new paragraph with first
9689         heading of the machine-dependent options.
9690
9691 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9692
9693         PR other/5299
9694         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9695         * combine.c (force_to_mode): Same.
9696         * reload1.c (clear_reload_reg_in_use): Same.
9697
9698 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9699
9700         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9701         and 'subtargets'.
9702
9703 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9704             Brad Lucier <lucier@math.purdue.edu>
9705
9706         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9707         mcpu.
9708
9709 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9710
9711         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9712         Protect with IN_LIBGCC.
9713         (LINK_EH_SPEC): Add required trailing space.
9714
9715 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9716
9717         * c-tree.h: Move function declarations so that they are listed
9718         under the filename which contains them.
9719         (check_identifier, finish_decl_top_level,
9720         lookup_name_current_level_global, shadow_record_fields): Remove.
9721
9722 2002-01-11  Andreas Jaeger  <aj@suse.de>
9723
9724         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9725         march.
9726
9727 2002-01-10  Richard Henderson  <rth@redhat.com>
9728
9729         * config/alpha/alpha.c (print_operand): Add 'J'.
9730         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9731         new operand with the sequence number for the lituse.  When splitting
9732         the insns, use gen_movdi_er_high_g and generate a sequence number.
9733         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9734
9735 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9736
9737         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9738         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9739         stvxl.
9740         (altivec_expand_builtin): Same.
9741         (altivec_expand_stv_builtin): New.
9742
9743         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9744
9745         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9746         ("altivec_lvehx"): New.
9747         ("altivec_lvewx"): New.
9748         ("altivec_lvxl"): New.
9749         ("altivec_lvx"): New.
9750         ("altivec_stvx"): New.
9751         ("altivec_stvebx"): New.
9752         ("altivec_stvehx"): New.
9753         ("altivec_stvewx"): New.
9754         ("altivec_stvxl"): New.
9755
9756 2002-01-10  Richard Henderson  <rth@redhat.com>
9757
9758         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9759         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9760         care not to delete instructions twice.
9761
9762 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9763
9764         * toplev.c: Don't declare environ (it's not used anywhere).
9765         * configure.in: Don't check for declaration of environ.
9766         * config/i386/xm-mingw32.h: Don't #define environ.
9767         * config.in, configure: Regenerate.
9768
9769 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9770
9771         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9772         * configure: Regenerate.
9773
9774         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9775         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9776         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9777         alpha/xm-vms.h.
9778         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9779         LIMITS_H_TEST here, not in m68k/x-next.
9780         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9781         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9782
9783         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9784         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9785         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9786
9787         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9788         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9789         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9790         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9791         replacement of quadlib.asm with quadlib.c.
9792
9793         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9794         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9795         config/rs6000/xm-beos.h: Delete file.
9796
9797         * config.gcc: Update to match above changes.
9798
9799 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9800
9801         * config/h8300/h8300.h: Fix comment typos.
9802         * config/h8300/h8300.md: Likewise.
9803         * config/h8300/lib1funcs.asm: Likewise.
9804
9805 2002-01-10  Dale Johannesen  <dalej@apple.com>
9806
9807         PR optimization/5269
9808         * unroll.c (precondition_loop_p): Make *increment be the correct
9809         sign when n_iterations known, to avoid confusing caller.
9810
9811 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9812
9813         * doc/extend.texi (deprecated): Fix a typo.
9814
9815 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9816
9817         * basic-block.h (update_br_prob_note): Declare.
9818         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9819         (try_forward_edges): Care negative frequencies and update note.
9820         (outgoing_edges_match): Tweek conditional merging heuristics.
9821         (try_crossjump_to_edge): use update_br_prob_note.
9822         * cfglayout.c (fixup_reorder_chain): Likewise.
9823         * cfrtl.c (update_br_prob_note): New.
9824         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9825
9826         * i386.c (ix86_decompose_address): Return -1 if address contains
9827         shift.
9828         (legitimate_address_p): Require ix86_decompose_address to return 1.
9829
9830         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9831         (cprop_insn): Likewise.
9832
9833 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9834
9835         * toplev.c: Fix formatting.
9836         * tree.c: Likewise.
9837         * tree-dump.c: Likewise.
9838         * unroll.c: Likewise.
9839         * unwind-dw2.c: Likewise.
9840         * unwind-dw2-fde.c: Likewise.
9841         * unwind-dw2-fde-glibc.c: Likewise.
9842         * unwind-sjlj.c: Likewise.
9843
9844 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9845
9846         * doc/invoke.texi: Document PDP-11 options.
9847
9848 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9849
9850         * config/h8300/h8300.h: Fix formatting.
9851
9852 2002-01-10  Ira Ruben   <ira@apple.com>
9853
9854         Add __attribute__ ((deprecated)).
9855         * extend.texi: Document __attribute__ ((deprecated)).
9856         * invoke.texi: Document -Wno-deprecated-declarations.
9857         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9858         * testsuite/gcc.dg/deprecated.c: New C test.
9859         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9860         (c_common_attribute_table): Add "deprecated" entry.
9861         (handle_deprecated_attribute): New function.
9862         * c-decl.c (deprecated_states): New enum.
9863         deprecated_state: State of "deprecated" handling.
9864         (start_decl): Set deprecated_state based on attributes.
9865         (grokdeclarator): Test for deprecated uses, propagate attribute.
9866         * c-typeck.c (build_component_ref): Test for deprecated fields.
9867         (build_external_ref): Test for deprecated primaries.
9868         * diagnostic.c (warn_deprecated_use) New function to issue
9869         warnings about __attribute__ ((depricated)) references.
9870         * flags.h (warn_deprecated_decl): Extern declared for
9871         -W[no-]deprecated-declarations option.
9872         * print-tree.c (print_node): Show deprecated flag status.
9873         * toplev.c (warn_deprecated_decl): Defined.
9874         (W_options): Added "deprecated-declaration".
9875         * toplev.h (warn_deprecated_use): Extern declared.
9876         * tree.h (struct tree_common): Define deprecated_flag.
9877         (TREE_DEPRECATED): New macro to access flag.
9878         * cp/call.c (build_call): Test for deprecated calls.
9879         * cp/class.c (add_implicitly_declared_members): Set global
9880         flag to tell grokdeclarator to not issue deprecated warnings.
9881         * cp/cp-tree.h: Add extern for adding_implicit_members.
9882         * cp/decl.c (deprecated_states): New enum.
9883         (start_decl): Set deprecated_state based on attributes.
9884         (grokdeclarator): Test for deprecated uses, propagate attribute.
9885         * cp/lex.c (do_identifier): Test for deprecated primaries.
9886         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9887
9888 2002-01-10  Ira Ruben   <ira@apple.com>
9889
9890         Fix to assign attributes to inline member functions.
9891         * cp/decl.c (start_method): Handle attrlist.
9892
9893 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9894
9895         * combine.c (expand_field_assignment): Use subreg_lsb().
9896
9897 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9898
9899         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9900         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9901         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9902         Recurse for any operand of AND as long as constant is non-zero.
9903
9904 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9905
9906         * config/h8300/h8300.md: Remove constraints from expanders.
9907
9908 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9909
9910         * varasm.c: Fix formatting.
9911         * varray.c: Likewise.
9912         * vmsdbgout.c: Likewise.
9913         * xcoffout.c: Likewise.
9914
9915 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9916
9917         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9918         update edge probabilities to match.
9919
9920 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9921
9922         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9923         dependencies.
9924         * doc/languages.texi, doc/sourcebuild.texi: New files.
9925         * doc/configfiles.texi: Make a subsubsection.  Update.
9926         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9927         instructions for building GCC.
9928         * doc/makefile.texi: Make a subsection.
9929         * doc/gccint.texi: Update.
9930
9931 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9932
9933         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9934
9935 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9936
9937         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9938
9939 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9940
9941         * optabs.c (expand_fix): Look for wider integer modes first.
9942
9943         * i386.md (mov?f): Avoid the fake const double trick for medium
9944         memory model.
9945         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9946         (fop_df_4): Disable for SSE compilation.
9947
9948 2002-01-10  Graham Stott  <grahams@redhat.com>
9949
9950         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9951         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9952
9953 2002-01-10  Richard Henderson  <rth@redhat.com>
9954
9955         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9956
9957 2002-01-10  Richard Henderson  <rth@redhat.com>
9958
9959         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9960         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9961
9962 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9963
9964         * combine.c (can_combine_p): Fix a comment typo.
9965
9966 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9967
9968         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9969         empty list correctly.  Change loop index $t to $f for
9970         consistency with rest of Makefile.
9971
9972 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9973
9974         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9975         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9976
9977         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9978         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9979         (altivec_init_builtins): Same.
9980         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9981         (altivec_expand_binop_builtin): Same.
9982         (altivec_expand_ternop_builtin): Same.
9983         (bdesc_dst): New.
9984
9985         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9986         ("altivec_vctuxs"): Fix typo.
9987         ("altivec_vnmsubfp"): Same.
9988         ("altivec_dssall"): New.
9989         ("altivec_mfvscr"): New.
9990         ("altivec_dss"): New.
9991         ("altivec_lvsl"): New.
9992         ("altivec_lvsr"): New.
9993         ("altivec_dstt"): New.
9994         ("altivec_dstst"): New.
9995         ("altivec_dststt"): New.
9996         ("altivec_dst"): New.
9997
9998         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9999         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10000
10001 2002-01-09  Richard Henderson  <rth@redhat.com>
10002
10003         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10004
10005 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
10006
10007         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10008         function.
10009         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10010         prototype.
10011         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10012
10013 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10014
10015         * read-rtl.c: Fix formatting.
10016         * real.c: Likewise.
10017         * regclass.c: Likewise.
10018         * regrename.c: Likewise.
10019         * reg-stack.c: Likewise.
10020         * reload1.c: Likewise.
10021         * reload.c: Likewise.
10022         * rtl.c: Likewise.
10023
10024 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10025
10026         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10027         to extract items in the expr_list chain.
10028
10029 2002-01-09  Richard Henderson  <rth@redhat.com>
10030
10031         * config/vax/vax.c (vax_rtx_cost): Never abort.
10032
10033         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10034
10035 2002-01-09  Jan Hubicka  <jh@suse.cz>
10036
10037         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10038
10039 2002-01-09  Richard Henderson  <rth@redhat.com>
10040
10041         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10042         Unify code from various alternatives.
10043
10044 2002-01-09  Richard Henderson  <rth@redhat.com>
10045
10046         * regrename.c (copy_value): Ignore the copy if the source register
10047         is present in the value chain with a narrower mode.
10048
10049 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10050
10051         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10052         for the c4x target. Also improve layout.
10053
10054 2002-01-09  Richard Henderson  <rth@redhat.com>
10055
10056         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10057         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10058         to match insn patterns.
10059
10060 2002-01-09  Richard Henderson  <rth@redhat.com>
10061
10062         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10063         (copyprop_hardreg_forward_1): Likewise.
10064
10065 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10066
10067         * pa.md (decrement_and_branch_until_zero): Change predicate for
10068         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10069
10070 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10071
10072         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10073         gets undefined. For Darwin.
10074
10075 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10076
10077         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10078
10079 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10080
10081         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10082
10083 2002-01-08  Richard Henderson  <rth@redhat.com>
10084
10085         * regrename.c (copy_value): Ignore overlapping copies.
10086
10087 2002-01-08  Richard Henderson  <rth@redhat.com>
10088
10089         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10090         as needed to avoid shared structure.
10091
10092 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10093
10094         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10095         H8/300H and H8/S.
10096
10097 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10098
10099         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10100         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10101         documentation of obsolete macros.
10102         * system.h: Poison these macros.
10103         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10104         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10105         config/c4x/c4x.h, config/clipper/clipper.h,
10106         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10107         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10108         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10109         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10110         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10111         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10112         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10113         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10114         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10115         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10116         config/sparc/sparc.h, config/stormy16/stormy16.h,
10117         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10118         definitions and commented out definitions of obsolete macros.
10119         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10120         of MAX_INT_TYPE_SIZE.
10121
10122 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10123
10124         * config/s390/s390.c (s390_preferred_reload_class): Never
10125         return ADDR_REGS if it isn't a subset of the given class.
10126         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10127         FP_REGS, but all superclasses as well.
10128
10129         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10130
10131         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10132         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10133         must not be a const_int.
10134
10135 2002-01-08  Richard Henderson  <rth@redhat.com>
10136
10137         * Makefile.in (toplev.o): Depend on options.h.
10138         (gcc.o): Depend on specs.h.
10139
10140 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10141
10142         * expr.c (store_expr): Convert VOIDmode constants back to target's
10143         mode.
10144
10145 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10146
10147         * doc/invoke.texi: Markup gcc as @command.  Refer to
10148         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10149         of http://gcc.gnu.org/thanks.html.
10150
10151 2002-01-08  Dale Johannesen  <dalej@apple.com>
10152
10153         * config/rs6000/rs6000.md: Add missing int register
10154         target case to movdf_low.
10155
10156 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10157
10158         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10159         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10160         (cppinit.o): Depend on except.h.
10161         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10162         s-specs): New rules.
10163
10164         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10165         Don't create specs.h/options.h/gencheck.h here.  Remove
10166         unnecessary variable settings from last argument of AC_OUTPUT.
10167         * config.in, configure: Regenerate.
10168         * intl.c: Hardcode package name as "gcc".
10169
10170         * cppinit.c: Include except.h.
10171         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10172         appropriate.
10173         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10174         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10175         (!)USING_SJLJ_EXCEPTIONS.
10176         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10177
10178 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10179
10180         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10181         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10182         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10183         documentation of obsolete macros.
10184         * system.h: Poison these macros.
10185         * config/d30v/d30v.h, config/ns32k/encore.h,
10186         config/stormy16/stormy16.h: Remove definitions and commented out
10187         definitions of obsolete macros.
10188
10189 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10190
10191         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10192         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10193         warnings.
10194
10195 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10196
10197         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10198         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10199         to insn adjusting stack/frame pointer.
10200         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10201         accept operands that cause the insn to be non-splittable.
10202
10203 2002-01-08  Graham Stott  <grahams@redhat.com>
10204
10205         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10206         (C_TYPE_FIELDS_VOLATILE): Likewise.
10207         (C_TYPE_BEING_DEFINED): Likewise.
10208         (C_IS_RESERVED_WORD): Likewise.
10209         (C_TYPE_VARIABLE_SIZE): Likewise.
10210         (C_DECL_VARIABLE_SIZE): Likewise.
10211         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10212         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10213         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10214         parenthesis.
10215         (C_DECL_ANTICIPATED): Likewise.
10216         (c_build_type_variant): Add parenthesis.
10217
10218 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10219
10220         * gcc.c (option_map): Remove --version.
10221         (process_command): Handle -fversion following the GNU Coding
10222         Standards.  Partially addresses PR other/704.
10223
10224 2002-01-08  Graham Stott  <grahams@redhat.com>
10225
10226         * combine.c (combine_instructions): Fix typo.
10227
10228 2002-01-08  Graham Stott  <grahams@redhat.com>
10229
10230         * debug.h: Use "tree" and "rtx" throughout.
10231
10232         * debug.c: Likewise.
10233
10234 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10235
10236         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10237         constant pool, use the pool's version of the symbol instead.
10238
10239 2002-01-07  Richard Henderson  <rth@redhat.com>
10240
10241         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10242         the original register was copied in a mode with a fewer number of
10243         hard registers than the desired mode.
10244         (copyprop_hardreg_forward_1): Likewise.
10245         (debug_value_data): Fix loop test.
10246         * toplev.c (parse_options_and_default_flags): Reenable
10247         -fcprop-registers at -O1.
10248
10249 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10250
10251         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10252         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10253
10254         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10255         predicates.
10256
10257         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10258
10259 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10260
10261         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10262         (pa_output_function_prologue): Output local label at the beginning of
10263         the prologue when profiling.
10264         (hppa_profile_hook): Use the local label rather than the function label.
10265         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10266
10267 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10268
10269         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10270         (altivec_expand_unop_builtin): Fix thinko.
10271         (altivec_expand_binop_builtin): Same.
10272         (altivec_expand_ternop_builtin): Same.
10273         (altivec_expand_builtin): Same.
10274
10275 2002-01-07  Richard Henderson  <rth@redhat.com>
10276
10277         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10278
10279 2002-01-07  Jason Merrill  <jason@redhat.com>
10280
10281         * unwind-dw2.c (execute_cfa_program): Use < again.
10282
10283 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10284
10285         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10286
10287 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10288
10289         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10290         Don't allow -1 - x -> ~x simplifications in the first pass.
10291
10292 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10293
10294         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10295         arguments.
10296         (altivec_expand_binop_builtin): Same.
10297         (altivec_expand_unop_builtin): Same.
10298         (print_operand): Fix typo.
10299         (bdesc_1arg): Add vupk* variants.
10300
10301         * rs6000.h (rs6000_builtins): Add vupk* enums.
10302
10303         * rs6000.md: Add altivec_vupk* variants.
10304
10305 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10306
10307         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10308         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10309         and last update dates.
10310
10311 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10312
10313         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10314
10315 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10316
10317         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10318         * config/avr/avr.h (CPP_SPEC): Likewise.
10319         (LINK_SPEC): Likewise.
10320         (CRT_BINUTILS_SPECS): Likewise.
10321         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10322         * doc/invoke.texi (AVR Options): Document them.
10323
10324 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10325
10326         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10327         LABEL_NUSES.
10328
10329 2002-01-07  Graham Stott  <grahams@redhat.com>
10330
10331         * config/i386/i386.h: Update copyright date.
10332         (HALF_PIC_PTR): Add parenthesis.
10333         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10334         (CONSTANT_ALIGNMENT): Add parenthesis.
10335         (DATA_ALIGNMENT): Likewise.
10336         (LOCAL_ALIGNMENT): Likewise.
10337         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10338         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10339         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10340         (HARD_REGNO_NREGS): Add paranethesis.
10341         (VALID_SSE_REG_MODE): Whitespace.
10342         (VALID_MMX_REG_MODE): Whitespace.
10343         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10344         (ix86_hard_regno_mode_ok): Add parenthesis.
10345         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10346         (RETURN_IN_MEMORY): Whitespace.
10347         (N_REG_CLASSES): Add parenthesis.
10348         (INTEGER_CLASS_P): Add parenthesis and wrap.
10349         (FLOAT_CLASS_P): Likewise.
10350         (SSE_CLASS_P): Likewise.
10351         (MMX_CLASS_P): Likewise.
10352         (MAYBE_INTEGER_CLASS_P): Likewise.
10353         (MAYBE_FLOAT_CLASS_P): Likewise.
10354         (MAYBE_SSE_CLASS_P): Likewise.
10355         (MAYBE_MMX_CLASS_P): Likewise.
10356         (Q_CLASS_P): Likewise.
10357         (GENERAL_REGNO_P): Uppercase macro parameter.
10358         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10359         (FP_REGNO_P): Likewise.
10360         (ANY_FP_REGNO_P): Uppercase macro parameter.
10361         (SSE_REGNO_P): Likewise.
10362         (SSE_REGNO): Likewise.
10363         (SSE_REG_P): Likewise.
10364         (SSE_FLOAT_MODE_P): Likewise.
10365         (MMX_REGNO_P): Likewise.
10366         (MMX_REG_P):Likewise.
10367         (STACK_REG_P): Likewise.
10368         (NON_STACK_REG_P): Likewise.
10369         (STACK_TOP_P): Likewise.
10370         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10371         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10372         (SECONDARY_MEMORY_NEEDED): Likewise.
10373         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10374         (MD_ASM_CLOBBERS): Whitespace and wrap.
10375         (MUST_PASS_IN_STACK): Whitespace and wrap.
10376         (RETURN_POPS_ARGS): Add parenthesis.
10377         (INIT_CUMULATIVE_ARGS): Likewise.
10378         (FUNCTION_ARG): Likewise.
10379         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10380         (SETUP_INCOMING_VARARGS): Likewise.
10381         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10382         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10383         parenthsis.
10384         (EXPAND_BUILTIN_VA_ARG): Likewise.
10385         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10386         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10387         (INITIAL_ELIMINATION_OFFSET): Likewise.
10388         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10389         (REGNO_OK_FOR_BASE_P): Likewise.
10390         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10391         (REGNO_OK_FOR_DIREG_P): Likewise.
10392         (REG_OK_FOR_INDEX_P): Whitespace.
10393         (REG_OK_FOR_BASE_P): Whitespace.
10394         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10395         parenthesis.
10396         (FIND_BASE_TERM): Fix typo.
10397         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10398         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10399         (SYMBOLIC_CONST; Whitespace.
10400         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10401         (ENCODE_SECTION_INFO): Whitespace.
10402         (FINALIZE_PIC): Remove do { ... } while (0).
10403         (PROMOTE_MODE): Wrap in do { ... } while (0).
10404         (CONST_COSTS): Whitespace.
10405         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10406         (REGISTER_MOVE_COST): Add parenthesis.
10407         (MEMORY_MOVE_COST): Likewise.
10408         (EXTRA_CC_MODES): Whitespace.
10409         (SELECT_CC_MODE): Add parenthesis and whitespace.
10410         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10411         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10412         (ASM_OUTPUT_LABEL): Add paramethesis.
10413         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10414         (ASM_OUTPUT_REG_POP): Likewise.
10415         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10416         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10417
10418         * config/i386/i386.c: Update copyright.
10419         (CHECK_STACK_LIMIT): Add parenthesis.
10420         (AT_BP): Uppercase macro parameter.
10421         (x86_64_int_parameter_registers): Constify.
10422         (x86_64_int_return_registers): Likewise.
10423         (ix86_compare_op0): Use rtx.
10424         (construct_container): Constify INTREG parameter.
10425         (function_arg): Use rtx.
10426
10427         * diagnostic.h: Update copyright date.
10428         (output_buffer_state): Add parenthesis.
10429         (output_buffer_format_args): Likewise.
10430
10431         * combine.c (combine_instructions): Replace XEXP (links, 0)
10432         with link.
10433
10434 2002-01-06  H.J. Lu <hjl@gnu.org>
10435
10436         * cfgcleanup.c (thread_jump): Fix 2 typos.
10437
10438 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10439
10440         * config.gcc: Add support for --enable-altivec.
10441
10442 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10443
10444         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10445
10446 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10447
10448         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10449         __objc_class_name_*.
10450
10451 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10452
10453         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10454
10455 2002-01-06  Richard Henderson  <rth@redhat.com>
10456
10457         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10458         nop them out.  Increment label reference count for REG_LABEL.
10459         (fill_slots_from_thread): Frob label reference count around
10460         delete_related_insns.
10461
10462 2002-01-05  Richard Henderson  <rth@redhat.com>
10463
10464         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10465         jump threading.
10466
10467 2002-01-05  Richard Henderson  <rth@redhat.com>
10468
10469         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10470         * integrate.c (output_inline_function): Likewise.
10471         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10472         to remove_unnecessary_notes after emitting abstract instance.
10473         Force an emitted nested function to have its parent emited as well.
10474         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10475         for null.
10476         (rtl_for_decl_location): Do not look at reload data structures
10477         before reload has run.
10478
10479 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10480
10481         * cse.c: Fix formatting.
10482         * dwarf2asm.c: Likewise.
10483         * dwarf2out.c: Likewise.
10484         * explow.c: Likewise.
10485         * expmed.c: Likewise.
10486         * function.c: Likewise.
10487         * gcov.c: Likewise.
10488         * gencheck.c: Likewise.
10489         * genrecog.c: Likewise.
10490         * ggc-common.c: Likewise.
10491         * ggc-page.c: Likewise.
10492         * global.c: Likewise.
10493
10494 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10495
10496         * combine.c: Fix formatting.
10497
10498 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10499
10500         PR middle-end/1557
10501         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10502
10503 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10504
10505         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10506         as 1 for __powerpc64__ as well.
10507
10508         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10509
10510         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10511         return it.
10512
10513 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10514
10515         * lcm.c: Revert change, due to performance regression it causes on
10516         SPEC because it's slightly more conservative (sigh, I hate
10517         edge-based LCM).
10518
10519 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10520
10521         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10522
10523 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10524
10525         * doc/cppinternals.texi: Update.
10526
10527 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10528
10529         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10530         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10531         negatives.
10532         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10533         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10534         kludge for pre-october-14th mmix versions to handle new-found bug
10535         with PUSHJ/PUSHGO and the register stack.
10536         * config/mmix/mmix.h (struct machine_function): Rename member
10537         has_call_value_without_parameters to has_call_without_parameters.
10538         All referers changed.
10539         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10540         TARGET_MASK_BRANCH_PREDICT): New macros.
10541         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10542         -mno-reg-stack-fill-bug-workaround.
10543         * config/mmix/mmix.md ("call"): Set struct machine member
10544         has_call_without_parameters.
10545
10546 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10547
10548         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10549
10550 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10551
10552         * cfgcleanup.c: Include tm_p.h
10553         (mark_effect): Fix handling of hard register; fix handling of SET
10554
10555 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10556
10557         * config/h8300/h8300.md (anonymous patterns): Check that
10558         operands are registers before using REGNO on them.
10559
10560 2002-01-03  Roland McGrath  <roland@frob.com>
10561
10562         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10563
10564 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10565
10566         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10567         * c-common.h (genrtl_expr_stmt_value): Likewise.
10568         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10569         (expand_expr_stmt_value): Add maybe_last argument.
10570         Don't warn about statement with no effect if it is the last statement
10571         in expression statement.
10572         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10573         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10574         expand_expr_stmt_value.
10575         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10576         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10577         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10578         as maybe_last to expand_expr_stmt_value.
10579
10580 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10581
10582         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10583         be passed in, do not build it.
10584         (c_begin_if_stmt): New function.
10585         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10586         * c-common.h (c_expand_start_cond): Update prototype.
10587         (c_begin_if_stmt): Prototype new function.
10588         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10589         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10590         c_begin_while_stmt and c_finish_while_stmt_cond.
10591
10592 2002-01-04  William Cohen  <wcohen@redhat.com>
10593
10594         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10595         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10596         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10597         * config/pa/som.h (ASM_FILE_START): Likewise.
10598
10599 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10600
10601         * lcm.c: Include df.h.
10602         Add available_transfer_function prototype.
10603         (compute_available): Rework to use iterative dataflow framework.
10604         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10605         with bb_info in df.h
10606         (available_transfer_function): New function.
10607
10608         * Makefile.in (lcm.o): add df.h to dependencies.
10609
10610 2002-01-04  Richard Henderson  <rth@redhat.com>
10611
10612         * config/alpha/alpha.c (some_operand): Accept HIGH.
10613         (input_operand): Likewise; accept simple references to globals.
10614         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10615         (alpha_const_double_ok_for_letter_p): Likewise.
10616         (alpha_extra_constraint): Likewise.
10617         (alpha_preferred_reload_class): Likewise.  Do not force
10618         symbolic constants to memory.
10619         (alpha_legitimate_address_p): Accept simple references
10620         to small_symbolic_operand.
10621         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10622         called when no_new_pseudos.  Emit simple symbolic references.
10623         Split integers into low, high, and rest.
10624         (alpha_expand_mov): Use alpha_legitimize_address.
10625         (some_small_symbolic_mem_operand): New.
10626         (split_small_symbolic_mem_operand): New.
10627         * config/alpha/alpha-protos.h: Update.
10628         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10629         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10630         (EXTRA_CONSTRAINT): Likewise.
10631         (PREFERRED_RELOAD_CLASS): Likewise.
10632         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10633         (PREDICATE_CODES): Update.
10634         * config/alpha/alpha.md: New post-reload splitters to convert
10635         simplfied symbolic operands to the form that references $29.
10636         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10637         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10638
10639 2002-01-03  Richard Henderson  <rth@redhat.com>
10640
10641         * local-alloc.c (function_invariant_p): Update commentary.
10642
10643 2002-01-04  H.J. Lu <hjl@gnu.org>
10644
10645         * toplev.c (rest_of_compilation): Fix a typo when calling
10646         cleanup_cfg.
10647
10648 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10649
10650         * c-common.c: Fix formatting.
10651         * diagnostic.c: Likewise.
10652         * doloop.c: Likewise.
10653         * dwarf2out.c: Likewise.
10654
10655 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10656
10657         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10658         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10659
10660 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10661
10662         * cpperror.c: Update comments and copyright.
10663         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10664         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10665
10666 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10667
10668         * collect2.c (main): Use strcmp when testing for "-shared".
10669
10670 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10671
10672         * cppmacro.c: Don't include intl.h.  Update comments.
10673         (new_number_token): Allocate enough buffer for 64-bit unsigned
10674         integers; update prototype.
10675         * cppmain.c: Update comments.
10676
10677 2002-01-03  William Cohen  <wcohen@redhat.com>
10678
10679         * function.h (struct function): Add profile.
10680         (current_function_profile): New.
10681         doc/extend.texi: Update documentation.
10682         * final.c (final_start_function): Use current_function_profile
10683         instead of profile_flag.
10684         (profile_after_prologue): Likewise.
10685         * function.c (expand_function_start): Likewise.
10686         (expand_function_start): Likewise.
10687         * config/alpha/alpha.c (direct_call_operand):
10688         (alpha_does_function_need_gp): Likewise.
10689         (alpha_expand_prologue): Likewise.
10690         * config/arm/arm.c (arm_expand_prologue): Likewise.
10691         thumb_expand_prologue: Likewise.
10692         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10693         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10694         (fr30_expand_prologue): Likewise.
10695         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10696         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10697         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10698         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10699         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10700         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10701         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10702         (m32r_expand_prologue): Likewise.
10703         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10704         (m88k_expand_prologue): Likewise.
10705         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10706         * config/mips/mips.c (compute_frame_size): Likewise.
10707         (mips_expand_prologue): Likewise.
10708         (mips_can_use_return_insn): Likewise.
10709         * config/pa/elf.h (ASM_FILE_START): Likewise.
10710         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10711         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10712         * config/pa/som.h (ASM_FILE_START): Likewise.
10713         * config/romp/romp.c (romp_using_r14): Likewise.
10714         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10715         (rs6000_stack_info): Likewise.
10716         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10717         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10718         * config/v850/v850.c (compute_register_save_size): Likewise.
10719
10720 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10721
10722         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10723         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10724
10725 2002-01-03  Turly O'Connor  <turly@apple.com>
10726
10727         * darwin.c (machopic_output_possible_stub_label): Don't generate
10728         stub routines for pseudo-stubs which we've just defined.
10729
10730 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10731
10732         * builtins.c: Fix formatting.
10733         * c-typeck.c: Likewise.
10734         * combine.c: Likewise.
10735         * expr.c: Likewise.
10736         * loop.c: Likewise.
10737
10738 2002-01-03  Andreas Schwab  <schwab@suse.de>
10739
10740         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10741         and return true if _cpp_push_next_buffer pushed a new include
10742         file.
10743         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10744         _cpp_pop_file_buffer did not push a new file.
10745         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10746
10747 2002-01-02  Eric Christopher  <echristo@redhat.com>
10748
10749         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10750         FIND_REG_INC_NOTE call. Update copyright.
10751         * loop.c (canonicalize_condition): Ditto.
10752         * reorg.c (delete_scheduled_jump): Ditto.
10753
10754 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10755
10756         * gcse.c: Fix formatting.
10757
10758 2002-01-03  Graham Stott  <grahams@redhat.com>
10759
10760         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10761         forward defs for struct tags rtx_def, union_tree, rtvec_def
10762         also output corresponding typedefs for rtx, tree, and rtvec.
10763
10764         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10765         rtvec_def along with corresponding typedefs for rtx, tree, and
10766         rtvec to config.h, hconfig.h, tconfig.h.
10767
10768 2002-01-03  Graham Stott  <grahams@redhat.com>
10769
10770         * tree.h: Update copyright date.
10771         (IS_EXPR_CODE_CLASS): Add parenthesis.
10772         (TREE_SET_CODE): Add whitespace.
10773         (TREE_CHECK): Add parenthesis.
10774         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10775         (CST_OR_CONSTRUCTOR_CHECK):
10776         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10777         (TREE_SYMBOL_REFERENCED): Whitespace.
10778         (INT_CST_LT): Likewise.
10779         (INT_CST_LT_UNSIGNED): Likewise.
10780         (tree_real_cst): Unwrap comment.
10781         (tree_string): Likewise.
10782         (tree_complex): Likewise.
10783         (IDENTIFIER_POINTER): correct cast.
10784         (SAVE_EXPR_CONTEXT): Whitespace.
10785         (EXPR_WFL_FILENAME_NODE): Likewise.
10786         (EXPR_WFL_FILENAME): Remove parenthesis.
10787         (DECL_ORIGIN): Add parenthesis.
10788         (DECL_FROM_INLINE): Use NULL_TREE.
10789         (build_int_2): Whitespace.
10790         (build_type_variant): Add parenthesis.
10791
10792         * gcc/jcf-parse.c: Update copyright date.
10793         (yyparse): Constify resource_filename.
10794
10795 2002-01-03  Graham Stott  <grahams@redhat.com>
10796
10797         * rtl.h: Update copyright date.
10798         (RTL_CHECK1): Wrap long line.
10799         (RTL_CHECK2): Likewise.
10800         (RTL_CHECKC1): Wrap long line and whitespace.
10801         (RTL_CHECKC2): Likewise.
10802         (XWINT): Whitespace.
10803         (XINT): Likewise.
10804         (XSTR): Likewise.
10805         (XEXP): Likewise.
10806         (XVEC): Likewise.
10807         (XMODE): Likewise.
10808         (XBITMAP): Likewise.
10809         (XTREE): Likewise.
10810         (XBBDEF): Likewise.
10811         (XTMPL): Likewise.
10812         (X0WINT): Likewise.
10813         (X0INT):Likewise.
10814         (X0UINT): Likewise.
10815         (X0STR): Likewise.
10816         (X0EXP): Likewise.
10817         (X0VEC): Likewise.
10818         (X0MODE): Likewise.
10819         (X0BITMAP): Likewise.
10820         (X0TREE): Likewise.
10821         (X0BBDEF): Likewise.
10822         (X0ADVFLAGS): Likewise.
10823         (X0CSELIB): Likewise.
10824         (X0MEMATTR): Likewise.
10825         (XCWINT): Likewise.
10826         (XCINT): Likewise.
10827         (XCUINT): Likewise.
10828         (XCSTR): Likewise.
10829         (XCEXP): Likewise.
10830         (XCVEC): Likewise.
10831         (XCMODE): Likewise.
10832         (XCBITMAP): Likewise.
10833         (XCTREE): Likewise.
10834         (XCBBDEF): Likewise.
10835         (XCADVFLAGS): Likewise.
10836         (XCCSELIB): Likewise.
10837         (XC2EXP): Likewise.
10838         (INSN_UID): Likewise.
10839         (PREV_INSN): Likewise.
10840         (PATTERN): Likewise.
10841         (INSN_CODE): Likewise.
10842         (PUT_REG_NOTE_KIND): Likewise.
10843         (CODE_LABEL_NUMBER): Likewise.
10844         (NOTE_SOURCE_FILE): Likewise.
10845         (NOTE_BLOCK): Likewise.
10846         (NOTE_EH_HANDLER): Likewise.
10847         (NOTE_RANGE_INFO): Likewise.
10848         (NOTE_LIVE_INFO): Likewise.
10849         (NOTE_BASIC_BLOCK): Likewise.
10850         (NOTE_EXPECTED_VALUE): Likewise.
10851         (NOTE_LINE_NUMBER): Likewise.
10852         (LABEL_NAME): Likewise.
10853         (LABEL_NUSES): Likewise.
10854         (LABEL_ALTERNATE_NAME): Likewise.
10855         (ADDRESSOF_DECL): Likewise.
10856         (JUMP_LABEL): Likewise.
10857         (LABEL_NEXTREF): Likewise.
10858         (REGNO): Likewise.
10859         (ORIGINAL_REGNO: Likewise.
10860         (HARD_REGISTER_NUM_P): Add parenthesis.
10861         (SUBREG_REG): Whitespace.
10862         (SUBREG_BYTE): Likewise.
10863         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10864         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10865         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10866         (ASM_OPERANDS_INPUT_VEC): Likewise.
10867         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10868         (ASM_OPERANDS_INPUT): Likewise.
10869         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10870         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10871         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10872         (ASM_OPERANDS_INPUT_MODE): Likewise.
10873         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10874         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10875         (MEM_SET_IN_STRUCT_P): Minor reformat.
10876         (TRAP_CONDITION): Whitespace.
10877         (TRAP_CODE): Likewise.
10878         (COND_EXEC_TEST): Likewise.
10879         (COND_EXEC_CODE): Likewise.
10880         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10881         (PHI_NODE_P): Add parenthesis.
10882         (plus_constant): Whitespace and add parenthesis.
10883
10884 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10885
10886         * config/avr/avr.c: Fix comment typos.
10887         * config/c4x/c4x.md: Likewise.
10888         * config/dsp16xx/dsp16xx.h: Likewise.
10889         * config/dsp16xx/dsp16xx.md: Likewise.
10890         * config/i386/i386.md: Likewise.
10891         * config/ia64/ia64.c: Likewise.
10892         * config/m32r/m32r.h: Likewise.
10893         * config/m68hc11/m68hc11.md: Likewise.
10894         * config/mmix/mmix.c: Likewise.
10895         * config/mn10200/mn10200.c: Likewise.
10896         * config/romp/romp.c: Likewise.
10897         * config/sh/sh.c: Likewise.
10898         * config/stormy16/stormy16.c: Likewise.
10899         * config/stormy16/stormy16.h: Likewise.
10900         * config/stormy16/stormy16.md: Likewise.
10901
10902 2002-01-03  Graham Stott  <grahams@redhat.com>
10903
10904         * loop.h: Update copyright date.
10905         (LOOP_MOVABLES): Fix typo.
10906         (LOOP_REGS): Likewise.
10907         (LOOP_IVS): Likewise.
10908
10909 2002-01-03  Graham Stott  <grahams@redhat.com>
10910
10911         * cppinit.c: Update copyright date.
10912         Don't include output.h
10913         * Makefile.in: Update copyright date.
10914         Update dependency.
10915
10916 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10917
10918         PR c/5226
10919         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10920         (-pthread) Add to RS/6000 options.
10921
10922 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10923
10924         * except.c: Fix comment typos.
10925         * loop.c: Likewise.
10926         * varasm.c: Likewise.
10927         * doc/tm.texi: Fix a typo.
10928
10929 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10930
10931         * c-typeck.c (output_init_element): Allow initializing static storage
10932         duration objects with compound literals.
10933
10934 2002-01-02  Richard Henderson  <rth@redhat.com>
10935
10936         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10937         after abusing it.
10938
10939 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10940
10941         * gcc.c (default_compilers): Const-ify.
10942         * mips-tdump.c (stab_names): Likewise.
10943         * mips-tfile.c (map_coff_types, map_coff_storage,
10944         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10945         pseudo_ops_t, pseudo_ops): Likewise.
10946         * protoize.c (default_include): Likewise
10947
10948         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10949         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10950         Add array size in declaration.
10951         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10952         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10953         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10954         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10955         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10956         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10957         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10958         emtens, make_nan): Const-ify.
10959         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10960         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10961
10962 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10963
10964         * config.gcc (ia64-*-*): Set extra_headers.
10965         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10966         * config/alpha/t-osf: Remove.
10967         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10968
10969 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10970
10971         * config/rs6000/t-aix43: Revert previous change.
10972
10973 2002-01-02  Jason Merrill  <jason@redhat.com>
10974
10975         * c-decl.c (c_expand_body): Call outlining_inline_function when
10976         emitting an inline function out of line.
10977
10978 2002-01-02  Richard Henderson  <rth@redhat.com>
10979
10980         * dwarf2out.c (limbo_die_node): Add created_for member.
10981         (new_die): New argument created_for.  Update all callers.
10982         (mark_limbo_die_list): New.
10983         (dwarf2out_init): Register limbo_die_list as a root.
10984         (dwarf2out_finish): Force insert limbo dies into their function
10985         context.
10986
10987 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10988
10989         PR c++/5089
10990         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10991
10992 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10993
10994         * config/h8300/fixunssfsi.c: Update copyright.
10995         Fix comment typos.
10996         Fix formatting.
10997         * config/h8300/h8300.c: Update copyright.
10998         Eliminate warnings.
10999
11000 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11001
11002         * config/romp/romp.c: Fix comment formatting.
11003         * config/romp/romp.h: Likewise.
11004         * config/romp/romp.md: Likewise.
11005         * config/s390/s390.c: Likewise.
11006         * config/stormy16/stormy16.c: Likewise.
11007         * config/stormy16/stormy16.h: Likewise.
11008
11009 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
11010
11011         * c-common.h (genrtl_expr_stmt_value): Declare.
11012         * c-semantics.c (genrtl_goto_stmt): Redirect to...
11013         (genrtl_goto_stmt_value): ... this new function.  Pass new
11014         argument down to expand_expr_stmt_value, taking
11015         TREE_ADDRESSABLE into account.
11016         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11017         STMT_EXPR as addressable, i.e., one whose result we want.
11018         * expr.c (expand_expr): Don't save expression statement value
11019         of labeled_blocks or loop_exprs.
11020         * stmt.c (expand_expr_stmt): Redirect to...
11021         (expand_expr_stmt_value): ... this new function.  Use new
11022         argument to tell whether to save expression value.
11023         (expand_end_stmt_expr): Reset last_expr_type and
11024         last_expr_value if we don't have either.
11025         * tree-inline.c (declare_return_variable): Mark its use
11026         statement as addressable.
11027         * tree.h: Document new use of TREE_ADDRESSABLE.
11028         (expand_expr_stmt_value): Declare.
11029
11030 2002-01-01  Tom Rix  <trix@redhat.com>
11031
11032         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11033         rs6000_emit_allocate_stack.
11034
11035 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11036
11037         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11038         ${srcdir}/ginclude/ to every entry in extra_headers.
11039         * configure: Regenerate.
11040         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11041         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11042         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11043         * ginclude/proto.h: Rename to config/convex/proto.h.
11044
11045 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11046
11047         * attribs.c (handle_vector_size_attribute): Use host_integerp
11048         and tree_int_cst; remove warnings.
11049         * caller-save.c (insert_restore): Add cast to get rid of warning.
11050         (insert_save): Likewise.
11051         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11052         * regmove.c (find_matches): Add temporary var to kill a warning.
11053
11054 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11055
11056         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11057         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11058         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11059         (vms-dwarf2eh.o): Add Makefile rule.
11060         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11061         * config/alpha/vms-dwarf2eh.asm: New file.
11062
11063         * gcc.c (delete_if_ordinary): Delete all versions.
11064
11065 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11066
11067         * config/mmix/mmix.md: Update FIXME to not mention
11068         define_constants.
11069         (MMIX_rJ_REGNUM): New define_constants constant.
11070         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11071         "*movdicc_real"): Adjust contraints formatting.
11072         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11073         for branch prediction.
11074         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11075         output template.
11076         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11077         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11078         number.  Delete related FIXMEs.
11079         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11080         from number to MMIX_rJ_REGNUM.
11081         (TARGET_MASK_BRANCH_PREDICT): New.
11082         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11083         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11084         value.  Add -mbranch-predict and -mno-branch-predict.
11085         (TARGET_VERSION): Drop date.
11086         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11087         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11088         for finding out global symbols.
11089         (mmix_asm_output_labelref): Revert condition for global symbol.
11090         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11091         (mmix_print_operand_punct_valid_p): A '+' is valid.
11092
11093 See ChangeLog.6 for earlier changes.