OSDN Git Service

* ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-18  Richard Henderson  <rth@redhat.com>
2
3         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4         blocks.  Handle multiple references to the TRAP block.  Handle
5         non-adjacent THEN and OTHER blocks.
6
7 2002-04-18  Richard Henderson  <rth@redhat.com>
8
9         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10         crash with no type for by-mode libcalls.
11
12         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
13
14 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
15
16         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
17         __xtensa_nonlocal_goto): Use a syscall instructions to flush
18         the register windows.
19
20 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
21
22         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
23         appropriate.  Document need for extended precision even when
24         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
25         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
26         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
27         instead of relying on later syntax error when REAL_WIDTH > 5.
28         * real.c: Define NE based only on whether or not we have a
29         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
30         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
31         define GET_REAL and PUT_REAL as simple memcpy operations; no
32         need to byteswap or round.
33         Use #error instead of #ifdef-ing out the entire file, for
34         prompt error detection.
35
36         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
37
38 2002-04-18  David S. Miller  <davem@redhat.com>
39
40         * config/sparc/sparc.h (BRANCH_COST): Define.
41
42         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
43         does it.
44
45 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
46
47         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
48         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
49         propagate_block calls after relaxation loop using new variable
50         stabilized_prop_flags.
51
52 2002-04-18  Richard Henderson  <rth@redhat.com>
53
54         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
55         (ia64_va_arg): Expect variable sized types by reference.
56         * config/ia64/ia64-protos.h: Update.
57         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
58         ia64_function_arg_pass_by_reference.
59
60 2002-04-18  Richard Henderson  <rth@redhat.com>
61
62         * ifcvt.c: Include except.h.
63         (block_has_only_trap): Break out from find_cond_trap.
64         (find_cond_trap): Use it.  Always delete the trap block.
65         (merge_if_block): Allow then block null.  Be less simplistic about
66         what insns can end a block.
67         * Makefile.in (ifcvt.o): Depend on except.h.
68
69         * config/ia64/ia64.md (trap, conditional_trap): New.
70
71 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
72
73         PR c/6358
74         * function.c (assign_parms): Assign hard current_function_return_rtx
75         register here...
76         (expand_function_end): ...not here.
77
78 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
79
80         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
81         * c-tree.h (c_incomplete_type_error): New.
82         * c-typeck.c (require_complete_type, build_component_ref): Update.
83         (incomplete_type_error): Rename.
84         * langhooks-def.h (lhd_incomplete_type_error): New.
85         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
86         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
87         * langhooks.c (lhd_incomplete_type_error): New.
88         * langhooks.h (struct lang_hooks_for_types): New hook.
89         * tree.c (size_in_bytes): Use new hook.
90         * tree.h (incomplete_type_error): Remove.
91 objc:
92         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
93
94 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
95
96         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
97         TARGET_FLOAT_FORMAT blocks.
98
99 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
100
101         * doc/install.texi (Downloading the source): Do not mention Chill
102         any longer, but mention Ada.
103         (Configuration): Do not mention Chill any longer.
104
105 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
106
107         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
108
109 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
110
111         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
112         in last patch.
113
114 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
115
116         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
117         instead of unsigned_type.
118
119 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
120
121         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
122         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
123         later.
124
125 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
126
127         * attribs.c (vector_type_node_list): New static variable.
128         (handle_vector_size_attribute): Use it to avoid generating a
129         new type node each time we are called.
130
131         * combine.c (subst): Avoid trying to make a vector mode subreg of
132         an integer constant.
133         (gen_lowpart_for_combine): Likewise.
134
135 2002-04-18  Roger Sayle  <roger@eyesopen.com>
136             Jakub Jelinek  <jakub@redhat.com>
137
138         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
139         for integer constant c (if x has unsigned type or sign bit is not
140         set in c).  This folds the zero/sign extension into the bit-wise and
141         operation.
142
143 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
144
145         PR middle-end/6205
146         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
147         otherwise xorps.
148
149 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
150
151         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
152
153 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
154
155         * gcc.c (read_specs): Detect and fail if an attempt is made to
156         rename a spec string to an already existing string.
157
158 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
159
160         * config/s390/s390.c (legitimize_pic_address): Do not generate
161         illegal address constant without CONST.
162
163 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
164
165         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
166         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
167
168 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
169
170         PR optimization/6305
171         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
172         to make sure previous reloads are taken into account.  Generate
173         better code if one operand is an in-range immediate constant.
174
175 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
176
177         * doc/install.texi (Building): libgcj requires GNU make.
178
179 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
180
181         PR bootstrap/6315
182         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
183         even if hard quad and register is not floating.
184         (movtf reg<-mem split): Disallow splitting if hard quad and
185         register is floating.
186         (movtf mem<-reg split): Likewise.
187         * config/sparc/sparc.c (fp_register_operand): New predicate.
188         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
189
190 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
191
192         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
193         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
194         (unprotoize.o): Ditto.  Build from protoize.c.  Define
195         UNPROTOIZE on command line.
196         * protoize.c: Include cppdefault.h.  Delete include_defaults.
197         (in_system_include_dir): Use cpp_include_defaults (defined in
198         cppdefault.o).
199         * unprotoize.c: Delete file.
200
201 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
202
203         * config/rs6000/altivec.h (vec_ld): Add array variants.
204         (vec_lde): Same.
205         (vec_ldl): Same.
206
207 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
208             Aldy Hernandez <aldyh@redhat.com>
209
210         * config/rs6000/altivec.h: Define __ALTIVEC__.
211         (bool): New.
212         (__pixel): New.
213         (pixel): New.
214         (vec_cfux): New.
215         (vec_vmaddfp): New.
216         (vec_vsldoi): New.
217         Add parentheses to all macro arguments.
218
219 2002-04-16  Richard Henderson  <rth@redhat.com>
220
221         PR c++/6320
222         * except.c (remove_eh_handler): Insert inner regions at beginning
223         of sibling chain.  Refactor expressions.
224
225 2002-04-16  Richard Henderson  <rth@redhat.com>
226
227         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
228         * config/sparc/sol2-gas-bi.h: New file.
229         * config.gcc (sparc*-solaris): Add it as needed.
230         * configure.in (AS_SPARC64_FLAG): Remove check.
231         * config.in, configure: Regenerate.
232
233         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
234
235 2002-04-16  Richard Henderson  <rth@redhat.com>
236
237         * config/mips/mips.c (override_options): Don't override N32 for
238         a 64-bit ISA.
239
240         PR 6202
241         * config/mips/mips.md (can_delay): Split out of existing define_delays.
242         (HILO_delay): Set can_delay false.
243
244 2002-04-16  Dale Johannesen <dalej@apple.com>
245
246         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
247         instruction addresses.
248         (rs6000_output_function_epilogue): Likewise.
249
250 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
251
252         * c-parse.in (poplevel, compstmt_start,
253         compstmt_primary_start): Add ending ';', in accordance
254         with POSIX.
255
256 2002-04-16  Richard Henderson  <rth@redhat.com>
257
258         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
259         Adjust tm_file order to get TARGET_DEFAULT set properly.
260         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
261         * doc/install.texi (sparc-solaris): Update.
262
263 2002-04-16  Dale Johannesen <dalej@apple.com>
264
265         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
266         comparison operands do not match each other or if modes of
267         conditions do not match result.
268
269 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
270
271         PR target/6305
272         * config/s390/s390.md (mulsidi3): Set both subregs of the
273         multiword register.
274
275 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
276
277         * config/rs6000/altivec.h (vec_addc): Type check.
278
279 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
280
281         PR middle-end/6279
282         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
283
284         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
285
286 2002-04-15  Richard Henderson  <rth@redhat.com>
287
288         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
289         call_really_used_regs too.
290
291 2002-04-15  Richard Henderson  <rth@redhat.com>
292
293         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
294
295 2002-04-15  David S. Miller  <davem@redhat.com>
296
297         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
298         as being CLOBBERed.
299
300 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
301
302         PR c/6290
303         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
304         CONST_VECTOR is { 0, ... 0 }.
305
306 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
307
308         * doc/install.texi (Installing GCC: Configuration): Clarify
309         the only supported ways to configure gcc.
310
311 2002-04-15  Roland McGrath  <roland@frob.com>
312
313         * config.gcc (alpha*-*-gnu*): New target configuration.
314         * config/alpha/gnu.h: New file for it.
315         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
316
317 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
318
319         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
320         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
321         * tree.h (expand_start_stmt_expr): Update prototype.
322         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
323         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
324         on the STMT_EXPR created for the inline function.
325
326 2002-04-15  Richard Henderson  <rth@redhat.com>
327
328         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
329         config/i386/linux-aout.h, config/i386/linux-oldld.h,
330         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
331         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
332         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
333         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
334         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
335         Define __gnu_linux__, not gnu_linux.
336         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
337
338 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
339
340         Remove Chill front end.
341         * gcc.c (default_compilers): Remove Chill entries.
342         * ch: Remove directory.
343         * doc/frontends.texi: Remove information about Chill.
344         * doc/sourcebuild.texi: Likewise.
345         * doc/standards.texi: Likewise.
346
347 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
348
349         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
350         (LONGLONG_STANDALONE): Define.
351
352 2002-04-15  David S. Miller  <davem@redhat.com>
353
354         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
355         Call emit_library_call with LCT_NORMAL.
356         (sparc_initialize_trampoline): Use LCT_foo instead of
357         magic constant in emit_library_call invocations.
358         (sparc64_initialize_trampoline): Likewise.
359         (sparc_profile_hook): Likewise.
360         * config/sparc/sparc.md: Likewise.
361
362         * config/sparc/sparc.c (sparc_extra_constraint_check):
363         Fix type of argument 'c'.
364         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
365         Likewise.
366
367 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
368
369         * diagnostic.h (output_buffer_state): Redefine.
370         (output_format_decoder): New macro.
371         (output_prefixing_rule): Likewise.
372         (output_line_cutoff): Likewise.
373         (diagnostic_format_decoder): Adjust.
374         (diagnostic_prefixing_rule): Likewise.
375         (diagnostic_line_cutoff): Likewise.
376         (diagnostic_state): Likewise.
377         (diagnostic_kind_count): Likewise.
378         (diagnostic_buffer): Now a macro.
379
380         * diagnostic.c (diagnostic_buffer): Remove definition.
381         (output_is_line_wrapping): Adjust.
382         (set_real_maximum_length): Likewise.
383         (output_set_maximum_length): Likewise.
384         (init_output_buffer): Likewise.
385         (lhd_print_error_function): Likewise.
386         (output_do_verbatim): Likewise.
387
388 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
389
390         * cpperror.c (print_location): Don't print include chain
391         if line == 0.
392         (cpp_begin_message): Update to use DL_ macros.
393         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
394         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
395         cpp_notice, cpp_notice_from_errno): Remove.
396         (cpp_error, cpp_error_with_line): Update to take a diagnostic
397         level.
398         (cpp_errno): New.
399         * cppexp.c (CPP_ICE): Remove.
400         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
401         lex, integer_overflow, _cpp_parse_expr): Update.
402         * cppfiles.c (read_include_file, find_include_file,
403         handle_missing_header, _cpp_read_file, remap_filename): Update.
404         * cpphash.h (enum error_type): Remove.
405         (_cpp_begin_message): Update.
406         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
407         cpp_handle_option, cpp_post_options): Update.
408         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
409         skip_whitespace, parse_identifier, parse_slow, parse_string,
410         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
411         cpp_interpret_charconst): Update.
412         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
413         lex_macro_node, do_undef, glue_header_name, parse_include,
414         do_include_common, read_flag, do_line, do_linemarker, do_ident,
415         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
416         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
417         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
418         _cpp_pop_buffer, do_diagnostic): Update.
419         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
420         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
421         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
422         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
423         cpp_notice, cpp_notice_from_errno): Remove.
424         (cpp_error, cpp_error_with_line): Update to take a diagnostic
425         level.
426         (cpp_errno): New.
427         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
428         collect_args, enter_macro_context, save_parameter, parse_params,
429         _cpp_create_definition, check_trad_stringification,
430         cpp_macro_definition): Update.
431         * cppmain.c (cpp_preprocess_file): Update.
432         * fix-header.c (read_scan_file): Update.
433
434 2002-04-14  Andreas Schwab  <schwab@suse.de>
435
436         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
437
438 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
439
440         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
441
442 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
443
444         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
445         not gnu_hurd.
446
447 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
448
449         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
450
451 2002-04-13      Joel Sherrill <joel@OARcorp.com>
452
453         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
454         sparc-elf and sparc-rtems targets.
455
456 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
457
458         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
459         defined, and __gnu_hurd__ wherever __GNU__ is defined.
460         * arm/linux-elf.h: Likewise.
461         * cris/aout.h: Likewise.
462         * cris/linux.h: Likewise.
463         * i370/linux.h: Likewise.
464         * i386/gnu.h: Likewise.
465         * i386/linux-aout.h: Likewise.
466         * i386/linux-oldld.h: Likewise.
467         * i386/linux.h: Likewise.
468         * i386/linux64.h: Likewise.
469         * ia64/linux.h: Likewise.
470         * m68k/linux-aout.h: Likewise.
471         * m68k/linux.h: Likewise.
472         * mips/linux.h: Likewise.
473         * pa/pa-linux.h: Likewise.
474         * pj/linux.h: Likewise.
475         * rs6000/sysv4.h: Likewise.
476         * s390/linux.h: Likewise.
477         * sh/linux.h: Likewise.
478         * sparc/linux-aout.h: Likewise.
479         * sparc/linux.h: Likewise.
480         * sparc/linux64.h: Likewise.
481         * xtensa/linux.h: Likewise.
482
483 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
484
485         * stmt.c (check_unique_operand_names): Expect operand names to
486         be strings rather than identifiers.  Use simple_cst_equal to
487         compare them.
488         (resolve_operand_name_1): Make same identifier to string change here.
489         * c-parse.in (asm_operand): Convert a named operand into a string.
490         * cp/parse.y (asm_operand): Likewise.
491
492 2002-04-13  Andreas Schwab  <schwab@suse.de>
493
494         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
495
496 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
497
498         Revert these changes:
499
500         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
501
502         PR c++/5571
503         * stor-layout.c (layout_decl): Reset the RTL for the decl.
504
505 2002-04-12  Richard Henderson  <rth@redhat.com>
506
507         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
508         (sparc*-*-solaris): Clean up header files.
509         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
510         and plan on generating 64-bit code.
511         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
512         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
513         * config/sparc/sol2-sld-64.h: Rename ...
514         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
515         for AS_SPARC64_FLAG not defined.
516         * config/sparc/sol2-gld-bi.h: New.
517         * config/sparc/sol2-sld.h: Remove.
518         * config/sparc/sol26-sld.h: New.
519         * config/sparc/sol2.h: Tidy comments.
520         * doc/install.texi: Document sparc-solaris configury changes.
521
522 2002-04-12  Richard Henderson  <rth@redhat.com>
523
524         * recog.c (offsettable_address_p): Match the logic in adjust_address.
525
526         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
527         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
528
529 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
530
531         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
532
533 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
534
535         * pa.c (pa_can_combine_p): Call extract_insn before calling
536         constrain_operands.
537
538 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
539
540         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
541         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
542         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
543         (CPP_PREDEFINES): Handle __declspec.
544         * config/i386/t-interix (USER_H): Remove.
545
546 2002-04-12  DJ Delorie  <dj@redhat.com>
547
548         * integrate.c (compare_blocks): Make comparisons safe for when
549         sizeof(int) < sizeof(char *).
550         (find_block): Likewise.
551
552 2002-04-12  Jan Hubicka  <jh@suse.cz>
553             David Edelsohn  <edelsohn@gnu.org>
554
555         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
556         registers.
557         (symbol_ref_operand): New.
558         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
559         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
560
561 2002-04-12  Andreas Schwab  <schwab@suse.de>
562
563         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
564         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
565         overrides the definition in config/svr4.h.
566
567 2002-04-12      Eric Norum <eric.norum@usask.ca>
568
569         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
570         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
571         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
572         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
573         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
574         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
575         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
576         definitions to config/rtems.h and make the targets more similar.
577
578 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
579
580         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
581         POINTERS_EXTEND_UNSIGNED.
582         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
583         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
584
585         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
586         not specified.
587
588 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
589
590         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
591         depends on TARGET_SHMEDIA, not TARGET_SH5.
592
593 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
594
595         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
596         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
597
598 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
599
600         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
601         no r0 clobber.
602
603 2002-04-12  Andreas Schwab  <schwab@suse.de>
604
605         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
606
607 2002-04-12  Richard Henderson  <rth@redhat.com>
608
609         PR bootstrap/4191
610         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
611
612         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
613         modes spanning multiple hard regs.
614
615         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
616
617 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
618
619         * pa.c (pa_output_function_prologue): Don't accumulate the total
620         number of code bytes when using TARGET_64BIT, or gas, SOM and not
621         the portable runtime.
622         (output_deferred_plabels): Handle 64bit plabels.
623         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
624         generating pic code using the GAS assembler for object formats that
625         are not SOM (ie., ELF32 and ELF64).
626         (output_millicode_call): Check attribute type if attribute length is 28.
627         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
628         dbr_sequence_length once.
629         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
630         dbr_sequence_length once.
631         * pa.h (TARGET_SOM): Define if not defined.
632         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
633         with GAS and not SOM.
634         (jump, call_internal_reg, call_value_internal_reg): Likewise.
635         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
636
637 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
638
639         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
640         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
641         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
642         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
643         elfos.h and dbxelf.h values are fine now.
644         * config/i386/freebsd.h, config/alpha/freebsd.h
645         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
646
647 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
648
649         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
650         or set Acpu or Amachine.  Reformat.
651         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
652         define.
653         (LINK_SPEC): Do not need to undef.
654         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
655         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
656         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
657         define.
658         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
659         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
660         (LINK_SPEC): Do not need to undef.
661         (DONT_USE_BUILTIN_SETJMP): Do not define.
662         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
663         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
664         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
665         Remove trailing spaces.
666         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
667         __ELF__, or set Acpu or Amachine.  Reformat.
668         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
669         define.
670
671 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
672
673         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
674         all other *-*-freebsd* targets.
675
676 2002-04-11  Richard Henderson  <rth@redhat.com>
677
678         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
679
680 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
681
682         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
683         Include {cpu}/{cpu}.h thru tm_file.
684         (alpha*-*-linux*ecoff): Remove target.
685         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
686         (LINK_SPEC): Remove, is not OS independent.
687         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
688         (LINK_SPEC): Do not need to #undef any longer.
689         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
690         any longer.
691         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
692         __ELF__.
693         (LINK_SPEC): Moved here from alpha/elf.h.
694         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
695         SUB_CPP_PREDEFINES.
696         * config/alpha/linux-ecoff.h: Remove.
697         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
698         (CPP_SPEC): Define _POSIX_SOURCE as needed.
699         (CPP_SUBTARGET_SPEC): Do not define.
700         (LINK_SPEC): Do not need to #undef any longer.
701         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
702         * config/alpha/vms.h: Likewise.
703
704 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
705
706         * doc/extend.texi: Remove old claim that typedefs cannot have
707         an alignment attribute.
708
709 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
710
711         PR optimization/6177
712         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
713         bitpos is 0 and bitsize CONCAT size.
714
715 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
716
717         PR c/6223
718         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
719
720 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
721
722         * config/alpha/freebsd.h: Minor reformatting.
723         (CPP_SPEC): Define ELF and add cpp_subtarget.
724         (ASM_SPEC): No longer needed.
725
726 2002-04-11  Richard Henderson  <rth@redhat.com>
727
728         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
729         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
730         (dimode mem/zero splitter): New.
731
732 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
733
734         * config/cris/cris.c (cris_override_options): Tweak error message
735         for PIC not implemented.
736
737         * config/cris/cris.h: Tweak comments related to parameter-passing.
738
739         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
740
741 2002-04-10  Richard Henderson  <rth@redhat.com>
742
743         * except.c (add_ehl_entry): Allow duplicates after landing pad
744         creation.
745
746 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
747
748         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
749
750 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
751
752         * c-decl.c (c_init_decl_processing): Move generation of
753         decls for g77_integer_type_node and friends from here ...
754         * c-common.c (c_common_nodes_and_builtins): ... to here.
755
756 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
757
758         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
759         is only used as frame pointer when frame_pointer_needed is true.
760
761 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
762
763         PR target/817
764         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
765         for the fact that the pool entry uses two words.
766         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
767         1k bytes.
768         (movdf_soft_insn): Similarly.
769         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
770         for the fact that the pool entry uses three words.
771
772 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
773
774         * config/mips/mips.c (mips_va_arg): When using the struct version
775         of the EABI va_list, allow arguments in the register save area to
776         take up less room than a stack argument.
777
778 2002-04-10  Richard Henderson  <rth@redhat.com>
779
780         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
781         if EXPAND_INITIALIZER.
782
783 2002-04-09  Richard Henderson  <rth@redhat.com>
784
785         * config/alpha/alpha.md (movdi_er_maybe_g): New.
786         * config/alpha/alpha.c (alpha_expand_mov): Use it.
787
788 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
789
790         PR optimization/6233
791         * rtlanal.c (pure_call_p): New function.
792         * rtl.h (pure_call_p): Declare.
793         * loop.c (prescan_loop): Use it to set has_nonconst_call.
794         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
795
796 2002-04-09  Eric Christopher  <echristo@redhat.com>
797
798         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
799         information to .comm directive.
800
801 2002-04-09  Richard Henderson  <rth@redhat.com>
802
803         PR c/5078
804         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
805
806 2002-04-09  Richard Henderson  <rth@redhat.com>
807
808         * basic-block.h (flow_delete_block_noexpunge): Declare.
809         (expunge_block_nocompact): Declare.
810         * cfg.c (expunge_block_nocompact): Split out from ...
811         (expunge_block): ... here.
812         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
813         (flow_delete_block_noexpunge): Split out from ...
814         (flow_delete_block): ... here.
815         * cfgcleanup.c (delete_unreachable_blocks): Compact while
816         removing dead blocks.
817         * except.c (exception_handler_labels): Remove.
818         (exception_handler_label_map): New.
819         (struct eh_region): Add aka member.
820         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
821         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
822         (for_each_eh_label, for_each_eh_label_1): New.
823         (init_eh): Register exception_handler_label_map.
824         (free_eh_status): Use free_region.
825         (find_exception_handler_labels): Use the map, not the list.
826         (remove_exception_handler_label): Likewise.
827         (maybe_remove_eh_handler): Likewise.
828         (remove_eh_handler): Use the region aka bitmap.
829         * except.h (exception_handler_labels): Remove.
830         (for_each_eh_label): Declare.
831         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
832         * loop.c (invalidate_loops_containing_label): New.
833         (find_and_verify_loops): Use it.  Use for_each_eh_label.
834         * sched-rgn.c (is_cfg_nonregular): Use
835         current_function_has_exception_handlers.
836
837 2002-04-09  Richard Henderson  <rth@redhat.com>
838
839         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
840         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
841         Do not return changed status.
842         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
843         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
844         New functions that do return changed status.
845         * sbitmap.h: Update decls.
846         * gcse.c, lcm.c: Use _cg functions as needed.
847
848 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
849
850         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
851         (sh64-*-elf*, sh-*-rtemself*): Likewise.
852         * config/sh/embed_bb.c: New file.
853         * config/sh/embed-elf.h: New file.
854         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
855         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
856         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
857         __PTRDIFF_TYPE__ .
858         (SUBTARGET_CPP_PTR_SPEC): Don't define.
859         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
860         Add subtarget_asm_endian_spec.
861         (ASM_SPEC): Use subtarget_asm_endian_spec.
862         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
863         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
864         (WCHAR_UNSIGNED): Define.
865         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
866         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
867         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
868         Fix value.
869         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
870         (sh_adjust_cost): Likewise.
871         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
872         __PTRDIFF_TYPE__ .
873         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
874         (WCHAR_TYPE_SIZE): Likewise.
875         (ASM_SPEC): Use subtarget_asm_endian_spec.
876         (SH_ELF_WCHAR_TYPE): #undef/ #define.
877         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
878         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
879         (MAX_WCHAR_TYPE_SIZE): Don't #define .
880         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
881         (USER_LABEL_PREFIX): Don't #undef /#define .
882         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
883         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
884         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
885         (ASM_SPEC): Likewise.
886         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
887         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
888         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
889         (LIB2FUNCS_EXTRA): Define.
890         * t-sh64 (LIB2FUNCS_EXTRA): Define.
891         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
892         (LIB1ASMFUNCS_CACHE): Define.
893         (LIB2FUNCS_EXTRA): Redefine empty.
894
895 2002-04-08  Richard Henderson  <rth@redhat.com>
896
897         * reorg.c (get_branch_condition): Use reversed_comparison_code.
898
899 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
900
901         * config/m68hc11/larith.asm (__map_data_section): Fix condition
902         and optimize for size.
903         (__do_global_ctors): Fix pointer comparison.
904         (__do_global_dtors): Likewise.
905
906 2002-04-09  David S. Miller  <davem@redhat.com>
907
908         * config/sparc/sparc.c (sparc_extra_constraint_check): New
909         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
910         allow reloading pseudos.
911         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
912         * config/sparc/sparc-protos.h: Declare it.
913
914         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
915         unsigned comparison warning.
916         (output_restore_regs): Mark leaf_function as unused.
917
918 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
919
920         * expr.c (is_aligning_offset): New function.
921         (expand_expr, case COMPONENT_EXPR): Call it.
922
923 2002-04-08  David S. Miller  <davem@redhat.com>
924
925         PR target/6082
926         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
927
928         Make init_priority work on Sparc when using GNU ld.
929         * config/sparc/linux.h, config/sparc/linux64.h,
930         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
931         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
932         * config/sparc/sol2-gld.h: New file to do the same.
933         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
934         sparc/sol2-gld.h to tm_file.
935
936         PR optimization/4328
937         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
938         * doc/md.texi: Document it.
939         * config/sparc/sparc.md (movdi_insn_sp64_novis,
940         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
941         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
942         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
943         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
944
945 2002-04-08  Andreas Jaeger  <aj@suse.de>
946
947         * stmt.c (expand_asm_operands): Revert last patch from Richard
948         Henderson.
949
950 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
951
952         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
953         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
954
955 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
956
957         * doc/contrib.texi (Contributors): Add David O'Brien.
958
959 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
960
961         * configure.in (auto-build.h): Use target_alias and build_alias
962         when running configure.
963         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
964         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
965         * configure: Regenerate.
966
967 2002-04-07  David S. Miller  <davem@redhat.com>
968
969         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
970
971 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
972
973         PR 5933
974         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
975         generating 32-bit pic code.
976
977 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
978
979         * cppinit.c (cpp_create_reader): Initialize
980         discard_comments_in_macro_exp.
981         (COMMAND_LINE_OPTIONS): Add "-CC" option.
982         (cpp_handle_option): Handle "-CC" option.
983         * cpplex.c (save_comment): If saving a C++ comment in
984         a directive, convert it to a C comment.
985         (_cpp_lex_direct): Pass second comment start character to
986         save_comment to indicate comment type.
987         * cpplib.c (_cpp_handle_directive): If processing
988         a "#define" directive and discard_comments_in_macro_exp
989         is false,  re-enable saving of comments.
990         (lex_macro_node): If discard_comments_in_macro_exp is false,
991         discard any comments before the macro identifier.
992         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
993         member.
994         * cppmacro.c (cpp_get_token): If expanding a macro while
995         processing a directive, discard any comments we might encounter.
996         (parse_params): If discard_comments_in_macro_exp is false,
997         ignore comments in the macro parameter list.
998         * gcc.c (cpp_unique_options): Add "-CC" option.
999         (option_map): Map "--comments-in-macros" to "-CC".
1000         * doc/cppopts.texi: Document "-CC" option.
1001         * f/lang-specs.h: Add "-CC" option.
1002         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1003         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1004         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1005         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1006         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1007         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1008
1009 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1010
1011         PR middle-end/6180
1012         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1013
1014 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1015
1016         PR c++/5571
1017         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1018
1019         PR opt/5120
1020         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1021         RTX_UNCHANGING_P for the functions arguments when a tail call
1022         is made.
1023
1024 2002-04-06  Jason Merrill  <jason@redhat.com>
1025
1026         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1027         (parse_options_and_default_flags): Set them appropriately.
1028         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1029
1030 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1031
1032         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1033         here.
1034
1035         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1036         semicolon.
1037
1038         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1039         types come in by-reference.  Fix typo in comment.
1040
1041 2002-04-05  David S. Miller  <davem@redhat.com>
1042
1043         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1044         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1045         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1046         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1047
1048 2002-04-05  David S. Miller  <davem@redhat.com>
1049
1050         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1051         are not going to emit return instructions, emit at least a nop
1052         for the sake of sane backtraces.
1053
1054 2002-04-05  Richard Henderson  <rth@redhat.com>
1055
1056         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1057
1058 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1059
1060         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1061
1062 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1063
1064         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1065         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1066         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1067
1068 2002-04-05  Andreas Schwab  <schwab@suse.de>
1069
1070         * c-convert.c: Include c-common.h.
1071         * Makefile.in (c-convert.o): Updated.
1072
1073 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1074
1075         * mklibgcc.in: Use separate libgcc.map for each multilib.
1076         * Makefile.in (distclean): Don't remove libgcc.map here.
1077
1078 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1079
1080         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1081         genmultilib invocation.
1082
1083 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1084
1085         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1086         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1087         to num_gprs for symmetry.
1088         * config/mips/mips.c: Adjust accordingly.
1089
1090 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1091
1092         * c-common.c (truthvalue_conversion): Rename, update.
1093         * c-common.h (c_common_truthvalue_conversion): New.
1094         * c-convert.c (convert): Update.
1095         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1096         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1097         * c-typeck.c (build_binary_op, build_unary_op,
1098         build_conditional_expr): Update.
1099         * fold-const.c (constant_boolean_node, fold): Use langhook.
1100         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1101         * langhooks.h (struct lang_hooks): New hook.
1102         * stmt.c (expand_decl_cleanup): Use langhook.
1103         * tree.h (truthvalue_conversion): Remove.
1104 objc:
1105         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1106
1107 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1108
1109         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1110         Add rules to make null object file.
1111
1112 2002-04-04  Jim Blandy  <jimb@redhat.com>
1113
1114         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1115         macro formal parameter names.
1116
1117 2002-04-04  David S. Miller  <davem@redhat.com>
1118
1119         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1120
1121 2002-04-04  Richard Henderson  <rth@redhat.com>
1122
1123         PR middle-end/5099
1124         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1125         Support copies into and out of memory.  Don't accept allows_reg
1126         and allows_mem as gospel.
1127
1128 2002-04-04  Richard Henderson  <rth@redhat.com>
1129
1130         PR opt/6165
1131         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1132         (write_dependence_p): Likewise.
1133
1134 2002-04-04  Richard Henderson  <rth@redhat.com>
1135
1136         * predict.c (estimate_bb_frequencies): Do frequency calculation
1137         with a volatile temporary.
1138
1139 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1140
1141         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1142
1143 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1144
1145         PR c++/6119
1146         * final.c (final_start_function): Don't bump profile_label_no here...
1147         (final_end_function): ...but here.
1148
1149 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1150
1151         * config/sparc/sparc.md (pic): New attribute.
1152         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1153         into stack slots.
1154         (split after do_builtin_setjmp_setup): New.
1155
1156 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1157
1158         PR fortran/6106
1159         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1160         change.
1161
1162 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1163
1164         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1165         UNITS_PER_WORD for zero sized aggregates.
1166
1167 2002-04-03  David S. Miller  <davem@redhat.com>
1168
1169         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1170         one-character spec for this, just use %(link_gcc_c_sequence).
1171
1172 2002-04-03  David S. Miller  <davem@redhat.com>
1173
1174         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1175         handling.
1176
1177 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1178
1179         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1180         (DWARF_FRAME_RETURN_COLUMN): Move.
1181         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1182         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1183         * pa.c (except.h, predict.h): Include.
1184         (FRP): Delete.
1185         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1186         (output_ascii): Add cast.
1187         (store_reg_modify): Revise to add frame notes.
1188         (set_reg_plus_d): Likewise.
1189         (compute_frame_size): Include space for eh data registers in frame if
1190         the current function calls eh_return.
1191         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1192         function calls eh_return.  Save eh data registers if the current
1193         function calls eh_return.  Fix code to add frame notes.  Emit
1194         blockage to prevent insns with frame notes being scheduled in the
1195         delay slot of calls.
1196         (hppa_expand_epilogue): Restore eh data registers and do final stack
1197         adjustment if the current function calls eh_return.  Don't add frame
1198         notes.
1199         (output_call): Revise for change in length of call insn.  Don't do
1200         return pointer adjustment for an unconditional jump in the delay slot
1201         of a call when using frame notes.
1202         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1203         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1204         (ARG_POINTER_CFA_OFFSET): Define.
1205         * pa.md (return_external_pic): New pattern.
1206         (prologue): Correct formatting.  Use return_external_pic if current
1207         function calls eh_return.
1208         (call_internal_symref, call_value_internal_symref,
1209         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1210         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1211         respectively.
1212         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1213
1214         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1215         list of targets to check using "nop" insn.
1216         * configure: Rebuilt.
1217
1218 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1219
1220         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1221
1222 2002-04-03  David S. Miller  <davem@redhat.com>
1223
1224         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1225         library sequence passed to the linker.
1226         (LINK_COMMAND_SPEC): Use it.
1227         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1228         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1229         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1230
1231 2002-04-03  Jason Merrill  <jason@redhat.com>
1232
1233         * except.c (struct eh_status): Remove protect_list.
1234         (begin_protect_partials, end_protect_partials): Remove.
1235         (add_partial_entry): Remove.
1236         * except.h: Remove prototypes.
1237
1238         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1239         expand_decl_cleanup_eh.
1240
1241         PR c++/5636
1242         * tree.h (CLEANUP_EH_ONLY): New macro.
1243         * stmt.c (expand_decl_cleanup_eh): New fn.
1244         (expand_cleanups): Check CLEANUP_EH_ONLY.
1245         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1246         Use expand_decl_cleanup_eh.
1247         (expand_stmt): Adjust.
1248         * c-common.h: Adjust prototype.
1249
1250 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1251
1252         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1253         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1254         (cris_target_asm_function_epilogue): Ditto.
1255         (cris_initial_frame_pointer_offset): Ditto.
1256         (cris_simple_epilogue): Ditto.
1257         (cris_expand_builtin_va_arg): Variable-size types come in
1258         by-reference.
1259
1260 2002-04-03  David S. Miller  <davem@redhat.com>
1261
1262         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1263         little-endian.
1264         (set_fast_math): Correct 'fsr' type.
1265
1266 2002-04-03  Richard Henderson  <rth@redhat.com>
1267
1268         PR opt/3569
1269         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1270         * toplev.c (check_global_declarations): Use it.
1271         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1272         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1273         (LANG_HOOKS_DECLS): Add it.
1274         * langhooks.c (lhd_warn_unused_global_decl): New.
1275         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1276         * c-objc-common.c (c_warn_unused_global_decl): New.
1277         * c-tree.h (c_warn_unused_global_decl): Declare.
1278         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1279
1280 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1281
1282         * langhooks-def.h (lhd_set_decl_assembler_name,
1283         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1284         (LANG_HOOKS_INITIALIZER): Update.
1285         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1286         * langhooks.h (struct lang_hooks): New hook.
1287         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1288         (lang_set_decl_assembler_name): Remove.
1289         (init_obstacks): Don't set hook.
1290         (decl_assembler_name): New function.
1291         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1292         (decl_assembler_name): New.
1293         (lang_set_decl_assembler_name): Remove.
1294
1295 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1296
1297         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1298         works properly with .hidden symbols.
1299         * configure: Rebuilt.
1300         * config.in: Rebuilt.
1301         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1302         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1303         properly with .hidden symbols.
1304
1305 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1306
1307         PR middle-end/6102
1308         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1309         USE argument.
1310
1311 2002-04-03  Richard Henderson  <rth@redhat.com>
1312
1313         PR opt/4120
1314         * sched-rgn.c (sets_likely_spilled): New.
1315         (sets_likely_spilled_1): New.
1316         (add_branch_dependences): Use it.
1317
1318 2002-04-02  Richard Henderson  <rth@redhat.com>
1319
1320         PR opt/4311
1321         * loop.h (LOOP_FIRST_PASS): New.
1322         * loop.c (strength_reduce): Mind it when deciding to unroll.
1323         * toplev.c (rest_of_compilation): Set it.
1324
1325 2002-04-02  David S. Miller  <davem@redhat.com>
1326
1327         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1328         mems_ok_for_ldd_peep when the order of the loads being examined
1329         is reversed.
1330         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1331         existing comment to increase comprehension of this situation.
1332
1333 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1334
1335         * config/sh/sh.md: Don't use union real_extract.
1336
1337 2002-04-02  Richard Henderson  <rth@redhat.com>
1338
1339         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1340
1341 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1342
1343         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1344         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1345         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1346         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1347         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1348         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1349         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1350         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1351         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1352         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1353         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1354         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1355         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1356         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1357         Include as many configury headers via tm_file as possible.  This
1358         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1359         * config/openbsd-oldgas.h: New file.
1360         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1361         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1362         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1363         config/i386/i386-coff.h, config/i386/i386-interix.h,
1364         config/i386/iscdbx.h, config/i386/linux-aout.h,
1365         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1366         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1367         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1368         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1369         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1370         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1371         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1372         config/i386/vxi386.h: Do not directly include configury headers.
1373         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1374         Directly include configury headers that are no longer automatically
1375         included by the above headers.
1376         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1377         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1378         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1379         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1380         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1381         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1382         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1383         (TARGET_VERSION): Define.
1384         * config/i386/beos-elf.h, config/i386/freebsd.h,
1385         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1386         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1387         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1388         config/i386/sco5.h, config/i386/sysv4.h
1389         (TARGET_VERSION): Do not need to protect.
1390         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1391         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1392         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1393         config/i386/i386-interix.h, config/i386/linux-aout.h,
1394         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1395         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1396         (YES_UNDERSCORES): Do not define - not needed.
1397         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1398         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1399         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1400         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1401         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1402         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1403         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1404         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1405
1406 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1407             Richard Henderson  <rth@redhat.com>
1408
1409         PR c/5484
1410         * function.c (assign_temp): Accept either type or decl argument.
1411         Detect variables whose size is too large to fit into an integer.
1412         * stmt.c (expand_decl): Pass the decl, not the type.
1413
1414 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1415
1416         * protoize.c: Match include directory usage with cppdefault.c.
1417
1418 2002-04-03  Jeffrey A Law  (law@redhat.com)
1419             Hans-Peter Nilsson  <hp@bitrange.com>
1420
1421         * combine.c (simplify_comparison): Avoid narrowing a comparison
1422         with a paradoxical subreg when doing so would drop signficant bits.
1423
1424 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1425
1426         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1427         if POINTERS_EXTEND_UNSIGNED is defined.
1428
1429 2002-04-02  Richard Henderson  <rth@redhat.com>
1430
1431         PR opt/3967
1432         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1433         replace regs.
1434
1435 2002-04-02  Richard Henderson  <rth@redhat.com>
1436
1437         * doc/standards.texi: Document required freestanding libc entry points.
1438
1439 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1440
1441         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1442         associated splitter.  Remove MQ constraint.
1443         (ctrdi_internal4): Correct CCmode clobber.
1444
1445 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1446
1447         * milli64.S ($$dyncall): New function.
1448         * t-linux (LIB1ASMFUNCS): Revise module list.
1449         (LIB1ASMSRC): Use pa/milli64.S.
1450
1451 2002-04-02  Richard Henderson  <rth@redhat.com>
1452
1453         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1454         rename solaris_sys_varargs_h.
1455
1456 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1457
1458         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1459         the same mode as its component.
1460
1461 2002-04-02  Richard Henderson  <rth@redhat.com>
1462
1463         PR opt/190
1464         * final.c (this_is_asm_operands): Export.
1465         * output.h (this_is_asm_operands): Declare.
1466         * config/i386/i386.c (print_operand): Error odd asm operands.
1467
1468 2002-04-02  Richard Henderson  <rth@redhat.com>
1469
1470         PR opt/420
1471         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1472
1473 2002-04-01  Richard Henderson  <rth@redhat.com>
1474
1475         PR target/1538
1476         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1477         * fixinc/fixincl.x: Rebuild.
1478
1479 2002-04-01  Richard Henderson  <rth@redhat.com>
1480
1481         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1482         (atomic_alloc, atomic_free): New.
1483         (SIZE, MASK_FOR, PTR_IN): New.
1484         (emergency_reg_state, emergency_reg_state_free): New.
1485         (emergency_labeled_state, emergency_labeled_state_free): New.
1486         (reg_state_alloced, labeled_state_alloced): New.
1487         (alloc_reg_state, free_reg_state): New.
1488         (alloc_label_state, free_label_state, free_label_states): New.
1489         (push, pop, dup_state_stack, free_state_stack): Use them.
1490         (desc_label_state): Likewise.
1491         (uw_frame_state_for): Free label states and state stack.
1492         (uw_update_reg_address): Eliminate warnings.
1493
1494 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1495
1496         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1497         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1498
1499 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1500
1501         * c-decl.c (grokdeclarator): Update.
1502         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1503         * c-tree.h (c_mark_addressable): New.
1504         * c-typeck.c (default_function_array_conversion, build_unary_op,
1505         build_array_ref, convert_for_assignment): Update.
1506         (mark_addressable): Rename.
1507         * calls.c (try_to_integrate, expand_call): Use langhook.
1508         * expr.c (expand_expr): Use langhook.
1509         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1510         * langhooks.h (struct lang_hooks): New hook.
1511         * stmt.c (expand_asm_operands): Use langhook.
1512         * tree.h (mark_addressable): Remove.
1513 objc:
1514         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1515
1516 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1517
1518         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1519         in previous change.
1520
1521 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1522
1523         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1524         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1525
1526 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1527
1528         * c-common.c (unsigned_conversion_warning, convert_and_check,
1529         unsigned_type, signed_type, shorten_compare,
1530         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1531         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1532         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1533         New.
1534         * c-decl.c (grokdeclarator): Update.
1535         * c-format.c (check_format_types): Update.
1536         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1537         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1538         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1539         * convert.c (convert_to_integer): Use new hooks.
1540         * expmed.c (make_tree): Use new hooks.
1541         * expr.c (store_expr): Use new hooks.
1542         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1543         all_ones_mask_p, unextend, fold): Use new hooks.
1544         * langhooks.h (struct lang_hooks_for_types): New hooks.
1545         * tree.h (signed_or_unsigned_type, signed_type,
1546         unsigned_type): Remove.
1547 objc:
1548         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1549         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1550
1551 2002-03-31  Richard Henderson  <rth@redhat.com>
1552
1553         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1554         (desc_frgr_mem): Fix reference to f16-f31.
1555
1556 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1557
1558         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1559         RTVEC_ELT): Const-ify.
1560         * varray.h (VARRAY_CHECK): Const-ify.
1561         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1562         ggc_mark_rtvec, ggc_mark): Const-ify.
1563
1564 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1565
1566         * diagnostic.c: Include langhooks-def.h.
1567         * Makefile.in (diagnostic.o): Update.
1568
1569 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1570
1571         * c-common.c (c_unsafe_for_reeval): Rename.
1572         * c-common.h (c_unsafe_for_reeval): Rename.
1573         * c-decl.c (finish_incomplete_decl): Rename.
1574         (c_init_decl_processing): Don't set langhook.
1575         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1576         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1577         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1578         * c-tree.h (finish_incomplete_decl): Rename.
1579         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1580         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1581         (LANG_HOOKS_INITIALIZER): Update.
1582         * langhooks.c (lhd_unsafe_For_reeval): New.
1583         * langhooks.h (struct langhooks): New hooks.
1584         * toplev.c (incomplete_decl_finalize_hook): Remove.
1585         (wrapup_global_declarations): Update.
1586         * tree.c (lang_unsafe_for_reeval): Remove.
1587         (unsafe_for_reeval): Update.
1588         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1589         Remove.
1590 objc:
1591         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1592         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1593
1594 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1595
1596         * diagnostic.c (print_error_function): Remove.
1597         (default_print_error_function): Rename.
1598         (report_error_function): Update.
1599         * diagnostic.h (print_error_function): Remove.
1600         (default_print_error_function): Remove.
1601         * langhooks-def.h (struct diagnostic_context): Predeclare.
1602         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1603         (LANG_HOOKS_INITIALIZER): Update.
1604         * langhooks.h (struct diagnostic context): Predeclare.
1605         (struct lang_hooks): New hook.
1606
1607 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1608
1609         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1610         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1611         !flag_pic.
1612         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1613         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1614         of PIC_OFFSET_TABLE_REGNUM thruout.
1615         * config/rs6000/rs6000.md: Likewise.
1616         * config/rs6000/darwin.h: Likewise.
1617
1618 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1619
1620         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1621         unsigned HOST_WIDE_INT, not unsigned int.
1622
1623 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1624
1625         PR middle-end/6096, middle-end/6098, middle-end/6099
1626         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1627         CODE_LABELs.
1628         (fill_slots_from_thread): Likewise.
1629
1630 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1631
1632         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1633         floating fields in float regs.
1634         (function_arg_record_value_2): Likewise.
1635
1636 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1637
1638         * config/mmix/mmix.md (define_constants): Remove misleading
1639         FIXME.  Add MMIX_fp_rO_OFFSET.
1640         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1641         saved rO as part of the pattern.  Remove FIXME.
1642         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1643         here, at output-time.
1644
1645 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1646
1647         PR middle-end/6100
1648         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1649         REG_BR_PRED.
1650         (output_v9branch): Likewise.
1651
1652 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1653
1654         * gcc.c: Revert previous patch for now.
1655         * config/i386/djgpp.h: Likewise.
1656
1657 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1658
1659         * config/mmix/crti.asm (_init): Register _fini with atexit.
1660         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1661
1662 2002-03-31  Richard Henderson  <rth@redhat.com>
1663
1664         PR target/3997
1665         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1666         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1667
1668 2002-03-31  Richard Henderson  <rth@redhat.com>
1669
1670         * libgcc2.c (__bb_exit_func): Make static.
1671
1672         * config/alpha/alpha.md (trap): New.
1673
1674 2002-03-31  Richard Henderson  <rth@redhat.com>
1675
1676         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1677         promoted argument types; build trap.
1678         (expand_builtin_trap): New.
1679         (expand_builtin): Use it.
1680         * stmt.c (expand_nl_goto_receivers): Likewise.
1681         * expr.h (expand_builtin_trap): Declare.
1682         * libfuncs.h (LTI_abort, abort_libfunc): New.
1683         * optabs.c (init_optabs): Init abort_libfunc.
1684
1685 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1686
1687         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1688         (LINK_COMMAND_SPEC): ... from here.
1689         (init_gcc_specs): Duplicate it here too, omitting
1690         shared_name in the second copy.
1691         (init_spec): Test for duplicate
1692         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1693
1694 2002-03-30  David S. Miller  <davem@redhat.com>
1695
1696         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1697         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1698
1699 2002-03-30  Roger Sayle <roger@eyesopen.com>
1700             Richard Henderson  <rth@redhat.com>
1701
1702         * regmove.c (combine_stack_adjustments_for_block): Avoid
1703         emitting a stack adjustment of zero bytes.  Let delete_insn
1704         update bb->head.
1705
1706 2002-03-30  Richard Henderson  <rth@redhat.com>
1707
1708         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1709         (sparc_emitting_epilogue): New.
1710         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1711         * config/sparc/sparc-protos.h: Update.
1712         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1713         (TARGET_SWITCHES): Update.
1714         * config/sparc/sparc.md (return): Remove.
1715         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1716         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1717         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1718         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1719         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1720         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1721         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1722         Remove MASK_EPILOGUE.
1723         * doc/invoke.texi: Update.
1724
1725 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1726
1727         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1728         CPP will start the file for us.
1729
1730 2002-03-30  Richard Henderson  <rth@redhat.com>
1731
1732         PR target/5446
1733         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1734         prologue_allocate_stack.
1735         (ia64_single_set): Use insn codes for recognition of special
1736         cases, not rtl matching.
1737         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1738
1739 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1740
1741         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1742
1743 2002-03-30  Richard Henderson  <rth@redhat.com>
1744
1745         PR target/6032
1746         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1747         or -fomit-frame-pointer with profiling.
1748         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1749         (FUNCTION_PROFILER): Do nothing.
1750         (PROFILE_HOOK): New.
1751         * config/sparc/sparc.c (sparc_override_options): Don't check
1752         code models for profiling.
1753         (sparc_function_profiler): Remove.
1754         (sparc_profile_hook): New.
1755         * config/sparc/sparc-protos.h: Update.
1756
1757 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1758
1759         PR optimization/6086
1760         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1761         of SUBREG of volatile MEM or because the MEM was mode dependent,
1762         return CLOBBER instead of unmodified SUBREG.
1763
1764 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1765
1766         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1767         when not optimizing.
1768
1769         * toplev.c (rest_of_compilation): Cann mark_constant_function
1770         only when optimizing.
1771
1772         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1773         are NULL.
1774
1775         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1776         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1777         (try_optimize_cfg): clear all AUX fields.
1778
1779         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1780         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1781         (ix86_address_cost): Be prepared for SUBREGed registers.
1782         (legitimate_address_p): Accept SUBREGed registers.
1783
1784 2002-03-29  Richard Henderson  <rth@redhat.com>
1785
1786         PR target/5672
1787         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1788
1789 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1790
1791         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1792         for aggregate and TFmode types.
1793
1794 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1795
1796         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1797
1798 2002-03-29  Richard Henderson  <rth@redhat.com>
1799
1800         PR target/5886
1801         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1802         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1803
1804 2002-03-29  Richard Henderson  <rth@redhat.com>
1805
1806         PR target/6041
1807         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1808         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1809         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1810         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1811         conditional.
1812         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1813
1814 2002-03-29  Dale Johannesen <dalej@apple.com>
1815
1816         * loop.c (combine_movables): Do allow combination of pseudos.
1817
1818 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1819
1820         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1821         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1822         No functional change except ...
1823         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1824         * doc/install.texi (*-*-freebsd*): Document port configuration.
1825
1826 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1827
1828         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1829         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1830         Use new hooks.
1831         * builtin-types.def (BT_PTRMODE): Update.
1832         * c-common.c (type_for_size): Rename c_common_type_for_size.
1833         (type_for_mode): Similarly.
1834         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1835         Use new hook.
1836         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1837         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1838         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1839         Redefine.
1840         * c-typeck.c (common_type, comptypes, default_conversion):
1841         Use new hooks.
1842         * calls.c: Include langhooks.h.
1843         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1844         calls.
1845         * convert.c: Include langhooks.h
1846         (convert_to_pointer, convert_to_integer): Use new hooks.
1847         * except.c (init_eh): Similarly.
1848         * expmed.c: Include langhooks.h.
1849         (expand_mult_add): Use new hooks.
1850         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1851         try_casesi): Similarly.
1852         * fold-const.c (optimize_bit_field_compare, make_range,
1853         decode_field_reference, fold_truthop, fold): Similarly.
1854         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1855         put_var_into_stack): Similarly.
1856         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1857         LANG_HOOKS_TYPE_FOR_SIZE): New.
1858         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1859         * langhooks.h (lang_hooks_for_types): New hooks.
1860         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1861         * tree.c (get_unwidened, get_narrower): Similarly.
1862         * tree.h (type_for_mode, type_for_size): Remove.
1863         * varasm.c (force_const_mem): Use new hooks.
1864         * utils2.c (nonbinary_modular_operation): Update.
1865 objc:
1866         * objc-act.c (handle_impent): Update.
1867         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1868         Redefine.
1869
1870 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1871
1872         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1873         * config/ia64/ia64.c (basereg_operand): New.
1874         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1875         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1876
1877 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1878
1879         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1880         unwind information when frame_pointer_needed.
1881         (mmix_assemble_integer): Tweak wording in comment.
1882
1883 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1884
1885         * Makefile.in (except.o): Update.
1886         * except.c: Include langhooks.h.
1887         (init_eh): Use langhook.
1888         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1889         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1890         (LANG_HOOKS_INITIALIZER): Update.
1891         * langhooks.h (lang_hooks_for_types): New.
1892         (struct lang_hooks): Add it.
1893         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1894         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1895 config:
1896         * alpha/alpha.c: Include langhooks.h.
1897         (alpha_build_va_list): Use langhook.
1898         * d30v/d30v.c: Include langhooks.h.
1899         (d30v_build_va_list): Use langhook.
1900         * i386/i386.c: Include langhooks.h.
1901         (ix86_build_va_list): Use langhook.
1902         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1903         * s390/s390.c: Include langhooks.h.
1904         (s390_build_va_list): Use langhook.
1905         * stormy16/stormy16.c: Include langhooks.h.
1906         (stormy16_build_va_list): Use langhook.
1907
1908 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1909
1910         PR c++/5964
1911         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1912         attributes.
1913         (length): Compute variable length for branches/calls/jumps here.
1914         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1915         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1916         define branch_type attribute.
1917         (divsi3_sp32): Maximum length is 6 not 7.
1918         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1919         call_address_untyped_struct_value_sp32,
1920         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1921         * config/sparc/sparc.c (empty_delay_slot): New function.
1922         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1923         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1924
1925 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1926
1927         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1928         nonzero_bits if not needed.
1929         (nonzero_bits) [XOR]: Likewise.
1930         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1931         reg_last_set_mode and mode are both MODE_INT, but not equal.
1932         (record_value_for_reg): Compute reg_last_set_nonzero_bits
1933         in nonzero_bits_mode for MODE_INT modes.
1934
1935 2002-03-28  Richard Henderson  <rth@redhat.com>
1936
1937         PR target/5715
1938         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1939         to GAS.  Correct drift between alternatives.
1940
1941 2002-03-28  Richard Henderson  <rth@redhat.com>
1942
1943         PR target/6087
1944         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1945
1946 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
1947
1948         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1949         emulation to the linker.
1950
1951 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
1952
1953         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1954         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1955
1956 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
1957
1958         * combine.c (simplify_and_const_int): Make sure to apply mask
1959         when force_to_mode returns a constant integer.  PR3311.
1960
1961 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1962
1963         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1964
1965 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1966
1967         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1968         and Objective-C Dialect Options.
1969
1970 2002-03-28  Richard Henderson  <rth@redhat.com>
1971
1972         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1973         comparison should be done vs !=0 not >0 return code.  Tidy cases.
1974
1975 2002-03-28  Richard Henderson  <rth@redhat.com>
1976
1977         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
1978         on to c_expand_body.
1979         * c-tree.h (finish_function): Update decl.
1980         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1981
1982 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1983
1984         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1985
1986 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
1987
1988         * rtlanal.c: Include flags.h
1989         (may_trap_p): Do not mark FP operations if trapping
1990         if !flag_trapping_math
1991         * Makefile.in (rtlanal.o): Add dependency on flag.h
1992         * ifcvt.c (noce_operand_ok): Avoid the lameness.
1993
1994 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
1995
1996         * mips.md: Use dconst1, not 1.0, as first argument of
1997         REAL_VALUE_LDEXP.  Don't use union real_extract.
1998
1999 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2000
2001         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2002         rather than $target.  Heed program_prefix and
2003         program_transform_name.  Search for gas in cross-compiler case too.
2004         "test -x" rather than "test -f".
2005         (gcc_cv_ld): Likewise.
2006         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2007         (gcc_cv_objdump): Likewise.
2008         * configure: Regenerate.
2009
2010 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2011
2012         * Makefile.in (attribs.o): Update.
2013         * attribs.c: Include langhooks.h.
2014         (decl_attributes): Use langhook.
2015         * c-decl.c (insert_default_attributes): Rename.
2016         * c-tree.h (c_insert_default_attributes): New.
2017         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2018         (LANG_HOOKS_INITIALIZER): Update.
2019         * langhooks.h (struct lang_hooks): New hook.
2020         * tree.h (insert_default_attributes): Remove.
2021 objc:
2022         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2023
2024 2002-03-27  Andreas Schwab  <schwab@suse.de>
2025
2026         * config/i386/i386.c (classify_argument): Also check for
2027         QUAL_UNION_TYPE.
2028
2029 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2030
2031         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2032         any more.
2033
2034 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2035
2036         * i960.md (ret): Set PC.
2037         (nonlocal_goto): Fix expander.
2038         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2039         some jump or call.
2040
2041 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2042
2043         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2044         of libcall regions.
2045
2046 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2047
2048         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2049         assigning to BLOCK_FOR_INSN directly.
2050
2051 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2052
2053         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2054
2055 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2056
2057         * c-common.c (c_expand_expr): Fix prototype.
2058         * c-common.h (c_expand_expr): Always declare, update.
2059         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2060         * c-objc-common.c (c_objc_common_init): No global hook.
2061         * expr.c (expand_expr): Use langhook.
2062         * expr.h (enum expand_modifier): Conditionally declare.
2063         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2064         (LANG_HOOKS_INITIALIZER): Update.
2065         * langhooks.c (lhd_expand_expr): New.
2066         * langhooks.h (struct lang_hooks): New hook.
2067         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2068         (lang_independent_init): Don't default hook.
2069 objc:
2070         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2071
2072 2002-03-27  Richard Henderson  <rth@redhat.com>
2073
2074         PR target/6054
2075         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2076         TARGET_CONST_GP.  Simplify conditions.
2077
2078 2002-03-27  Richard Henderson  <rth@redhat.com>
2079
2080         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2081         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2082         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2083
2084 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2085
2086         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2087         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2088         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2089         Remove unnecessary masks.
2090         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2091         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2092         -mwindows, -mdll switches and their negations.
2093
2094 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2095
2096         * gcc-common.c (lang_mark_false_label_stack): Remove.
2097         * ggc.h (lang_mark_false_label_stack): Similarly.
2098
2099 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2100
2101         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2102
2103         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2104         or __rtems_ is defined.
2105
2106 2002-03-26  Richard Henderson  <rth@redhat.com>
2107
2108         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2109         if a non-trivial load was emitted.
2110         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2111         in high+extra+low case.
2112
2113 2002-03-26  Richard Henderson  <rth@redhat.com>
2114
2115         * config.gcc (sparc*-solaris): Use float_format=sparc.
2116
2117 2002-03-26  Richard Henderson  <rth@redhat.com>
2118
2119         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2120         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2121         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2122         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2123         (WINT_TYPE_SIZE): Fix at 32.
2124
2125 2002-03-26  Richard Henderson  <rth@redhat.com>
2126
2127         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2128         until after eh landing pad generation.
2129         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2130         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2131
2132 2002-03-26  Richard Henderson  <rth@redhat.com>
2133
2134         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2135
2136 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2137
2138         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2139         and warning switches.
2140         (cc1_options):  Likewise.
2141
2142 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2143
2144         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2145         Restore more of the signal context.  Set no_reg_stack_frame.
2146         * config/ia64/unwind-ia64.c (unw_state_record):
2147         Add no_reg_stack_frame, comments.
2148         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2149         (uw_update_context): Adjust bsp when unwinding from leaf,
2150         but not signal frame.
2151
2152 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2153
2154         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2155
2156 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2157
2158         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2159
2160 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2161
2162         PR target/5621
2163         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2164         "Add a pool_range attribute", which was lost during the ARM/Thumb
2165         merge.
2166
2167 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2168
2169         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2170         a register into the MAC16 accumulator.
2171
2172 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2173
2174         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2175         (Warning Options): Document -Wswitch-enum.
2176         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2177         -Wswitch.
2178         (warn_switch_enum): Define variables.
2179         * flags.h (warn_switch_enum): Declare variables.
2180         * stmt.c (expand_end_case_type): When warn_switch_enum /
2181         -Wswitch-enum, perform switch checks.
2182         Fix PR c/5044.
2183
2184 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2185
2186         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2187         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2188         (reload_muladdsi_compare0_scratch): Delete.
2189
2190 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2191
2192         * doc/install.texi (*-*-freebsd*): Update.
2193
2194 2002-03-26  Richard Henderson  <rth@redhat.com>
2195
2196         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2197         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2198
2199         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2200         types from the normal argument frame.
2201
2202         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2203         variable sized objects by reference.
2204         (sparc_va_arg): Receive them by reference too.
2205
2206 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2207
2208         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2209         code to not restoring global registers.
2210
2211 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2212
2213         * Makefile.in (ggc-common.o): Update.
2214         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2215         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2216         * c-tree.h (c_mark_tree): New.
2217         * ggc-common.c: Include langhooks.h.
2218         (gcc_mark_trees): Use new langhook.
2219         * ggc-callbacks.c: Delete file.
2220         * ggc.h (lang_mark_tree): Remove.
2221         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2222         (LANG_HOOKS_INITIALIZER): Update.
2223         * langhooks.h (struct lang_hooks): New hook.
2224 objc:
2225         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2226
2227 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2228
2229         * doc/cpp.texi: Exclude entire Top node from printed manual.
2230         Move option index after directive index.  Insert page breaks
2231         before GFDL and concept index.  Index environment variables
2232         with command line options.
2233         * doc/cppenv.texi: Use @vtable for environment variable list.
2234         Add paragraph explaining semantics of empty elements in path
2235         variables.  Exclude a cross-reference to Fishkill from the
2236         manpage.  Remove an unnecessary cross-reference of the entry
2237         right above the referer.  Don't use @anchor in text that goes
2238         into manpage.
2239         * doc/cppopts.texi: Cross-reference the environment variables
2240         section, not the specific environment variable, for consistency.
2241
2242 2002-03-25  Richard Henderson  <rth@redhat.com>
2243
2244         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2245         anywhere in the block.  Don't refer to insns that have been
2246         removed from the chain.  Iterate backward through the new insns.
2247         Don't refer to edges that have been removed.
2248
2249 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2250
2251         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2252         test for overflow of constant.
2253
2254 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2255
2256         PR target/2623
2257         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2258         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2259         these patterns on arm_archv4.
2260
2261 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2262
2263         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2264         int".
2265
2266 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2267
2268         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2269         float_handled, float_handler, float_signal, set_float_handler,
2270         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2271         * toplev.h: Don't prototype do_float_handler.
2272
2273         * c-lex.c: Fold parse_float into lex_number.  Make warning
2274         about portability of hex float constants more informative, and
2275         don't issue it on top of a syntax error.
2276         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2277         their callers.
2278         * real.h: Define REAL_VALUE_ABS here...
2279         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2280         simplify_unary_real, simplify_binary_real, and
2281         simplify_binary_is2orm1 into their callers.
2282         * tree.c: Fold build_real_from_int_cst_1 into caller.
2283
2284         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2285
2286         * tsystem.h: Include float.h here...
2287         * libgcc2.c: ... not here.
2288
2289 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2290
2291         Fixes for: PR bootstrap/3591, target/5676
2292         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2293         defined.  Do not disable exceptions or rtti.
2294         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2295         mcore.h.  Disable exceptions and rtti, since they are not
2296         supported by EPOC.
2297
2298 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2299
2300         * c-decl.c (maybe_build_cleanup): Remove.
2301         * expr.c (expand_expr): Use langhook.
2302         * langhooks-def.h (lhd_return_null_tree,
2303         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2304         (LANGHOOKS_INITIALIZER): Update.
2305         * langhooks.c (lhd_return_null_tree): New.
2306         * langhooks.h (struct lang_hooks): New hook.
2307         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2308         * tree.h (maybe_build_cleanup): Remove.
2309
2310 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2311
2312         * regrename.c (build_def_use): Move recog_memoized
2313         before extract_insn.
2314
2315 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2316
2317         PR target/6043
2318         * expr.c (emit_group_store): Handle storing into CONCAT.
2319
2320 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2321
2322         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2323         corresponding MATCH_DUP.
2324
2325 2002-03-24  Richard Henderson  <rth@redhat.com>
2326
2327         * unroll.c (unroll_loop): Zero label_map.
2328
2329         * gcse.c: Include except.h.
2330         * Makefile.in (gcse.o): Update.
2331
2332 2002-03-24  Richard Henderson  <rth@redhat.com>
2333
2334         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2335         Do resolve_unique_section before shared data clause.
2336
2337 2002-03-24  Richard Henderson  <rth@redhat.com>
2338
2339         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2340
2341 2002-03-24  Richard Henderson  <rth@redhat.com>
2342
2343         * recog.c (peephole2_optimize): Split blocks when EH insns are
2344         generated in the middle of a block.  Do global life update if
2345         zapped EH edges.
2346
2347 2002-03-24  Richard Henderson  <rth@redhat.com>
2348
2349         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2350
2351 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2352
2353         preprocessor/3951
2354         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2355         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2356         (init_dependency_output): Don't make no_output decision here.
2357
2358 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2359
2360         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2361         warn_switch.  Update description.
2362         (expand_end_case_type): Call check_for_full_enumeration_handling
2363         when warn_switch.
2364
2365 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2366
2367         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2368         (m68hc11_split_move): Call it to see if the source and destination
2369         operands use the same direction auto inc/dec mode, otherwise make the
2370         source an offsetable memory operand and generate an add.
2371
2372 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2373
2374         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2375         register for operand 2.
2376         ("*subsi3_zero_extendqi"): Likewise.
2377         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2378         bits so that it is compatible with a pop.
2379         ("*andhi3_gen"): Likewise.
2380         ("xorhi3"): Likewise.
2381
2382 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2383
2384         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2385         -pedantic here...
2386         (cpp_post_options): ... not here.
2387
2388 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2389             Aldy Hernandez  <aldyh@redhat.com>
2390
2391         Removal of separate preprocessor cpp0.
2392
2393         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2394         cpp0, install-common): Update.
2395         * c-common.c (flag_preprocess_only): New.
2396         (c_common_init): Preprocess for -E.
2397         * c-common.h (flag_preprocess_only): New.
2398         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2399         * c-objc-common.c (c_init_decl_processing): Exit quickly
2400         for NULL return from c_common_init.
2401         * cpplib.h (cpp_preprocess_file): New.
2402         * cppmain.c (main, general_init, pfile, progname): Remove.
2403         (do_preprocessing): Rename cpp_preprocess_file, don't call
2404         cpp_finish.  Don't close stdout here.
2405         (setup_callbacks): Update prototype.
2406         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2407         Update.
2408         * tradcpp.c (main): Ignore -quiet.
2409 objc:
2410         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2411
2412 2002-03-24  Richard Henderson  <rth@redhat.com>
2413
2414         PR optimization/5742
2415         * machmode.def: Add inner mode field to complex modes.
2416         * config/mips/mips.c (mips_function_value): Always define.  Add
2417         new argument to handle libcalls.
2418         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2419         (FUNCTION_VALUE): Likewise.
2420         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2421         * config/mips/mips-protos.h: Update.
2422
2423 2002-03-23  Richard Henderson  <rth@redhat.com>
2424
2425         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2426         * config/sparc/sparc-protos.h: Update.
2427         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2428
2429 2002-03-23  Richard Henderson  <rth@redhat.com>
2430
2431         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2432         _start or _init begins the text segment.
2433
2434 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2435
2436         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2437         not HOST_WIDEST_INT.
2438         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2439
2440 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2441
2442         PR java/5489
2443         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2444         operand argument to output_return_instruction.
2445         * arm.c (arm_print_operand, case 'd'): If the operand is
2446         const_true_rtx then just return.
2447         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2448         then abort.
2449
2450 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2451
2452         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2453         (Warning Options): Document -Wswitch-default.
2454         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2455         -Wswitch.
2456         (warn_switch_default): Define variable.
2457         (warn_switch): Update comment.
2458         * flags.h (warn_switch_default): Declare variable.
2459         (warn_switch): Update comment.
2460         * stmt.c (expand_end_case): Check for and, when
2461         warn_switch_no_default, warn of a missing default case.
2462
2463 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2464
2465         * real.h (N): Special case 128 bit doubles.
2466
2467         * combine.c (simplify_comparison): When widening modes, ignore
2468         sign extension on CONST_INTs.
2469
2470 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2471
2472         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2473         passed to adjust_address.  Fix comment formatting.
2474
2475
2476 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2477
2478         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2479         Always make REAL_VALUE_TYPE a struct containing an array of
2480         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2481         big it is.  Don't declare or use union real_extract.
2482
2483         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2484         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2485         (print_operand), config/arm/arm.c (output_move_double),
2486         config/arm/arm.md (consttable_4, consttable_8),
2487         config/romp/romp.c (output_fpops), config/s390/s390.h
2488         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2489         (xtensa_output_literal): Don't use union real_extract.
2490
2491         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2492         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2493         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2494         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2495         (PRINT_OPERAND): Don't use local version of union
2496         real_extract.
2497
2498         * config/convex/convex.c (check_float_value), config/vax/vax.c
2499         (vax_float_literal), config/m88k/m88k.md (divdf3),
2500         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2501         config/pdp11/pdp11.c (output_move_quad): Don't do host
2502         arithmetic on target floating point quantities.
2503
2504         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2505         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2506
2507         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2508         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2509
2510         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2511         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2512         INFINITY.
2513         * print-rtl.c (print_rtx): Disable code which needs
2514         floating-point emulator.
2515         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2516         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2517         depending on HOST_FLOAT_FORMAT to be defined properly.
2518
2519         * config/1750a/1750a.c (get_double, float_label): Delete.
2520         (print_operand): Delete huge commented-out chunk.  Use
2521         REAL_VALUE_TO_DECIMAL.
2522         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2523         functions.
2524         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2525         IEEE_FLOAT_FORMAT.
2526         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2527         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2528         * config/m88k/m88k.c (real_power_of_2_operand,
2529         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2530         real_extract out of the union; run the input through
2531         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2532         from that into the union.
2533         * config/pdp11/pdp11.c (output_move_double): Rearrange
2534         parentheses to make automatic indenter happy.
2535
2536         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2537         Point" and rewrite to describe current situation.  Also adjust
2538         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2539         match code.
2540         * doc/rtl.texi: Adjust cross reference.
2541
2542 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2543
2544         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2545         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2546         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2547         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2548         prevent use of sp as a reload register.
2549         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2550         non_acc_reg_operand.
2551         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2552         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2553         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2554         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2555
2556 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2557
2558         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2559         * cpplex.c (unterminated): Delete.
2560         (parse_string): No string literal may extend over multiple
2561         lines.  Suppress the error when preprocessing assembly.
2562         * cppmain.c (scan_translation_unit): Strings are single-line.
2563
2564         * doc/cpp.texi: Update to match.
2565
2566 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2567
2568         PR optimization/5854
2569         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2570         Shut up warnings.
2571         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2572         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2573         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2574         const0 if scratch register was not allocated.
2575         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2576         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2577         with GEN_INT (...).
2578         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2579         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2580         with GEN_INT (...) everywhere.  Remove constraints in define_split
2581         patterns.
2582         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2583         require scratch register for setting 0 into regs/non-pushable memory.
2584
2585 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2586
2587         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2588         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2589
2590 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2591
2592         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2593         * cppinit.c (cpp_create_reader):  On by default.
2594         (cpp_handle_option):  Handle -W[no-]endif-labels.
2595         (cpp_post_options):  Also enable if -pedantic.
2596         * cpplib.c (do_else):  Use it.
2597         (do_endif):  Likewise.
2598         * doc/cppopts.texi:  Document new option.
2599         * doc/invoke.texi:  Document new option.
2600
2601 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2602
2603         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2604         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2605
2606 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2607
2608         * flow.c (calculate_global_regs_live): Clear aux fields of
2609         ENTRY and EXIT.
2610
2611 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2612
2613         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2614         REG or MEM subregs, pass rtx * instead of rtx to it.
2615         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2616         rtx * instead of rtx to alter_subreg.
2617         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2618         * config/pj/pj.c (pj_output_rval): Likewise.
2619
2620 2002-03-22  Richard Henderson  <rth@redhat.com>
2621
2622         PR target/3177
2623         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2624         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2625         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2626         (ia64_expand_prologue): Look at int_regs, not words, for number
2627         of incomming int regs.
2628
2629 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2630
2631         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2632
2633 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2634
2635         * toplev.c (flag_loop_optimize, flag_crossjumping):
2636         New static variables.
2637         (rest_of_compilation): Conditionalize crossjumping and
2638         loop optimizer.
2639         (parse_options_and_default_flags): Default loop_optimize and
2640         crossjumping.
2641         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2642         * invoke.texi (crossjumping, loop-optimize): Document.
2643
2644 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2645
2646         * real.c (eiisneg): Move outside #ifdef NANS.
2647
2648 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2649
2650         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2651         frequencies match; avoid match on different loop depths.
2652         (try_crossjump_to_bb): Kill tests that no longer brings time
2653         savings.
2654         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2655         updating code.
2656         (split_edge): Likewise.
2657
2658         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2659         variable.
2660
2661         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2662         * cfgrtl.c: Include insn-config.h
2663         (split_block) Dirtify block in presence of conditional execution
2664
2665 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2666
2667         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2668         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2669         (function_arg): Constify CUMULATIVE_ARGS.
2670         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2671         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2672         (UNITS_PER_DOUBLE): New macro.
2673         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2674         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2675         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2676         fp_regs and stack_words.
2677         (EABI_FLOAT_VARARGS_P): New macro.
2678         * config/mips/mips.c (struct mips_arg_info): New.
2679         (mips_arg_info): New function.
2680         (function_arg_advance): Use it.  Add adjustment instructions here
2681         rather than in function_arg.
2682         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2683         for VOIDmode at the beginning of the function.
2684         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2685         (function_arg_pass_by_reference): Likewise.
2686         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2687         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2688         (mips_va_start): Likewise.  Use the new stack_words field of
2689         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2690         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2691         doubles and other types, aligning the overflow pointer for non-doubles
2692         too.  Remove some code duplication.  Replace hard-coded constants.
2693
2694 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2695
2696         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2697         (CLASS_UNITS): Undefine.
2698         (CLASS_MAX_NREGS): Use FP_INC.
2699         * config/mips/mips.c (compute_frame_size): Likewise.
2700         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2701
2702 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2703
2704         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2705         prototype, and handle lexing numbers and identifiers.
2706         (parse_identifier): Update to new form of parse_slow.
2707         (parse_number): Fast path only, use parse_slow otherwise.
2708         (_cpp_lex_direct): Update calls to parse_number.
2709
2710 2002-03-21  DJ Delorie  <dj@redhat.com>
2711
2712         * bb-reorder.c (make_reorder_chain_1): Protect against
2713         when redundant edges are omitted.
2714         * predict.c (dump_prediction): Likewise.
2715
2716 2002-03-21  Richard Henderson  <rth@redhat.com>
2717
2718         PR target/5996
2719         * fixinc/inclhack.def (solaris_stdio_tag): New.
2720         * fixinc/fixincl.x: Regenerate.
2721
2722 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2723
2724         PR c/5597
2725         * c-typeck.c (process_init_element): Flag non-static
2726         initialization of a flexible array member as illegal.
2727
2728 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2729
2730         * config/rs6000/t-linux64: New.
2731         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2732         t-ppccomm.  Use t-rs6000 and t-linux64.
2733         (powerpc64-*-gnu* <tmake_file>): Likewise.
2734         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2735         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2736         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2737
2738 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2739
2740         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2741         flag_really_no_inline instead of optimize == 0.
2742
2743         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2744
2745         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2746
2747         * flags.h (flag_really_no_inline): New.
2748
2749         * c-common.c (c_common_post_options): Initialize
2750         flag_really_no_inline.
2751
2752         * toplev.c (flag_really_no_inline): New.
2753
2754 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2755
2756         * config/avr/avr.md (length): Fix length computation for
2757         conditional branches.
2758
2759 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2760
2761         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2762         sdbout.o, profile.o): Update.
2763         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2764         langhook.
2765         * c-common.h (gettags): Move here from tree.h.
2766         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2767         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2768         * dbxout.c (dbxout_init): Use getdecls langhook.
2769         * expr.c (expand_expr): Use insert_block langhook.
2770         * fold-const.c: Include langhooks.h.
2771         (fold_range_test, fold_binary_op_with_conditional_arg,
2772         fold): Use global_bindings_p langhook.
2773         * integrate.c (expand_inline_function): Use insert_block langhook.
2774         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2775         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2776         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2777         LANG_HOOKS_GETDECLS): New.
2778         (LANG_HOOKS_INITIALIZER): Update.
2779         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2780         langhook.
2781         * langhooks.h (struct lang_hooks_for_decls): New.
2782         (struct lang_hooks): Update.
2783         * profile.c: Include langhooks.h.
2784         (output_func_start_profiler): Use new langhooks.
2785         * sdbout.c: Include langhooks.h.
2786         (sdbout_init, sdbout_finish): Use getdecls langhook.
2787         * stmt.c: Include langhooks.h.
2788         (expand_fixup, fixup_gotos): Use new langhooks.
2789         * stor-layout.c: Include langhooks.h.
2790         (variable_size): Use global_bindings_p langhook.
2791         * toplev.c (compile_file): Use getdecls langhook.
2792         * tree-inline.c (remap_block): Use insert_block langhook.
2793         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2794         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2795
2796 2002-03-21  Richard Henderson  <rth@redhat.com>
2797
2798         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2799         constants in .data when -fpic.
2800
2801 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2802
2803         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2804         where appropriate.
2805
2806 2002-03-21  Tom Tromey  <tromey@redhat.com>
2807
2808         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2809
2810 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2811
2812         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2813
2814         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2815
2816 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2817             Richard Henderson  <rth@redhat.com>
2818
2819         PR c/5354
2820         * c-common.c (c_expand_expr): Preserve result of a statement
2821         expression if needed.
2822
2823 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2824
2825         PR bootstrap/4195
2826         * genrecog.c (maybe_both_true_mode): Remove.
2827         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2828         * machmode.def (Pmode): Likewise.
2829
2830 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2831
2832         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2833         (nonlocal_mentioned_p_1): New function.
2834         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2835         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2836         (mark_constant_function): Recognize pure functions.
2837         * rtl.h (global_reg_mentioned_p): New prototype.
2838         * rtlanal.c (global_reg_mentioned_p,
2839         global_reg_mentioned_p_1): New function.
2840
2841 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2842
2843         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2844         UNIX assert.h.
2845         * fixinc/fixincl.x: Regenerate.
2846
2847 2002-03-20  Jason Merrill  <jason@redhat.com>
2848
2849         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2850
2851 2002-03-20  Michael Meissner  <meissner@redhat.com>
2852
2853         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2854         -fstrict-aliasing.
2855
2856 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2857
2858         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2859         ".literal_position" directive before the constant pool.
2860
2861 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2862
2863         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2864         Add Craig Rodrigues.
2865         Add Brad Lucier to testers.
2866
2867 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2868
2869         PR target/4792
2870         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2871         to if_then_else.
2872         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2873         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2874         instead of insn_extract.
2875
2876 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2877
2878         PR bootstrap/4192
2879         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2880
2881         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2882         stmt if some case has been output.
2883
2884 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2885
2886         PR c/5972
2887         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2888         movsfcc_1, movdfcc_1): Add %O2.
2889         * config/i386/i386.c (print_operand): Handle %ON.
2890         Print . before float condition codes in Sun as cmov syntax.
2891         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2892         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2893         no longer true.
2894
2895 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2896
2897         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2898         return instruction if PC was popped.
2899
2900 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2901
2902         * config/xtensa/xtensa.md: Remove unused type attributes.
2903         (adddi_carry, subddi_carry): Change type attribute to "multi".
2904
2905 2002-03-19  Dale Johannesen  <dalej@apple.com>
2906
2907         PR optimization/5999, middle-end/5731
2908         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2909         multiplications by reciprocals.
2910
2911 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2912
2913         * Makefile.in: Update.
2914         * c-common.c: Include langhooks.h.
2915         (inline_forbidden_p): Use new hook.
2916         * diagnostic.c: Include langhooks.h.
2917         (format_with_decl, announce_function,
2918         default_print_error_function): Use new hook.
2919         * dwarf2out.c (dwarf2_name): Use new hook.
2920         * function.c: Include langhooks.h.
2921         (init_function_start): Use new hook.
2922         * langhooks-def.h (lhd_decl_printable_name): New.
2923         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2924         (LANGHOOKS_INITIALIZER): Update.
2925         * langhooks.c (lhd_decl_printable_name): New.
2926         * langhooks.h (struct lang_hooks): New hook.
2927         * toplev.c (decl_name, decl_printable_name): Remove.
2928         (open_dump_file): Use new hook.
2929         (process_options): Remove old hook.
2930         * tree.h (decl_printable_name): Remove.
2931 objc:
2932         * objc-act.c (objc_init): Remove old hook.
2933         (objc_printable_name): Export.
2934         * objc-act.h (objc_printable_name): New.
2935         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2936
2937 2002-03-19  Jim Blandy  <jimb@redhat.com>
2938
2939         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2940         the start_source_file debug hook, not the current line number.
2941
2942 2002-03-19  Richard Henderson  <rth@redhat.com>
2943
2944         * flow.c (EH_USES): Provide default.
2945         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2946         * doc/tm.texi (EH_USES): New.
2947
2948         * config/ia64/ia64.c (ia64_eh_uses): New.
2949         * config/ia64/ia64-protos.h: Update.
2950         * config/ia64/ia64.h (EH_USES): New.
2951
2952 2002-03-19  Richard Henderson  <rth@redhat.com>
2953
2954         * varasm.c (output_constant_def): Fix stupid typo.
2955
2956 2002-03-19  Richard Henderson  <rth@redhat.com>
2957
2958         PR 5879
2959         * except.c (current_function_has_exception_handlers): New.
2960         * except.h: Declare it.
2961         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2962         Combine tests that disable all sibcalls for the function.
2963
2964 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
2965
2966         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2967         for INTEGER_CST.
2968
2969 2002-03-19  Richard Henderson  <rth@redhat.com>
2970
2971         PR 5977, 5991
2972         * config/ia64/ia64.c: Revert 2002-03-01 patch.
2973         * config/ia64/ia64.h (INIT_EXPANDERS): New.
2974
2975 2002-03-19  Jim Blandy  <jimb@redhat.com>
2976
2977         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2978         name, even if the replacement list contains no tokens, as required
2979         by Dwarf.
2980
2981 2002-03-19  Jason Merrill  <jason@redhat.com>
2982
2983         * varasm.c (globalize_decl): Get the name from the RTL, not
2984         DECL_ASSEMBLER_NAME.
2985
2986         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2987
2988 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
2989
2990         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2991         subdi_carry): Define.
2992
2993 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2994
2995         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2996         about -fpic/-fPIC if extra_warnings set.
2997
2998 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2999
3000         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3001         TREE_STRING_POINTER.
3002         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3003
3004 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3005
3006         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3007         in favor of SP if FRAME_POINTER_REQUIRED is false.
3008
3009 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3010
3011         * emit-rtl.c (gen_int_mode): New function.
3012         * rtl.h: Prototype for it.
3013         * combine.c (make_extraction, simplify_comparison), expmed.c
3014         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3015         (convert_modes, store_field), optabs.c (expand_fix),
3016         simplify-rtx.c (neg_const_int, simplify_unary_real),
3017
3018         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3019         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3020
3021 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3022
3023         PR c/5656
3024         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3025         convert_parm_for_inlining.
3026         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3027         Define.
3028         * langhooks-def.h: Likewise.
3029         * objc/objc-lang.c: Likewise.
3030         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3031         function.
3032         * tree-inline.c (initialize_inlined_parameters):
3033         Call convert_parm_for_inlining lang hook if needed.
3034         * c-typeck.c (c_convert_parm_for_inlining): New function.
3035         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3036
3037 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3038
3039         * calls.c (precompute_arguments): Do not assume that temporaries
3040         can be destroyed after expanding the argument.
3041         (expand_call): Likewise.
3042
3043 2002-03-15  Eric Christopher  <echristo@redhat.com>
3044
3045         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3046         Fix register preference on last change.
3047         * config/mips/mips.c (mips_return_in_memory): New function.
3048         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3049         * config/mips/mips-protos.h: Declare.
3050         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3051         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3052
3053 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3054
3055         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3056         a register too.
3057         (anddi3, iorsi3): Likewise.
3058
3059         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3060         use %gprel for symbols that are going to be placed in linkonce
3061         sections.
3062
3063         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3064         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3065         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3066         not needed.  Disregard leaf_function_p().
3067         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3068         mips16 frame pointer.
3069         * config/mips/mips.md (store ra): Only to small SP offsets.
3070         2001-08-22  Graham Stott  <grahams@redhat.com>
3071         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3072         return a REG rtx for the return address register.
3073
3074 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3075
3076         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3077         constant-pool addresses as "mode-dependent".
3078         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3079
3080 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3081
3082         PR target/5740
3083         * expr.c (emit_group_load): Use extract_bit_field if
3084         needed for CONCAT arguments.
3085
3086 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3087
3088         PR target/4863
3089         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3090         offset to the base of the table.
3091         (thumb_tablejump): Matcher for Thumb tablejump insn.
3092         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3093         as the difference of two labels.
3094         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3095         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3096         tables in the code.
3097         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3098         * arm.c (get_jump_table_size): If the table is not in the text
3099         section, return zero.
3100
3101 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3102
3103         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3104         of gen_rtx_SUBREG.
3105         (arm_reload_out_hi): Use gen_lowpart instead of
3106         gen_rtx_SUBREG to access QImode components.
3107         * config/arm/arm.md: Disable zero_extend split for QImode
3108         subregs in BIG_ENDIAN mode.
3109         (storehi_bigend): Match use of least significant byte.
3110         (storeinthi): Remove extraneous SUBREG.
3111         Add missing construction of operands[2].
3112         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3113         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3114         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3115
3116 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3117
3118         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3119         any_operand.
3120
3121 2002-03-17  Richard Henderson  <rth@redhat.com>
3122
3123         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3124         explicitly.
3125
3126 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3127
3128         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3129         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3130
3131 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3132
3133         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3134
3135         * predict.c (estimate_bb_frequencies): Delete unused variables.
3136
3137 2002-03-17  Richard Henderson  <rth@redhat.com>
3138
3139         * config/ia64/ia64.c (ia64_attribute_table): Move before
3140         targetm definition.  Make static.
3141
3142 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3143
3144         * c-common.h (yyparse, c_common_parse_file): New.
3145         * c-lang.c: Include c-common.h.
3146         (LANG_HOOKS_PARSE_FILE): Redefine.
3147         * c-lex.c: Include c-common.h.
3148         (yyparse): Rename c_common_parse_file.  Call yyparse.
3149         * c-parse.in (yyparse): Remove macro.
3150         * c-tree.h (yyparse_1): Remove.
3151         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3152         (LANG_HOOKS_INITIALIZER): Update.
3153         * langhooks.h (struct lang_hoooks): New hook parse_file.
3154         * toplev.c (compile_file): Use parse_file hook.
3155         * tree.h (yyparse): Remove.
3156         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3157
3158 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3159
3160         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3161         float_truncate, not fix.
3162         ("*truncdfsf2_real"): Ditto.
3163         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3164
3165         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3166
3167 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3168
3169         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3170         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3171         where appropriate.  Make the second reference to
3172         leaf_function_p a function call, as intended.  Reindented.
3173
3174         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3175         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3176
3177         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3178         add register to non-constant into sp.
3179
3180         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3181         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3182         (mips16_gp_pseudo_rtx): Lose.
3183         (INIT_EXPANDERS): Deleted.
3184         * config/mips/mips.c (mips_init_machine_status): New.
3185         (mips_free_machine_status): New.
3186         (mips_mark_machine_status): New.
3187         (override_options): Set them.
3188         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3189         (struct machine_function): ... new.  Replaced all references.
3190         (mips_add_gc_roots): Don't mark them.
3191         (embedded_pic_fnaddr_reg): New, extracted from...
3192         (embedded_pic_offset): ... here.
3193         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3194         (movsi): Likewise.
3195
3196 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3197
3198         * cppinit.c: Revert -MD removal.
3199
3200 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3201
3202         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3203         soft registers by default for 68HC12.
3204         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3205         when compiling with -fomit-frame-pointer.
3206         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3207         (expand_epilogue): Likewise.
3208         (m68hc11_gen_rotate): Use exg when rotating by 8.
3209
3210 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3211
3212         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3213         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3214         (splits): Remove unused add splits.
3215         ("*addhi3_68hc12"): Tune constraints.
3216         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3217         constant fits in 8-bits and D is dead use abx/aby instructions.
3218         ("*addhi3"): Remove extern declaration of ix_reg.
3219         ("*subsi3"): Optimize and provide new split.
3220         ("subhi3"): Cleanup.
3221         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3222         (arith splits): For 68hc12 save the address register on the stack
3223         and do the arithmetic operation with a pop.
3224
3225 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3226
3227         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3228         allocating QImode in address registers.
3229         ("*movqi_m68hc11"): Likewise.
3230
3231 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3232
3233         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3234
3235 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3236
3237         * cppinit.c (print_help): Display -MD and -MMD.
3238         Don't display usage string.  Update assertion syntax and
3239         typo.
3240         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3241         (cpp_handle_option): Update.
3242
3243 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3244
3245         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3246         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3247         and define it so that regardless of target CPU size,
3248         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3249         of "int" rather than "long."
3250
3251 2002-03-15  Richard Henderson  <rth@redhat.com>
3252
3253         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3254         size as a tree.
3255
3256 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3257
3258         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3259         ("tstqi" split): Avoid using memory for tstqi on address register.
3260         (splits): Remove constraints.
3261         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3262         ("cmpdf", "cmpsf"): Remove since not used.
3263         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3264         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3265
3266 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3267
3268         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3269         ("neghi2"): Tighten constraints.
3270         ("one_cmplsi2"): Optimize and simplify split.
3271         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3272
3273 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3274
3275         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3276         and split of AND operation to clear the upper bits.
3277         ("*logicalsi3_zextqi"): Likewise.
3278         ("*logicallhi3_zexthi_ashift8"): Likewise.
3279         ("*logicalsi3_silshr16"): Likewise.
3280         ("logicalsi3_silshl16"): Likewise.
3281         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3282
3283 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3284
3285         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3286         (m68hc11_indirect_p): New function.
3287         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3288         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3289         TARGET_M6812.
3290         (asm_print_register): Likewise.
3291         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3292         (m68hc11_indirect_p): Declare.
3293         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3294         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3295         (TARGET_SWITCHES): New option -mrelax.
3296         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3297         destination.
3298         ("iorsi3", "xorsi3"): Likewise.
3299         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3300         ("*andhi3_mem"): New to handle destination in memory with bclr
3301         and a scratch register.
3302         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3303         ("*andhi3_const"): New when operand2 is constant.
3304         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3305         ("*andhi3_gen"): Cleanup of the old "andhi3".
3306         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3307         ("xorqi3"): Update constraints.
3308
3309 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3310
3311         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3312         for reg_equiv_memory_loc when the operand is a register that does
3313         not get a hard register (stack location).
3314         (tst_operand): After reload, accept all memory operand.
3315         (symbolic_memory_operand): Fix detection of symbolic references.
3316         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3317         accept symbols and any constant.
3318
3319 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3320
3321         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3322         note on the insn that sets the soft frame register.
3323         (must_parenthesize): ix and iy are also reserved names.
3324         (print_operand_address): One more place where parenthesis are required
3325         to avoid confusion with register names.
3326         (m68hc11_gen_movhi): Allow push of stack pointer.
3327         (m68hc11_check_z_replacement): Fix handling of parallel with a
3328         clobber.
3329         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3330         the replacement register is.
3331         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3332         and D8_REGS classes.
3333         (MODES_TIEABLE_P): All modes are tieable except QImode.
3334
3335 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3336
3337         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3338         (___subdi3): Likewise.
3339         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3340         (__map_data_section): Optimize 68hc11 case.
3341
3342 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3343
3344         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3345         than a shift to avoid adding a register with itself.
3346         (m68hc11_memory_move_cost): Take into account NO_REGS.
3347         (m68hc11_register_move_cost): Update and use memory move cost
3348         for soft registers.
3349         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3350         it gives more opportunities to cse to optimize.
3351         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3352         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3353
3354 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3355
3356         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3357         * c-common.def (CLEANUP_STMT): New tree node.
3358         * c-common.h (CLEANUP_DECL): New macro.
3359         (CLEANUP_EXPR): Likewise.
3360         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3361         * expr.c (expand_expr): Tidy.
3362         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3363         * tree-inline.c (initialize_inlined_parameters): Clean up
3364         new local variables.
3365
3366 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3367
3368         PR bootstrap/4128
3369         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3370         before movrXX only, use reg_overlap_mentioned_p.
3371         Only special case NE if just one insn can be generated.
3372
3373 2002-03-15  Jason Merrill  <jason@redhat.com>
3374
3375         * varasm.c (assemble_variable): Call resolve_unique_section before
3376         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3377         of error_mark_node.
3378
3379 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3380
3381         PR target/5170
3382         * arm.md (split pattern for thumb shiftable immediates): Add comment
3383         explaining non-obvious test.
3384
3385 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3386
3387         PR target/5712
3388         * arm.md (movaddr, movaddr_insn): Delete.
3389
3390 2002-03-15  Jason Merrill  <jason@redhat.com>
3391
3392         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3393         -fkeep-static-consts doesn't apply to comdats.
3394
3395 2002-03-14  Richard Henderson  <rth@redhat.com>
3396
3397         * c-decl.c: Include c-pragma.h.
3398         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3399         (finish_function): Tidy.
3400         * c-pragma.c: Include c-common.h.
3401         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3402         (handle_pragma_weak): Use them.
3403         (init_pragma): Register pending_weaks.
3404         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3405         * print-tree.c (print_node): Print DECL_WEAK.
3406         * varasm.c (mark_weak_decls): Remove.
3407         (remove_from_pending_weak_list): Remove.
3408         (add_weak): Remove.
3409         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3410         (weak_decls): Make a tree_list.
3411         (declare_weak): Cons weak_decls directly.
3412         (globalize_decl): Remove weak_decls elements directly.
3413         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3414         symbols.  Don't pretend to handle aliases.
3415         (init_varasm_once): Update weak_decls registry.
3416         * Makefile.in: Update dependencies.
3417
3418 2002-03-14  Richard Henderson  <rth@redhat.com>
3419
3420         PR target/5312
3421         * config/ia64/ia64.c: Include tm_p.h last.
3422         (gen_nop_type): Remove duplicate definition.
3423         (cycle_end_fill_slots): Set sched_data for second L slot.
3424         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3425         (nop_cycles_until): Fix typos.
3426
3427 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3428
3429         PR optimization/5891
3430         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3431
3432 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3433
3434         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3435           descriptors correctly.
3436
3437 2002-03-14  Michael Meissner  <meissner@redhat.com>
3438
3439         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3440         100, allowing MAX_UNROLLED_INSNS to be overridden.
3441
3442         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3443         --param.
3444
3445         * unroll.c (params.h): Include.
3446         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3447
3448         * doc/invoke.texi (--param max-unroll-insns): Document.
3449
3450         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3451
3452 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3453
3454         * arm.md: Fix warnings about constraints in peepholes and splits.
3455
3456 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3457
3458         * cpphash.h (struct lexer_state): Remove line_extension member.
3459         * cpplib.c (dequote_string, do_linemarker): New functions.
3460         (linemarker_dir): New data object.
3461         (DIRECTIVE_TABLE): No longer need to interpret #line in
3462         preprocessed source.  Delete obsolete comment about return
3463         values of handlers.
3464         (end_directive, directive_diagnostics, _cpp_handle_directive):
3465         Don't muck with line_extension.
3466         (directive_diagnostics): No need to issue warnings for
3467         linemarkers here.
3468         (_cpp_handle_directive): Issue warnings for linemarkers here,
3469         when appropriate.  Dispatch linemarkers to do_linemarker, not
3470         do_line.
3471         (do_line): Code to handle linemarkers split out to do_linemarker.
3472         Convert escape sequences in filename argument, both places.
3473
3474         * cppmacro.c (quote_string): Rename cpp_quote_string and
3475         export.  All callers changed.
3476         * cpplib.h (cpp_quote_string): Prototype.
3477         * cppmain.c (print_line): Call cpp_quote_string on to_file
3478         before printing it.
3479
3480         * doc/cpp.texi: Document that escapes are now interpreted in
3481         #line and in linemarkers, and that non-printing characters are
3482         converted to octal escapes when linemarkers are generated.
3483
3484 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3485
3486         * emit-rtl.c (try_split): Use delete_insns.
3487         * recog.c (split_all_insns): Fix terminating condition.
3488
3489 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3490             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3491
3492         PR target/5828
3493         * arm.c (arm_output_epilogue): Fix floating-point register save
3494         adjustment when using a frame pointer.
3495
3496 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3497
3498         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3499         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3500         (save_restore_insns, mips_expand_epilogue): And here.
3501         (build_mips16_call_stub): And here.
3502         (mips_function_value): Use the new macros to decide whether a single
3503         or complex float can be returned in floating-point registers.  Return
3504         a parallel rtx in the complex case.
3505
3506 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3507
3508         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3509         call after liveness analysis.
3510
3511         * recog.c (split_insn): Use delete_insn_and_edges.
3512
3513         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3514         instructions to have branch prediction notes.
3515         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3516
3517 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3518
3519         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3520         that doesn't support it.
3521         * configure: Regenerate.
3522
3523 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3524
3525         PR target/5626
3526         * config/sparc/sparc.md (normal_branch, inverted_branch,
3527         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3528         inverted_fp_branch): Adjust calls to output_cbranch.
3529         Set length attribute.
3530         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3531         output_v9branch.  Set length attribute.
3532         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3533         predicates.
3534         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3535         (output_cbranch): Likewise.  Handle far branches.
3536         (output_v9branch): Handle far branches.
3537         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3538         Adjust prototypes.
3539         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3540         noov_compare64_op predicates.
3541
3542 2002-03-13  Jason Merrill  <jason@redhat.com>
3543
3544         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3545         into the function and constify it.
3546         * gthr-dce.h, gthr-solaris.h: Likewise.
3547
3548 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3549
3550         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3551         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3552         std_expand_builtin_va_arg if not ABI_V4.
3553
3554 2002-03-13  Jason Merrill  <jason@redhat.com>
3555
3556         * varasm.c (globalize_decl): New fn.
3557         (assemble_start_function): Use it.
3558         (asm_emit_uninitialized): Use it.
3559         (assemble_alias): Use it.
3560         (assemble_variable): Use it.
3561
3562 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3563
3564         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3565         2002-03-12 internal visibility change.
3566         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3567         visibility into SYMBOL_REF_FLAG.
3568
3569 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3570
3571         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3572         VOIDmode operand.  Add compile-time optimization for constant results.
3573
3574 2002-03-12  Jason Merrill  <jason@redhat.com>
3575
3576         * c-typeck.c (convert_for_assignment): Don't allow conversions
3577         between pointers and references.  Only allow lvalues to convert to
3578         reference.
3579
3580 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3581
3582         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3583         before prologue, to avoid scheduling problems.
3584
3585 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3586
3587         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3588         (ELIMINABLE_REGS): Add sfp->sp.
3589         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3590
3591 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3592
3593         PR optimization/5892
3594         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3595
3596 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3597
3598         * loop.c (basic_induction_var): Don't call convert_modes if mode
3599         classes are different.
3600
3601 2002-03-12  Richard Henderson  <rth@redhat.com>
3602
3603         PR optimization/5901
3604         * function.c (reposition_prologue_and_epilogue_notes): Position
3605         the markers after/before the last/first insn not deleted.
3606
3607 2002-03-12  Richard Henderson  <rth@redhat.com>
3608
3609         PR optimization/5878
3610         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3611         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3612         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3613
3614         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3615         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3616         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3617
3618         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3619         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3620         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3621         also.  Don't set it if not flag_pic.
3622         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3623         to be INVALID_REGNUM when not used.
3624
3625 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3626
3627         * expmed.c (store_bit_field): Reset alias set for memory.
3628         (extract_bit_field): Same.
3629
3630 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3631
3632         * c-common.c (c_tree_code_type, c_tree_code_length,
3633         c_tree_code_name, add_c_tree_codes): Delete.
3634         * c-common.h (add_c_tree_codes): Delete.
3635         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3636         Define.
3637         * c-objc-common.c (c_objc_common_init): Don't call
3638         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3639         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3640         objc_tree_code_name, add_objc_tree_codes): Delete.
3641         (objc_init): Don't call add_objc_tree_codes.
3642         * objc/objc-lang.c (tree_code_type, tree_code_length,
3643         tree_code_name): Define.
3644         * toplev.c (lang_independent_init): Don't set
3645         tree_code_length[IDENTIFIER_NODE].
3646         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3647         Delete definitions, moved to language front-ends.
3648         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3649         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3650         Const-ify.
3651         (tree_code_length): Change type to unsigned char.
3652
3653 2002-03-12  Richard Henderson  <rth@redhat.com>
3654
3655         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3656         internal visibility change.
3657
3658 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3659
3660         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3661         validize_mem() instead of change_address to avoid clobbering
3662         memory attributes.
3663
3664 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3665
3666         * c-lex.h (position_after_whitespace): Remove.
3667
3668 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3669
3670         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3671         (lex_string): Use unsigned char pointers.
3672
3673 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3674
3675         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3676         is not a valid memory_operand.
3677
3678 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3679
3680         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3681         * config/xtensa/lib1funcs.asm: Fix copyright to include
3682         special case for libgcc files.
3683         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3684         (__divsi3): Likewise.
3685         (__umodsi3): Likewise.
3686         (__modsi3): Likewise.
3687         * config/xtensa/lib2funcs.S: Fix copyright to include
3688         special case for libgcc files.
3689
3690 2002-03-12  Tom Rix  <trix@redhat.com>
3691
3692         * collect2.c (resolve_lib_name): Move outside of
3693         OBJECT_FORMAT_COFF ifdef.
3694         (ignore_library): Same.
3695
3696 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3697
3698         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3699
3700 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3701
3702         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3703         to function_section before writing out the constant pool.
3704
3705 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3706
3707         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3708         zero_constant.
3709         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3710
3711 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3712
3713         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3714         (adddi3): Likewise.
3715         (movdf): Likewise.
3716         (movdi): Likewise.
3717         (cmpsi splitter): Likewise.
3718         (modsi3): Fail if <= 0.
3719         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3720         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3721         (reg_or_sub_cint64_operand): Likewise.
3722         (num_insns_constant_wide): Optimize sign extension.
3723         (rs6000_legitimize_address): Likewise.
3724
3725 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3726
3727         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3728         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3729
3730 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3731
3732         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3733         address calculation.
3734
3735 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3736
3737         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3738         scratch register to DImode / TImode.
3739         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3740         register used does not overlap the target.
3741
3742 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3743
3744         * Makefile.in (debug.o): Depend on debug.h.
3745         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3746         * debug.c (do_nothing_debug_hooks): Likewise.
3747         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3748         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3749         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3750         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3751         * dwarfout.c (dwarf_debug_hooks): Likewise.
3752         * integrate.c (output_inline_function): Likewise.
3753         * objc/objc-act.c (synth_module_prologue): Likewise.
3754         * sdbout.c (sdb_debug_hooks): Likewise.
3755         * toplev.c (debug_hooks): Likewise.
3756         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3757
3758 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3759
3760         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3761         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3762         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3763         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3764         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3765         * defaults.h (POINTER_SIZE): Define.
3766         * doc/tm.texi (POINTER_SIZE): Document default.
3767
3768 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3769
3770         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3771
3772 2002-03-11  Richard Henderson  <rth@redhat.com>
3773
3774         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3775         if rebuild_label_notes_after_reload.
3776
3777 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3778
3779         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3780         emit pic register load if "internal" visibility.
3781         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3782         (cris_expand_builtin_va_arg): Do all computations on trees.
3783
3784 2002-03-11  Richard Henderson  <rth@redhat.com>
3785
3786         * rtlanal.c: Include recog.h.
3787         (keep_with_call_p): Fix thinko.
3788         * Makefile.in (rtlanal.o): Update dependencies.
3789
3790 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3791
3792         * genflags.c (gen_insn): Use IS_VSPACE.
3793         * genoutput.c (output_insn_data): Likewise.
3794         (process_template): Likewise.
3795
3796 2002-03-11  Richard Henderson  <rth@redhat.com>
3797
3798         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3799
3800 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3801
3802         * Makefile.in: Update.
3803         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3804         Update documentation.
3805         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3806         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3807
3808 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3809
3810         * Makefile.in: Give texi2pod its input file as a command line
3811         argument, not on stdin.
3812
3813 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3814             Daniel Berlin  <dan@dberlin.org>
3815
3816         C++ alias analysis improvement.
3817         * alias.c (record_component_aliases): Record aliases for base
3818         classes too.
3819
3820 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3821
3822         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3823
3824 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3825
3826         * toplev.c (vms_fopen): Remove, not needed.
3827
3828         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3829
3830         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3831
3832         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3833         for FP, already done later.
3834
3835         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3836         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3837
3838 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3839
3840         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3841         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3842         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3843         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3844         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3845         (ediv, emul, eldexp, esqrt): Likewise.
3846         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3847         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3848         (saturate): New function.
3849         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3850         (make_nan): Use a saturation value instead of a NaN if
3851         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3852         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3853         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3854         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3855         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3856         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3857         !ROUND_TOWARDS_ZERO.
3858         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3859         (ROUND_TOWARDS_ZERO): Document.
3860
3861 2002-03-11  Andreas Jaeger  <aj@suse.de>
3862
3863         * cfg.c (dump_flow_info): Remove unused variable.
3864
3865 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3866
3867         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3868         computations on trees.
3869
3870 2002-03-10  Richard Henderson  <rth@redhat.com>
3871
3872         PR 5693:
3873         * reload.c (copy_replacements_1): New.
3874         (copy_replacements): Use it to recurse through the rtx.
3875
3876 2002-03-10  Richard Henderson  <rth@redhat.com>
3877
3878         * loop.c (strength_reduce): Compute number of iterations as
3879         unsigned HOST_WIDE_INT.
3880
3881 2002-03-10  Richard Henderson  <rth@redhat.com>
3882
3883         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3884         to move away from the end of the block.
3885
3886 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3887
3888         PR preprocessor/5899
3889         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3890
3891 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3892
3893         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3894
3895         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3896
3897 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3898
3899         * config/mmix/mmix.c: Improve comments.
3900         (mmix_target_asm_function_prologue): Drop variable
3901         empty_stack_frame.  Don't allocate unused slot above fp.
3902         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3903         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3904         brace in first column.
3905         (enum reg_class): Ditto.
3906         (FIRST_PARM_OFFSET): Now 0.
3907         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3908
3909 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3910
3911         * combine.c (make_extraction): Fix error in last change.
3912
3913 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3914
3915         * c4x.c (c4x_fp_reglist): Const-ify.
3916         * cris.c (cris_print_operand): Likewise.
3917         * i386.c (ix86_va_arg): Likewise.
3918         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3919         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3920         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3921         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3922         * mcore.h (regno_reg_class): Likewise.
3923         * mips.c (gen_int_relational): Likewise.
3924         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3925         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3926         * pdp11.c (move_costs): Likewise.
3927         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3928         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3929         Likewise.
3930         * s390.h (regclass_map): Likewise.
3931         * sh.c (shift_amounts): Likewise.
3932         * sh.md (rotlsi3): Likewise.
3933
3934 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3935
3936         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3937         (ne0+5): Use new clobber to generate proper shift pattern.
3938         Patch by Michael Matz <matz@kde.org>.
3939
3940 2002-03-09  Andreas Schwab  <schwab@suse.de>
3941
3942         * gcc.c (validate_all_switches): Also handle `%W{...}'.
3943
3944 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3945
3946         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3947
3948 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3949
3950         PR middle-end/5877
3951         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3952         even for non-representable constants.
3953
3954 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3955
3956         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3957         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3958         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3959         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3960         (pop_function_context): Compute MAY_SHARE parameter for
3961         fixup_var_refs.
3962         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3963         (gen_mem_addressof): Call fixup_var_refs with new parm.
3964
3965         * combine.c (make_extraction): Don't make extension of CONST_INT.
3966
3967 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3968
3969         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3970         in o32 and o64 ABIs.
3971         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3972         but getting fixed-size structs passed in registers regardless of
3973         padding in o32 and o64 ABIs.
3974
3975         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3976         offset before loading address of argument passed by transparent
3977         reference.
3978
3979 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3980
3981         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3982
3983 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3984
3985         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3986         marker such that registers after it are saved.
3987
3988 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3989
3990         * sparc.c (arith_4096_operand): Fix error in last change.
3991
3992 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3993
3994         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3995         defaults for MEABI.
3996
3997 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3998
3999         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4000         vectors.
4001
4002 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4003
4004         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4005
4006 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4007
4008         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4009         removed; fix return value.
4010         * combine.c (combine_instructions): Dirtify blocks where we failed to
4011         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4012         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4013
4014 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4015
4016         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4017
4018 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4019
4020         * recog.c (peephole2_optimize): Re-distribute EH edges.
4021
4022 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4023
4024         * expr.c (expand_expr): Use unsave lang hook.
4025         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4026         (LANG_HOOKS_INITIALIZER): Update.
4027         * langhooks.h (struct lang_hooks): New hook unsave.
4028         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4029         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4030         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4031         (unsave_expr_now): Remove.
4032         * tree.h (unsave_expr_now, lang_unsave,
4033         lang_unsave_expr_now): Remove.
4034         (lhd_unsave): New.
4035
4036 2002-03-08  Andreas Jaeger  <aj@suse.de>
4037
4038         * flow.c (propagate_block_delete_insn): Remove unused variable.
4039
4040 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4041
4042         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4043         insn length for memory load/store.
4044
4045 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4046
4047         * doc/install.texi (--with-libiconv-prefix): Document.
4048
4049 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4050
4051         * doc/sourcebuild.texi: Fix typo.
4052
4053 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4054
4055         PR c/3711
4056         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4057         trees.
4058
4059 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4060
4061         * rtl.c (copy_most_rtx): Move from here ...
4062         * emit-rtl.c (copy_most_rtx): ... to here.
4063
4064 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4065
4066         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4067         SUBTARGET_CPP_SIZE_SPEC.
4068         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4069
4070         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4071
4072 2002-03-07  Matt Hiller  <hiller@redhat.com>
4073
4074         * gensupport.c (first_dir_md_include): Renamed from include;
4075         change all references.
4076         (last_dir_md_include): Renamed from last_include; change all
4077         references.
4078         (init_md_reader): Unconditionally initialize base_dir whether or
4079         not filename is a relative path.
4080
4081 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4082
4083         * config/fp-bit.c (_unord_f2): Compile it in even if
4084         US_SOFTWARE_GOFAST is enabled.
4085
4086         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4087         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4088         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4089         NULL_RTX, try reversing the comparison and the operands.
4090
4091 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4092
4093         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4094         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4095         and MATCH_OP_DUP.
4096
4097 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4098
4099         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4100
4101 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4102
4103         * basic-block.h (fixup_abnormal_edges): Declare.
4104         * reload1.c (fixup_abnormal_edges): New function.
4105         * reg-stack.c (convert_regs): Use it.
4106
4107         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4108
4109         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4110
4111 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4112
4113         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4114         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4115         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4116         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4117         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4118         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4119         unless x and y could be infinite.
4120         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4121         Check that the common type of both arguments is a real, even for
4122         targets without unordered comparisons.  Allow an integer argument
4123         to be compared against a real.
4124         (expand_tree_builtin): Use expand_unordered_cmp.
4125         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4126         * cse.c (fold_rtx): Likewise.  Fix indentation.
4127         * fold-const.c (fold_real_zero_addition_p): New.
4128         (fold): Use it, and the new HONOR_... macros.
4129         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4130         * jump.c (reversed_comparison_code_parts): After searching for
4131         the true comparison mode, use HONOR_NANS to decide whether it
4132         can be safely reversed.
4133         (reverse_condition_maybe_unordered): Remove IEEE check.
4134         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4135         to decide which simplifications are valid.  Allow the following
4136         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4137         and (a - -b) to (a + b).
4138         (simplify_relational_operation): Use HONOR_NANS.
4139         * doc/tm.texi: Document the MODE_HAS_... macros.
4140
4141 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4142
4143         * combine.c (simplify_comparison): If simplifying a logical shift
4144         right and compare with constant, force the comparison to unsigned.
4145
4146 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4147
4148         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4149
4150         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4151         -mabi=no-altivec
4152         (alt_reg_names): Remove % for vrsave.
4153
4154 2002-03-06  Richard Henderson  <rth@redhat.com>
4155
4156         PR optimization/5844
4157         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4158         if used indicates we've already emitted one copy of an operand.
4159         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4160         (gen_split): Supply a non-null used.
4161
4162 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4163
4164         * reload1.c (reload): Unshare all rtl after reload is done.
4165
4166         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4167         but simply fail if the expression is too complex to simplify.
4168         (simplify_gen_binary): Handle simplify_plus_minus failures.
4169
4170 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4171
4172         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4173         consistently call delete_trivially_dead_insns after CSE and GCSE;
4174         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4175         after liveness2; update comment in last crossjumping.
4176         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4177
4178 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4179
4180         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4181         after completing fast dead code elimination.
4182
4183         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4184         COMPARE operator.
4185
4186 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4187
4188         * version.c:  Fix misplaced leading blanks on first line.
4189
4190 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4191
4192         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4193
4194 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4195
4196         * cfgcleanup.c (mentions_nonequal_regs): New function.
4197         (thread_jump): Use it.
4198         * toplev.c (rest_of_compilation): Run jump threading after
4199         liveness.
4200
4201 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4202
4203         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4204         patch.
4205
4206 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4207
4208         * predict.c (estimate_bb_frequencies): Do not reload the
4209         frequencies from notes.
4210
4211 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4212
4213         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4214         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4215
4216         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4217         delete_noop_moves): Return indeger.
4218         * flow.c (ndead): New variable.
4219         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4220         BB argument; update callers.
4221         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4222         (life_analysis): Do not call purge_all_dead_edges.
4223         (update_life_info): Return number of deleted insns; print statistics.
4224         (update_life_info_in_dirty_blocks): likewise.
4225         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4226         return number of insns deleted.
4227
4228         * cse.c: Include timevar.h
4229         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4230         iterate until stabilizes; print statistics; return number of killed
4231         insns.
4232         * Makefile.in: (cse.o): Add timevar.h dependency
4233         * rtl.h (delete_trivially_dead_insns): New.
4234         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4235         * toplev.c (rest_of_compilation): Update callers.
4236
4237         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4238         (try_optimize_cfg): Do not update liveness.
4239         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4240         removal stabilizes; use delete_trivially_dead_insns.
4241
4242         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4243
4244 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4245
4246         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4247         callbacks when processing assembly language.
4248
4249 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4250
4251         * pa.h (ASM_FILE_END): Define.
4252         * som.h (ASM_FILE_END): Delete.
4253
4254         * pa.c (function_arg): Don't pass floats in general registers in
4255         indirect calls if TARGET_ELF32.
4256
4257 2002-03-05  Richard Henderson  <rth@redhat.com>
4258
4259         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4260
4261 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4262
4263         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4264
4265 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4266
4267         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4268         -r command line.  Don't hide any symbols if not building
4269         shared libgcc.
4270
4271 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4272
4273         * cfg.c (dump_flow_info): Warn about profile mismatches.
4274         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4275         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4276
4277 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4278
4279         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4280         wide volatile memory by parts.
4281
4282 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4283
4284         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4285         is NULL.
4286
4287 2002-03-05  Richard Henderson  <rth@redhat.com>
4288
4289         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4290
4291 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4292
4293         * toplev.c (documented_lang_options): Document more
4294         language-specific options.
4295         * doc/invoke.texi (Warning Options): Correct documentation for
4296         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4297         * c-decl.c (c_decode_option): Use a table to handle warning options.
4298
4299 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4300
4301         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4302         parameter to mmix_encode_section_info.
4303         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4304         relocatably.  Always produce ELF, not mmo if linking relocatably.
4305         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4306         first is non-zero, don't add symbol prefix.
4307         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4308         prototype accordingly.
4309
4310 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4311
4312         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4313
4314 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4315
4316         * configure.in: Increase required makeinfo version to 4.1.
4317         * configure: Regenerate.
4318
4319 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4320
4321         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4322         elsewhere now.
4323
4324 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4325
4326         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4327         * doc/invoke.texi: Fix @math uses.
4328
4329 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4330
4331         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4332         removal
4333
4334 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4335
4336         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4337         (powerpc-*-eabisimaltivec*): Same.
4338
4339         * config/rs6000/t-ppcendian: New.
4340
4341 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4342
4343         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4344         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4345         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4346
4347 2002-03-03  Richard Henderson  <rth@redhat.com>
4348
4349         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4350
4351 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4352
4353         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4354         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4355         tree.c, config/m68k/m68k.c:
4356         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4357         REAL_ARITHMETIC blocks unconditional.  Delete some further
4358         #ifdef blocks predicated on REAL_ARITHMETIC.
4359         * flags.h, toplev.c: Delete remaining references to
4360         flag_pretend_float.
4361
4362         * doc/invoke.texi: Remove documentation of -fpretend-float.
4363         * doc/tm.texi: Describe the various REAL_* macros as provided by
4364         real.h, not by the target configuration files.
4365
4366         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4367         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4368         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4369         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4370         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4371         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4372         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4373         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4374         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4375         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4376         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4377         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4378         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4379         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4380         config/xtensa/xtensa.h:
4381         Do not define, undefine, or mention in comments any of
4382         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4383         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4384         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4385         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4386         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4387         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4388         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4389         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4390         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4391
4392 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4393
4394         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4395         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4396         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4397         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4398         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4399         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4400         Delete.
4401         * defaults.h (BITS_PER_WORD): Define.
4402         * doc/tm.texi (BITS_PER_WORD): Document default value.
4403
4404         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4405         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4406         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4407
4408 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4409
4410         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4411         lieu of explicit sizeof/sizeof.
4412         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4413         ix86_expand_builtin): Likewise.
4414         * mips.c (mips_add_gc_roots): Likewise.
4415         * mmix.c (mmix_output_condition): Likewise.
4416         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4417         altivec_init_builtins): Likewise.
4418         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4419         * cppexp.c (Nsuff, parse_number): Likewise.
4420         * cppinit.c (builtin_array_end): Likewise.
4421         * gcc.c (n_default_compilers, process_command): Likewise.
4422         * genpreds.c (output_predicate_decls): Likewise.
4423         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4424         * lcm.c (N_ENTITIES): Likewise.
4425         * stor-layout.c (set_sizetype): Likewise.
4426
4427 2002-03-03  Richard Henderson  <rth@redhat.com>
4428
4429         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4430         for types or labels.
4431
4432 2002-03-03  Richard Henderson  <rth@redhat.com>
4433
4434         * c-decl.c (start_decl): Initialized variables are not common.
4435
4436 2002-03-02  Per Bothner  <per@bothner.com>
4437
4438         * gcc.c (option_map):  Suport new --bootclasspath option.
4439         --CLASSPATH is now just an alias for --classpath.
4440
4441 2002-03-02  Richard Henderson  <rth@redhat.com>
4442
4443         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4444         load if "internal" visibility.
4445         * doc/extend.texi: Document visibility meanings.
4446
4447 2002-03-02  Richard Henderson  <rth@redhat.com>
4448
4449         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4450         to functions as well.
4451
4452 2002-03-02  Richard Henderson  <rth@redhat.com>
4453
4454         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4455         (handle_visibility_attribute): Don't call assemble_visibility.
4456         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4457         without asmspec.  Invoke assemble_alias when needed.
4458         * varasm.c (maybe_assemble_visibility): New.
4459         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4460
4461 2002-03-02  Richard Henderson  <rth@redhat.com>
4462
4463         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4464         invoke ENCODE_SECTION_INFO with first call flag.
4465
4466         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4467         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4468         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4469         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4470         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4471         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4472         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4473         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4474         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4475         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4476         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4477         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4478         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4479         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4480         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4481         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4482         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4483         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4484         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4485         config/sh/sh.h, config/sparc/sparc.h,
4486         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4487         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4488         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4489         FIRST argument.  As needed, examine it and do nothing.
4490
4491         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4492         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4493         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4494
4495         * config/arm/t-pe (pe.o): Add dependencies.
4496
4497 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4498
4499         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4500         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4501         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4502         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4503         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4504         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4505         * defaults.h (BITS_PER_UNIT): Define.
4506         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4507
4508 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4509
4510         * config/h8300/h8300-protos.h: Add a prototype for
4511         compute_a_shift_length.
4512         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4513         (compute_a_shift_length): Likewise.
4514         (h8300_adjust_insn_length): Do not adjust insn length of shift
4515         insns.
4516         * config/h8300/h8300.md (anonymous shift patterns): Use
4517         compute_a_shift_length.
4518
4519 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4520
4521         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4522         trunc_int_for_mode.
4523
4524         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4525
4526 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4527
4528         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4529         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4530         * flags.h (flag_zero_initialized_in_bss): Declare.
4531         * toplev.c (flag_zero_initialized_in_bss): New flag.
4532         (lang_independent_options): Add flag_zero_initialized_in_bss.
4533         * tree.c (initializer_zerop): New function.
4534         * tree.h (initializer_zerop): Declare.
4535         * varasm.c (assemble_variable): If we can emit bss, put zero
4536         initializers in the bss section.
4537
4538 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4539
4540         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4541         like more than one symbol per .weak directive.
4542
4543 2002-03-01  Richard Henderson  <rth@redhat.com>
4544
4545         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4546         adjust argument_pointer by pretend_args_size.
4547         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4548
4549 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4550
4551         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4552
4553 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4554
4555         * toplev.c (rest_of_compilation): Delete dead jumptables before
4556         loop.
4557         * flow.c (delete_dead_jumptables): Make global.
4558         * rtl.h (delete_dead_jumptables): Declare.
4559
4560 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4561
4562         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4563         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4564         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4565
4566 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4567
4568         * config/h8300/h8300-protos.h: Fix formatting.
4569         * config/h8300/h8300.c: Likewise.
4570         * config/h8300/h8300.h: Likewise.
4571
4572 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4573
4574         * config/h8300/h8300.c (print_operand): Support 16-bit
4575         constant addresses.
4576         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4577
4578 2002-02-28  Richard Henderson  <rth@redhat.com>
4579
4580         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4581         pun complex values as integers; use gen_lowpart instead of
4582         gen_rtx_SUBREG.
4583         (extract_bit_field): Likewise.
4584
4585 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4586             David Edelsohn  <edelsohn@gnu.org>
4587
4588         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4589         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4590         (SUPPORTS_WEAK): Likewise.
4591         * output.h (add_weak): Add tree param.
4592         * varasm.c (add_weak): Likewise.  Save decl.
4593         (struct weak_syms): Add decl field.
4594         (mark_weak_decls): New function.
4595         (init_varasm_once): ggc_add_root mark_weak_decls.
4596         (assemble_start_function): Use ASM_WEAKEN_DECL.
4597         (assemble_variable): Likewise.
4598         (assemble_alias): Likewise.
4599         (declare_weak): Pass decl to add_weak.
4600         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4601         (remove_from_pending_weak_list): Declare and define for
4602         ASM_WEAKEN_DECL.
4603         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4604         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4605         * defaults.h (SUPPORTS_WEAK): Likewise.
4606         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4607         .weak for code sym.  Do emit .size for descriptor sym.
4608         (ASM_DECLARE_FUNCTION_SIZE): Define.
4609         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4610         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4611         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4612         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4613         .weak for code sym.
4614         (HANDLE_PRAGMA_WEAK): Remove.
4615         (ASM_WEAKEN_LABEL): Remove.
4616         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4617
4618 2002-03-01  Jason Merrill  <jason@redhat.com>
4619
4620         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4621         (TARGET_EXPR_CLEANUP): New macro.
4622
4623 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4624
4625         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4626         to take ptr_extend into account as third type of extension.
4627         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4628         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4629         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4630         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4631         * calls.c (precompute_arguments): Use new macro.
4632         (expand_call): Ditto.
4633         * combine.c (nonzero_bits): Ditto.
4634         (record_promoted_value): Ditto.
4635         * expr.c (store_expr): Ditto.
4636         (expand_expr): Ditto.
4637         * function.c (assign_parms): Ditto.
4638
4639 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4640
4641         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4642         override -shared and -shared-libgcc.
4643
4644 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4645
4646         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4647         of "ultrasparc".
4648         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4649         to be broken.
4650
4651 2002-02-28  Richard Henderson  <rth@redhat.com>
4652
4653         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4654         4 cycle latency from MM producers.
4655         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4656
4657 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4658
4659         * mklibgcc.in: Don't use GNU make extension.
4660
4661 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4662
4663         * c-parse.in (STATIC): New terminal.
4664         (scspec): New non-terminal.  Update productions accordingly.
4665         (program): Remove bogus ifc / end ifc.
4666         (array_declarator): Simplify production using STATIC.
4667
4668 2002-02-28  Jim Meyering  <meyering@lucent.com>
4669
4670         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4671         \a still means TARGET_BELL.
4672
4673 2002-02-28  Richard Henderson  <rth@redhat.com>
4674
4675         * haifa-sched.c (sched_emit_insn): New.
4676         (schedule_block): Use last_scheduled_insn to track last insn.
4677         * sched-int.h (sched_emit_insn): Prototype.
4678         * config/ia64/ia64.c (last_issued): Remove.
4679         (ia64_variable_issue): Don't set it.
4680         (nop_cycles_until): Use sched_emit_insn.
4681
4682 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4683
4684         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4685         extended constants.
4686
4687 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4688
4689         * config/h8300/h8300.c: Fix formatting.
4690         * config/h8300/h8300.h: Likewise.
4691
4692 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4693
4694         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4695         which may overwrite the high byte of the frame pointer.
4696
4697 2002-02-28  Bo Thorsen  <bo@suse.de>
4698
4699         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4700         (STARTFILE_SPEC): Add 64 bit files.
4701         (ENDFILE_SPEC): Likewise.
4702
4703 2002-02-28  Jason Merrill  <jason@redhat.com>
4704
4705         * c-decl.c (finish_function): Only warn about missing return
4706         statement with -Wreturn-type.
4707
4708 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4709
4710         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4711
4712         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4713         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4714
4715 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4716
4717         * basic-block.h (BB_REACHABLE): Renumber.
4718         (BB_DIRTY, BB_NEW): New flags.
4719         (clear_bb_flags): Declare.
4720         (update_life_info_in_dirty_blocks): Declare.
4721         * cfg.c (clear_bb_flags): New function.
4722         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4723         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4724         reorder_insns, emit_insn_after): Mark block as dirty.
4725         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4726         (update_life_info_in_dirty_blocks): New function.
4727         * recog.c (apply_change_group): Dirtify block.
4728
4729         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4730         cfg consistent.
4731         * gcse.c (delete_null_pointer_checks): Likewise.
4732
4733         * toplev.c (dump_file_index): Move cse2 after bp,
4734         add DFI_null
4735         (dump_file_info): Similary.
4736         (rest_of_compilation): Avoid most of CFG rebuilds;
4737         do first if converision after null pointer checks, do cse2
4738         after branch prediction; avoid full liveness rebuild after
4739         initializing subregs.
4740         * invoke.texi (-d options): Document -du, renumber.
4741
4742         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4743         (notice_new_block): Do not set BB_UPDATE_LIFE.
4744         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4745          merge_blocks_move_successor_nojumps, merge_blocks,
4746          try_crossjump_to_edge): Likewise.
4747         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4748         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4749         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4750         (merge_of_block): Do not use life_data_ok.
4751         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4752         (if_convert): Use BB_DIRTY mechanizm to update life.
4753         * lcm.c (optimize_mode_switching): Update
4754         update_life_info_in_dirty_blocks
4755
4756 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4757
4758         * Makefile.in (integrate.o): Update.
4759         * c-decl.c (copy_lang_decl): Rename.
4760         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4761         * integrate.c: Include langhooks.h.
4762         (copy_decl_for_inlining): Update to use langhook.
4763         * langhooks-def.h (lhd_do_nothing_t,
4764         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4765         (LANG_HOOKS_INITIALIZER): Update.
4766         * langhooks.c (lhd_do_nothing_t): New.
4767         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4768         * tree.h (copy_lang_decl): Remove.
4769 objc:
4770         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4771
4772 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4773
4774         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4775         POST_DEC, and POST_MODIFY.
4776
4777 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4778
4779         * c-typeck.c (digest_init): Remove unused parameter; all
4780         callers changed.
4781
4782 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4783
4784         * expmed.c (expand_shift): Correctly test for low part of a
4785         subreg.
4786
4787 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4788
4789         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4790         insn UIDs with insn addresses.
4791
4792 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4793
4794         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4795         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4796         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4797         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4798         gcc.c, toplev.c: Delete code implementing -traditional mode.
4799
4800         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4801         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4802         Document removal of -traditional mode for compilation, and
4803         remove documentation only relevant to that mode.
4804
4805         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4806         config/convex/convex.h, config/d30v/d30v.h,
4807         config/i386/dgux.h, config/i386/osf1elf.h,
4808         config/i386/osfelf.h, config/i386/osfrose.h,
4809         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4810         config/m68k/hp310.h, config/m88k/dgux.h,
4811         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4812         config/m88k/m88k.h, config/m88k/openbsd.h,
4813         config/mips/abi64.h, config/mips/osfrose.h,
4814         config/mips/svr4-5.h, config/mips/svr4-t.h,
4815         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4816         config/stormy16/stormy16.h: Remove all references to
4817         -traditional from target specs.  Delete all mention of the
4818         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4819         delete a couple of commented-out definitions of
4820         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4821         to -traditional.
4822
4823         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4824         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4825
4826 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4827
4828         * mklibgcc.in: Don't use \n in a line subject to
4829         interpretation by echo.
4830
4831 2002-02-27  Graham Stott  <grahams@redhat.com>
4832
4833         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4834         Constify NAME.
4835
4836         * loop.c (prescan_loop): Handle PARALLEL.
4837
4838         * unroll.c (loop_iterations): Return 0 if the add_val for
4839         a BIV is REG.
4840
4841         * final.c (output_operand_lossage): Constify PFX_STR.
4842
4843         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4844
4845 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4846
4847         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4848         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4849
4850 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4851
4852         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4853
4854 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4855
4856         * cpplex.c (_cpp_lex_token): Handle directives in macro
4857         arguments.
4858         * cpplib.c (_cpp_handle_directive): Save and restore state
4859         if parsing macro args when entering a directive.
4860         * cppmacro.c (collect_args): No need to handle directives
4861         in macro arguments.
4862         (enter_macro_context, replace_args): Use the original macro
4863         definition in case it was redefined whilst collecting arguments.
4864 doc:
4865         * cpp.texi: Update.
4866
4867 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4868
4869         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4870         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4871         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4872         method on AIX.
4873         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4874         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4875         (load_toc_v4_PIC_2): Same.
4876
4877 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4878
4879         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4880
4881 2002-02-26  Richard Henderson  <rth@redhat.com>
4882
4883         * config/alpha/alpha.md (ashldi_se): Re-enable.
4884
4885 2002-02-26  Richard Henderson  <rth@redhat.com>
4886
4887         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4888         MODULE_LOCAL_P; improve commentary.
4889
4890 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4891
4892         * doc/cpp.texi: Clarify documentation of relationship between
4893         #line and #include.
4894
4895 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4896
4897         * config/h8300/h8300-protos.h: Update the prototype for
4898         compute_logical_op_length.  Add the prototype for
4899         compute_logical_op_cc.
4900         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4901         code from operands.
4902         (compute_logical_op_cc): New.
4903         * config/h8300/h8300.md: Combine all the logical op patterns
4904         in HImode and SImode.  Use compute_logical_op_cc.
4905
4906 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4907
4908         * config/i386/i386.c (print_operand): Don't append ATT-style
4909         length suffixs to x87 opcodes when in Intel mode.
4910
4911 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4912
4913         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4914         (init_emit_once): Update calls.
4915         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4916         (init_syntax_once): Prototype.
4917
4918 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4919
4920         * pa-linux.h (LIB_SPEC): Update definition.
4921         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4922
4923 2002-02-26  Richard Henderson  <rth@redhat.com>
4924
4925         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4926         if we emitted a stop bit.
4927
4928 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4929
4930         * configure.in (libgcc_visibility): Substitute.
4931         * configure: Rebuilt.
4932         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4933         defined symbols .hidden.
4934
4935 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4936
4937         * attribs.c (c_common_attribute_table): Add visibility.
4938         (handle_visibility_attribute): New function.
4939         * varasm.c (assemble_visibility): New function.
4940         * output.h (assemble_visibility): Add prototype.
4941         * tree.h (MODULE_LOCAL_P): Define.
4942         * crtstuff.c (__dso_handle): Use visibility attribute.
4943         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4944         for MODULE_LOCAL_P symbols too.
4945         * config/ia64/ia64.c (ia64_encode_section_info): Handle
4946         MODULE_LOCAL_P symbols the same way as local symbols.
4947         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4948         into .sdata/.sbss by the user.
4949         * doc/extend.texi (Function Attributes): Document visibility
4950         attribute.
4951
4952 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4953
4954         PR debug/5770
4955         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4956         STRING_CST initializer spanning the whole variable without
4957         embedded zeros.
4958         If expand_expr returned MEM, don't use it.
4959
4960 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
4961
4962         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4963         generate a die for the lexical block.
4964
4965 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4966
4967         * config/h8300/h8300-protos.h: Add a prototype for
4968         compute_logical_op_length.
4969         * config/h8300/h8300.c (compute_logical_op_length): New.
4970         * config/h8300/h8300.md (anonymous logical patterns): Use
4971         compute_logical_op_length for length.
4972
4973 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4974
4975         * dwarf2out.c (modified_type_die): Do not call type_main_variant
4976         for vectors.
4977         (gen_type_die): Same.
4978
4979         * attribs.c (handle_vector_size_attribute): Set debug information.
4980
4981 2002-02-26  Daniel Egger  <degger@fhm.edu>
4982
4983         * config/rs6000/rs6000.md: Swap define_insn attributes to
4984         fix incorrect generation of merge high instructions instead
4985         of merge low.
4986
4987 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4988
4989         * c-typeck.c (really_start_incremental_init): Use
4990         bitsize_zero_node for vectors.
4991
4992 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4993
4994         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4995         ("*set_vrsave_internal"): Same.
4996
4997 2002-02-25  Richard Henderson  <rth@redhat.com>
4998
4999         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5000         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5001
5002 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5003
5004         PR target/5755
5005         * config/i386/i386.c (ix86_return_pops_args): Only pop
5006         fake structure return argument if it was passed on the stack.
5007
5008 2002-02-25  Jason Merrill  <jason@redhat.com>
5009
5010         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5011         RESULT_DECL.
5012
5013 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5014
5015         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5016         link with shared_name only.
5017         * doc/invoke.texi (Link Options): Document new behavior.
5018
5019 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5020
5021         * c-typeck.c (push_init_level): Handle vectors.
5022
5023 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5024
5025         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5026         operands of SPARC_SETHI_P.
5027         (input_operand): Likewise.
5028         (sparc_emit_set_const32): Likewise.
5029         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5030         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5031         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5032         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5033         (movdi_insn_sp64_vis): Likewise.
5034         (movdi split, movdf split): Use SETHI32.
5035         * doc/md.texi: Document SPARC constraints L, M and N.
5036
5037 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5038
5039         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5040         ("*set_vrsave_internal"): use mfspr for Darwin.
5041
5042         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5043         gen_get_vrsave_internal.
5044
5045 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5046
5047         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5048
5049 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5050
5051         * cpplex.c (cpp_interpret_charconst): Get signedness or
5052         otherwise of wide character constants correct.
5053         * cppexp.c (lex): Get signedness of wide charconsts correct.
5054
5055 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5056
5057         * optabs.c (widen_operand): Only call convert_modes for
5058         promoted SUBREG if signedness matches.
5059         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5060
5061 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5062
5063         * cpplib.c (glue_header_name): Use local buffer to build up
5064         header name.
5065
5066 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5067
5068         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5069
5070 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5071
5072         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5073         H8/300[HS] separately.
5074         * config/h8300/h8300.md: Remove the early clobber constraint
5075         from bit field patterns.
5076
5077 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5078
5079         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5080         register_operand.
5081         (mulhisi3): Likewise.
5082         (umulqisi3): Likewise.
5083         (umulhisi3): Likewise.
5084
5085 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5086
5087         * cppinit.c (output_deps): Correct test for stdout output.
5088         (init_dependency_output): Cure warning.
5089
5090 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5091
5092         * expr.c (store_expr): When converting expression to promoted
5093         equivalent type, allow using SUBREG_REG of TARGET as the target
5094         of the expansion of EXP.
5095         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5096         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5097         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5098         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5099         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5100
5101 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5102
5103         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5104         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5105         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5106
5107 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5108
5109         PR optimization/5747
5110         * loop.c (scan_loop): Update reg info if move_movables created new
5111         pseudos.
5112
5113 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5114
5115         * gcc.c (init_gcc_spec): Revert last change.
5116
5117 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5118
5119         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5120         gpc_reg_operand constraint.
5121
5122 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5123
5124         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5125         Simplify comparison of `low'.
5126         (add_operand): Fix formatting.
5127         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5128         (mask_operand): Disallow mask to wrap in 64-bit mode.
5129         (rs6000_stack_info): Remove redundant test setting push_p.
5130         (output_toc): Fix formatting.
5131         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5132         cc_reg_not_cr0_operand constraint.
5133         (booldi3, boolcdi3 splitters): Same.
5134
5135 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5136
5137         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5138
5139 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5140
5141         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5142         gcc invoked with -shared-libgcc.
5143
5144 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5145
5146         PR c++/5748
5147         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5148         decl if any of elements was TREE_USED.
5149
5150 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5151
5152         * config/sparc/sol2.h: Don't include sys/mman.h.
5153         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5154         (arith_4096_operand): Don't throw high bits away.
5155         (const64_operand): Take sign extension of CONST_INTs into account.
5156         (const64_high_operand, sparc_emit_set_const32): Likewise.
5157         (GEN_HIGHINT64): Likewise.
5158         (sparc_emit_set_const64_quick1): Likewise.
5159         (const64_is_2insns): Likewise.
5160         (print_operand): Use trunc_int_for_mode for sign extension.
5161         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5162         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5163         chars.  Assume CONST_INT is already properly sign-extended.
5164         (movdi split): Sign-extend each SImode part.
5165         (andsi3 split): Don't mask high bits off, so that result
5166         remains properly sign-extend.
5167         (iorsi3 split): Likewise.
5168         (xorsi3 split): Likewise.
5169
5170 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5171
5172         * fold-const.c (fold): Fix typo in comments.
5173
5174 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5175
5176         * Makefile.in (langhooks.o): Update dependencies.
5177
5178 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5179
5180         * langhooks.c: Include flags.h.
5181
5182 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5183
5184         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5185
5186         * c-common.c (c_common_post_options): Set inline trees by
5187         default.
5188
5189         * doc/extend.texi (Function Attributes): Document always_inline
5190         attribute.
5191         Update documentation about inlining when not optimizing.
5192
5193         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5194
5195         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5196         unless DECL_ALWAYS_INLINE.
5197
5198         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5199         unless DECL_ALWAYS_INLINE.
5200         (c_disregard_inline_limits): Disregard if always_inline set.
5201
5202         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5203         Disregard if always_inline set.
5204         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5205         unless DECL_ALWAYS_INLINE.
5206
5207         * attribs.c (handle_always_inline_attribute): New.
5208         (c_common_attribute_table): Add always_inline.
5209
5210         * config/rs6000/altivec.h: Add prototypes for builtins
5211         requiring the always_inline attribute.
5212
5213 2002-02-21  Eric Christopher  <echristo@redhat.com>
5214
5215         * expmed.c (store_bit_field): Try to simplify the subreg
5216         before generating a new one when when the mode size of
5217         value is less than maxmode.
5218
5219 2002-02-21  Richard Henderson  <rth@redhat.com>
5220
5221         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5222         than gen_rtx_PLUS to form the sum.
5223         * explow.c (force_reg): Rearrange to not allocate new pseudo
5224         when force_operand returns a register.
5225         * expr.c (expand_assignment): Allow offset_rtx expansion to
5226         return a sum.  Do not force addresses into registers.
5227         (expand_expr): Likewise.
5228         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5229         to canonicalize arithmetic that didn't simpify.
5230         (simplify_plus_minus): New argument force; update
5231         all callers.  Don't split CONST unless we can do something with it,
5232         and wouldn't lose the constness of the operands.
5233
5234         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5235         that we generated earlier.
5236
5237 2002-02-21  Tom Tromey  <tromey@redhat.com>
5238
5239         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5240         (output_line_info): Use constant `1', with a long explanatory
5241         comment.
5242         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5243
5244 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5245
5246         * jump.c (redirect_jump): If old label has no UID, don't try to
5247         delete it.
5248
5249 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5250
5251         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5252         If input is constant, do shifts at compile time.
5253
5254 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5255
5256         * doc/extend.texi: Fix some more overfull hboxes.
5257
5258 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5259
5260         PR optimization/4994
5261         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5262         register moves.
5263
5264 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5265
5266         PR c++/4574
5267         * expr.h (expand_and): Add mode argument.
5268         * expmed.c (expand_and): Add mode argument.
5269         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5270         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5271         * except.c (expand_builtin_extract_return_addr): Likewise.
5272         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5273         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5274         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5275         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5276         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5277         gen_rtx (CONST_INT, VOIDmode, x).
5278
5279 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5280
5281         PR c/4697:
5282         * stmt.c (warn_if_unused_value): Move side effects test once more.
5283
5284 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5285
5286         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5287         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5288
5289 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5290
5291         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5292         SUBREG or ZERO_EXTEND.
5293
5294 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5295
5296         * sh.h (current_function_anonymous_args): Remove.
5297         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5298         of current_function_varargs and current_function_stdarg is set.
5299         * sh.c (sh_expand_prologue): Check current_function_varargs /
5300         current_function_stdarg / TARGET_SH5 instead of
5301         current_function_anonymous_args.
5302
5303         * sh64.h (TARGET_VERSION): Define.
5304
5305 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5306
5307         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5308         VRSAVE_REGNO on TARGET_ALTIVEC.
5309
5310 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5311
5312         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5313         bits of SImode const_int.
5314         (includes_rshift_p): Likewise.
5315         (print_operand): Call mask_operand and mask64_operand with correct
5316         mode.
5317         (rs6000_output_function_epilogue): Pad traceback table to word.
5318         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5319         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5320         mask64_operand with correct mode.
5321         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5322
5323 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5324
5325         PR debug/4461
5326         * varasm.c (get_pool_constant_mark): New.
5327         * rtl.h (get_pool_constant_mark): Add prototype.
5328         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5329         be represented if it has not been output.
5330
5331 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5332
5333         * combine.c (do_SUBST): Sanity check substitutions of
5334         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5335         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5336         CONST_INT into its operand.
5337         (known_cond): Likewise, for ZERO_EXTEND.
5338         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5339         allow for simplification of wide modes.  Reject CONST_INTs in
5340         ZERO_EXTEND when their actual mode is not given.
5341
5342 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5343
5344         * c-decl.c (pushdecl): If no global declaration is found for an
5345         extern declaration in block scope, try a limbo one.
5346
5347 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5348
5349         PR c++/4401
5350         * c-common.c (pointer_int_sum): Moved from...
5351         * c-typeck.c (pointer_int_sum): ...here.
5352         * c-common.h (pointer_int_sum): Add prototype.
5353
5354 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5355
5356         PR c++/5713
5357         * c-decl.c (duplicate_decls): Return 0 if issued error about
5358         redeclaration.
5359
5360 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5361             Jakub Jelinek  <jakub@redhat.com>
5362
5363         PR c/4389
5364         * tree.c (host_integerp): Ensure that the constant integer is
5365         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5366         when pos is zero or non-zero respectively.  Clarify comment.
5367         * c-format.c (check_format_info_recurse): Fix host_integerp
5368         usage; the pos argument should be zero when assigning to a
5369         signed HOST_WIDE_INT.
5370
5371 2002-02-20  Richard Henderson  <rth@redhat.com>
5372
5373         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5374         of the operand, rather than assuming TImode.
5375         (ix86_expand_binop_builtin): Cope with commutative patterns
5376         using nonimmediate_operand for both operands.
5377         (ix86_expand_timode_binop_builtin): Likewise.
5378         (ix86_expand_store_builtin): Validate operand 1.
5379         (ix86_expand_unop1_builtin): Likewise.
5380
5381 2002-02-20  Philip Blundell  <philb@gnu.org>
5382
5383         PR 5705
5384         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5385
5386 2002-02-20  Richard Henderson  <rth@redhat.com>
5387
5388         PR c/5615
5389         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5390
5391 2002-02-20  Tom Tromey  <tromey@redhat.com>
5392
5393         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5394         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5395         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5396         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5397         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5398         unconditionally.
5399
5400 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5401
5402         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5403           for (const_int 0) in X not just INTVAL.
5404
5405 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5406
5407         * doc/extend.texi: Avoid or reduce overfull hboxes.
5408
5409 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5410
5411         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5412         operations if the field does not start at a mode boundary.
5413
5414 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5415
5416         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5417         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5418         Also done for -Acpu and -Amachine.
5419
5420 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5421
5422         * cppinit.c (init_dependency_output): Take deps output file
5423         from -o if none given with -MF.  Suppress normal output.
5424         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5425         * doc/cpp.texi, doc/invoke.texi: Update.
5426
5427 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5428
5429         * toplev.c (output_quoted_string): Write unprintable
5430         characters with octal escapes.
5431
5432 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5433
5434         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5435         really_call_used[VRSAVE_REGNO] if not Altivec.
5436
5437 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5438
5439         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5440         MODE_MASK.
5441         (constant_pool_expr_1): Fix formatting.
5442         (rs6000_legitimize_reload_address): Likewise.
5443
5444 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5445
5446         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5447         now that we have one.
5448
5449 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5450
5451         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5452         end of first block of bitfields (which was only seven bits);
5453         rename dummy to unused_1; remove comment which is no longer true.
5454
5455 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5456
5457         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5458
5459 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5460
5461         PR 5399
5462         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5463         if generating PIC.
5464
5465         PR 5054
5466         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5467         arm_is_longcall_p rather than inspecting call-type cookie
5468         directly.
5469         (call_value_insn) [TARGET_THUMB]: Likewise.
5470
5471 2002-02-19  Graham Stott  <grahams@redhat.com>
5472
5473         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5474
5475 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5476
5477         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5478         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5479         (FP_SAVE_INLINE): Delete.
5480
5481         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5482         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5483         * config/rs6000/t-ppccomm: Build crtsavres.o.
5484         * config/rs6000/crtsavres.asm: New file.
5485
5486 2002-02-19  Philip Blundell  <philb@gnu.org>
5487
5488         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5489         functions.
5490         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5491         (output_return_instruction): Allow interrupt functions to return with
5492         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5493         (arm_expand_prologue): Subtract 4 before stacking LR in an
5494         interrupt function.
5495
5496 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5497
5498         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5499         decl, not just FUNCTION_DECL.
5500         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5501         (arm_assemble_integer): Likewise.
5502         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5503         marked local.
5504
5505 2002-02-19  matthew green  <mrg@eterna.com.au>
5506
5507         * config.gcc (sparc-*-netbsdelf*): Enable target.
5508         (sparc64-*-netbsd*): New target.
5509         * config/sparc/netbsd-elf.h: New file.
5510         * config/sparc/t-netbsd64: New file.
5511
5512 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5513
5514         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5515
5516 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5517
5518         * doc/invoke.texi: explicitly list the style guidelines that
5519         -Weffc++ checks for.
5520
5521 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5522
5523         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5524
5525 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5526
5527         PR other/5718
5528         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5529         only if not -E.  If -E, pass -o through to the preprocessor.
5530
5531 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5532
5533         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5534         register number with an appropriate macro.
5535
5536 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5537
5538         * doc/rtl.texi (Constants): Close @code tag.
5539
5540 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5541
5542         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5543         ("mmx_uavgv4hi3"): Same.
5544         ("pmulhrwv4hi3"): Same.
5545
5546         * tree-inline.c (walk_tree): Handle vectors.
5547
5548         * c-common.c (constant_expression_warning): Handle vectors.
5549         (overflow_warning): Same.
5550
5551         * sched-deps.c (sched_analyze_2): Handle vectors.
5552
5553         * rtlanal.c (rtx_unstable_p): Handle vectors.
5554         (rtx_varies_p): Same.
5555         (count_occurrences): Same.
5556         (regs_set_between_p): Same.
5557         (modified_between_p): Same.
5558         (modified_in_p): Same.
5559         (volatile_insn_p): Same.
5560         (volatile_refs_p): Same.
5561         (side_effects_p): Same.
5562         (may_trap_p): Same.
5563         (inequality_comparisons_p): Same.
5564         (replace_regs): Same.
5565         (computed_jump_p_1): Same.
5566
5567         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5568         argument.
5569         (inner_mode_array): New.
5570         (copy_rtx): Handle vectors.
5571         (copy_most_rtx): Same.
5572         (rtx_equal_p): Same.
5573         (get_mode_alignment): Adjust for vectors.
5574
5575         * resource.c (mark_referenced_resources): Handle vectors.
5576         (mark_set_resources): Same.
5577
5578         * reload1.c (eliminate_regs): Handle vectors.
5579         (elimination_effects): Same.
5580         (scan_paradoxical_subregs): Same.
5581
5582         * reload.c (subst_reg_equivs): Handle vectors.
5583
5584         * regrename.c (scan_rtx): Handle vectors.
5585
5586         * regclass.c (reg_scan_mark_refs): Handle vectors.
5587
5588         * recog.c (find_single_use_1): Handle vectors.
5589
5590         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5591         (contains_replace_regs): Same.
5592         (memref_referenced_p): Same.
5593
5594         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5595         (subst_constants): Same.
5596
5597         * genattrtab.c (attr_copy_rtx): Handle vectors.
5598         (encode_units_mask): Same.
5599         (clear_struct_flag): Same.
5600         (count_sub_rtxs): Same.
5601
5602         * gcse.c (want_to_gcse_p): Handle vectors.
5603         (oprs_unchanged_p): Same.
5604         (hash_expr_1): Same.
5605         (oprs_not_set_p): Same.
5606         (expr_killed_p): Same.
5607         (compute_transp): Same.
5608         (store_ops_ok): Same.
5609
5610         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5611         of vectors.
5612         (fixup_var_refs_1): Same.
5613         (instantiate_virtual_regs_1): Same.
5614
5615         * fold-const.c (operand_equal_p): Handle vectors.
5616         (fold): Same.
5617         (rtl_expr_nonnegative_p): Same.
5618
5619         * flow.c (mark_used_regs): Handle vectors.
5620
5621         * df.c (df_uses_record): Handle vectors.
5622
5623         * cselib.c (cselib_subst_to_values): Handle vectors.
5624         (cselib_mem_conflict_p): Same.
5625         (hash_rtx): Same.
5626
5627         * cse.c (canon_reg): Handle vectors.
5628         (fold_rt): Same.
5629         (cse_process_notes): Same.
5630         (count_reg_usage): Same.
5631         (canon_hash): Same.
5632
5633         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5634
5635         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5636
5637         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5638         (gen_rtx): Handle CONST_VECTOR.
5639         (gen_const_vector_0): New.
5640         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5641         (reset_used_flags): Same.
5642         (copy_insn_1): Same.
5643         (initializer_constant_valid_p): Handle VECTOR_CST.
5644
5645         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5646
5647         * doc/rtl.texi (Constants): Document const_vector.
5648         (CONST0_RTX): Update for vectors.
5649         (RTL sharing): Same.
5650
5651         * print-tree.c (print_node): Add case for VECTOR_CST.
5652
5653         * tree.h (TREE_VECTOR_CST_ELTS): New.
5654         (struct tree_vector): New.
5655         (union tree_node): Add vector node.
5656         (build_vector): Add prototype.
5657
5658         * tree.def (VECTOR_CST): New.
5659
5660         * tree.c (build_vector): New.
5661
5662         * expmed.c (make_tree): Handle CONST_VECTOR.
5663
5664         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5665         (CONST_VECTOR_ELT): New.
5666         (CONST_VECTOR_NUNITS): New.
5667
5668         * machmode.h (GET_MODE_INNER): New.
5669         (DEF_MACHMODE): Accept 8th arg.
5670
5671         * machmode.def: Add 8th argument for vector inner mode.
5672         Add inner vector modes for vectors.
5673
5674         * rtl.def (VEC_CONST): Remove.
5675         (CONST_VECTOR): New.
5676
5677         * expr.c (clear_storage): Allow vectors.
5678         (is_zeros_p): Handle VECTOR_CST.
5679
5680         * varasm.c (output_constant_pool): Handle vectors.
5681         (rtx_const): Add veclo and vechi fields.
5682         (kind): Add RTX_VECTOR.
5683         (decode_rtx_const): Add case for vector.
5684
5685         * config/rs6000/rs6000-protos.h: Add zero_constant.
5686
5687         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5688         constants.  Force easy vector constants into memory.
5689         (easy_vector_constant): New.
5690         (emit_easy_vector_constant): New.
5691         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5692         darwin.
5693
5694         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5695         instruction does.
5696         ("altivec_lvxl"): Same.
5697         (altivec_lvebx): Same.
5698         (altivec_lvehx): Same.
5699         (altivec_lvewx): Same.
5700         ("*movv4si_const0"): New.
5701         ("*movv4sf_const0"): New.
5702         ("*movv8hi_const0"): New.
5703         ("*movv16qi_const0"): New.
5704
5705 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5706
5707         * config/h8300/h8300.c (notice_update_cc): Use
5708         cc_status.value2.
5709
5710 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5711
5712         * config/h8300/h8300.md (divmod patterns): Change the
5713         constraints for operands[1] to register_operand.
5714
5715 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5716
5717         * config/h8300/h8300-protos.h: Remove the prototype for
5718         p_operand.
5719         * config/h8300/h8300.c (p_operand): Remove.
5720         * config/h8300/h8300.md: Replace p_operand with
5721         const_int_operand.
5722
5723 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5724
5725         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5726         comment.
5727         (output_return_instruction): Allow use of LDR to unstack
5728         return addresss even for interrupt handlers or when
5729         interworking.  If compiling for ARMv5, use interworking-safe
5730         return instructions by default.  Remove duplicated code and
5731         lengthy "strcat" sequences.
5732
5733 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5734
5735         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5736         (LINK_EH_SPEC): Define.
5737         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5738
5739 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5740
5741         * config/s390/s390.c (s390_emit_prologue): Do not set the
5742         frame_related flag for call-clobbered registers.
5743
5744 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5745
5746         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5747         (construct_container): Fix handling of SSE operands.
5748         (ix86_expand_builtin): Fix handling of 64bit pointers.
5749         (mmx_maskmovq_rex): New pattern.
5750
5751 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5752
5753         * regrename.c (kill_set_value): Handle subregs properly.
5754
5755 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5756
5757         * objc/objc-act.c (handle_impent): Remove leading '*'
5758         from objc_class_name.
5759
5760 2002-02-17  Richard Henderson  <rth@redhat.com>
5761
5762         * config/alpha/alpha.c (some_small_symbolic_operand,
5763         some_small_symbolic_operand_1, split_small_symbolic_operand,
5764         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5765         Handle small SYMBOL_REFs anywhere, not just inside memories.
5766         * config/alpha/alpha-protos.h: Update.
5767         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5768         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5769
5770 2002-02-17  Roland McGrath  <roland@frob.com>
5771
5772         * config.gcc (powerpc-*-gnu-gnualtivec*,
5773         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5774         * config/rs6000/gnu.h: New file.
5775         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5776         Grok "gnu" in rs6000_abi_name.
5777         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5778         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5779         Grok -mcall-gnu analogous to -mcall-linux et al.
5780         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5781         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5782         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5783
5784 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5785
5786         PR c/3444:
5787         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5788         shortening.
5789
5790 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5791
5792         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5793         ENDFILE_SPEC before (re)defining them.
5794
5795 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5796
5797         * config/h8300/h8300.c: Fix formatting.
5798         * config/h8300/h8300.h: Likewise.
5799
5800 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5801
5802         * doc/tm.texi: Explain why empty strings should not be
5803         marked for translation.
5804
5805 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5806
5807         * final.c (output_operand_lossage): Changed to accept
5808         printf style arguments. Change calls where necessary.
5809         * output.h (output_operand_lossage): Change declaration
5810         accordingly. Update copyright.
5811         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5812         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5813         Update copyright date where necessary.
5814
5815         * config/i386/i386.c (print_operand): Likewise. Remove use of
5816         sprintf.
5817
5818         * config/cris/cris.c (cris_operand_lossage): Likewise.
5819         Rename parameter so that exgettext recognizes it as
5820         translatable message.
5821         (LOSE_AND_RETURN): Rename parameter to msgid.
5822
5823 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5824
5825         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5826         hard coded register number with an appropriate macro.
5827         (HARD_REGNO_MODE_OK): Likewise.
5828         (ARG_POINTER_REGNUM): Likewise.
5829         (STATIC_CHAIN_REGNUM): Likewise.
5830         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5831         * config/h8300/h8300.md (define_constants): Define more
5832         register numbers.
5833
5834 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5835
5836         * config/i386/i386.h: Don't mark empty strings for translation.
5837
5838 2002-02-16  H.J. Lu <hjl@gnu.org>
5839
5840         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5841
5842 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5843
5844         * cppinit.c (merge_include_chains): Check for brack being
5845         NULL before attempting to merge it with qtail.
5846
5847 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5848
5849         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5850         DBX_DEBUG.
5851
5852 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5853
5854         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5855
5856 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5857
5858         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5859         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5860         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5861
5862 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5863
5864         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5865         now only if !TARGET_FIX.
5866         (*movsi_nt_vms_fix): New pattern.
5867
5868 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5869
5870         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5871         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5872         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5873         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5874         (alpha_start_function, alpha_expand_epilogue): Likewise.
5875         (unicosmk_gen_dsib): Likewise.
5876
5877 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5878
5879         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5880
5881 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5882
5883         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5884         check_and_change_labels, s390_final_chunkify): Delete.
5885         (s390_split_branches, s390_chunkify_pool): New functions.
5886         (s390_function_prologue): Call them.
5887
5888         * config/s390/s390.h (S390_REL_MAX): Delete.
5889         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5890
5891         * config/s390/s390.md (cjump, icjump, jump): Fix length
5892         attribute calculation.
5893
5894
5895 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5896
5897         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5898         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5899
5900 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5901
5902         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5903         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5904         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5905
5906 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5907
5908         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5909
5910 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5911
5912         * reload.c (find_dummy_reload): Check that an output register
5913         is valid for its mode.
5914
5915 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5916
5917         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5918         to simplify it.
5919
5920         * function.c (assign_parms): Demote promoted argument passed by
5921         transparent reference.
5922
5923 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5924
5925         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5926         -Acpu() and -Amachine() to eliminate warnings.
5927
5928 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5929
5930         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5931
5932 2002-02-14  Kazu Hirata  <kazu@hxi.com>
5933
5934         * config/h8300/h8300-protos.h: Update the prototype for
5935         const_costs.
5936         * config/h8300/h8300.c (const_costs): Treat SET as a little
5937         more expensive operation.
5938         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5939         reference to const_costs.
5940
5941 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
5942
5943         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5944
5945 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
5946
5947         PR c/5503:
5948         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5949         use arguments from newtype.
5950
5951 2002-02-13  Eric Christopher  <echristo@redhat.com>
5952
5953         * config/mips/mips.c (override_options): Add check for march/mipsX
5954         on the same command line. Fix error message in cpu processing.
5955         Remove architecture and ISA checks.
5956
5957 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5958
5959         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5960
5961         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5962
5963 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5964
5965         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5966         alternatives.
5967         ("*movv8hi_internal1"): Same.
5968         ("*movv16qi_internal1"): Same.
5969         ("*movv4sf_internal1"): Same.
5970
5971         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5972         not push_reload for altivec modes.
5973
5974 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
5975
5976         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5977         all RTEMS targets including removal of #includes from config/*/rtems*.h
5978         file and adding them to tm_file setting. Added xm_defines=POSIX to
5979         many targets.
5980         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5981         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5982         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5983         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5984         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5985         config/m68k/rtemself.h: Ditto.
5986         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5987         config/mips/rtems64.h: Ditto.
5988         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5989         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5990         Ditto.
5991         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5992         config/sparc/rtemself.h: Ditto.
5993         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5994         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5995         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5996         more like arm-elf.
5997         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5998         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5999         target made more similar to i386-elf.
6000         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6001         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6002         be similar to config/m68k/t-m68kelf.
6003         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6004
6005 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6006
6007         * regmove.c (kill_value): Handle subregs.
6008
6009 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6010
6011         * i386.md (mul patterns): Allow memory operand to be first;
6012         add expanders where needed; fix constraints.
6013         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6014         Allow memory operand to be the first.
6015
6016         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6017         operands.
6018
6019 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6020
6021         PR c/5681:
6022         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6023         GET_MODE (x).
6024
6025 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6026
6027         PR optimization/5547:
6028         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6029         all valid IA-32 address modes involving non-scaled %ebx and
6030         GOT/GOTOFF as displacement.
6031
6032 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6033
6034         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6035         after emitting ltorg insns.
6036
6037         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6038         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6039         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6040         *abssf2): Fix "op_type" attribute.
6041
6042 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6043
6044         * mkconfig.sh: Avoid using a subshell redirect.
6045         ($output.T): Change to $(output)T.
6046         (ENABLE_NLS): Remove unneeded undef.
6047
6048         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6049         * config/alpha/x-vms (libsubdir): Define.
6050
6051         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6052         register frame procedures. Optimize retrieving context.
6053
6054         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6055         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6056         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6057
6058 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6059
6060         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6061         Make same change as for find_base_value.
6062
6063 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6064
6065         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6066         of QImode and SImode.
6067
6068 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6069
6070         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6071         length computation of movsi.
6072         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6073
6074 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6075
6076         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6077         operands[2] to register_operand.
6078
6079 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6080
6081         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6082
6083 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6084
6085         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6086         for altivec_lvx* and altivec_stvx*.
6087         ("*movv4si_internal"): Add constraint for loading from GPRs.
6088         ("*movv8hi_internal1"): Same.
6089         ("*movv16qi_internal1"): Same.
6090         ("*movv4sf_internal1"): Same.
6091
6092         * config/rs6000/rs6000.c (altivec_register_operand): New.
6093
6094         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6095         altivec_register_operand.
6096
6097 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6098
6099         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6100         handle SYMBOL_REF.
6101
6102 2002-02-13  Stan Shebs  <shebs@apple.com>
6103
6104         * c-typeck.c (digest_init): Handle vectors.
6105         (really_start_incremental_init): Same.
6106         (pop_init_level): Same.
6107         (process_init_element): Same.
6108
6109         * varasm.c (output_constant): Same.
6110
6111         * expr.c (clear_storage): Same.
6112         (store_constructor): Same.
6113
6114 2002-02-12  Eric Christopher  <echristo@redhat.com>
6115
6116         * explow.c (hard_function_value): Add comment explaining
6117         signed/unsigned comparison.
6118
6119 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6120
6121         * jump.c (never_reached_warning): Add finish argument.
6122         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6123         real insn after end.
6124         * rtl.h (never_reached_warning): Adjust prototype.
6125         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6126         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6127         never_reached_warning.
6128
6129 2002-02-12  Graham Stott  <grahams@redhat.com>
6130
6131         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6132
6133 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6134
6135         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6136         logical shifts on H8/300.
6137         (shift_alg_si): Improve several shifts on H8/300.
6138         (get_shift_alg): Likewise.
6139
6140 2002-02-12  Graham Stott  <grahams@redhat.com>
6141
6142         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6143
6144 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6145
6146         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6147         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6148
6149 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6150
6151         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6152         non-CONST_INT through default_assemble_integer.
6153         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6154         <case 8>: Abort for CONST_DOUBLE.
6155
6156 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6157
6158         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6159         is specified.
6160         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6161         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6162
6163 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6164
6165         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6166
6167 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6168
6169         * regrename.c (regrename_optimize): Don't accept a
6170         part-clobbered register if the replaced register is not part
6171         clobbered.
6172
6173         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6174         take padding into account when computing the argument value.
6175
6176         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6177
6178         * combine.c (try_combine): Apply substitutions in
6179         CALL_INSN_FUNCTION_USAGE too.
6180
6181 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6182
6183         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6184         __builtin_altivec_abs*.
6185         (bdesc_abs): New.
6186
6187         * config/rs6000/rs6000.h (rs6000_builtins): Add
6188         ALTIVEC_BUILTIN_ABS*.
6189
6190         * config/rs6000/altivec.h: Use const char for builtins expecting
6191         literals.
6192         (vec_abs): New versions for C and C++.
6193         (vec_abss): Same.
6194
6195 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6196
6197         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6198         using Pmode.
6199
6200 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6201
6202         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6203         constant definition from h8300.md.
6204         (FRAME_POINTER_REGNUM): Likewise.
6205         * config/h8300/h8300.md (define_constants): Add FP_REG.
6206
6207 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6208
6209         * config/h8300/h8300.c (print_operand): Remove redundant code.
6210
6211 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6212
6213         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6214         * config/h8300/h8300.c (byte_reg): Make it static.
6215
6216 2002-02-10  Richard Henderson  <rth@redhat.com>
6217
6218         PR c/5623
6219         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6220
6221 2002-02-10  Richard Henderson  <rth@redhat.com>
6222
6223         PR c++/5624
6224         * tree.c (append_random_chars): Don't abort if main_input_filename
6225         does not exist.
6226
6227 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6228
6229         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6230
6231 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6232
6233         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6234         (pushhi1): Likewise.
6235
6236 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6237
6238         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6239         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6240
6241 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6242
6243         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6244         remove MASK_VIS.
6245         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6246
6247 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6248
6249         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6250         a half of an SImode register on H8/300.
6251
6252 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6253
6254         * i386.md (movdi_2): Add missing '!'.
6255
6256 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6257
6258         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6259         definitions.
6260
6261 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6262
6263         * config/h8300/h8300.md (length): Correct the distance valid
6264         for the short branch.
6265
6266 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6267
6268         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6269
6270 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6271
6272         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6273         registers in SImode.
6274         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6275         part-clobbered.
6276
6277         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6278         patch.
6279
6280         Contribute sh64-elf.
6281         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6282         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6283         (sh_cannot_modify_jumps_p): New function.
6284         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6285         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6286         (sh_ms_bitfield_layout_p): New function.
6287         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6288                     Zack Weinberg  <zack@codesourcery.com>
6289         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6290         expand_simple_binop instead of expand_binop.
6291         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6292         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6293         use of .quad and .uaquad.
6294         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6295         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6296         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6297         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6298         movdi_const_16bit): Make sure all CONSTs have modes.
6299         (sym2PIC): Ditto, but by adjusting all callers.
6300         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6301         if the prologue calls the SHmedia argument decoder or register
6302         saver.
6303         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6304         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6305         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6306         (sh_expand_epilogue): Don't emit USE of return target register.
6307         (prepare_move_operands): Legitimize DImode PIC addresses.
6308         (sh_media_register_for_return): Skip tr0, used to initialize the
6309         PIC register.
6310         (sh_expand_prologue): Remove explicit USE of return register.
6311         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6312         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6313         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6314         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6315         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6316         EXTRA_CONSTRAINT_T.
6317         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6318         (MOVI_SHORI_BASE_OPERAND_P): New.
6319         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6320         (EXTRA_CONSTRAINT_T): Define in terms of them.
6321         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6322         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6323         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6324         alternatives supporting TARGET_REGS.
6325         (UNSPEC_GOTPLT): New constant.
6326         (movdi split): Move incrementing of LABEL_NUSES...
6327         (movdi_const, movdi_const_32bit): Here.  Use
6328         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6329         (movdi_const_16bit): New.
6330         (call, call_value) [flag_pic]: Use GOTPLT.
6331         (call_pop, call_value_pop): New expands.
6332         (call_pop_compact, call_pop_rettramp): New insns.
6333         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6334         (sibcall) [flag_pic]: Use GOT.
6335         (builtint_setjmp_receiver): Remove bogus, unused expand.
6336         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6337         (*pt, *ptb, ptrel): New insns.
6338         (sym2GOT): Handle DImode GOT.
6339         (sym2GOTPLT, symGOTPLT2reg): New expands.
6340         (sym2PIC): New expand.
6341         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6342         (shcompact_return_tramp_i): Use return register explicitly.
6343         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6344         disable flag_reorder_blocks.
6345         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6346         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6347         clobbers, for clarity.
6348         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6349         restoring of r0 in macl as MAYBE_DEAD.
6350         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6351         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6352         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6353         alter_subreg all over.
6354         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6355         reload, instead of emitting instructions that would require
6356         reloading.
6357         (casesi_load_media): Add missing modes.
6358         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6359         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6360         as used if the argument decoder is called.
6361         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6362         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6363         Pmode, then extend it to DImode if necessary.
6364         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6365         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6366         constants in FPU-enabled SHmedia, let them be loaded from memory.
6367         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6368         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6369         Adjust whitespace in assembly output templates.
6370         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6371         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6372         mode of if_then_else.
6373         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6374         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6375         sh.h.
6376         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6377                     Joern Rennecke <amylaar@redhat.com>
6378         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6379         (SUBTARGET_CPP_PTR_SPEC): New.
6380         (SUBTARGET_CPP_SPEC): Remove.
6381         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6382         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6383         Fix typo in previous checkin.
6384         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6385         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6386         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6387                     Alexandre Oliva  <aoliva@redhat.com>
6388         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6389         what single FP register can hold for SHmedia target.
6390         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6391                     Alexandre Oliva  <aoliva@redhat.com>
6392         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6393         Do not split into SUBREG.
6394         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6395         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6396         and added new functions as specified in SH5 ABI r9.
6397         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6398         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6399         8-byte boundary.
6400         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6401         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6402         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6403         and consttable_window_ends.
6404         2001-06-03  Graham Stott  <grahams@redhat,com>
6405         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6406         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6407         * config/sh/sh.c (print_operand): Handle floating-point pair,
6408         vector and matrix registers.
6409         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6410         vector modes into account.
6411         * config/sh/sh.md (movv2sf): Split move between registers into
6412         movdf.
6413         (movv4sf, movv16sf): Introduce insns that get split only after
6414         reload.
6415         * config/sh/shmedia.h: Fix Copyright dates.
6416         * config/sh/ushmedia.h: Likewise.  Move loop counter
6417         declarations into conditionals that uses them.
6418         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6419         loop boundary.
6420         * config/sh/sshmedia.h: Fix Copyright dates.
6421         (sh_media_PUTCFG): Fix constraints.
6422         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6423         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6424         ptrmemfunc_vbit_in_delta for SH5.
6425         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6426         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6427         * invoke.texi: Likewise.
6428         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6429         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6430         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6431         GCC_pop_shmedia_regs_nofpu): New global symbols.
6432         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6433         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6434         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6435         compact function with nonlocal labels.
6436         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6437         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6438         (initial_elimination_offset): Account for their stack space.
6439         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6440         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6441         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6442         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6443         least one of the operands to be a register.
6444         (movv2sf): Likewise.  Renamed to movv2sf_i.
6445         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6446         prepare_move_operands() before emitting SHmedia insns.
6447         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6448         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6449         Don't save nor initialize r12.  Don't mis-align the stack.
6450         Pad the code with a nop.
6451         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6452         stack.
6453         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6454         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6455         [__SHMEDIA__]: Implement.
6456         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6457         * config/sh/sh.md: Set latency of `pt' closer to reality.
6458         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6459         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6460         Set move, load and store type attributes.
6461         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6462         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6463         profiling.
6464         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6465         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6466         * config/sh/sh.c (sh_media_register_for_return): New function.
6467         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6468         branch-target register.
6469         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6470         * config/sh/sh.md (return_media_i): Use any call-clobbered
6471         branch-target register.
6472         (return_media): If r18 wasn't copied in the prologue, copy it
6473         here.
6474         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6475         Clear class FP0_REGS.
6476         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6477         from elf.h.
6478         2001-03-08  DJ Delorie  <dj@redhat.com>
6479         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6480         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6481         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6482         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6483         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6484         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6485         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6486         return value correctly for call_cookie.
6487         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6488         * config/sh/crt1.asm (start): Modified so as to call
6489         ___setup_argv_and_call_main.
6490         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6491         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6492         SHmedia mode.
6493         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6494         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6495         (STRIP_NAME_ENCODING): Use it.
6496         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6497         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6498         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6499         prepare_scc_operands().
6500         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6501         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6502         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6503         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6504         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6505         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6506         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6507         used in shcompact_incoming_args.
6508         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6509         change.
6510         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6511         mode.
6512         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6513         Adjust accordingly.
6514         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6515         Simplify.  Adjust.  Add sanity check.
6516         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6517         FPU_SINGLE_BIT.
6518         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6519         TARGET_SHCOMPACT.
6520         (udivsi3, divsi3): Use them.
6521         (force_mode_for_call): New insn.
6522         (call, call_value, sibcall_value): Emit it before SHcompact
6523         calls.
6524         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6525         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6526         call cookie is non-NULL before taking its value.
6527         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6528         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6529         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6530         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6531         block.
6532         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6533         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6534         temporary for stack adjusts.  Use MACL and MACH to pass
6535         arguments to shcompact_incoming_args.
6536         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6537         clobber r1.
6538         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6539         (nested_trampoline): Load static chain address into r1.
6540         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6541         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6542         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6543         fp_arith_reg_operand().
6544         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6545         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6546         and use signed compares for them.
6547         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6548         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6549         ones properly aligned.
6550         (find_barrier): Account for extra alignment needed for 8-byte wide
6551         constants.
6552         (machine_dependent_reorg): Require a label for the second 4-byte
6553         constant after an 8-byte one.
6554         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6555         change.
6556         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6557         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6558         last_float when switching float modes.
6559         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6560         auto-increment for general-purpose registers.
6561         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6562         result.
6563         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6564         for stack adjust.
6565         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6566         registers for varargs.
6567         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6568         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6569         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6570         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6571         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6572         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6573         call_cookie accordingly.
6574         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6575         (SHCOMPACT_BYREF): Likewise.
6576         (SHCOMPACT_FORCE_ON_STACK): New macro.
6577         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6578         (sh_builtin_saveregs): Likewise.
6579         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6580         shcompact_incoming_args): Use new shift values.  Support
6581         sequences of consecutive and non-consecutive pushes/pops.
6582         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6583         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6584         * config/sh/sh.h (TEXT_SECTION): Define.
6585         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6586         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6587         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6588         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6589         return values on FPU-enabled SHmedia.
6590         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6591         FPU-enabled SHmedia.
6592         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6593         value is returned in a non-FP reg and is not returned by
6594         reference.
6595         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6596         jump_ind.
6597         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6598         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6599         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6600         quad-aligned to be passed by callee-copy reference.
6601         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6602         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6603         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6604         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6605         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6606         copying low-numbered FP regs to r7 and r8.
6607         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6608         FP regs to general-purpose regs only if the copy was passed on the
6609         stack.
6610         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6611         copying FP reg to r9.
6612         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6613         copy FP regs to general-purpose regs only in outgoing calls.
6614         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6615         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6616         HOST_WIDE_INT.
6617         * config/sh/sh.h (struct sh_args): Document all fields.
6618         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6619         passed partially on the stack should not consider making
6620         sibcalls.
6621         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6622         stack_regs only for incoming calls.  When passing FP args,
6623         make sure there are FP regs available before modifying
6624         call_cookie.
6625         (SHCOMPACT_BYREF): Pass double args in general-purpose
6626         registers by reference.
6627         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6628         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6629         attempt to generate sibcalls if the caller got any arguments
6630         by reference.
6631         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6632         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6633         to 8-byte boundaries.
6634         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6635         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6636         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6637         stored in the stack.
6638         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6639         for the offsets to have the ISA bit set.
6640         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6641         invocation.  Use beq instead of bgt to mark end of sequence of
6642         loads.
6643         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6644         bgt to mark end of sequence of stores.
6645         * config/sh/sh.c (arith_operand): Don't check whether
6646         CONST_OK_FOR_J for now.
6647         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6648         instead of long for conversion.
6649         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6650         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6651         before passing it to fprintf.
6652         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6653         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6654         Call set_fpscr before reading/writing SR.
6655         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6656         Call set_fpscr.
6657         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6658         SHmedia code.
6659         (FMOVD_WORKS): Define on SH5 with FPU.
6660         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6661         setting.
6662         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6663         _fpscr_values.
6664         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6665         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6666         address.
6667         (ia_main_table): Ditto.
6668         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6669         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6670         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6671         the definitions from sh.h.
6672         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6673         TARGET_SH5.
6674         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6675         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6676         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6677         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6678         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6679         Increment LABEL_NUSES.
6680
6681         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6682         TARGET_SH5.
6683         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6684         defined.
6685         * config/sh/elf.h (SIZE_TYPE): Likewise.
6686         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6687         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6688         shcompact_incoming_args): Load switch table addresses using
6689         datalabel.
6690         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6691         (NO_BUILTIN_SIZE_TYPE): Define.
6692         (SIZE_TYPE): Don't define.
6693         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6694         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6695         definition of __SH5__=32 for -m5-compact-nofpu.
6696         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6697         ADDR_DIFF_VEC.
6698         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6699         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6700         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6701         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6702         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6703         (INSN_LENGTH_ALIGNMENT): Likewise.
6704         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6705         * config/sh/sh.md (call, call_value, sibcall): Simplify
6706         copying of non-branch-target register.
6707         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6708         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6709         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6710         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6711         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6712         floating-point values as structs.
6713         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6714         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6715         general-purpose register.
6716         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6717         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6718         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6719         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6720         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6721         (ENCODE_SECTION_INFO): Enclose variables and constants in
6722         DATALABEL unspecs.
6723         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6724         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6725         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6726         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6727         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6728         SH_DATALABEL_ENCODING to the symbol name.
6729         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6730         convert_mode().
6731         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6732         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6733         UNSPEC_DATALABEL.
6734         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6735         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6736         (DATALABEL_REF_P): Don't require CONST.
6737         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6738         REL label.
6739         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6740         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6741         right.
6742         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6743         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6744         Use shallow_copy_rtx and PUT_MODE to change the mode of
6745         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6746         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6747         on SHmedia using GENERAL_REGs.
6748         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6749         bltu_media_i): Fix reversion of conditions.
6750         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6751         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6752         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6753         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6754         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6755         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6756         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6757         (GCC_nested_trampoline): Likewise.
6758         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6759         * config/sh/sh.c (gen_datalabel_ref): Define.
6760         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6761         (INITIALIZE_TRAMPOLINE): Likewise.
6762         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6763         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6764         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6765         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6766         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6767         (ic_invalidate): Adjust for SH5.
6768         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6769         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6770         _nested_trampoline.
6771         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6772         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6773         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6774         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6775         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6776         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6777         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6778         * config/sh/sh.c (target_reg_operand): Match only target-branch
6779         registers and pseudos that aren't virtual registers.
6780         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6781         Copy operands that don't match target_reg_operand to pseudos.
6782         (call_media, call_value_media, sibcall_media): Use
6783         target_reg_operand instead of target_operand.
6784         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6785         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6786         * config/sh/sh.c (target_reg_operand): Match hardware registers
6787         other than branch-target registers.
6788         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6789         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6790         (fpscr_values) [SH5 == 32]: Define.
6791         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6792         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6793         Handle function addresses coming in SUBREGs.
6794         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6795         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6796         shcompact_return_trampoline): Use datalabel where appropriate.
6797         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6798         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6799         general-purpose register to copy one branch-target register to
6800         another.
6801         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6802         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6803         SYMBOL_REFs with VOIDmode.
6804         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6805         bltu_media_i): New insns.
6806         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6807         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6808         (INIT_CUMULATIVE_ARGS): Likewise.
6809         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6810         * machmode.def (V16SFmode): New mode.
6811         * c-common.c (type_for_mode): Support V2SF and V16SF.
6812         * tree.c (build_common_tree_nodes_2): Likewise.
6813         * tree.h (tree_index): Likewise.
6814         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6815         callers.  Introduce CALL_POPS_ARGS.
6816         * tm.texi (CALL_POPS_ARGS): Document.
6817         * config/sh/crt1.asm: Implement in SHmedia mode.
6818         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6819         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6820         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6821         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6822         Implement divsi and udivsi in SHmedia mode.  Introduce
6823         SHcompact trampolines.
6824         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6825         only in SHmedia64.
6826         (regno_reg_class): Rewrite.
6827         (fp_reg_names): Remove.
6828         (sh_register_names, sh_additional_register_names): New.
6829         (print_operand): Added `u'.  Support SUBREGs in addresses.
6830         Add parentheses around shifted CONSTs.
6831         (output_file_start): Output .mode and .abi directives.
6832         (shiftcosts, addsubcosts, multcosts): Adjust.
6833         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6834         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6835         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6836         bytes, not registers.  Take into account the need for the
6837         SHcompact incoming args trampoline.  Adjust all callers.
6838         (sh_expand_prologue): Take stack_regs into account.  Call
6839         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6840         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6841         stack aligned as per SH5 ABI.
6842         (sh_builtin_saveregs): Support SH5 ABI.
6843         (sh_build_va_list, sh_va_start): Likewise.
6844         (initial_elimination_offset): Take alignment into account.
6845         Compute location of PR according to the SH5 stack frame.
6846         (arith_reg_operand): Reject branch-target registers.
6847         (shmedia_6bit_operand): New.
6848         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6849         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6850         (target_operand): New.
6851         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6852         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6853         SIBCALL_REGS for SHmedia.
6854         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6855         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6856         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6857         (TARGET_SWITCHES): New SH5 flags.
6858         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6859         VALID_REGISTER_P to disable unsupported registers.
6860         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6861         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6862         (FUNCTION_ARG_PADDING): Define.
6863         (FASTEST_ALIGNMENT): Adjust.
6864         (SH_REGISTER_NAMES_INITIALIZER): New.
6865         (sh_register_names): Declare.
6866         (DEBUG_REGISTER_NAMES): Define.
6867         (REGISTER_NAMES): Define based on sh_register_names.
6868         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6869         (sh_additional_register_names): Declare.
6870         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6871         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6872         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6873         (REGISTER_NATURAL_MODE): Define.
6874         (FIRST_PSEUDO_REGISTER): Adjust.
6875         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6876         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6877         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6878         (VECTOR_MODE_SUPPORTED_P): Define.
6879         (REG_CLASS_CONTENTS): Adjust.
6880         (SMALL_REGISTER_CLASSES): Adjust.
6881         (REG_ALLOC_ORDER): Adjust.
6882         (INDEX_REG_CLASS): Adjust.
6883         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6884         (CONST_OK_FOR_LETTER_P): Adjust.
6885         (PREFERRED_RELOAD_CLASS): Adjust.
6886         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6887         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6888         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6889         (FIRST_FP_PARM_REG): Adjust.
6890         (CALL_POPS_ARGS): Define.
6891         (FUNCTION_ARG_REGNO_P): Adjust.
6892         (struct sh_args): New fields.
6893         (GET_SH_ARG_CLASS): Adjust.
6894         (INIT_CUMULATIVE_ARGS): Adjust.
6895         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6896         (FUNCTION_ARG_ADVANCE): Adjust.
6897         (FUNCTION_ARG): Adjust.
6898         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6899         (FUNCTION_ARG_CALLEE_COPIES): Define.
6900         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6901         (STRICT_ARGUMENT_NAMING): Define.
6902         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6903         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6904         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6905         (SETUP_INCOMING_VARARGS): Adjust.
6906         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6907         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6908         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6909         (SUBREG_OK_FOR_INDEX_P): Adjust.
6910         (EXTRA_CONSTRAINT_S): Update.
6911         (EXTRA_CONSTRAINT_T): New.
6912         (EXTRA_CONSTRAINT): Adjust.
6913         (GO_IF_LEGITIMATE_INDEX): Adjust.
6914         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6915         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6916         (MOVE_MAX): Adjust.
6917         (MAX_MOVE_MAX): Define.
6918         (Pmode): Adjust.
6919         (CONST_COSTS): Adjust.
6920         (REGISTER_MOVE_COST): Adjust.
6921         (BRANCH_COST): Adjust.
6922         (TEXT_SECTION_ASM_OP): Adjust.
6923         (DBX_REGISTER_NUMBER): Adjust.
6924         (ASM_OUTPUT_DOUBLE_INT): New.
6925         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6926         (PREDICATE_CODES): Adjust.
6927         (PROMOTE_MODE): Adjust.
6928         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6929         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6930         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6931         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6932         (DR0_REG, DR2_REG, DR4_REG): Renumber.
6933         (TR0_REG, TR1_REG, TR2_REG): New.
6934         (XD0_REG): Renumber.
6935         (UNSPEC_COMPACT_ARGS): New.
6936         (type): Added pt and ptabs.
6937         (length): Default to 4 on SHmedia.  Default pt length to 12
6938         and     20 on SHmedia32 and SHmedia64, respectively.
6939         (pt): New function unit.
6940         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
6941         Add whitespace between operands of SHmedia instructions.
6942         (movdicc): Fix.
6943         (adddi3_media, addsi3_media): Adjust constraints.
6944         (subsi3) [SHmedia]: Force operand 1 into a register.
6945         (udivsi3_i1_media, udivsi3_i4_media): New.
6946         (udivsi3): Support SHmedia.
6947         (divsi3_i1_media, divsi3_i4_media): New.
6948         (divsi3): Support SHmedia.
6949         (anddi3, iordi3, xordi3): Adjust constraints.
6950         (zero_extendhidi2, zero_extendqidi2): New.
6951         (extendsidi2, extendhidi2, extendqidi2): New.
6952         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6953         (pop_e, pop_fpul, pop_4): Likewise.
6954         (movsi_media): Support FP and BT registers.
6955         (movsi_media_nofpu): New.  Adjust splits to DImode.
6956         (lduw, ldub): Renamed to zero_extend* above.
6957         (movqi_media): Fix typo.
6958         (movdi_media): Support FP and BT registers.
6959         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
6960         (movdi_const_32bit): New.
6961         (shori_media): Require immediate operand.  Use `u' for output.
6962         (movdf_media, movsf_media): Simplified.
6963         (movdf_media_nofpu, movsf_media_nofpu): New.
6964         (movdf, movsf): Adjust
6965         (movv2sf, movv2sf, movv16sf): New.
6966         (beq_media, beq_media_i): Adjust constraints.  Don't use
6967         scratch BT register.
6968         (bne_media, bne_media_i): Likewise.
6969         (bgt_media, bgt_media_i): Likewise.
6970         (bge_media, bge_media_i): Likewise.
6971         (bgtu_media, bgtu_media_i): Likewise.
6972         (bgeu_media, bgeu_media_i): Likewise.
6973         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6974         bunordered): Emit jump insn.  Force operands to registers when
6975         needed.
6976         (jump_media, jump): Simplify.
6977         (call_compact, call_compact_rettramp): New.
6978         (call_value_compact, call_value_compact_rettramp): New.
6979         (call_media, call_value_media): Simplify.
6980         (sibcall_compact, sibcall_media): New.
6981         (call, call_value): Adjust for SHmedia and SHcompact.
6982         (sibcall, sibcall_value, untyped_call): Likewise.
6983         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6984         (indirect_jump): Adjust for SHmedia.
6985         (casesi_jump_media): New.
6986         (nop): Re-enable for SHmedia.
6987         (call_site): Restrict to SH1.
6988         (casesi): Adjust for SHmedia.
6989         (casesi_shift_media, casesi_load_media): New.
6990         (return): Explicitly use PR register.  Call return trampoline
6991         on SHcompact.
6992         (return_i): Explicitly use PR register.
6993         (shcompact_return_tramp, shcompact_return_tramp_i): New.
6994         (return_media): Adjust.
6995         (shcompact_incoming_args): New.
6996         (epilogue): Adjust.
6997         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6998         (movstrsi): Disable on SH5.
6999         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7000         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7001         (subsf3, subsf3_media): Likewise.
7002         (mulsf3, mulsf3_media, mac_media): Likewise.
7003         (divsf3, divsf3_media): Likewise.
7004         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7005         (floatsisf2, fux_truncsfsi2): Likewise.
7006         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7007         constraints.
7008         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7009         (cmpunsf_media, cmpsf): Likewise.
7010         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7011         (abssf2, abssf2_media): Likewise.
7012         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7013         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7014         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7015         (floatsidf2, fix_truncdfsi2): Likewise.
7016         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7017         constraints.
7018         (cmpeqdf_media, cmpgtdf_media): Likewise.
7019         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7020         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7021         (absdf2, absdf2_media): Likewise.
7022         (extendsfdf2, extendsfdf2_media): Likewise.
7023         (truncsfdf2, truncsfdf2_media): Likewise.
7024         * config/sh/sh64.h: New file.
7025         * config/sh/t-sh64: New file.
7026         * config/sh/shmedia.h: New file.
7027         * config/sh/ushmedia.h: New file.
7028         * config/sh/sshmedia.h: New file.
7029         * configure.in: Added sh64-*-elf.
7030         * configure: Rebuilt.
7031         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7032         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7033         (reg_class_from_letter): Use `b' for TARGET_REGS.
7034         (print_operand): Support `%M', `%m', `AND' and
7035         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7036         (andcosts): Adjust for SHmedia.
7037         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7038         Likewise.
7039         (target_reg_operand): New function.
7040         * config/sh/sh-protos.h (target_reg_operand): Declare.
7041         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7042         FP registers on SH5.
7043         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7044         on SH4.
7045         (TARGET_REGISTER_P): New macro.
7046         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7047         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7048         (EXTRA_CONSTRAINT_S): New macro.
7049         (EXTRA_CONSTRAINT): Adjust.
7050         (FLOAT_TYPE_SIZE): Define to 32.
7051         (Pmode): DImode on SHmedia.
7052         (CONST_COSTS): Adjust for SHmedia literals.
7053         (PREDICATE_CODES): Added target_reg_operand.
7054         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7055         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7056         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7057         (cmpdi): Accept SHmedia.
7058         (movdicc_false, movdicc_true): New insns.
7059         (movdicc): New expand.
7060         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7061         no_new_pseudos.
7062         (addsi3_media): Match `S' constraint.
7063         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7064         (negdi2): Expand for SHmedia.
7065         (one_cmpldi2): New expand.
7066         (zero_extendsidi2): Change from expand to insn.
7067         (extendsidi2): Add constraints.
7068         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7069         LD/ST address.  Fix SI immediate loading split.
7070         (movhi_media, movqi_media, lduw, ldub): New insns.
7071         (movhi, movqi): Accept SHmedia.
7072         (shori_media, movdi_media): Relax input constraints.  Split
7073         symbolic constants.
7074         (movdf_media, movsf_media): New insn.  New split to movdi.
7075         (movdf, movsf): Match on SHmedia.
7076         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7077         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7078         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7079         (bunordered): New expand.
7080         (jump_compact): Renamed from `jump'.
7081         (jump_media): New insn.
7082         (jump): New expand.
7083         (call_media, call_value_media): New insns.
7084         (call, call_value): Adjust.
7085         (indirect_jump_compact): Renamed from `indirect_jump'.
7086         (indirect_jump_media): New insn.
7087         (indirect_jump): New expand.
7088         (untyped_call, return): Accept SHmedia.
7089         (return_media): New insn.
7090         (prologue, epilogue, blockage): Accept SHmedia.
7091         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7092         (sunordered): New expand.
7093         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7094         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7095         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7096         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7097         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7098         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7099         abssf2_media): New insns.
7100         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7101         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7102         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7103         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7104         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7105         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7106         absdf2_media): New insns.
7107         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7108         (extendsfdf2_media, truncdfsf2_media): New insns.
7109         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7110         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7111         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7112         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7113         * config/sh/sh.md (adddi3): New expand.
7114         (adddi3_media, adddi3z_media): New insns.
7115         (adddi3_compact): Renamed from adddi3.
7116         (addsi3_media): Use add.l r63 to add constant zero.
7117         (subdi3): New expand.
7118         (subdi3_media): New insn.
7119         (subdi3_compact): Renamed from subdi3.
7120         (mulsidi3): New expand.
7121         (mulsidi3_media): New insn.
7122         (mulsidi3_compact): Renamed from mulsidi3.
7123         (umulsidi3): New expand.
7124         (umulsidi3_media): New insn.
7125         (umulsidi3_compact): Renamed from umulsidi3.
7126         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7127         (ashlsi3, ashrsi3, lshrsi3): Use them.
7128         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7129         (ashldi3, ashrdi3, lshrdi3): Use them.
7130         (zero_extendsidi2): New expand.
7131         (extendsidi2): New insn.
7132         (movsi_media): New insn.  Split to movdi to load constants.
7133         (movsi): Enable for shmedia.
7134         (movdi_media): New insn.  Use shori_media to load wide constants.
7135         (short_media): New insn.
7136         (movdi): Enable for shmedia.
7137         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7138         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7139         (SUBTARGET_CPP_SPEC): Added `!m5'.
7140         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7141         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7142         to all other SH variants.
7143         (TARGET_DEFAULT): Set to SH1_BIT.
7144         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7145         (BITS_PER_WORD): Raise to 64 on shmedia.
7146         (MAX_BITS_PER_WORD): Change to 64.
7147         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7148         (INT_TYPE_SIZE): Keep as 32.
7149         (UNITS_PER_WORD): Raise to 8 on shmedia.
7150         (MIN_UNITS_PER_WORD): Keep as 4.
7151         (POINTER_SIZE): Raise to 64 on shmedia.
7152         (CONST_OK_FOR_J): New macro.
7153         (CONST_OK_FOR_LETTER_P): Use it.
7154         (processor_type): Add PROCESSOR_SH5.
7155         * config/sh/sh.md: Conditionalize all expands, insns and
7156         splits to TARGET_SH1.
7157         (cpu): Added sh5.
7158         (addsi3_compact): Renamed from...
7159         (addsi3): Now an expand.
7160         (addsi3_media, subsi3_media): New insns.
7161         (subsi3): Don't negate constants with SHmedia.
7162
7163         * hooks.c: New file.
7164         * hooks.h: New file.
7165         * Makefile.in (HOOKS_H): New.
7166         (TARGET_DEF_H): Added $(HOOKS_H).
7167         (OBJS): Added hooks.o.
7168         (cfgcleanup.o, bb-reorder.o): Added target.h.
7169         (hooks.o): Added dependencies.
7170         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7171         (TARGET_INITIALIZER): this.
7172         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7173         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7174         * bb-reorder.c: Include target.h.
7175         (reorder_basic_blocks): Skip if cannot modify jumps.
7176         * cfgcleanup.c: Include target.h.
7177         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7178
7179 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7180
7181         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7182         Protect jump delay slot instructions with .set noreorder and
7183         .set nomacro.
7184
7185 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7186
7187         * config/mips/mips.md (casesi_internal_di): Calculate
7188         the index into the target offset table correctly.
7189
7190 2002-02-08  Richard Henderson  <rth@redhat.com>
7191
7192         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7193         * final.c (output_addr_const): Accept and discard SUBREG.
7194         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7195         mark them unknown instead.
7196         (simplify_subtraction): Handle RTX_UNKNOWN.
7197         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7198
7199 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7200
7201         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7202
7203 2002-02-08  Richard Henderson  <rth@redhat.com>
7204
7205         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7206
7207 2002-02-08  Andreas Jaeger  <aj@suse.de>
7208
7209         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7210         * config/i386/t-linux64: New file.
7211
7212 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7213
7214         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7215         * c-parse.in (compstmt): Clear last_expr_type.
7216
7217 2002-02-07  Richard Henderson  <rth@redhat.com>
7218
7219         * loop.c (strength_reduce): Sink final_value when not
7220         eliminating a biv.
7221
7222 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7223
7224         * config/sparc/freebsd.h: Fix mismatched spec {.
7225
7226 2002-02-07  Richard Henderson  <rth@redhat.com>
7227
7228         * cfgrtl.c: Include recog.h and insn-config.h.
7229         (keep_with_call_p): Fix general_operand invocation.
7230         * Makefile.in (cfgrtl.o): Update dependencies.
7231
7232 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7233
7234         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7235         comment.  Accept HImode only if TARGET_H8300.
7236
7237 2002-02-07  Eric Christopher  <echristo@redhat.com>
7238
7239         * config/mips/crtn.asm: Cleanup #ifdefs.
7240
7241 2002-02-07  Eric Christopher  <echristo@redhat.com>
7242
7243         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7244         register 7 as RA instead of $31.
7245         * config/mips/crtn.asm: Ditto.
7246         * config/mips/mips.c (mips_move_2words): Add case for
7247         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7248         (compute_frame_size): Fix typo.
7249         (save_restore_insns): Ditto.  Make documentation about using
7250         register $7 as return register more precise.
7251         (mips_expand_epilogue): Fix comment. Add code to work around not
7252         being able to add to the stack pointer directly.
7253         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7254         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7255         epilogue.
7256
7257 2002-02-07  Tom Rix  <trix@redhat.com>
7258
7259         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7260         immediates in ldu and stdu DS opcode field.
7261         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7262         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7263         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7264
7265 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7266
7267         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7268         offset for stack bias.
7269
7270 2002-02-07  H.J. Lu <hjl@gnu.org>
7271
7272         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7273
7274 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7275
7276         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7277
7278 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7279
7280         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7281         * i386.c (x86_order_regs_for_local_alloc): New global function.
7282         * i386.h (REG_ALLOC_ORDER): CLeanup.
7283         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7284
7285 2002-02-07  Richard Henderson  <rth@redhat.com>
7286
7287         PR optimization/2463
7288         * alias.c (find_base_value): Recall base values for fixed hard regs.
7289         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7290
7291 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7292
7293         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7294         length.
7295
7296 2002-02-06  Richard Henderson  <rth@redhat.com>
7297
7298         PR c/5609
7299         * stmt.c (resolve_operand_name_1): Take more care with mixed
7300         named and unnamed operands.
7301
7302 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7303             Jan Hubicka  <jh@suse.cz>
7304
7305         * loop.c (remove_constant_addition): Avoid clobbering a shared
7306         CONST expression.
7307
7308 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7309
7310         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7311         * config/s390/t-linux64: New file.
7312         * config/s390/libgcc-glibc.ver: New file.
7313
7314 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7315
7316         * config/s390/linux64.h: Delete file.
7317         * config/s390/s390x.h: New file.
7318         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7319         as target header file.
7320         * config/s390/linux.h (TARGET_VERSION): Define depending on
7321         DEFAULT_TARGET_64BIT.
7322         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7323         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7324         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7325         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7326         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7327         (EXTRA_SPEC): New define.
7328         * config/s390/s390.h (TARGET_VERSION): Define depending on
7329         DEFAULT_TARGET_64BIT.
7330         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7331
7332 2002-02-06  Jason Merrill  <jason@redhat.com>
7333
7334         * c-decl.c (finish_function): Warn about a non-void function with
7335         no return statement and no abnormal exit.
7336         (current_function_returns_abnormally): New variable.
7337         (start_function): Clear it.
7338         (struct c_language_function): Add returns_abnormally.
7339         (push_c_function_context): Save it.
7340         (pop_c_function_context): Restore it.
7341         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7342         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7343         an explicit return type.
7344         * c-tree.h: Declare current_function_returns_abnormally.
7345         (C_FUNCTION_IMPLICIT_INT): New macro.
7346         * c-typeck.c (build_function_call): Set it.
7347         (c_expand_return): Set current_function_returns_value even if the
7348         value is erroneous.
7349
7350 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7351
7352         PR c/5420:
7353         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7354         unsafe for reevaluation.
7355
7356 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7357
7358         PR c/5482:
7359         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7360         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7361
7362 2002-02-06  Richard Henderson  <rth@redhat.com>
7363
7364         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7365         be a general_operand.  Dest for function value must be a pseudo.
7366
7367 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7368
7369         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7370         as SYMBOL_REFs from the constant pool.
7371
7372 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7373
7374         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7375         passed by invisible reference.
7376
7377 2002-02-05  Richard Henderson  <rth@redhat.com>
7378
7379         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7380
7381 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7382
7383         Implement using "base addresses" in insn operands as default.
7384         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7385         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7386         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7387         used to read the rtx value.
7388         (mmix_target_asm_function_epilogue): Fix spacing.
7389         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7390         (mmix_legitimate_address): Ditto.
7391         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7392         should be loaded with a GETA insn.  Don't allocate needless extra
7393         char for nul termination and fix misleading comment.
7394         (mmix_print_operand_address): Handle constants if
7395         TARGET_BASE_ADDRESSES.
7396         (mmix_output_register_setting): Use base addressing if
7397         TARGET_BASE_ADDRESSES and the number of insns is 3.
7398         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7399         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7400         to use R as constraint, add LDA to match s.
7401         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7402         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7403         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7404         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7405         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7406         order with other fixed registers.
7407         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7408         other parameter/call-clobbered registers.
7409         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7410         -mbase-addresses, -mno-base-addresses.
7411         (MMIX Options): Ditto.
7412
7413 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7414
7415         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7416
7417 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7418
7419         * config/rs6000/altivec.h: Change elem to _S_elem.
7420
7421 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7422
7423         * config/netbsd.h (WCHAR_TYPE): Define.
7424         (WCHAR_TYPE_SIZE): Ditto.
7425         (WINT_TYPE): Ditto.
7426         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7427         (WCHAR_UNSIGNED): Ditto.
7428         (WCHAR_TYPE_SIZE): Ditto.
7429         (WINT_TYPE): Ditto.
7430         * config/arm/netbsd.h: Likewise.
7431         * config/i386/netbsd-elf.h: Likewise.
7432         * config/i386/netbsd.h: Likewise.
7433         * config/m68k/netbsd-elf.h: Likewise.
7434         * config/m68k/netbsd.h: Likewise.
7435         * config/ns32k/netbsd.h: Likewise.
7436         * config/sparc/netbsd.h: Likewise.
7437         * config/vax/netbsd.: Likewise.
7438
7439 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7440
7441         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7442         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7443         (TARGET_INITIALIZER): this.
7444         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7445         (BITFIELD_NBYTES_LIMITED): Markup fix.
7446         * tree.h (default_ms_bitfield_layout_p): Declare.
7447         (record_layout_info): Added prev_field.
7448         * tree.c (default_ms_bitfield_layout_p): New fn.
7449         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7450         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7451         * stor-layout.c: Include target.h.
7452         (start_record_layout): Initialize prev_field.
7453         (place_field): Handle MS bit-field layout, and disregard
7454         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7455         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7456         * Makefile.in (stor-layout.o): Adjust dependencies.
7457
7458 2002-02-05  Jason Merrill  <jason@redhat.com>
7459
7460         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7461
7462 2002-02-05  Andreas Jaeger  <aj@suse.de>
7463
7464         * crtstuff.c: Fix comments.
7465
7466 2002-02-05  Richard Henderson  <rth@redhat.com>
7467
7468         PR fortran/3393
7469         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7470         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7471
7472         PR fortran/3392
7473         * config/mips/mips.c (function_arg): Handle TImode.
7474         (function_arg_advance): Likewise.
7475
7476 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7477
7478         * config/rs6000/altivec.h (vec_step_help): Rename to
7479         __vec_step_help.
7480
7481 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7482
7483         * config/rs6000/altivec.h: Fix typos.
7484
7485 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7486
7487         * config/arm/netbsd.h: Correct a comment.
7488
7489 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7490
7491         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7492         building void typed builtins.
7493
7494         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7495         (vec_step): Implement for C++.
7496
7497 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7498
7499         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7500
7501 2002-02-04  Richard Henderson  <rth@redhat.com>
7502
7503         * combine.c (nonzero_bits): Re-introduce special case for
7504         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7505
7506 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7507
7508         * doc/extend.texi: Warn about unsupported usage of altivec
7509         builtins.
7510
7511         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7512         (altivec_predicate_*): New.
7513
7514         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7515         Add C++ version of vec_*() functions.
7516
7517         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7518         (bdesc_2arg): Remove altivec predicates.
7519         (altivec_expand_builtin): Handle predicates.
7520         (altivec_init_builtins): Handle predicates.
7521         (altivec_expand_predicate_builtin): New.
7522
7523 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7524
7525         * pa.c (DO_FRAME_NOTES): Move forward.
7526         (store_reg): Revise handling of frame notes.
7527         (load_reg): Likewise.
7528         (set_reg_plus_d): Likewise.
7529         (hppa_expand_prologue): Likewise.
7530         (hppa_expand_epilogue): Likewise.
7531
7532 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7533
7534         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7535
7536 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7537
7538         PR c/4475, c++/3780:
7539         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7540         * c-common.h (SWITCH_TYPE): Define.
7541         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7542         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7543         Rename spareness variable to sparseness.
7544         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7545         if non-NULL instead of TREE_TYPE (orig_index).
7546         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7547         (expand_end_case): Define using expand_end_case_type.
7548         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7549         to expand_end_case_type.
7550         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7551
7552 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7553
7554         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7555         (BIGGEST_ALIGNMENT): Change to 128.
7556
7557 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7558
7559         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7560
7561 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7562
7563         * pa.md (call_internal_reg_64bit): Remove unused variable.
7564
7565 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7566
7567         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7568         field.
7569         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7570         * config/arm/arm.c (current_function_anonymous_args): Delete,
7571         replace uses with cfun->machine->uses_anonymous_args.
7572         (arm_reorg): Do not reset uses_anonymous_args.
7573
7574         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7575         any geenral register.
7576
7577 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7578
7579         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7580         the entry block.
7581
7582 2002-02-04  Richard Henderson  <rth@redhat.com>
7583
7584         * combine.c (force_to_mode): Remove STACK_BIAS code.
7585         (nonzero_bits): Likewise.  Replace sp/fp special case with
7586         REGNO_POINTER_ALIGN.
7587
7588         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7589         (HARD_FRAME_POINTER_REGNUM): New.
7590         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7591         (FIXED_REGS, CALL_USED_REGS): Update.
7592         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7593         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7594         (HARD_REGNO_NREGS): Update for SFP.
7595         (STACK_POINTER_OFFSET): Include bias here ...
7596         (FIRST_PARM_OFFSET): ... not here.
7597         (STACK_BIAS): Remove.
7598         (INIT_EXPANDERS): New.
7599         (STARTING_FRAME_OFFSET): Do not include bias.
7600         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7601         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7602         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7603         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7604         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7605         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7606         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7607         (MUST_SAVE_REGISTER): Likewise.
7608         (sparc_flat_function_prologue): Likewise.
7609         (sparc_flat_function_epilogue): Likewise.
7610         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7611         (sparc_init_modes): SFP is GENERAL_REGS.
7612         (sparc_builtin_saveregs): SFP does not have bias applied.
7613
7614 2002-02-04  Richard Henderson  <rth@redhat.com>
7615
7616         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7617         current_function_is_thunk.
7618         (alpha_sa_mask): Distinguish between current_function_is_thunk
7619         called from ASM_OUTPUT_MI_THUNK and not.
7620         (alpha_does_function_need_gp): Thunks always need gp.
7621         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7622         (alpha_output_mi_thunk_osf): New.
7623         * config/alpha/alpha-protos.h: Update.
7624         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7625
7626 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7627
7628         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7629         function types, not when they're taken away.
7630
7631 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7632
7633         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7634         CODE_LABEL and jump table when replacing a table jump with a
7635         simple jump.
7636
7637 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7638
7639         * config/s390/s390-protos.h (legitimize_la_operand,
7640         s390_secondary_input_reload_class, s390_plus_operand,
7641         s390_expand_plus_operand): Add prototypes.
7642
7643         config/s390/s390.c (s390_secondary_input_reload_class,
7644         s390_plus_operand, s390_expand_plus_operand): New functions.
7645
7646         (struct s390_address): New member 'pointer'.
7647         (s390_decompose_address): Compute it.
7648         (legitimate_la_operand_p): Use it.
7649         (legitimize_la_operand): New function.
7650         (movti, movdi, movdf splitters): Call it.
7651
7652         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7653         (PREDICATE_CODES): Add s390_plus_operand.
7654
7655         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7656         (la_ccclobber): Allow GENERAL_REGS as output operand.
7657
7658         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7659         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7660         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7661
7662 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7663
7664         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7665         register names for regular asm () construct.
7666
7667 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7668
7669         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7670         registers.
7671
7672 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7673
7674         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7675         pat for recog.
7676
7677 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7678
7679         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7680         constant pool to be identical by string address and index.
7681
7682 2002-02-04  Anthony Green  <green@redhat.com>
7683
7684         * output.h (SECTION_OVERRIDE): Define.
7685         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7686
7687 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7688
7689         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7690         by existing arm*-*-netbsd* (a.out) target.
7691         (ns32k-*-netbsdelf*): Likewise.
7692         (sparc-*-netbsdelf*): Likewise.
7693         (vax-*-netbsdelf*): Likewise.
7694
7695 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7696
7697         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7698         headers and libobjc headers.
7699
7700 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7701
7702         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7703         (_mingw.h): Remove duplicate include.
7704
7705 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7706
7707         * config.gcc: Set cpu_type to m68k for 68010, as well.
7708         (m68010-*-netbsdelf*): New...
7709         (m68k*-*-netbsdelf*): ...targets.
7710         * config/m68k/netbsd-elf.h: New file.
7711
7712 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7713
7714         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7715
7716 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7717
7718         * config/h8300/h8300.c (h8_push_ops): Move inside
7719         h8300_init_once.
7720         (h8_pop_ops): Likewise.
7721         (h8_move_ops): Likewise.
7722
7723 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7724
7725         * config/h8300/h8300.c (os_task): Make it static.
7726         (monitor): Likewise.
7727         (pragma_saveall): Likewise.
7728
7729 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7730
7731         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7732         constant is a valid sign-extension for Pmode.
7733
7734 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7735
7736         * config/h8300/h8300.c: Fix formatting.
7737
7738 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7739
7740         * config/h8300/h8300.md: Fix formatting.
7741
7742 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7743
7744         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7745         predicates of operands[1].  Split the patterns for each
7746         processor variant.
7747
7748 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7749
7750         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7751         of operands[1] to register_operand.
7752
7753 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7754
7755         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7756         * cpphash.c (_cpp_init_hashtable): Similarly.
7757         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7758         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7759         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7760         (cpp_handle_option): Handle the new options.
7761         * cpplex.c (cpp_interpret_charconst): Use new flag.
7762         * cpplib.h (struct cpp_options): New member signed_char.
7763         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7764         (cpp_options): Handle -fsigned-char and -funsigned-char.
7765         (static_specs): Remove signed_char_spec.
7766         (do_spec1): Don't handle %c.
7767         * system.h: Poison SIGNED_CHAR_SPEC.
7768         * tradcif.y (yylex): Use flag_signed_char.
7769         * tradcpp.h (flag_signed_char): New.
7770         * tradcpp.c (flag_signed_char): New.
7771         (main): Handle new command-line options.
7772         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7773 config:
7774         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7775         * avr/avr.h: Remove old comments.
7776         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7777         (CC1_SPEC): Pass -fsigned-char if -mic*.
7778         (SIGNED_CHAR_SPEC): Remove.
7779 doc:
7780         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7781
7782 2002-02-01  Eric Christopher  <echristo@redhat.com>
7783
7784         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7785         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7786         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7787         (ASM_OUTPUT_REG_POP): Ditto.
7788
7789 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7790
7791         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7792         patch.
7793
7794 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7795
7796         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7797
7798 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7799
7800         PR c/5304:
7801         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7802         unconditionally.
7803
7804 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7805
7806         * cfganal.c: Include tm_p.h.
7807         (keep_with_call_p): Fix the test that determines if a register holds
7808         the return value of a call.
7809
7810 2002-02-01  DJ Delorie  <dj@redhat.com>
7811
7812         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7813         we are given conflicting registers, switch to the other one we
7814         had allocated for us.
7815         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7816         as TImode so we know when the "other" register is available.
7817
7818 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7819
7820         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7821         sparc/sparc_bi.h.
7822
7823 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7824
7825         * cfganal.c (keep_with_call_p): New function.
7826         (flow_call_edges_add): Prevent splitting a block between a call and
7827         a single-set instruction that should be kept in the same block.
7828
7829 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7830
7831         * doc/install.texi (avr): Update outdated URL.
7832
7833 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7834
7835         * config/stormy16/stormy16.md (pushqi): New.
7836         (popqi): New.
7837         (pushhi): New.
7838         (pophi): New.
7839         (movhi): Remove stack operands.
7840         (movqi): Likewise.
7841         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7842         nonimmediate_nonstack_operand.
7843         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7844         New.
7845         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7846         New.
7847
7848 2002-01-31  Jason Merrill  <jason@redhat.com>
7849
7850         * Makefile.in (c-parse.c): Handle .output file.
7851         * objc/Make-lang.in (objc-parse.c): Likewise.
7852
7853 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7854
7855         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7856         the -me[lb] option is given.  Don't output the default flag
7857         twice.
7858
7859 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7860
7861         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7862         the primary source file; this has not been done yet.
7863         * c-decl.c (c_expand_body): Reset input_filename from
7864         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7865
7866 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7867
7868         * rtlanal.c (subreg_regno_offset): Do not use
7869         SUBREG_REGNO_OFFSET.
7870         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7871         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7872
7873 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7874
7875         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7876         version rather than GNATS version in --version output.
7877
7878 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7879
7880         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7881         when copying back from a temporary.
7882
7883 2002-01-30  Richard Henderson  <rth@redhat.com>
7884
7885         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7886         and new_dest are the same.
7887
7888 2002-01-30  Richard Henderson  <rth@redhat.com>
7889
7890         PR opt/5076
7891         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7892         * rtl.c (note_insn_name): Update.
7893         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7894         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7895         to perform loop rotation.
7896         (expand_exit_loop_top_cond): New.
7897         * tree.h (expand_exit_loop_top_cond): Declare it.
7898         * c-semantics.c (genrtl_while_stmt): Use it.
7899         (genrtl_for_stmt): Likewise.
7900
7901 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7902
7903         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7904         arguments to 64-bit boundaries on 64-bit ABIs.
7905
7906 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7907
7908         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7909
7910 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7911
7912         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7913         invalid type.
7914
7915 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7916
7917         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7918         * config/sparc/sparc_bi.h: Remove file.
7919         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7920
7921 2002-01-30  Richard Henderson  <rth@redhat.com>
7922
7923         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7924
7925 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7926
7927         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7928
7929 2002-01-30  Jason Merrill  <jason@redhat.com>
7930
7931         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7932         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7933         (reg_save): Use DW_CFA_offset_extended_sf instead.
7934
7935         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7936
7937 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7938
7939         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7940         in cselib_lookup.
7941
7942 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
7943
7944         * rs6000.md ("*call_value_local32"): Remove constraints.
7945         ("*call_value_local64"): Same.
7946         ("*call_value_indirect_nonlocal_aix32"): Same.
7947         ("*call_value_nonlocal_aix32"): Same.
7948         ("*call_value_indirect_nonlocal_aix64"): Same.
7949         ("*call_value_nonlocal_aix64"): Same.
7950         ("*call_value_nonlocal_sysv"): Same.
7951
7952 2002-01-29  Richard Henderson  <rth@redhat.com>
7953
7954         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7955
7956 2002-01-29  Richard Henderson  <rth@redhat.com>
7957
7958         * expr.c (force_operand): Ignore flag_pic for detecting pic
7959         address loads.
7960         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7961         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7962         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7963         instead of open-coded loop.
7964         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7965         be fixed when in use.
7966
7967 2002-01-29  Richard Henderson  <rth@redhat.com>
7968
7969         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7970         * sched-rgn.c (propagate_deps): Update them.
7971         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
7972         clobbers list when either gets too long.
7973
7974 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7975
7976         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7977         and INDEX_REGS the same as GENERAL_REGS.
7978         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7979
7980 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7981
7982         * tree.c (build_nonstandard_integer_type): Correct prototype.
7983
7984 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
7985
7986         * config/s390/s390.md (movstrsico, movstrdix_64,
7987         movstrsix_31): Remove, replace by ...
7988         (movstrdi_short, movstrsi_short, movstrdi_long,
7989         movstrsi_long): ... these.  New.
7990         (movstrdi, movstrsi): Adapt.
7991
7992         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7993         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7994         Remove unnecessary CC clobber.
7995         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7996         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7997
7998         (divmoddi4): Don't partially initialize TImode register.
7999
8000 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8001
8002         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8003
8004 2002-01-29  Richard Henderson  <rth@redhat.com>
8005
8006         * flow.c (print_rtl_and_abort): Remove.
8007         (print_rtl_and_abort_fcn): Remove.
8008         (verify_local_live_at_start): Use dump_bb instead.
8009         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8010         (verify_wide_reg_1): Return 2 on mode test failure.
8011
8012 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8013
8014         PR c/3325, c/3326, c/2511, c/3347
8015         * c-decl.c (enum_decl_context): Remove BITFIELD.
8016         (grokdeclarator): Take bitfield width as an input.
8017         Ensure bitfields are given the correct type.  Perform
8018         bitfield width validation with build_bitfield_integer_type
8019         rather than waiting for finish_struct.
8020         (grok_typename, grok_typename_in_parm_context, start_decl,
8021         push_parmdecl, grokfield, start_function): Update calls to
8022         grokdeclarator.
8023         (build_bitfield_integer_type): New function.
8024         (finish_struct): Move bitfield validation to grokdeclarator
8025         and build_bitfield_integer_type.
8026         * tree.c (build_nonstandard_integer_type): New function.
8027         * tree.h (build_nonstandard_integer_type): New prototype.
8028 objc:
8029         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8030
8031 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8032
8033         PR other/1502:
8034         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8035         don't ignore unrecognized -W* options.
8036         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8037         * cpplib.h (cpp_handle_option): Adjust prototype.
8038         * c-decl.c (c_decode_options): Pass 0 as last argument to
8039         cpp_handle_option.
8040
8041         PR c/2896:
8042         * gcc.c (cpp_unique_options): Split from cpp_options.
8043         (cpp_options): Source cpp_unique_options.
8044         (default_compilers): Use cpp_unique_options instead of cpp_options
8045         when used together with cc1_options.
8046         (static_specs): Add cpp_unique_options.
8047         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8048         when used together with cc1_options.
8049
8050 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8051
8052         * config/h8300/h8300-protos.h: Update the prototype of
8053         output_a_shift.
8054         * config/h8300/h8300.c (output_a_shift): Remove an unused
8055         argument 'insn'.  Remove redundant code.
8056         * config/h8300/h8300.md: Adust to the new prototype of
8057         output_a_shift.
8058
8059 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8060
8061         * config/h8300/h8300-protos.h: Update the prototypes of
8062         emit_a_rotate and expand_a_rotate.
8063         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8064         first argument to 'enum rtx_code'.
8065         (expand_a_rotate): Likewise.
8066
8067 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8068
8069         * config/h8300/h8300-protos.h: Update the prototype of
8070         output_simode_bld.
8071         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8072         'log2'.
8073         * config/h8300/h8300.md: Adjust to the new prototype.
8074
8075 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8076
8077         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8078         redundant code.
8079
8080 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8081
8082         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8083         is a fixed register before returning pic_offset_table_rtx.
8084         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8085         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8086
8087 2002-01-28  Jason Merrill  <jason@redhat.com>
8088
8089         * dwarf2.h: Sync with src version.
8090
8091 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8092
8093         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8094         BT_FN_VOID_PTR_VAR.
8095         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8096         * doc/extend.texi (__builtin_prefetch): Update documentation:
8097         first argument is now const void ptr.
8098
8099 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8100
8101         * config/h8300/h8300-protos.h: Remove an unused prototype.
8102
8103 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8104
8105         * toplev.c (lang_independent_init): Round up identifier size.
8106
8107 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8108
8109         * config.gcc: Revert previous change.
8110
8111 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8112
8113         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8114
8115 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8116
8117         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8118         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8119         other non-elf netbsd config frags.
8120         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8121         collect2 will does that.
8122         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8123         shared-lib frobbing will work.
8124
8125 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8126
8127         * config/h8300/h8300.h: Fix formatting.
8128         * config/h8300/h8300.md: Likewise.
8129
8130 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8131
8132         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8133         the old, removed AAA_standards fix.
8134         * fixinc/fixincl.x: Rebuilt.
8135
8136 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8137
8138         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8139         atexit call in crtbegin, hooked in after call to frame_dummy;
8140         register EH before registering __fini__start.
8141
8142 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8143
8144         * config/rs6000/altivec.h: Remove spurious semicolons.
8145
8146 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8147
8148         * config/h8300/h8300.md: Replace dead bit extraction patterns
8149         with ones that work.
8150
8151 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8152
8153         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8154         if not STRICT_ALIGNMENT.
8155         * rtl.h (MEM_ALIGN): Likewise.
8156
8157 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8158
8159         * doc/invoke.texi (-fdump-translation-unit): Revert this
8160         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8161
8162 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8163
8164         * config/h8300/h8300.md (define_constants): New.
8165         (anonymous patterns) Use defined constants appropriately.
8166
8167 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8168
8169         * config/h8300/h8300.c (function_arg): Remove redundant code.
8170
8171 2002-01-26  Richard Henderson  <rth@redhat.com>
8172
8173         * sched-deps.c (reg_pending_uses_head): New.
8174         (reg_pending_barrier): Rename from reg_pending_sets_all.
8175         (find_insn_list): Don't mark inline.
8176         (find_insn_mem_list): Remove.
8177         (add_dependence_list, add_dependence_list_and_free): New.
8178         (flush_pending_lists): Replace only_write param with separate
8179         for_read and for_write parameters.  Update all callers.  Use
8180         add_dependence_list_and_free.
8181         (sched_analyze_1): Do not add reg dependencies here; just set
8182         the pending bits.  Use add_dependence_list.
8183         (sched_analyze_2): Likewise.
8184         (sched_analyze_insn): Replace schedule_barrier_found with
8185         reg_pending_barrier.  Add all dependencies for pending reg
8186         uses, sets, and clobbers.
8187         (sched_analyze): Don't add reg dependencies for calls, just
8188         set pending bits.  Use regs_invalidated_by_call.  Treat
8189         sched_before_next_call as a normal list, not a fake insn.
8190         (init_deps): No funny init for sched_before_next_call.
8191         (free_deps): Free pending mems lists.  Don't zero reg_last.
8192         (init_deps_global): Init reg_pending_uses.
8193         (finish_deps_global): Free it.
8194         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8195         (find_insn_mem_list): Remove.
8196         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8197         (propagate_deps): Use them.  Zero temp mem lists.
8198
8199 2002-01-26  Richard Henderson  <rth@redhat.com>
8200
8201         * Makefile.in (CRTSTUFF_CFLAGS): New.
8202         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8203         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8204         crtstuff.c instead of alpha assembly version.
8205         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8206         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8207         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8208         (__do_global_dtors_aux): Mark used.
8209         (frame_dummy, __do_global_ctors_aux): Mark used.
8210         (fini_dummy, init_dummy): Remove.
8211
8212         * config/alpha/crtbegin.asm: Remove file.
8213         * config/alpha/crtend.asm: Remove file.
8214         * config/alpha/t-crtbe: Remove file.
8215         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8216         (LINK_EH_SPEC): New.
8217
8218         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8219         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8220         calling constructors.
8221         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8222
8223         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8224         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8225         CRT_END_INIT_DUMMY hack.
8226         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8227         FORCE_{INIT,FINI}_SECTION_ALIGN.
8228
8229         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8230         FORCE_{INIT,FINI}_SECTION_ALIGN.
8231
8232         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8233         invocation sequence.
8234         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8235
8236         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8237         (FORCE_CODE_SECTION_ALIGN): New.
8238
8239 2002-01-26  Richard Henderson  <rth@redhat.com>
8240
8241         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8242
8243 2002-01-26  Richard Henderson  <rth@redhat.com>
8244
8245         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8246         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8247
8248 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8249
8250         * config/h8300/h8300.md: Remove bit extraction patterns that
8251         cannot be triggered.
8252         Restrict each bit extraction pattern to a variant on which the
8253         pattern is tested.
8254
8255 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8256
8257         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8258
8259 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8260
8261         * config/h8300/h8300.md: Remove bit test patterns that cannot
8262         be triggered.
8263         Restrict each bit test pattern to a variant on which the
8264         pattern is tested.
8265
8266 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8267
8268         * builtins.c (expand_builtin_strncat): Remove redundant check for
8269         INTEGER_CST.
8270
8271 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8272
8273         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8274         default setting.
8275         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8276         existing setting.
8277
8278 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8279
8280         * dbxout.c (dbxout_init): Use assemble_name rather than just
8281         stripping off the first character.
8282         (dbxout_source_file): Likewise.
8283
8284 2002-01-25  DJ Delorie  <dj@redhat.com>
8285
8286         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8287         using rtx_equal_p, not by comparing pointers.
8288
8289 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8290
8291         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8292         for PIC_OFFSET_TABLE_REGNUM.
8293         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8294
8295 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8296
8297         * config.gcc (x86_64-*-freebsd*): New target.
8298         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8299         value.
8300         (i[34567]86-*-freebsd*): Don't include svr4.h.
8301         * config/i386/freebsd64.h: New file.
8302
8303 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8304
8305         * config/alpha/x-vms (version): Make static.
8306
8307         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8308         in previous checkin.
8309
8310         * Makefile.in (install-headers-cp): New target.
8311         * config.gcc (alpha-dec-*vms*): Install headers with
8312         install-headers-cp
8313
8314 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8315
8316         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8317         avoid it's copies.
8318
8319 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8320
8321         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8322         of compare_tree_int.
8323         (expand_builtin_strncat): Likewise.
8324         * c-decl.c (finish_struct): Use tree_low_cst.
8325         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8326         * tree.c (compare_tree_int): Likewise.
8327
8328 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8329
8330         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8331         adjustments even if they are implemented by more than two insns.
8332
8333 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8334
8335         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8336         * df.h (struct ref): Kill B.
8337         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8338
8339         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8340         * flow.c (propagate_one_insn): Use it.
8341         (mark_used_regs): Handle NIL.
8342
8343 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8344
8345         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8346         to help folding.
8347
8348 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8349
8350         * rs6000.md (prefetch): Make address V4SI mode so that the address
8351         is restricted to legitimate form for instruction.
8352
8353 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8354
8355         * doc/install.texi (xtensa-*-elf): New target.
8356         (xtensa-*-linux*): New target.
8357         * doc/contrib.texi: Add myself.
8358
8359 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8360
8361         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8362         purpose register to hold an SImode (or smaller) value.
8363
8364 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8365
8366         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8367         registry only.
8368         * crtstuff.c: Likewise.
8369
8370 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8371
8372         * config/h8300/h8300.md (negation patterns): Tighten
8373         predicates to register_operand.
8374
8375 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8376
8377         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8378         mode, not Pmode.
8379
8380         * builtins.c (expand_builtin_prefetch): Same.
8381
8382 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8383
8384         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8385         modes.
8386
8387 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8388
8389         * config/h8300/h8300.c (print_operand): Remove support for
8390         operand character 'A'.
8391         * config/h8300/h8300.md (three anonymous patterns): Replace
8392         operand character 'A' with either 'T' or 'S'.
8393
8394 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8395
8396         * config/h8300/h8300.c (print_operand): Remove support for
8397         operand character 'U'.
8398
8399 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8400
8401         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8402
8403 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8404
8405         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8406         values to be assigned to the stack pointer.
8407
8408 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8409
8410         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8411         to const_double needs to be done right for big-endian systems.
8412
8413 2002-01-24  Jason Merrill  <jason@redhat.com>
8414
8415         PR c++/2432
8416         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8417         to can_throw_internal.
8418
8419 2002-01-23  Richard Henderson  <rth@redhat.com>
8420
8421         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8422         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8423
8424 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8425
8426         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8427         (symGOT2reg): Use them, then set as GOT value as unchanging.
8428         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8429         as a temporary, if possible.
8430         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8431         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8432
8433 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8434
8435         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8436         accept to accept 0x80 as operands[2].
8437
8438 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8439
8440         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8441
8442 2002-01-23  Richard Henderson  <rth@redhat.com>
8443
8444         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8445
8446 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8447
8448         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8449         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8450         an attribute.
8451
8452 2002-01-23  Richard Henderson  <rth@redhat.com>
8453
8454         * expr.c (move_by_pieces_1): Extend size before negation.
8455
8456         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8457         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8458         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8459         * config/m68k/t-m68kelf: Likewise.
8460
8461 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8462
8463         * config/xtensa/elf.h: New file.
8464         * config/xtensa/lib1funcs.asm: New file.
8465         * config/xtensa/lib2funcs.S: New file.
8466         * config/xtensa/linux.h: New file.
8467         * config/xtensa/t-xtensa: New file.
8468         * config/xtensa/xtensa-config.h: New file.
8469         * config/xtensa/xtensa-protos.h: New file.
8470         * config/xtensa/xtensa.c: New file.
8471         * config/xtensa/xtensa.h: New file.
8472         * config/xtensa/xtensa.md: New file.
8473         * config.gcc (xtensa-*-elf*): New target.
8474         (xtensa-*-linux*): New target.
8475         * cse.c (canon_hash): Compare rtx pointers instead of register
8476         numbers.  This is required for the Xtensa port.
8477         * integrate.c (copy_insn_list): Handle case where the static
8478         chain is in memory and the memory address has to be copied to
8479         a register.
8480         * doc/invoke.texi (Option Summary): Add Xtensa options.
8481         (Xtensa Options): New node.
8482         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8483
8484 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8485
8486         * diagnostic.c (internal_error): Do ICE suppression only
8487         when ENABLE_CHECKING is not defined.
8488
8489         * c-typeck.c (require_complete_type): Return error_mark_node
8490         if type is error_mark_node.
8491
8492 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8493
8494         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8495         -Os and issue a warning.
8496
8497 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8498
8499         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8500         current (lack of) need for host configuration by hand.
8501
8502         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8503         references.  Documentation of some target macros moved from
8504         hostconfig.texi to tm.texi.
8505
8506 2002-01-23  Will Cohen  <wcohen@redhat.com>
8507
8508         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8509         defined.
8510
8511 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8512
8513         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8514         operand[3].
8515
8516 2002-01-23  Jason Merrill  <jason@redhat.com>
8517
8518         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8519
8520         * function.c (assign_parms): Don't put args of inline functions
8521         into registers when not optimizing.
8522
8523 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8524
8525         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8526         (prologue_use): New pattern.
8527         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8528         preference to gen_rtx_USE.
8529         (thumb_expand_prologue): Use gen_prologue_use in preference to
8530         gen_rtx_USE.
8531         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8532         gen_rtx_USE.
8533
8534 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8535
8536         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8537
8538 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8539
8540         PR c/3504
8541         * doc/extend.texi: Correct documentation of __alignof__.
8542
8543 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8544
8545         * params.h: Rename arguments of DEFPARAM so that it will be
8546         recognized as a translation keyword.
8547
8548 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8549
8550         * extend.texi: Document altivec functions.
8551         Fix N-bit adjectives in X86 builtin documentation.
8552
8553 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8554
8555         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8556         auto_inc_dec values.
8557
8558 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8559
8560         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8561         after backslash.
8562         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8563
8564 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8565
8566         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8567
8568 2002-01-22  Richard Henderson  <rth@redhat.com>
8569
8570         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8571         copy_insn not copy_rtx.
8572
8573 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8574
8575         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8576         "nonzero" as that might add "1" bits.  Ensure "constop" is
8577         properly sign extened.
8578         (force_to_mode): Tweak for sign extended constop.
8579
8580 2002-01-22  Richard Henderson  <rth@redhat.com>
8581
8582         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8583         for_each_rtx instead of assuming we're already looking at the MEM.
8584         (split_small_symbolic_mem_operand): Likewise.
8585         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8586         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8587
8588 2002-01-22  Richard Henderson  <rth@redhat.com>
8589
8590         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8591         sequence number for the literal.
8592         (divmoddi_internal_er): Likewise.
8593
8594 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8595
8596         PR java/4972
8597         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8598         in LIBICONV variable.
8599         * configure: Regenerated.
8600
8601 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8602
8603         * dependence.c (build_def_use): Remove array_idx.
8604
8605         * dwarfout.c (last_filename): Remove.
8606         (output_compile_unit_die): Remove last_filename.
8607
8608 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8609             Richard Henderson  <rth@redhat.com>
8610
8611         PR opt/3640
8612         * fold-const.c (fold): Optimize unsigned comparisons against
8613         UINT_MAX (and similar unsigned constants).
8614
8615 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8616
8617         * Makefile.in (loop.o): Depend on OPTABS_H.
8618         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8619         against the predicate.
8620
8621         PR target/5379
8622         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8623         for the address operand.
8624
8625 2002-01-22  Richard Henderson  <rth@redhat.com>
8626
8627         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8628
8629 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8630
8631         PR other/5450
8632         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8633         preprocessor flags.
8634
8635 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8636
8637         * config.gcc (x86_64-*-netbsd*): New target.
8638         * config/i386/netbsd64.h: New file.
8639
8640 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8641
8642         * regrename.c (kill_value): Fix typo.
8643
8644 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8645
8646         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8647
8648         * config/rs6000/rs6000.h: Same.
8649
8650         * function.c (instantiate_virtual_regs): Remove
8651         STARTING_FRAME_PHASE.
8652         (assign_stack_local_1): Same.
8653         Calculate frame phase.
8654
8655 2002-01-22  Nick Clifton  <nickc@redhat.com>
8656
8657         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8658         variable declaration to outer scope in order to simplify
8659         future extensions.
8660         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8661         arm_hard_regno_mode_ok.
8662         * config/arm/arm-protos.h: Add a prototype for
8663         arm_hard_regno_mode_ok.
8664         * config/arm/arm.c (soft_df_operand): Remove now redundant
8665         check for DImode values using IP_REGNUM.
8666         (nonimmediate_soft_df_operand): Remove now redundant check for
8667         DImode values using IP_REGNUM.
8668         (arm_hard_regno_mode_ok): New function. New check: make sure
8669         that DImode values are not stored in IP_REGNUM.
8670
8671         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8672         note with a USE.
8673         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8674
8675 2002-01-22  Jason Merrill  <jason@redhat.com>
8676
8677         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8678         consistency if this COMPOUND_STMT is scoped.
8679
8680 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8681
8682         * predict.c: Fix formatting.
8683         * print-tree.c: Likewise.
8684         * protoize.c: Likewise.
8685         * real.h: Likewise.
8686         * rtl.h: Likewise.
8687         * sbitmap.h: Likewise.
8688         * scan.c: Likewise.
8689         * sched-deps.c: Likewise.
8690         * sched-vis.c: Likewise.
8691         * sdbout.c: Likewise.
8692         * sibcall.c: Likewise.
8693         * ssa.c: Likewise.
8694         * ssa-ccp.c: Likewise.
8695         * ssa-dce.c: Likewise.
8696         * stmt.c: Likewise.
8697         * stor-layout.c: Likewise.
8698         * system.h: Likewise.
8699
8700 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8701
8702         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8703         if fits in bounds of base type.
8704
8705         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8706         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8707         (add_bound_info, default): If can't find a context, make a
8708         SAVE_EXPR.
8709         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8710
8711 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8712
8713         * c-typeck.c (parser_build_binary_op): If result from
8714         build_binary_op is ERROR_MARK just return error_mark_node without
8715         further processing.
8716
8717 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8718
8719         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8720         Split a.out-specific bits into...
8721         * config/netbsd-aout.h: ...this.
8722         * config/netbsd-elf.h: New file.
8723         * config/alpha/netbsd-elf.h: Remove.
8724         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8725         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8726         (STARTFILE_SPEC): Remove redundant definition.
8727         (ENDFILE_SPEC): Likewise.
8728         (LINK_SPEC): Likewise.
8729         (CPP_SPEC): Likewise.
8730         (ASM_SPEC): Likewise.
8731         (LIB_SPEC): Likewise.
8732         (SWITCH_TAKES_ARG): Likewise.
8733         (TARGET_MEM_FUNCTIONS): Likewise.
8734         (CPP_PREDEFINES): Redefine.
8735         (ASM_FINAL_SPEC): Remove redefinition.
8736         (ASM_COMMENT_START): Redefine.
8737         (FUNCTION_PROFILER): Define.
8738         (TARGET_VERSION): Redefine.
8739         Comment and formatting cleanup.
8740         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8741         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8742         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8743         big- or little-endian.
8744         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8745         * config.gcc (*-*-netbsd*): Add definitions common to all
8746         NetBSD configs.
8747         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8748         gnu_ld definitions.  Add netbsd-elf.h to and remove
8749         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8750         tmake_file, and don't lose previous tmake_file contents.
8751         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8752         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8753         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8754         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8755         (mipsel-*-netbsd*): Rename this to...
8756         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8757         mips/little.h to tm_file for mips*el-*.
8758         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8759         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8760         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8761
8762 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8763
8764         * pa-protos.h (reg_before_reload_operand): New function prototype.
8765         * pa.c (reg_before_reload_operand): New function implementation.
8766         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8767         contraints to "*m".
8768
8769 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8770
8771         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8772
8773 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8774
8775         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8776         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8777         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8778         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8779         (ENDFILE_SPEC): Undefine.
8780         (STARTFILE_SPEC): Redefine for PA.
8781
8782 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8783
8784         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8785
8786 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8787
8788         * config.gcc: Add entries to supported PowerPC --with-cpu
8789         types.
8790
8791 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8792
8793         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8794         true for 64-bit mode only SSE registers in 32-bit mode.
8795
8796 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8797
8798         * unwind-dw2.c: Fix formatting.
8799         * unwind-dw2-fde.c: Likewise.
8800         * unwind-dw2-fde.h: Likewise.
8801         * unwind-pe.h: Likewise.
8802         * varasm.c: Likewise.
8803         * varray.h: Likewise.
8804
8805 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8806
8807         Remove workaround for register stack overwrite bug in mmix.
8808         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8809         support for TARGET_REG_STACK_FILL_BUG.
8810         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8811         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8812         Delete.
8813         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8814         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8815         -mno-reg-stack-fill-bug-workaround.
8816         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8817         machine member has_call_without_parameters.
8818         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8819         -mreg-stack-fill-bug-workaround and
8820         -mno-reg-stack-fill-bug-workaround.
8821         (MMIX Options): Ditto.
8822
8823 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8824
8825         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8826         as appropriate.
8827         Remove redundant code.
8828
8829 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8830
8831         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8832         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8833         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8834         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8835         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8836         out target macro definitions and non-target-specific comments
8837         mostly taken from old versions of the manual.
8838
8839 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8840
8841         * config/h8300/h8300.h: Fix comment formatting.
8842         * config/ia64/aix.h: Likewise.
8843         * config/ia64/ia64-protos.h: Likewise.
8844         * config/ia64/ia64.c: Likewise.
8845         * config/ia64/ia64.h: Likewise.
8846         * config/ia64/ia64intrin.h: Likewise.
8847         * config/ia64/linux.h: Likewise.
8848         * config/ia64/unwind-aix.c: Likewise.
8849         * config/ia64/unwind-ia64.c: Likewise.
8850
8851 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8852
8853         * config/h8300/h8300.c: Revise comments about shift code.
8854
8855 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8856
8857         * config/h8300/h8300.c (function_arg): Update a comment.
8858
8859 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8860
8861         * config/h8300/h8300.md: Update the comments at the beginning
8862         of the file.
8863
8864 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8865
8866         * config/i370/i370.c: Fix comment formatting.
8867         * config/i370/i370.h: Likewise.
8868         * config/i370/i370.md: Likewise.
8869         * config/i370/linux.h: Likewise.
8870
8871 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8872
8873         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8874
8875         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8876         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8877         in incomplete case.
8878
8879 2002-01-20  Graham Stott  <grahams@redhat.com>
8880
8881         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8882
8883 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8884
8885         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8886
8887 2002-01-19  Tom Rix  <trix@redhat.com>
8888
8889         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8890
8891 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8892
8893         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8894
8895         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8896         STARTING_FRAME_PHASE.
8897         (STARTING_FRAME_PHASE): New.
8898         (instantiate_virtual_regs): Check saneness of
8899         STARTING_FRAME_PHASE.
8900
8901         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8902
8903 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8904
8905         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8906
8907 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8908
8909         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8910         be used for bootstrapping GCC 3.0.
8911
8912 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8913
8914         * config/h8300/h8300.md: Fix an insn length.
8915
8916 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8917
8918         * bitmap.h: Fix comment formatting.
8919         * combine.c: Likewise.
8920         * cppfiles.c: Likewise.
8921         * c-pragma.h: Likewise.
8922         * c-typeck.c: Likewise.
8923         * df.c: Likewise.
8924         * dwarf2out.c: Likewise.
8925         * function.c: Likewise.
8926         * gcc.c: Likewise.
8927         * genattrtab.c: Likewise.
8928         * gthr-win32.h: Likewise.
8929         * haifa-sched.c: Likewise.
8930         * predict.c: Likewise.
8931         * rtlanal.c: Likewise.
8932         * rtl.h: Likewise.
8933         * unwind-dw2-fde.h: Likewise.
8934         * unwind-pe.h: Likewise.
8935         * vmsdbgout.c: Likewise.
8936
8937 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8938
8939         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8940         if type_required and passed decl.
8941
8942 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
8943
8944         * config.gcc (cpu_type): Include altivec.h in powerpc
8945         extra_headers.
8946         Same for darwin.
8947
8948         * config/rs6000/altivec.h: New.
8949
8950 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
8951
8952         * doc/install.texi (*-ibm-aix*): Update assembler and exception
8953         handling information.
8954         * doc/trouble.texi (Interoperation): Add libstdc++ information
8955         for AIX.
8956         (Misunderstandings): Add template instantiation and static template
8957         member information for AIX.
8958
8959 2002-01-17  Jason Merrill  <jason@redhat.com>
8960
8961         * dbxout.c (dbxout_type): Support const and volatile.
8962
8963         * except.c (add_partial_entry): Remove backwards compatibility code.
8964         (end_protect_partials): Likewise.
8965
8966 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
8967
8968         * config/ia64/ia64.md (prologue_use): New.
8969         * config/ia64/ia64.c (ia64_expand_prologue): Use
8970         gen_prologue_use instead of gen_rtx_USE.
8971         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8972         as CODE_FOR_pred_rel_mutex.
8973         (ia64_sched_reorder2): Likewise.
8974
8975 2002-01-16  Eric Christopher  <echristo@redhat.com>
8976
8977         * config/mips/r3900.h: Reformat.
8978         (SUBTARGET_CPP_SIZE_SPEC): Remove.
8979         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8980         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8981         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8982         * config/mips/t-elf: Remove mips3 multilib.
8983
8984 2002-01-16  H.J. Lu <hjl@gnu.org>
8985
8986         * config/mips/linux.h: Include "mips/abi64.h".
8987
8988 2002-01-16  H.J. Lu <hjl@gnu.org>
8989
8990         * config/mips/t-linux: New.
8991
8992         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8993
8994         * config/mips/linux.h: Don't include "gofast.h".
8995         (INIT_SUBTARGET_OPTABS): Removed.
8996
8997 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8998
8999         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9000         output_a_shift.
9001         * config/h8300/h8300.c: Likewise.
9002         * config/h8300/h8300.md: Likewise.
9003
9004 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9005
9006         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9007         spaces after an opcode name.
9008         (pushqi1_h8300hs): Likewise.
9009         (pushhi1_h8300hs): Likewise.
9010
9011 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9012
9013         * doc/extend.texi: Replace "option" with "attribute"
9014         appropriately.
9015
9016 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9017
9018         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9019         (and:DI () (const_int -8)).
9020         (split_small_symbolic_mem_operand): Split
9021         (mem (and:DI () (const_int -8)).
9022
9023 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9024
9025         PR target/5309:
9026         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9027         same way as TYPE_IMUL.
9028         (ultrasparc_sched_reorder): Likewise.
9029         * config/sparc/sparc.md (type): Add comment to update
9030         ultrasparc_sched_reorder when making changes.
9031
9032 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9033
9034         * doc/invoke.texi: Change the dump file name of block
9035         reordering pass from 28.bbro to 29.bbro.
9036         Mention -dk option.
9037
9038 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9039
9040         * i386.md (minsf splitter): Fix pasto.
9041
9042 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9043
9044         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9045         to frame pointer initialisation instruction.
9046         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9047         initialisation instruction.
9048         (soft_df_operand): Do not accept the IP register.
9049         (nonimmediate_soft_df_operand): Do not accept the IP register.
9050
9051 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9052
9053         PR target/5357:
9054         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9055         MASK_V8 being both set.
9056
9057 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9058
9059         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9060         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9061         config/s390/s390.md (call, call_value): Add GOT register to
9062         CALL_INSN_FUNCTION_USAGE where needed.
9063         (call_exp, call_value_exp): New.
9064
9065 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9066
9067         * config/arm/arm.c: General formatting tidy up.
9068
9069 2002-01-16  Graham Stott  <grahams@redhat.com>
9070
9071         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9072         cast and when casting an integer literal to "rtx" pointer.
9073         (expand_call): Likewise.
9074         * flow.c (try_pre_increment): Likewise.
9075         (find_use_as_address): Likewise.
9076         * integrate.c (expand_iline_function): Likewise.
9077         * regmove.c (try_auto_increment): Likewise.
9078
9079 2002-01-16  Graham Stott  <grahams@redhat.com>
9080
9081         * sched-rgn.c (passed): Use sbitmap_free.
9082         (header): Likewise.
9083         (inner): Likewise.
9084         (in_queue): Likewise.
9085         (in_stack): Likewise.
9086
9087 2002-01-15  Eric Christopher  <echristo@redhat.com>
9088
9089         * flow.c (propagate_one_insn): Change to use fatal_insn.
9090
9091 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9092
9093         * expmed.c (extract_fixed_bit_field): Remove unused code.
9094         * system.h: Poison SLOW_ZERO_EXTEND.
9095         * doc/tm.texi: Remove.
9096         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9097         * config/arm/arm.h: Likewise.
9098         * config/avr/avr.h: Likewise.
9099         * config/clipper/clipper.h: Likewise.
9100         * config/convex/convex.h: Likewise.
9101         * config/d30v/d30v.h: Likewise.
9102         * config/dsp16xx/dsp16xx.h: Likewise.
9103         * config/elxsi/elxsi.h: Likewise.
9104         * config/fr30/fr30.h: Likewise.
9105         * config/h8300/h8300.h: Likewise.
9106         * config/i370/i370.h: Likewise.
9107         * config/i386/i386.h: Likewise.
9108         * config/m68k/m68k.h: Likewise.
9109         * config/mips/mips.h: Likewise.
9110         * config/ns32k/ns32k.h: Likewise.
9111         * config/pdp11/pdp11.h: Likewise.
9112         * config/pj/pj.h: Likewise.
9113         * config/s390/s390.h: Likewise.
9114         * config/sh/sh.h: Likewise.
9115         * config/stormy16/stormy16.h: Likewise.
9116         * config/v850/v850.h: Likewise.
9117         * config/vax/vax.h: Likewise.
9118         * config/we32k/we32k.h: Likewise.
9119
9120 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9121
9122         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9123         (altivec_lvsl): Change constraint to b.
9124         (altivec_lvsr): Same.
9125         (altivec_lvebx): Same.
9126         (altivec_lvehx): Same.
9127         (altivec_lvewx): Same.
9128         (altivec_lvxl): Same.
9129         (altivec_lvx): Same.
9130         (altivec_stvx): Add parallel.
9131         (altivec_stvxl): Same.
9132         (altivec_stvehx): Same.
9133         (altivec_stvebx): Same.
9134         (altivec_stvebx): Same.
9135
9136 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9137
9138         * config.gcc: Change altivec.h to altivec-defs.h.
9139
9140         * config/rs6000/altivec.h: Delete.
9141
9142         * config/rs6000/altivec-defs.h: Add.
9143
9144 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9145
9146         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9147         and UMOD modes.
9148
9149         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9150         less than or equal to eight bytes.
9151
9152         * vax.md (andsi3): Remove constraints and change SET destination
9153         operand type to nonimmediate_operand.
9154         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9155         when it is a CONST_INT.
9156
9157 2002-01-15  Jason Merrill  <jason@redhat.com>
9158
9159         * c-common.def (FILE_STMT): New code.
9160         * c-common.c (statement_code_p): It's a statement.
9161         * c-common.h (stmt_tree_s): Add x_last_filename.
9162         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9163         (last_expr_filename): New macro.
9164         * c-semantics.c (begin_stmt_tree): Initialize it.
9165         (add_stmt): If the filename changed, also insert a
9166         FILE_STMT.
9167         (expand_stmt): Handle seeing one.
9168
9169 2002-01-15  Eric Christopher  <echristo@redhat.com>
9170
9171         * flow.c (propagate_one_insn): Add error message and print out
9172         insn for debugging.
9173
9174 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9175
9176         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9177         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9178         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9179         TRAMPOLINE_ALIGNMENT.
9180         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9181         to be in bits.
9182         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9183         PCC_BITFIELD_TYPE_MATTERS.
9184         * config/interix.h (STDC_VALUE): Remove.  Use
9185         STDC_0_IN_SYSTEM_HEADERS.
9186         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9187         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9188         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9189
9190 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9191
9192         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9193         not work on this platform currently.
9194
9195 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9196
9197         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9198         readonly_warning in _().
9199
9200 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9201
9202         * gcc.c (delete_if_ordinary): Backout previous change.
9203
9204 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9205
9206         * config/h8300/h8300.c (print_operand): Remove support for
9207         unused operand characters.
9208
9209         * read-rtl.c: Fix formatting.
9210         * real.c: Likewise.
9211         * recog.c: Likewise.
9212         * regclass.c: Likewise.
9213         * regmove.c: Likewise.
9214         * reg-stack.c: Likewise.
9215         * reload1.c: Likewise.
9216         * rtlanal.c: Likewise.
9217
9218 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9219
9220         * config/i386/i386.c: Fix formatting.
9221
9222 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9223
9224         * c-typeck.c (process_init_element): Don't save_expr
9225         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9226
9227 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9228
9229         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9230         emit optional traceback table if optimize_size or TARGET_ELF.
9231         * config/rs6000/rs6000.md (prefetch): New.
9232
9233 2002-01-15  Andreas Jaeger  <aj@suse.de>
9234
9235         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9236
9237 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9238
9239         * mips-tfile.c: Fix formatting.
9240
9241 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9242
9243         * unroll.c (final_reg_note_copy): Fix previous commit.
9244
9245 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9246
9247         * config/h8300/h8300-protos.h: Remove the prototype for
9248         eq_operator.
9249         * config/h8300/h8300.c (eq_operator): Remove.
9250
9251 2002-01-14  Richard Henderson  <rth@redhat.com>
9252
9253         * config/i386/i386.md (prefetch): Tidy.
9254         (prefetch_3dnow): Fix locality operand.
9255
9256 2002-01-14  Richard Henderson  <rth@redhat.com>
9257
9258         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9259         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9260
9261 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9262
9263         * reload1.c (reload_combine): Pass reg_sum replacement through
9264         copy_rtx in loop performing multiple changes.
9265
9266 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9267
9268         * except.c (remove_unreachable_regions): New.
9269         (free_eh_status): Clear exception_handler_labels.
9270         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9271         (find_exception_handler_labels): Don't add the same label more than
9272         once.
9273         (remove_exception_handler_label): Don't die if
9274         find_exception_handler_labels hasn't been called for the current
9275         function yet.
9276
9277 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9278
9279         * toplev.c (rest_of_compilation): Rebuild jump labels after
9280         gcse.
9281
9282 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9283
9284         * doc/extend.texi: Move documentation of X86 built-in functions
9285         here.
9286         * doc/invoke.texi: From here.
9287         * doc/sourcebuild.texi: Document location of documentation for
9288         machine built-in functions.
9289
9290 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9291
9292         * cppfiles.c (TEST_THRESHOLD): New macro.
9293         (SHOULD_MMAP): Ditto.
9294         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9295         be used.
9296
9297 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9298
9299         * unroll.c (final_reg_note_copy): Properly handle
9300         REG_LABEL
9301         (unroll_loops): Fix LOOP_CONDITION heuristics.
9302
9303 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9304
9305         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9306         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9307
9308 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9309
9310         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9311         threaded loop.
9312
9313 2002-01-14  Tom Rix  <trix@redhat.com>
9314
9315         * config/rs6000/rs6000.md: Fix typo with sradi.
9316
9317 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9318
9319         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9320         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9321         (clrstrdi, clrstrsi): Adapt callers.
9322
9323         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9324
9325         (movti splitter): Never use register 0 as base register.
9326
9327 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9328
9329         * combine.c (simplify_shift_const): Always generate new rtx
9330         for shift expression instead of reusing given expression.
9331
9332 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9333
9334         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9335         alpha_legitimize_address unless mode is Pmode.
9336
9337 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9338
9339         * doc/md.texi (Modifiers): Document the '*' constraint for the
9340         user.
9341
9342         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9343         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9344         for xstormy16 too.
9345
9346 2002-01-13  Richard Henderson  <rth@redhat.com>
9347
9348         * reload.c (find_reloads): Use a hard reg destination as reload reg
9349         for an input reload of the source.
9350
9351 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9352
9353         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9354         more generic.
9355
9356 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9357
9358         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9359         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9360
9361         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9362
9363 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9364
9365         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9366
9367 2002-01-12  Tom Rix  <trix@redhat.com>
9368
9369         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9370         TARGET_POWERPC64.
9371
9372 2002-01-12  Richard Henderson  <rth@redhat.com>
9373
9374         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9375
9376         * doc/invoke.texi: Update Alpha options.
9377
9378         * doc/invoke.texi: Update i386 built-in function lists.
9379
9380 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9381
9382         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9383         referencing outside.
9384
9385 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9386
9387         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9388         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9389         offsets, and change line folding.
9390         * optabs.c (expand_binop): Remove warnings.
9391         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9392
9393 2002-01-12  Graham Stott <grahams@redhat.com>
9394
9395         * attribs.c (handle_deprecated_attribute): constify WHAT.
9396         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9397         dangling else warning and constify WHAT.
9398         * except.h (struct function, struct inline_remap): Move
9399         struct tag forward defs before all prototypes.
9400         (duplicate_eh_regions): Whitespace.
9401
9402 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9403
9404         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9405         MODE_BASE_REG_CLASS.
9406         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9407
9408 2002-01-12  Richard Henderson  <rth@redhat.com>
9409
9410         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9411         (ix86_expand_vector_move): New.
9412         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9413         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9414         Remove old prefetch builtins.  Special case the logicals removed above.
9415         (ix86_expand_builtin): Likewise.
9416         (safe_vector_operand): Use V4SFmode, not TImode.
9417         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9418         (ix86_expand_timode_binop_builtin): New.
9419         * config/i386/i386-protos.h: Update.
9420         * config/i386/i386.h (enum ix86_builtins): Update.
9421         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9422         Use ix86_expand_vector_move in vector move expanders.
9423         (movti_internal, movti_rex64): Add xorps alternative.
9424         (sse_clrv4sf): Rename and adjust from sse_clrti.
9425         (prefetch): Don't work so hard.
9426         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9427         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9428         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9429
9430 2002-01-11  Richard Henderson  <rth@redhat.com>
9431
9432         * config/i386/mmintrin.h: New file.
9433         * config/i386/xmmintrin.h: New file.
9434         * config.gcc (i?86-*-*): Add extra_headers.
9435         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9436         truncation codes.
9437         (simplify_binary_operation): Handle saturating arithmetic codes.
9438         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9439         not the lowpart subreg.
9440         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9441         on error.
9442         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9443
9444 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9445
9446         * conflict.c (conflict_graph_compute): Free regsets when finished.
9447         * ssa.c (compute_coalesced_reg_partition): Likewise.
9448
9449 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9450
9451         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9452         every where we allocate a register.
9453
9454 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9455
9456         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9457         * lcm.c (compute_earliest, compute_farthest): Likewise.
9458
9459 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9460
9461         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9462
9463 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9464
9465         * doc/rtl.texi (Insns): Fix 2 typos.
9466
9467 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9468
9469         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9470         options.  Use @table @gcctabopt for MMIX options.  Add index
9471         entries for MMIX options.  Start new paragraph with first
9472         heading of the machine-dependent options.
9473
9474 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9475
9476         PR other/5299
9477         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9478         * combine.c (force_to_mode): Same.
9479         * reload1.c (clear_reload_reg_in_use): Same.
9480
9481 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9482
9483         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9484         and 'subtargets'.
9485
9486 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9487             Brad Lucier <lucier@math.purdue.edu>
9488
9489         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9490         mcpu.
9491
9492 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9493
9494         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9495         Protect with IN_LIBGCC.
9496         (LINK_EH_SPEC): Add required trailing space.
9497
9498 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9499
9500         * c-tree.h: Move function declarations so that they are listed
9501         under the filename which contains them.
9502         (check_identifier, finish_decl_top_level,
9503         lookup_name_current_level_global, shadow_record_fields): Remove.
9504
9505 2002-01-11  Andreas Jaeger  <aj@suse.de>
9506
9507         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9508         march.
9509
9510 2002-01-10  Richard Henderson  <rth@redhat.com>
9511
9512         * config/alpha/alpha.c (print_operand): Add 'J'.
9513         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9514         new operand with the sequence number for the lituse.  When splitting
9515         the insns, use gen_movdi_er_high_g and generate a sequence number.
9516         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9517
9518 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9519
9520         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9521         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9522         stvxl.
9523         (altivec_expand_builtin): Same.
9524         (altivec_expand_stv_builtin): New.
9525
9526         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9527
9528         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9529         ("altivec_lvehx"): New.
9530         ("altivec_lvewx"): New.
9531         ("altivec_lvxl"): New.
9532         ("altivec_lvx"): New.
9533         ("altivec_stvx"): New.
9534         ("altivec_stvebx"): New.
9535         ("altivec_stvehx"): New.
9536         ("altivec_stvewx"): New.
9537         ("altivec_stvxl"): New.
9538
9539 2002-01-10  Richard Henderson  <rth@redhat.com>
9540
9541         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9542         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9543         care not to delete instructions twice.
9544
9545 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9546
9547         * toplev.c: Don't declare environ (it's not used anywhere).
9548         * configure.in: Don't check for declaration of environ.
9549         * config/i386/xm-mingw32.h: Don't #define environ.
9550         * config.in, configure: Regenerate.
9551
9552 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9553
9554         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9555         * configure: Regenerate.
9556
9557         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9558         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9559         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9560         alpha/xm-vms.h.
9561         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9562         LIMITS_H_TEST here, not in m68k/x-next.
9563         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9564         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9565
9566         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9567         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9568         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9569
9570         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9571         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9572         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9573         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9574         replacement of quadlib.asm with quadlib.c.
9575
9576         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9577         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9578         config/rs6000/xm-beos.h: Delete file.
9579
9580         * config.gcc: Update to match above changes.
9581
9582 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9583
9584         * config/h8300/h8300.h: Fix comment typos.
9585         * config/h8300/h8300.md: Likewise.
9586         * config/h8300/lib1funcs.asm: Likewise.
9587
9588 2002-01-10  Dale Johannesen  <dalej@apple.com>
9589
9590         PR optimization/5269
9591         * unroll.c (precondition_loop_p): Make *increment be the correct
9592         sign when n_iterations known, to avoid confusing caller.
9593
9594 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9595
9596         * doc/extend.texi (deprecated): Fix a typo.
9597
9598 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9599
9600         * basic-block.h (update_br_prob_note): Declare.
9601         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9602         (try_forward_edges): Care negative frequencies and update note.
9603         (outgoing_edges_match): Tweek conditional merging heuristics.
9604         (try_crossjump_to_edge): use update_br_prob_note.
9605         * cfglayout.c (fixup_reorder_chain): Likewise.
9606         * cfrtl.c (update_br_prob_note): New.
9607         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9608
9609         * i386.c (ix86_decompose_address): Return -1 if address contains
9610         shift.
9611         (legitimate_address_p): Require ix86_decompose_address to return 1.
9612
9613         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9614         (cprop_insn): Likewise.
9615
9616 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9617
9618         * toplev.c: Fix formatting.
9619         * tree.c: Likewise.
9620         * tree-dump.c: Likewise.
9621         * unroll.c: Likewise.
9622         * unwind-dw2.c: Likewise.
9623         * unwind-dw2-fde.c: Likewise.
9624         * unwind-dw2-fde-glibc.c: Likewise.
9625         * unwind-sjlj.c: Likewise.
9626
9627 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9628
9629         * doc/invoke.texi: Document PDP-11 options.
9630
9631 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9632
9633         * config/h8300/h8300.h: Fix formatting.
9634
9635 2002-01-10  Ira Ruben   <ira@apple.com>
9636
9637         Add __attribute__ ((deprecated)).
9638         * extend.texi: Document __attribute__ ((deprecated)).
9639         * invoke.texi: Document -Wno-deprecated-declarations.
9640         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9641         * testsuite/gcc.dg/deprecated.c: New C test.
9642         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9643         (c_common_attribute_table): Add "deprecated" entry.
9644         (handle_deprecated_attribute): New function.
9645         * c-decl.c (deprecated_states): New enum.
9646         deprecated_state: State of "deprecated" handling.
9647         (start_decl): Set deprecated_state based on attributes.
9648         (grokdeclarator): Test for deprecated uses, propagate attribute.
9649         * c-typeck.c (build_component_ref): Test for deprecated fields.
9650         (build_external_ref): Test for deprecated primaries.
9651         * diagnostic.c (warn_deprecated_use) New function to issue
9652         warnings about __attribute__ ((depricated)) references.
9653         * flags.h (warn_deprecated_decl): Extern declared for
9654         -W[no-]deprecated-declarations option.
9655         * print-tree.c (print_node): Show deprecated flag status.
9656         * toplev.c (warn_deprecated_decl): Defined.
9657         (W_options): Added "deprecated-declaration".
9658         * toplev.h (warn_deprecated_use): Extern declared.
9659         * tree.h (struct tree_common): Define deprecated_flag.
9660         (TREE_DEPRECATED): New macro to access flag.
9661         * cp/call.c (build_call): Test for deprecated calls.
9662         * cp/class.c (add_implicitly_declared_members): Set global
9663         flag to tell grokdeclarator to not issue deprecated warnings.
9664         * cp/cp-tree.h: Add extern for adding_implicit_members.
9665         * cp/decl.c (deprecated_states): New enum.
9666         (start_decl): Set deprecated_state based on attributes.
9667         (grokdeclarator): Test for deprecated uses, propagate attribute.
9668         * cp/lex.c (do_identifier): Test for deprecated primaries.
9669         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9670
9671 2002-01-10  Ira Ruben   <ira@apple.com>
9672
9673         Fix to assign attributes to inline member functions.
9674         * cp/decl.c (start_method): Handle attrlist.
9675
9676 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9677
9678         * combine.c (expand_field_assignment): Use subreg_lsb().
9679
9680 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9681
9682         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9683         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9684         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9685         Recurse for any operand of AND as long as constant is non-zero.
9686
9687 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9688
9689         * config/h8300/h8300.md: Remove constraints from expanders.
9690
9691 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9692
9693         * varasm.c: Fix formatting.
9694         * varray.c: Likewise.
9695         * vmsdbgout.c: Likewise.
9696         * xcoffout.c: Likewise.
9697
9698 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9699
9700         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9701         update edge probabilities to match.
9702
9703 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9704
9705         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9706         dependencies.
9707         * doc/languages.texi, doc/sourcebuild.texi: New files.
9708         * doc/configfiles.texi: Make a subsubsection.  Update.
9709         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9710         instructions for building GCC.
9711         * doc/makefile.texi: Make a subsection.
9712         * doc/gccint.texi: Update.
9713
9714 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9715
9716         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9717
9718 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9719
9720         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9721
9722 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9723
9724         * optabs.c (expand_fix): Look for wider integer modes first.
9725
9726         * i386.md (mov?f): Avoid the fake const double trick for medium
9727         memory model.
9728         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9729         (fop_df_4): Disable for SSE compilation.
9730
9731 2002-01-10  Graham Stott  <grahams@redhat.com>
9732
9733         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9734         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9735
9736 2002-01-10  Richard Henderson  <rth@redhat.com>
9737
9738         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9739
9740 2002-01-10  Richard Henderson  <rth@redhat.com>
9741
9742         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9743         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9744
9745 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9746
9747         * combine.c (can_combine_p): Fix a comment typo.
9748
9749 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9750
9751         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9752         empty list correctly.  Change loop index $t to $f for
9753         consistency with rest of Makefile.
9754
9755 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9756
9757         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9758         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9759
9760         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9761         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9762         (altivec_init_builtins): Same.
9763         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9764         (altivec_expand_binop_builtin): Same.
9765         (altivec_expand_ternop_builtin): Same.
9766         (bdesc_dst): New.
9767
9768         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9769         ("altivec_vctuxs"): Fix typo.
9770         ("altivec_vnmsubfp"): Same.
9771         ("altivec_dssall"): New.
9772         ("altivec_mfvscr"): New.
9773         ("altivec_dss"): New.
9774         ("altivec_lvsl"): New.
9775         ("altivec_lvsr"): New.
9776         ("altivec_dstt"): New.
9777         ("altivec_dstst"): New.
9778         ("altivec_dststt"): New.
9779         ("altivec_dst"): New.
9780
9781         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9782         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9783
9784 2002-01-09  Richard Henderson  <rth@redhat.com>
9785
9786         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9787
9788 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9789
9790         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9791         function.
9792         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9793         prototype.
9794         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9795
9796 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9797
9798         * read-rtl.c: Fix formatting.
9799         * real.c: Likewise.
9800         * regclass.c: Likewise.
9801         * regrename.c: Likewise.
9802         * reg-stack.c: Likewise.
9803         * reload1.c: Likewise.
9804         * reload.c: Likewise.
9805         * rtl.c: Likewise.
9806
9807 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9808
9809         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9810         to extract items in the expr_list chain.
9811
9812 2002-01-09  Richard Henderson  <rth@redhat.com>
9813
9814         * config/vax/vax.c (vax_rtx_cost): Never abort.
9815
9816         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9817
9818 2002-01-09  Jan Hubicka  <jh@suse.cz>
9819
9820         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9821
9822 2002-01-09  Richard Henderson  <rth@redhat.com>
9823
9824         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9825         Unify code from various alternatives.
9826
9827 2002-01-09  Richard Henderson  <rth@redhat.com>
9828
9829         * regrename.c (copy_value): Ignore the copy if the source register
9830         is present in the value chain with a narrower mode.
9831
9832 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9833
9834         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9835         for the c4x target. Also improve layout.
9836
9837 2002-01-09  Richard Henderson  <rth@redhat.com>
9838
9839         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9840         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9841         to match insn patterns.
9842
9843 2002-01-09  Richard Henderson  <rth@redhat.com>
9844
9845         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9846         (copyprop_hardreg_forward_1): Likewise.
9847
9848 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9849
9850         * pa.md (decrement_and_branch_until_zero): Change predicate for
9851         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9852
9853 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9854
9855         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9856         gets undefined. For Darwin.
9857
9858 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9859
9860         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9861
9862 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9863
9864         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9865
9866 2002-01-08  Richard Henderson  <rth@redhat.com>
9867
9868         * regrename.c (copy_value): Ignore overlapping copies.
9869
9870 2002-01-08  Richard Henderson  <rth@redhat.com>
9871
9872         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9873         as needed to avoid shared structure.
9874
9875 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9876
9877         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9878         H8/300H and H8/S.
9879
9880 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9881
9882         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9883         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9884         documentation of obsolete macros.
9885         * system.h: Poison these macros.
9886         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9887         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9888         config/c4x/c4x.h, config/clipper/clipper.h,
9889         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9890         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9891         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9892         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9893         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9894         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9895         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9896         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9897         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9898         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9899         config/sparc/sparc.h, config/stormy16/stormy16.h,
9900         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9901         definitions and commented out definitions of obsolete macros.
9902         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9903         of MAX_INT_TYPE_SIZE.
9904
9905 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9906
9907         * config/s390/s390.c (s390_preferred_reload_class): Never
9908         return ADDR_REGS if it isn't a subset of the given class.
9909         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9910         FP_REGS, but all superclasses as well.
9911
9912         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9913
9914         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9915         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9916         must not be a const_int.
9917
9918 2002-01-08  Richard Henderson  <rth@redhat.com>
9919
9920         * Makefile.in (toplev.o): Depend on options.h.
9921         (gcc.o): Depend on specs.h.
9922
9923 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9924
9925         * expr.c (store_expr): Convert VOIDmode constants back to target's
9926         mode.
9927
9928 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9929
9930         * doc/invoke.texi: Markup gcc as @command.  Refer to
9931         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9932         of http://gcc.gnu.org/thanks.html.
9933
9934 2002-01-08  Dale Johannesen  <dalej@apple.com>
9935
9936         * config/rs6000/rs6000.md: Add missing int register
9937         target case to movdf_low.
9938
9939 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
9940
9941         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9942         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
9943         (cppinit.o): Depend on except.h.
9944         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9945         s-specs): New rules.
9946
9947         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9948         Don't create specs.h/options.h/gencheck.h here.  Remove
9949         unnecessary variable settings from last argument of AC_OUTPUT.
9950         * config.in, configure: Regenerate.
9951         * intl.c: Hardcode package name as "gcc".
9952
9953         * cppinit.c: Include except.h.
9954         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9955         appropriate.
9956         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9957         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9958         (!)USING_SJLJ_EXCEPTIONS.
9959         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9960
9961 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9962
9963         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9964         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9965         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9966         documentation of obsolete macros.
9967         * system.h: Poison these macros.
9968         * config/d30v/d30v.h, config/ns32k/encore.h,
9969         config/stormy16/stormy16.h: Remove definitions and commented out
9970         definitions of obsolete macros.
9971
9972 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
9973
9974         * objc/objc-act.c (handle_class_ref): Mark the declaration of
9975         %sobjc_class_ref_%s as used - to prevent unwanted compiler
9976         warnings.
9977
9978 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9979
9980         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9981         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9982         to insn adjusting stack/frame pointer.
9983         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9984         accept operands that cause the insn to be non-splittable.
9985
9986 2002-01-08  Graham Stott  <grahams@redhat.com>
9987
9988         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9989         (C_TYPE_FIELDS_VOLATILE): Likewise.
9990         (C_TYPE_BEING_DEFINED): Likewise.
9991         (C_IS_RESERVED_WORD): Likewise.
9992         (C_TYPE_VARIABLE_SIZE): Likewise.
9993         (C_DECL_VARIABLE_SIZE): Likewise.
9994         (C_MISSING_PROTOTYPE_WARNED): Likewise.
9995         (C_SET_EXP_ORIGINAL_CODE): Likewise.
9996         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9997         parenthesis.
9998         (C_DECL_ANTICIPATED): Likewise.
9999         (c_build_type_variant): Add parenthesis.
10000
10001 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10002
10003         * gcc.c (option_map): Remove --version.
10004         (process_command): Handle -fversion following the GNU Coding
10005         Standards.  Partially addresses PR other/704.
10006
10007 2002-01-08  Graham Stott  <grahams@redhat.com>
10008
10009         * combine.c (combine_instructions): Fix typo.
10010
10011 2002-01-08  Graham Stott  <grahams@redhat.com>
10012
10013         * debug.h: Use "tree" and "rtx" throughout.
10014
10015         * debug.c: Likewise.
10016
10017 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10018
10019         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10020         constant pool, use the pool's version of the symbol instead.
10021
10022 2002-01-07  Richard Henderson  <rth@redhat.com>
10023
10024         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10025         the original register was copied in a mode with a fewer number of
10026         hard registers than the desired mode.
10027         (copyprop_hardreg_forward_1): Likewise.
10028         (debug_value_data): Fix loop test.
10029         * toplev.c (parse_options_and_default_flags): Reenable
10030         -fcprop-registers at -O1.
10031
10032 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10033
10034         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10035         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10036
10037         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10038         predicates.
10039
10040         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10041
10042 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10043
10044         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10045         (pa_output_function_prologue): Output local label at the beginning of
10046         the prologue when profiling.
10047         (hppa_profile_hook): Use the local label rather than the function label.
10048         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10049
10050 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10051
10052         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10053         (altivec_expand_unop_builtin): Fix thinko.
10054         (altivec_expand_binop_builtin): Same.
10055         (altivec_expand_ternop_builtin): Same.
10056         (altivec_expand_builtin): Same.
10057
10058 2002-01-07  Richard Henderson  <rth@redhat.com>
10059
10060         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10061
10062 2002-01-07  Jason Merrill  <jason@redhat.com>
10063
10064         * unwind-dw2.c (execute_cfa_program): Use < again.
10065
10066 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10067
10068         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10069
10070 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10071
10072         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10073         Don't allow -1 - x -> ~x simplifications in the first pass.
10074
10075 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10076
10077         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10078         arguments.
10079         (altivec_expand_binop_builtin): Same.
10080         (altivec_expand_unop_builtin): Same.
10081         (print_operand): Fix typo.
10082         (bdesc_1arg): Add vupk* variants.
10083
10084         * rs6000.h (rs6000_builtins): Add vupk* enums.
10085
10086         * rs6000.md: Add altivec_vupk* variants.
10087
10088 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10089
10090         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10091         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10092         and last update dates.
10093
10094 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10095
10096         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10097
10098 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10099
10100         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10101         * config/avr/avr.h (CPP_SPEC): Likewise.
10102         (LINK_SPEC): Likewise.
10103         (CRT_BINUTILS_SPECS): Likewise.
10104         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10105         * doc/invoke.texi (AVR Options): Document them.
10106
10107 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10108
10109         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10110         LABEL_NUSES.
10111
10112 2002-01-07  Graham Stott  <grahams@redhat.com>
10113
10114         * config/i386/i386.h: Update copyright date.
10115         (HALF_PIC_PTR): Add parenthesis.
10116         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10117         (CONSTANT_ALIGNMENT): Add parenthesis.
10118         (DATA_ALIGNMENT): Likewise.
10119         (LOCAL_ALIGNMENT): Likewise.
10120         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10121         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10122         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10123         (HARD_REGNO_NREGS): Add paranethesis.
10124         (VALID_SSE_REG_MODE): Whitespace.
10125         (VALID_MMX_REG_MODE): Whitespace.
10126         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10127         (ix86_hard_regno_mode_ok): Add parenthesis.
10128         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10129         (RETURN_IN_MEMORY): Whitespace.
10130         (N_REG_CLASSES): Add parenthesis.
10131         (INTEGER_CLASS_P): Add parenthesis and wrap.
10132         (FLOAT_CLASS_P): Likewise.
10133         (SSE_CLASS_P): Likewise.
10134         (MMX_CLASS_P): Likewise.
10135         (MAYBE_INTEGER_CLASS_P): Likewise.
10136         (MAYBE_FLOAT_CLASS_P): Likewise.
10137         (MAYBE_SSE_CLASS_P): Likewise.
10138         (MAYBE_MMX_CLASS_P): Likewise.
10139         (Q_CLASS_P): Likewise.
10140         (GENERAL_REGNO_P): Uppercase macro parameter.
10141         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10142         (FP_REGNO_P): Likewise.
10143         (ANY_FP_REGNO_P): Uppercase macro parameter.
10144         (SSE_REGNO_P): Likewise.
10145         (SSE_REGNO): Likewise.
10146         (SSE_REG_P): Likewise.
10147         (SSE_FLOAT_MODE_P): Likewise.
10148         (MMX_REGNO_P): Likewise.
10149         (MMX_REG_P):Likewise.
10150         (STACK_REG_P): Likewise.
10151         (NON_STACK_REG_P): Likewise.
10152         (STACK_TOP_P): Likewise.
10153         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10154         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10155         (SECONDARY_MEMORY_NEEDED): Likewise.
10156         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10157         (MD_ASM_CLOBBERS): Whitespace and wrap.
10158         (MUST_PASS_IN_STACK): Whitespace and wrap.
10159         (RETURN_POPS_ARGS): Add parenthesis.
10160         (INIT_CUMULATIVE_ARGS): Likewise.
10161         (FUNCTION_ARG): Likewise.
10162         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10163         (SETUP_INCOMING_VARARGS): Likewise.
10164         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10165         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10166         parenthsis.
10167         (EXPAND_BUILTIN_VA_ARG): Likewise.
10168         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10169         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10170         (INITIAL_ELIMINATION_OFFSET): Likewise.
10171         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10172         (REGNO_OK_FOR_BASE_P): Likewise.
10173         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10174         (REGNO_OK_FOR_DIREG_P): Likewise.
10175         (REG_OK_FOR_INDEX_P): Whitespace.
10176         (REG_OK_FOR_BASE_P): Whitespace.
10177         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10178         parenthesis.
10179         (FIND_BASE_TERM): Fix typo.
10180         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10181         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10182         (SYMBOLIC_CONST; Whitespace.
10183         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10184         (ENCODE_SECTION_INFO): Whitespace.
10185         (FINALIZE_PIC): Remove do { ... } while (0).
10186         (PROMOTE_MODE): Wrap in do { ... } while (0).
10187         (CONST_COSTS): Whitespace.
10188         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10189         (REGISTER_MOVE_COST): Add parenthesis.
10190         (MEMORY_MOVE_COST): Likewise.
10191         (EXTRA_CC_MODES): Whitespace.
10192         (SELECT_CC_MODE): Add parenthesis and whitespace.
10193         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10194         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10195         (ASM_OUTPUT_LABEL): Add paramethesis.
10196         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10197         (ASM_OUTPUT_REG_POP): Likewise.
10198         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10199         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10200
10201         * config/i386/i386.c: Update copyright.
10202         (CHECK_STACK_LIMIT): Add parenthesis.
10203         (AT_BP): Uppercase macro parameter.
10204         (x86_64_int_parameter_registers): Constify.
10205         (x86_64_int_return_registers): Likewise.
10206         (ix86_compare_op0): Use rtx.
10207         (construct_container): Constify INTREG parameter.
10208         (function_arg): Use rtx.
10209
10210         * diagnostic.h: Update copyright date.
10211         (output_buffer_state): Add parenthesis.
10212         (output_buffer_format_args): Likewise.
10213
10214         * combine.c (combine_instructions): Replace XEXP (links, 0)
10215         with link.
10216
10217 2002-01-06  H.J. Lu <hjl@gnu.org>
10218
10219         * cfgcleanup.c (thread_jump): Fix 2 typos.
10220
10221 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10222
10223         * config.gcc: Add support for --enable-altivec.
10224
10225 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10226
10227         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10228
10229 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10230
10231         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10232         __objc_class_name_*.
10233
10234 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10235
10236         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10237
10238 2002-01-06  Richard Henderson  <rth@redhat.com>
10239
10240         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10241         nop them out.  Increment label reference count for REG_LABEL.
10242         (fill_slots_from_thread): Frob label reference count around
10243         delete_related_insns.
10244
10245 2002-01-05  Richard Henderson  <rth@redhat.com>
10246
10247         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10248         jump threading.
10249
10250 2002-01-05  Richard Henderson  <rth@redhat.com>
10251
10252         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10253         * integrate.c (output_inline_function): Likewise.
10254         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10255         to remove_unnecessary_notes after emitting abstract instance.
10256         Force an emitted nested function to have its parent emited as well.
10257         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10258         for null.
10259         (rtl_for_decl_location): Do not look at reload data structures
10260         before reload has run.
10261
10262 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10263
10264         * cse.c: Fix formatting.
10265         * dwarf2asm.c: Likewise.
10266         * dwarf2out.c: Likewise.
10267         * explow.c: Likewise.
10268         * expmed.c: Likewise.
10269         * function.c: Likewise.
10270         * gcov.c: Likewise.
10271         * gencheck.c: Likewise.
10272         * genrecog.c: Likewise.
10273         * ggc-common.c: Likewise.
10274         * ggc-page.c: Likewise.
10275         * global.c: Likewise.
10276
10277 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10278
10279         * combine.c: Fix formatting.
10280
10281 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10282
10283         PR middle-end/1557
10284         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10285
10286 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10287
10288         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10289         as 1 for __powerpc64__ as well.
10290
10291         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10292
10293         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10294         return it.
10295
10296 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10297
10298         * lcm.c: Revert change, due to performance regression it causes on
10299         SPEC because it's slightly more conservative (sigh, I hate
10300         edge-based LCM).
10301
10302 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10303
10304         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10305
10306 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10307
10308         * doc/cppinternals.texi: Update.
10309
10310 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10311
10312         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10313         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10314         negatives.
10315         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10316         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10317         kludge for pre-october-14th mmix versions to handle new-found bug
10318         with PUSHJ/PUSHGO and the register stack.
10319         * config/mmix/mmix.h (struct machine_function): Rename member
10320         has_call_value_without_parameters to has_call_without_parameters.
10321         All referers changed.
10322         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10323         TARGET_MASK_BRANCH_PREDICT): New macros.
10324         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10325         -mno-reg-stack-fill-bug-workaround.
10326         * config/mmix/mmix.md ("call"): Set struct machine member
10327         has_call_without_parameters.
10328
10329 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10330
10331         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10332
10333 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10334
10335         * cfgcleanup.c: Include tm_p.h
10336         (mark_effect): Fix handling of hard register; fix handling of SET
10337
10338 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10339
10340         * config/h8300/h8300.md (anonymous patterns): Check that
10341         operands are registers before using REGNO on them.
10342
10343 2002-01-03  Roland McGrath  <roland@frob.com>
10344
10345         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10346
10347 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10348
10349         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10350         * c-common.h (genrtl_expr_stmt_value): Likewise.
10351         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10352         (expand_expr_stmt_value): Add maybe_last argument.
10353         Don't warn about statement with no effect if it is the last statement
10354         in expression statement.
10355         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10356         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10357         expand_expr_stmt_value.
10358         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10359         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10360         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10361         as maybe_last to expand_expr_stmt_value.
10362
10363 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10364
10365         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10366         be passed in, do not build it.
10367         (c_begin_if_stmt): New function.
10368         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10369         * c-common.h (c_expand_start_cond): Update prototype.
10370         (c_begin_if_stmt): Prototype new function.
10371         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10372         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10373         c_begin_while_stmt and c_finish_while_stmt_cond.
10374
10375 2002-01-04  William Cohen  <wcohen@redhat.com>
10376
10377         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10378         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10379         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10380         * config/pa/som.h (ASM_FILE_START): Likewise.
10381
10382 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10383
10384         * lcm.c: Include df.h.
10385         Add available_transfer_function prototype.
10386         (compute_available): Rework to use iterative dataflow framework.
10387         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10388         with bb_info in df.h
10389         (available_transfer_function): New function.
10390
10391         * Makefile.in (lcm.o): add df.h to dependencies.
10392
10393 2002-01-04  Richard Henderson  <rth@redhat.com>
10394
10395         * config/alpha/alpha.c (some_operand): Accept HIGH.
10396         (input_operand): Likewise; accept simple references to globals.
10397         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10398         (alpha_const_double_ok_for_letter_p): Likewise.
10399         (alpha_extra_constraint): Likewise.
10400         (alpha_preferred_reload_class): Likewise.  Do not force
10401         symbolic constants to memory.
10402         (alpha_legitimate_address_p): Accept simple references
10403         to small_symbolic_operand.
10404         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10405         called when no_new_pseudos.  Emit simple symbolic references.
10406         Split integers into low, high, and rest.
10407         (alpha_expand_mov): Use alpha_legitimize_address.
10408         (some_small_symbolic_mem_operand): New.
10409         (split_small_symbolic_mem_operand): New.
10410         * config/alpha/alpha-protos.h: Update.
10411         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10412         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10413         (EXTRA_CONSTRAINT): Likewise.
10414         (PREFERRED_RELOAD_CLASS): Likewise.
10415         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10416         (PREDICATE_CODES): Update.
10417         * config/alpha/alpha.md: New post-reload splitters to convert
10418         simplfied symbolic operands to the form that references $29.
10419         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10420         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10421
10422 2002-01-03  Richard Henderson  <rth@redhat.com>
10423
10424         * local-alloc.c (function_invariant_p): Update commentary.
10425
10426 2002-01-04  H.J. Lu <hjl@gnu.org>
10427
10428         * toplev.c (rest_of_compilation): Fix a typo when calling
10429         cleanup_cfg.
10430
10431 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10432
10433         * c-common.c: Fix formatting.
10434         * diagnostic.c: Likewise.
10435         * doloop.c: Likewise.
10436         * dwarf2out.c: Likewise.
10437
10438 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10439
10440         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10441         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10442
10443 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10444
10445         * cpperror.c: Update comments and copyright.
10446         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10447         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10448
10449 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10450
10451         * collect2.c (main): Use strcmp when testing for "-shared".
10452
10453 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10454
10455         * cppmacro.c: Don't include intl.h.  Update comments.
10456         (new_number_token): Allocate enough buffer for 64-bit unsigned
10457         integers; update prototype.
10458         * cppmain.c: Update comments.
10459
10460 2002-01-03  William Cohen  <wcohen@redhat.com>
10461
10462         * function.h (struct function): Add profile.
10463         (current_function_profile): New.
10464         doc/extend.texi: Update documentation.
10465         * final.c (final_start_function): Use current_function_profile
10466         instead of profile_flag.
10467         (profile_after_prologue): Likewise.
10468         * function.c (expand_function_start): Likewise.
10469         (expand_function_start): Likewise.
10470         * config/alpha/alpha.c (direct_call_operand):
10471         (alpha_does_function_need_gp): Likewise.
10472         (alpha_expand_prologue): Likewise.
10473         * config/arm/arm.c (arm_expand_prologue): Likewise.
10474         thumb_expand_prologue: Likewise.
10475         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10476         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10477         (fr30_expand_prologue): Likewise.
10478         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10479         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10480         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10481         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10482         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10483         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10484         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10485         (m32r_expand_prologue): Likewise.
10486         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10487         (m88k_expand_prologue): Likewise.
10488         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10489         * config/mips/mips.c (compute_frame_size): Likewise.
10490         (mips_expand_prologue): Likewise.
10491         (mips_can_use_return_insn): Likewise.
10492         * config/pa/elf.h (ASM_FILE_START): Likewise.
10493         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10494         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10495         * config/pa/som.h (ASM_FILE_START): Likewise.
10496         * config/romp/romp.c (romp_using_r14): Likewise.
10497         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10498         (rs6000_stack_info): Likewise.
10499         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10500         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10501         * config/v850/v850.c (compute_register_save_size): Likewise.
10502
10503 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10504
10505         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10506         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10507
10508 2002-01-03  Turly O'Connor  <turly@apple.com>
10509
10510         * darwin.c (machopic_output_possible_stub_label): Don't generate
10511         stub routines for pseudo-stubs which we've just defined.
10512
10513 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10514
10515         * builtins.c: Fix formatting.
10516         * c-typeck.c: Likewise.
10517         * combine.c: Likewise.
10518         * expr.c: Likewise.
10519         * loop.c: Likewise.
10520
10521 2002-01-03  Andreas Schwab  <schwab@suse.de>
10522
10523         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10524         and return true if _cpp_push_next_buffer pushed a new include
10525         file.
10526         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10527         _cpp_pop_file_buffer did not push a new file.
10528         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10529
10530 2002-01-02  Eric Christopher  <echristo@redhat.com>
10531
10532         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10533         FIND_REG_INC_NOTE call. Update copyright.
10534         * loop.c (canonicalize_condition): Ditto.
10535         * reorg.c (delete_scheduled_jump): Ditto.
10536
10537 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10538
10539         * gcse.c: Fix formatting.
10540
10541 2002-01-03  Graham Stott  <grahams@redhat.com>
10542
10543         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10544         forward defs for struct tags rtx_def, union_tree, rtvec_def
10545         also output corresponding typedefs for rtx, tree, and rtvec.
10546
10547         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10548         rtvec_def along with corresponding typedefs for rtx, tree, and
10549         rtvec to config.h, hconfig.h, tconfig.h.
10550
10551 2002-01-03  Graham Stott  <grahams@redhat.com>
10552
10553         * tree.h: Update copyright date.
10554         (IS_EXPR_CODE_CLASS): Add parenthesis.
10555         (TREE_SET_CODE): Add whitespace.
10556         (TREE_CHECK): Add parenthesis.
10557         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10558         (CST_OR_CONSTRUCTOR_CHECK):
10559         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10560         (TREE_SYMBOL_REFERENCED): Whitespace.
10561         (INT_CST_LT): Likewise.
10562         (INT_CST_LT_UNSIGNED): Likewise.
10563         (tree_real_cst): Unwrap comment.
10564         (tree_string): Likewise.
10565         (tree_complex): Likewise.
10566         (IDENTIFIER_POINTER): correct cast.
10567         (SAVE_EXPR_CONTEXT): Whitespace.
10568         (EXPR_WFL_FILENAME_NODE): Likewise.
10569         (EXPR_WFL_FILENAME): Remove parenthesis.
10570         (DECL_ORIGIN): Add parenthesis.
10571         (DECL_FROM_INLINE): Use NULL_TREE.
10572         (build_int_2): Whitespace.
10573         (build_type_variant): Add parenthesis.
10574
10575         * gcc/jcf-parse.c: Update copyright date.
10576         (yyparse): Constify resource_filename.
10577
10578 2002-01-03  Graham Stott  <grahams@redhat.com>
10579
10580         * rtl.h: Update copyright date.
10581         (RTL_CHECK1): Wrap long line.
10582         (RTL_CHECK2): Likewise.
10583         (RTL_CHECKC1): Wrap long line and whitespace.
10584         (RTL_CHECKC2): Likewise.
10585         (XWINT): Whitespace.
10586         (XINT): Likewise.
10587         (XSTR): Likewise.
10588         (XEXP): Likewise.
10589         (XVEC): Likewise.
10590         (XMODE): Likewise.
10591         (XBITMAP): Likewise.
10592         (XTREE): Likewise.
10593         (XBBDEF): Likewise.
10594         (XTMPL): Likewise.
10595         (X0WINT): Likewise.
10596         (X0INT):Likewise.
10597         (X0UINT): Likewise.
10598         (X0STR): Likewise.
10599         (X0EXP): Likewise.
10600         (X0VEC): Likewise.
10601         (X0MODE): Likewise.
10602         (X0BITMAP): Likewise.
10603         (X0TREE): Likewise.
10604         (X0BBDEF): Likewise.
10605         (X0ADVFLAGS): Likewise.
10606         (X0CSELIB): Likewise.
10607         (X0MEMATTR): Likewise.
10608         (XCWINT): Likewise.
10609         (XCINT): Likewise.
10610         (XCUINT): Likewise.
10611         (XCSTR): Likewise.
10612         (XCEXP): Likewise.
10613         (XCVEC): Likewise.
10614         (XCMODE): Likewise.
10615         (XCBITMAP): Likewise.
10616         (XCTREE): Likewise.
10617         (XCBBDEF): Likewise.
10618         (XCADVFLAGS): Likewise.
10619         (XCCSELIB): Likewise.
10620         (XC2EXP): Likewise.
10621         (INSN_UID): Likewise.
10622         (PREV_INSN): Likewise.
10623         (PATTERN): Likewise.
10624         (INSN_CODE): Likewise.
10625         (PUT_REG_NOTE_KIND): Likewise.
10626         (CODE_LABEL_NUMBER): Likewise.
10627         (NOTE_SOURCE_FILE): Likewise.
10628         (NOTE_BLOCK): Likewise.
10629         (NOTE_EH_HANDLER): Likewise.
10630         (NOTE_RANGE_INFO): Likewise.
10631         (NOTE_LIVE_INFO): Likewise.
10632         (NOTE_BASIC_BLOCK): Likewise.
10633         (NOTE_EXPECTED_VALUE): Likewise.
10634         (NOTE_LINE_NUMBER): Likewise.
10635         (LABEL_NAME): Likewise.
10636         (LABEL_NUSES): Likewise.
10637         (LABEL_ALTERNATE_NAME): Likewise.
10638         (ADDRESSOF_DECL): Likewise.
10639         (JUMP_LABEL): Likewise.
10640         (LABEL_NEXTREF): Likewise.
10641         (REGNO): Likewise.
10642         (ORIGINAL_REGNO: Likewise.
10643         (HARD_REGISTER_NUM_P): Add parenthesis.
10644         (SUBREG_REG): Whitespace.
10645         (SUBREG_BYTE): Likewise.
10646         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10647         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10648         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10649         (ASM_OPERANDS_INPUT_VEC): Likewise.
10650         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10651         (ASM_OPERANDS_INPUT): Likewise.
10652         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10653         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10654         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10655         (ASM_OPERANDS_INPUT_MODE): Likewise.
10656         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10657         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10658         (MEM_SET_IN_STRUCT_P): Minor reformat.
10659         (TRAP_CONDITION): Whitespace.
10660         (TRAP_CODE): Likewise.
10661         (COND_EXEC_TEST): Likewise.
10662         (COND_EXEC_CODE): Likewise.
10663         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10664         (PHI_NODE_P): Add parenthesis.
10665         (plus_constant): Whitespace and add parenthesis.
10666
10667 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10668
10669         * config/avr/avr.c: Fix comment typos.
10670         * config/c4x/c4x.md: Likewise.
10671         * config/dsp16xx/dsp16xx.h: Likewise.
10672         * config/dsp16xx/dsp16xx.md: Likewise.
10673         * config/i386/i386.md: Likewise.
10674         * config/ia64/ia64.c: Likewise.
10675         * config/m32r/m32r.h: Likewise.
10676         * config/m68hc11/m68hc11.md: Likewise.
10677         * config/mmix/mmix.c: Likewise.
10678         * config/mn10200/mn10200.c: Likewise.
10679         * config/romp/romp.c: Likewise.
10680         * config/sh/sh.c: Likewise.
10681         * config/stormy16/stormy16.c: Likewise.
10682         * config/stormy16/stormy16.h: Likewise.
10683         * config/stormy16/stormy16.md: Likewise.
10684
10685 2002-01-03  Graham Stott  <grahams@redhat.com>
10686
10687         * loop.h: Update copyright date.
10688         (LOOP_MOVABLES): Fix typo.
10689         (LOOP_REGS): Likewise.
10690         (LOOP_IVS): Likewise.
10691
10692 2002-01-03  Graham Stott  <grahams@redhat.com>
10693
10694         * cppinit.c: Update copyright date.
10695         Don't include output.h
10696         * Makefile.in: Update copyright date.
10697         Update dependency.
10698
10699 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10700
10701         PR c/5226
10702         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10703         (-pthread) Add to RS/6000 options.
10704
10705 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10706
10707         * except.c: Fix comment typos.
10708         * loop.c: Likewise.
10709         * varasm.c: Likewise.
10710         * doc/tm.texi: Fix a typo.
10711
10712 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10713
10714         * c-typeck.c (output_init_element): Allow initializing static storage
10715         duration objects with compound literals.
10716
10717 2002-01-02  Richard Henderson  <rth@redhat.com>
10718
10719         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10720         after abusing it.
10721
10722 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10723
10724         * gcc.c (default_compilers): Const-ify.
10725         * mips-tdump.c (stab_names): Likewise.
10726         * mips-tfile.c (map_coff_types, map_coff_storage,
10727         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10728         pseudo_ops_t, pseudo_ops): Likewise.
10729         * protoize.c (default_include): Likewise
10730
10731         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10732         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10733         Add array size in declaration.
10734         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10735         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10736         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10737         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10738         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10739         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10740         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10741         emtens, make_nan): Const-ify.
10742         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10743         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10744
10745 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10746
10747         * config.gcc (ia64-*-*): Set extra_headers.
10748         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10749         * config/alpha/t-osf: Remove.
10750         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10751
10752 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10753
10754         * config/rs6000/t-aix43: Revert previous change.
10755
10756 2002-01-02  Jason Merrill  <jason@redhat.com>
10757
10758         * c-decl.c (c_expand_body): Call outlining_inline_function when
10759         emitting an inline function out of line.
10760
10761 2002-01-02  Richard Henderson  <rth@redhat.com>
10762
10763         * dwarf2out.c (limbo_die_node): Add created_for member.
10764         (new_die): New argument created_for.  Update all callers.
10765         (mark_limbo_die_list): New.
10766         (dwarf2out_init): Register limbo_die_list as a root.
10767         (dwarf2out_finish): Force insert limbo dies into their function
10768         context.
10769
10770 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10771
10772         PR c++/5089
10773         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10774
10775 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10776
10777         * config/h8300/fixunssfsi.c: Update copyright.
10778         Fix comment typos.
10779         Fix formatting.
10780         * config/h8300/h8300.c: Update copyright.
10781         Eliminate warnings.
10782
10783 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10784
10785         * config/romp/romp.c: Fix comment formatting.
10786         * config/romp/romp.h: Likewise.
10787         * config/romp/romp.md: Likewise.
10788         * config/s390/s390.c: Likewise.
10789         * config/stormy16/stormy16.c: Likewise.
10790         * config/stormy16/stormy16.h: Likewise.
10791
10792 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10793
10794         * c-common.h (genrtl_expr_stmt_value): Declare.
10795         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10796         (genrtl_goto_stmt_value): ... this new function.  Pass new
10797         argument down to expand_expr_stmt_value, taking
10798         TREE_ADDRESSABLE into account.
10799         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10800         STMT_EXPR as addressable, i.e., one whose result we want.
10801         * expr.c (expand_expr): Don't save expression statement value
10802         of labeled_blocks or loop_exprs.
10803         * stmt.c (expand_expr_stmt): Redirect to...
10804         (expand_expr_stmt_value): ... this new function.  Use new
10805         argument to tell whether to save expression value.
10806         (expand_end_stmt_expr): Reset last_expr_type and
10807         last_expr_value if we don't have either.
10808         * tree-inline.c (declare_return_variable): Mark its use
10809         statement as addressable.
10810         * tree.h: Document new use of TREE_ADDRESSABLE.
10811         (expand_expr_stmt_value): Declare.
10812
10813 2002-01-01  Tom Rix  <trix@redhat.com>
10814
10815         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10816         rs6000_emit_allocate_stack.
10817
10818 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10819
10820         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10821         ${srcdir}/ginclude/ to every entry in extra_headers.
10822         * configure: Regenerate.
10823         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10824         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10825         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10826         * ginclude/proto.h: Rename to config/convex/proto.h.
10827
10828 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10829
10830         * attribs.c (handle_vector_size_attribute): Use host_integerp
10831         and tree_int_cst; remove warnings.
10832         * caller-save.c (insert_restore): Add cast to get rid of warning.
10833         (insert_save): Likewise.
10834         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10835         * regmove.c (find_matches): Add temporary var to kill a warning.
10836
10837 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10838
10839         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10840         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10841         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10842         (vms-dwarf2eh.o): Add Makefile rule.
10843         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10844         * config/alpha/vms-dwarf2eh.asm: New file.
10845
10846         * gcc.c (delete_if_ordinary): Delete all versions.
10847
10848 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10849
10850         * config/mmix/mmix.md: Update FIXME to not mention
10851         define_constants.
10852         (MMIX_rJ_REGNUM): New define_constants constant.
10853         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10854         "*movdicc_real"): Adjust contraints formatting.
10855         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10856         for branch prediction.
10857         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10858         output template.
10859         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10860         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10861         number.  Delete related FIXMEs.
10862         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10863         from number to MMIX_rJ_REGNUM.
10864         (TARGET_MASK_BRANCH_PREDICT): New.
10865         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10866         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10867         value.  Add -mbranch-predict and -mno-branch-predict.
10868         (TARGET_VERSION): Drop date.
10869         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10870         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10871         for finding out global symbols.
10872         (mmix_asm_output_labelref): Revert condition for global symbol.
10873         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10874         (mmix_print_operand_punct_valid_p): A '+' is valid.
10875
10876 See ChangeLog.6 for earlier changes.