OSDN Git Service

* config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-15  Richard Henderson  <rth@redhat.com>
2
3         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4         config/i386/linux-aout.h, config/i386/linux-oldld.h,
5         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
7         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10         Define __gnu_linux__, not gnu_linux.
11         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12
13 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
14
15         Remove Chill front end.
16         * gcc.c (default_compilers): Remove Chill entries.
17         * ch: Remove directory.
18         * doc/frontends.texi: Remove information about Chill.
19         * doc/sourcebuild.texi: Likewise.
20         * doc/standards.texi: Likewise.
21
22 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
23
24         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
25         (LONGLONG_STANDALONE): Define.
26
27 2002-04-15  David S. Miller  <davem@redhat.com>
28
29         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
30         Call emit_library_call with LCT_NORMAL.
31         (sparc_initialize_trampoline): Use LCT_foo instead of
32         magic constant in emit_library_call invocations.
33         (sparc64_initialize_trampoline): Likewise.
34         (sparc_profile_hook): Likewise.
35         * config/sparc/sparc.md: Likewise.
36
37         * config/sparc/sparc.c (sparc_extra_constraint_check):
38         Fix type of argument 'c'.
39         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
40         Likewise.
41
42 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
43
44         * diagnostic.h (output_buffer_state): Redefine.
45         (output_format_decoder): New macro.
46         (output_prefixing_rule): Likewise.
47         (output_line_cutoff): Likewise.
48         (diagnostic_format_decoder): Adjust.
49         (diagnostic_prefixing_rule): Likewise.
50         (diagnostic_line_cutoff): Likewise.
51         (diagnostic_state): Likewise.
52         (diagnostic_kind_count): Likewise.
53         (diagnostic_buffer): Now a macro.
54
55         * diagnostic.c (diagnostic_buffer): Remove definition.
56         (output_is_line_wrapping): Adjust.
57         (set_real_maximum_length): Likewise.
58         (output_set_maximum_length): Likewise.
59         (init_output_buffer): Likewise.
60         (lhd_print_error_function): Likewise.
61         (output_do_verbatim): Likewise.
62
63 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
64
65         * cpperror.c (print_location): Don't print include chain
66         if line == 0.
67         (cpp_begin_message): Update to use DL_ macros.
68         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
69         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
70         cpp_notice, cpp_notice_from_errno): Remove.
71         (cpp_error, cpp_error_with_line): Update to take a diagnostic
72         level.
73         (cpp_errno): New.
74         * cppexp.c (CPP_ICE): Remove.
75         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
76         lex, integer_overflow, _cpp_parse_expr): Update.
77         * cppfiles.c (read_include_file, find_include_file,
78         handle_missing_header, _cpp_read_file, remap_filename): Update.
79         * cpphash.h (enum error_type): Remove.
80         (_cpp_begin_message): Update.
81         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
82         cpp_handle_option, cpp_post_options): Update.
83         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
84         skip_whitespace, parse_identifier, parse_slow, parse_string,
85         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
86         cpp_interpret_charconst): Update.
87         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
88         lex_macro_node, do_undef, glue_header_name, parse_include,
89         do_include_common, read_flag, do_line, do_linemarker, do_ident,
90         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
91         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
92         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
93         _cpp_pop_buffer, do_diagnostic): Update.
94         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
95         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
96         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
97         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
98         cpp_notice, cpp_notice_from_errno): Remove.
99         (cpp_error, cpp_error_with_line): Update to take a diagnostic
100         level.
101         (cpp_errno): New.
102         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
103         collect_args, enter_macro_context, save_parameter, parse_params,
104         _cpp_create_definition, check_trad_stringification,
105         cpp_macro_definition): Update.
106         * cppmain.c (cpp_preprocess_file): Update.
107         * fix-header.c (read_scan_file): Update.
108
109 2002-04-14  Andreas Schwab  <schwab@suse.de>
110
111         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
112
113 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
114
115         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
116
117 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
118
119         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
120         not gnu_hurd.
121
122 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
123
124         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
125
126 2002-04-13      Joel Sherrill <joel@OARcorp.com>
127
128         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
129         sparc-elf and sparc-rtems targets.
130
131 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
132
133         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
134         defined, and __gnu_hurd__ wherever __GNU__ is defined.
135         * arm/linux-elf.h: Likewise.
136         * cris/aout.h: Likewise.
137         * cris/linux.h: Likewise.
138         * i370/linux.h: Likewise.
139         * i386/gnu.h: Likewise.
140         * i386/linux-aout.h: Likewise.
141         * i386/linux-oldld.h: Likewise.
142         * i386/linux.h: Likewise.
143         * i386/linux64.h: Likewise.
144         * ia64/linux.h: Likewise.
145         * m68k/linux-aout.h: Likewise.
146         * m68k/linux.h: Likewise.
147         * mips/linux.h: Likewise.
148         * pa/pa-linux.h: Likewise.
149         * pj/linux.h: Likewise.
150         * rs6000/sysv4.h: Likewise.
151         * s390/linux.h: Likewise.
152         * sh/linux.h: Likewise.
153         * sparc/linux-aout.h: Likewise.
154         * sparc/linux.h: Likewise.
155         * sparc/linux64.h: Likewise.
156         * xtensa/linux.h: Likewise.
157
158 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
159
160         * stmt.c (check_unique_operand_names): Expect operand names to
161         be strings rather than identifiers.  Use simple_cst_equal to
162         compare them.
163         (resolve_operand_name_1): Make same identifier to string change here.
164         * c-parse.in (asm_operand): Convert a named operand into a string.
165         * cp/parse.y (asm_operand): Likewise.
166
167 2002-04-13  Andreas Schwab  <schwab@suse.de>
168
169         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
170
171 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
172
173         Revert these changes:
174
175         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
176
177         PR c++/5571
178         * stor-layout.c (layout_decl): Reset the RTL for the decl.
179
180 2002-04-12  Richard Henderson  <rth@redhat.com>
181
182         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
183         (sparc*-*-solaris): Clean up header files.
184         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
185         and plan on generating 64-bit code.
186         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
187         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
188         * config/sparc/sol2-sld-64.h: Rename ...
189         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
190         for AS_SPARC64_FLAG not defined.
191         * config/sparc/sol2-gld-bi.h: New.
192         * config/sparc/sol2-sld.h: Remove.
193         * config/sparc/sol26-sld.h: New.
194         * config/sparc/sol2.h: Tidy comments.
195         * doc/install.texi: Document sparc-solaris configury changes.
196
197 2002-04-12  Richard Henderson  <rth@redhat.com>
198
199         * recog.c (offsettable_address_p): Match the logic in adjust_address.
200
201         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
202         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
203
204 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
205
206         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
207
208 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
209
210         * pa.c (pa_can_combine_p): Call extract_insn before calling
211         constrain_operands.
212
213 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
214
215         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
216         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
217         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
218         (CPP_PREDEFINES): Handle __declspec.
219         * config/i386/t-interix (USER_H): Remove.
220
221 2002-04-12  DJ Delorie  <dj@redhat.com>
222
223         * integrate.c (compare_blocks): Make comparisons safe for when
224         sizeof(int) < sizeof(char *).
225         (find_block): Likewise.
226
227 2002-04-12  Jan Hubicka  <jh@suse.cz>
228             David Edelsohn  <edelsohn@gnu.org>
229
230         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
231         registers.
232         (symbol_ref_operand): New.
233         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
234         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
235
236 2002-04-12  Andreas Schwab  <schwab@suse.de>
237
238         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
239         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
240         overrides the definition in config/svr4.h.
241         
242 2002-04-12      Eric Norum <eric.norum@usask.ca>
243
244         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
245         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
246         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
247         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
248         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
249         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
250         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
251         definitions to config/rtems.h and make the targets more similar.
252
253 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
254
255         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
256         POINTERS_EXTEND_UNSIGNED.
257         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
258         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
259
260         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
261         not specified.
262
263 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
264
265         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
266         depends on TARGET_SHMEDIA, not TARGET_SH5.
267
268 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
269
270         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
271         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
272
273 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
274
275         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
276         no r0 clobber.
277
278 2002-04-12  Andreas Schwab  <schwab@suse.de>
279
280         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
281
282 2002-04-12  Richard Henderson  <rth@redhat.com>
283
284         PR bootstrap/4191
285         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
286
287         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
288         modes spanning multiple hard regs.
289     
290         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
291
292 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
293
294         * pa.c (pa_output_function_prologue): Don't accumulate the total
295         number of code bytes when using TARGET_64BIT, or gas, SOM and not
296         the portable runtime.
297         (output_deferred_plabels): Handle 64bit plabels.
298         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
299         generating pic code using the GAS assembler for object formats that
300         are not SOM (ie., ELF32 and ELF64).
301         (output_millicode_call): Check attribute type if attribute length is 28.
302         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
303         dbr_sequence_length once.
304         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
305         dbr_sequence_length once.
306         * pa.h (TARGET_SOM): Define if not defined.
307         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
308         with GAS and not SOM.
309         (jump, call_internal_reg, call_value_internal_reg): Likewise.
310         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
311
312 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
313
314         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
315         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
316         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
317         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
318         elfos.h and dbxelf.h values are fine now.
319         * config/i386/freebsd.h, config/alpha/freebsd.h
320         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
321
322 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
323
324         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
325         or set Acpu or Amachine.  Reformat.
326         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
327         define.
328         (LINK_SPEC): Do not need to undef.
329         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
330         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
331         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
332         define.
333         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
334         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
335         (LINK_SPEC): Do not need to undef.
336         (DONT_USE_BUILTIN_SETJMP): Do not define.
337         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
338         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
339         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
340         Remove trailing spaces.
341         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
342         __ELF__, or set Acpu or Amachine.  Reformat.
343         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
344         define.
345
346 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
347
348         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
349         all other *-*-freebsd* targets.
350
351 2002-04-11  Richard Henderson  <rth@redhat.com>
352
353         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
354
355 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
356
357         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
358         Include {cpu}/{cpu}.h thru tm_file.
359         (alpha*-*-linux*ecoff): Remove target.
360         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
361         (LINK_SPEC): Remove, is not OS independent.
362         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
363         (LINK_SPEC): Do not need to #undef any longer.
364         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
365         any longer.
366         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
367         __ELF__.
368         (LINK_SPEC): Moved here from alpha/elf.h.
369         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
370         SUB_CPP_PREDEFINES.
371         * config/alpha/linux-ecoff.h: Remove.
372         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
373         (CPP_SPEC): Define _POSIX_SOURCE as needed.
374         (CPP_SUBTARGET_SPEC): Do not define.
375         (LINK_SPEC): Do not need to #undef any longer.
376         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
377         * config/alpha/vms.h: Likewise.
378
379 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
380
381         * doc/extend.texi: Remove old claim that typedefs cannot have
382         an alignment attribute.
383
384 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
385
386         PR optimization/6177
387         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
388         bitpos is 0 and bitsize CONCAT size.
389
390 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
391
392         PR c/6223
393         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
394
395 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
396
397         * config/alpha/freebsd.h: Minor reformatting.
398         (CPP_SPEC): Define ELF and add cpp_subtarget.
399         (ASM_SPEC): No longer needed.
400
401 2002-04-11  Richard Henderson  <rth@redhat.com>
402
403         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
404         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
405         (dimode mem/zero splitter): New.
406
407 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
408
409         * config/cris/cris.c (cris_override_options): Tweak error message
410         for PIC not implemented.
411
412         * config/cris/cris.h: Tweak comments related to parameter-passing.
413
414         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
415
416 2002-04-10  Richard Henderson  <rth@redhat.com>
417
418         * except.c (add_ehl_entry): Allow duplicates after landing pad
419         creation.
420
421 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
422
423         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
424
425 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
426
427         * c-decl.c (c_init_decl_processing): Move generation of
428         decls for g77_integer_type_node and friends from here ...
429         * c-common.c (c_common_nodes_and_builtins): ... to here.
430
431 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
432
433         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
434         is only used as frame pointer when frame_pointer_needed is true.
435
436 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
437
438         PR target/817
439         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
440         for the fact that the pool entry uses two words.
441         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
442         1k bytes.
443         (movdf_soft_insn): Similarly.
444         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
445         for the fact that the pool entry uses three words.
446
447 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
448
449         * config/mips/mips.c (mips_va_arg): When using the struct version
450         of the EABI va_list, allow arguments in the register save area to
451         take up less room than a stack argument.
452
453 2002-04-10  Richard Henderson  <rth@redhat.com>
454
455         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
456         if EXPAND_INITIALIZER.
457
458 2002-04-09  Richard Henderson  <rth@redhat.com>
459
460         * config/alpha/alpha.md (movdi_er_maybe_g): New.
461         * config/alpha/alpha.c (alpha_expand_mov): Use it.
462
463 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
464
465         PR optimization/6233
466         * rtlanal.c (pure_call_p): New function.
467         * rtl.h (pure_call_p): Declare.
468         * loop.c (prescan_loop): Use it to set has_nonconst_call.
469         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
470
471 2002-04-09  Eric Christopher  <echristo@redhat.com>
472
473         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
474         information to .comm directive.
475
476 2002-04-09  Richard Henderson  <rth@redhat.com>
477
478         PR c/5078
479         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
480
481 2002-04-09  Richard Henderson  <rth@redhat.com>
482
483         * basic-block.h (flow_delete_block_noexpunge): Declare.
484         (expunge_block_nocompact): Declare.
485         * cfg.c (expunge_block_nocompact): Split out from ...
486         (expunge_block): ... here.
487         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
488         (flow_delete_block_noexpunge): Split out from ...
489         (flow_delete_block): ... here.
490         * cfgcleanup.c (delete_unreachable_blocks): Compact while
491         removing dead blocks.
492         * except.c (exception_handler_labels): Remove.
493         (exception_handler_label_map): New.
494         (struct eh_region): Add aka member.
495         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
496         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
497         (for_each_eh_label, for_each_eh_label_1): New.
498         (init_eh): Register exception_handler_label_map.
499         (free_eh_status): Use free_region.
500         (find_exception_handler_labels): Use the map, not the list.
501         (remove_exception_handler_label): Likewise.
502         (maybe_remove_eh_handler): Likewise.
503         (remove_eh_handler): Use the region aka bitmap.
504         * except.h (exception_handler_labels): Remove.
505         (for_each_eh_label): Declare.
506         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
507         * loop.c (invalidate_loops_containing_label): New.
508         (find_and_verify_loops): Use it.  Use for_each_eh_label.
509         * sched-rgn.c (is_cfg_nonregular): Use
510         current_function_has_exception_handlers.
511
512 2002-04-09  Richard Henderson  <rth@redhat.com>
513
514         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
515         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
516         Do not return changed status.
517         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
518         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
519         New functions that do return changed status.
520         * sbitmap.h: Update decls.
521         * gcse.c, lcm.c: Use _cg functions as needed.
522
523 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
524
525         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
526         (sh64-*-elf*, sh-*-rtemself*): Likewise.
527         * config/sh/embed_bb.c: New file.
528         * config/sh/embed-elf.h: New file.
529         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
530         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
531         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
532         __PTRDIFF_TYPE__ .
533         (SUBTARGET_CPP_PTR_SPEC): Don't define.
534         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
535         Add subtarget_asm_endian_spec.
536         (ASM_SPEC): Use subtarget_asm_endian_spec.
537         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
538         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
539         (WCHAR_UNSIGNED): Define.
540         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
541         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
542         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
543         Fix value.
544         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
545         (sh_adjust_cost): Likewise.
546         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
547         __PTRDIFF_TYPE__ .
548         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
549         (WCHAR_TYPE_SIZE): Likewise.
550         (ASM_SPEC): Use subtarget_asm_endian_spec.
551         (SH_ELF_WCHAR_TYPE): #undef/ #define.
552         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
553         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
554         (MAX_WCHAR_TYPE_SIZE): Don't #define .
555         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
556         (USER_LABEL_PREFIX): Don't #undef /#define .
557         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
558         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
559         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
560         (ASM_SPEC): Likewise.
561         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
562         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
563         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
564         (LIB2FUNCS_EXTRA): Define.
565         * t-sh64 (LIB2FUNCS_EXTRA): Define.
566         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
567         (LIB1ASMFUNCS_CACHE): Define.
568         (LIB2FUNCS_EXTRA): Redefine empty.
569
570 2002-04-08  Richard Henderson  <rth@redhat.com>
571
572         * reorg.c (get_branch_condition): Use reversed_comparison_code.
573
574 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
575
576         * config/m68hc11/larith.asm (__map_data_section): Fix condition
577         and optimize for size.
578         (__do_global_ctors): Fix pointer comparison.
579         (__do_global_dtors): Likewise.
580
581 2002-04-09  David S. Miller  <davem@redhat.com>
582
583         * config/sparc/sparc.c (sparc_extra_constraint_check): New
584         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
585         allow reloading pseudos.
586         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
587         * config/sparc/sparc-protos.h: Declare it.
588
589         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
590         unsigned comparison warning.
591         (output_restore_regs): Mark leaf_function as unused.
592
593 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
594
595         * expr.c (is_aligning_offset): New function.
596         (expand_expr, case COMPONENT_EXPR): Call it.
597
598 2002-04-08  David S. Miller  <davem@redhat.com>
599
600         PR target/6082
601         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
602
603         Make init_priority work on Sparc when using GNU ld.
604         * config/sparc/linux.h, config/sparc/linux64.h,
605         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
606         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
607         * config/sparc/sol2-gld.h: New file to do the same.
608         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
609         sparc/sol2-gld.h to tm_file.
610
611         PR optimization/4328
612         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
613         * doc/md.texi: Document it.
614         * config/sparc/sparc.md (movdi_insn_sp64_novis,
615         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
616         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
617         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
618         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
619
620 2002-04-08  Andreas Jaeger  <aj@suse.de>
621
622         * stmt.c (expand_asm_operands): Revert last patch from Richard
623         Henderson.
624
625 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
626
627         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
628         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
629
630 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
631
632         * doc/contrib.texi (Contributors): Add David O'Brien.
633
634 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
635
636         * configure.in (auto-build.h): Use target_alias and build_alias
637         when running configure.
638         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
639         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
640         * configure: Regenerate.
641
642 2002-04-07  David S. Miller  <davem@redhat.com>
643
644         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
645
646 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
647
648         PR 5933
649         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
650         generating 32-bit pic code.
651
652 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
653
654         * cppinit.c (cpp_create_reader): Initialize
655         discard_comments_in_macro_exp.
656         (COMMAND_LINE_OPTIONS): Add "-CC" option.
657         (cpp_handle_option): Handle "-CC" option.
658         * cpplex.c (save_comment): If saving a C++ comment in
659         a directive, convert it to a C comment.
660         (_cpp_lex_direct): Pass second comment start character to
661         save_comment to indicate comment type.
662         * cpplib.c (_cpp_handle_directive): If processing
663         a "#define" directive and discard_comments_in_macro_exp
664         is false,  re-enable saving of comments.
665         (lex_macro_node): If discard_comments_in_macro_exp is false,
666         discard any comments before the macro identifier.
667         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
668         member.
669         * cppmacro.c (cpp_get_token): If expanding a macro while
670         processing a directive, discard any comments we might encounter.
671         (parse_params): If discard_comments_in_macro_exp is false,
672         ignore comments in the macro parameter list.
673         * gcc.c (cpp_unique_options): Add "-CC" option.
674         (option_map): Map "--comments-in-macros" to "-CC".
675         * doc/cppopts.texi: Document "-CC" option.
676         * f/lang-specs.h: Add "-CC" option.
677         * testsuite/gcc.dg/cpp/maccom1.c: New test.
678         * testsuite/gcc.dg/cpp/maccom2.c: New test.
679         * testsuite/gcc.dg/cpp/maccom3.c: New test.
680         * testsuite/gcc.dg/cpp/maccom4.c: New test.
681         * testsuite/gcc.dg/cpp/maccom5.c: New test.
682         * testsuite/gcc.dg/cpp/maccom6.c: New test.
683
684 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
685
686         PR middle-end/6180
687         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
688
689 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
690
691         PR c++/5571
692         * stor-layout.c (layout_decl): Reset the RTL for the decl.
693
694         PR opt/5120
695         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
696         RTX_UNCHANGING_P for the functions arguments when a tail call
697         is made.
698
699 2002-04-06  Jason Merrill  <jason@redhat.com>
700
701         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
702         (parse_options_and_default_flags): Set them appropriately.
703         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
704
705 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
706
707         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
708         here.
709
710         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
711         semicolon.
712
713         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
714         types come in by-reference.  Fix typo in comment.
715
716 2002-04-05  David S. Miller  <davem@redhat.com>
717
718         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
719         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
720         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
721         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
722
723 2002-04-05  David S. Miller  <davem@redhat.com>
724
725         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
726         are not going to emit return instructions, emit at least a nop
727         for the sake of sane backtraces.
728
729 2002-04-05  Richard Henderson  <rth@redhat.com>
730
731         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
732
733 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
734
735         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
736
737 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
738
739         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
740         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
741         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
742
743 2002-04-05  Andreas Schwab  <schwab@suse.de>
744
745         * c-convert.c: Include c-common.h.
746         * Makefile.in (c-convert.o): Updated.
747
748 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
749
750         * mklibgcc.in: Use separate libgcc.map for each multilib.
751         * Makefile.in (distclean): Don't remove libgcc.map here.
752
753 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
754
755         * Makefile.in (s-mlib): Handle --disable-multilib by separate
756         genmultilib invocation.
757
758 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
759
760         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
761         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
762         to num_gprs for symmetry.
763         * config/mips/mips.c: Adjust accordingly.
764
765 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
766
767         * c-common.c (truthvalue_conversion): Rename, update.
768         * c-common.h (c_common_truthvalue_conversion): New.
769         * c-convert.c (convert): Update.
770         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
771         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
772         * c-typeck.c (build_binary_op, build_unary_op,
773         build_conditional_expr): Update.
774         * fold-const.c (constant_boolean_node, fold): Use langhook.
775         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
776         * langhooks.h (struct lang_hooks): New hook.
777         * stmt.c (expand_decl_cleanup): Use langhook.
778         * tree.h (truthvalue_conversion): Remove.
779 objc:
780         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
781
782 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
783
784         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
785         Add rules to make null object file.
786
787 2002-04-04  Jim Blandy  <jimb@redhat.com>
788
789         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
790         macro formal parameter names.
791
792 2002-04-04  David S. Miller  <davem@redhat.com>
793
794         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
795
796 2002-04-04  Richard Henderson  <rth@redhat.com>
797
798         PR middle-end/5099
799         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
800         Support copies into and out of memory.  Don't accept allows_reg
801         and allows_mem as gospel.
802
803 2002-04-04  Richard Henderson  <rth@redhat.com>
804
805         PR opt/6165
806         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
807         (write_dependence_p): Likewise.
808
809 2002-04-04  Richard Henderson  <rth@redhat.com>
810
811         * predict.c (estimate_bb_frequencies): Do frequency calculation
812         with a volatile temporary.
813
814 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
815
816         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
817
818 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
819
820         PR c++/6119
821         * final.c (final_start_function): Don't bump profile_label_no here...
822         (final_end_function): ...but here.
823
824 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
825
826         * config/sparc/sparc.md (pic): New attribute.
827         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
828         into stack slots.
829         (split after do_builtin_setjmp_setup): New.
830
831 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
832
833         PR fortran/6106
834         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
835         change.
836
837 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
838
839         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
840         UNITS_PER_WORD for zero sized aggregates.
841
842 2002-04-03  David S. Miller  <davem@redhat.com>
843
844         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
845         one-character spec for this, just use %(link_gcc_c_sequence).
846
847 2002-04-03  David S. Miller  <davem@redhat.com>
848
849         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
850         handling.
851
852 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
853
854         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
855         (DWARF_FRAME_RETURN_COLUMN): Move.
856         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
857         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
858         * pa.c (except.h, predict.h): Include.
859         (FRP): Delete.
860         (store_reg_modify, set_reg_plus_d): Revise prototypes.
861         (output_ascii): Add cast.
862         (store_reg_modify): Revise to add frame notes.
863         (set_reg_plus_d): Likewise.
864         (compute_frame_size): Include space for eh data registers in frame if
865         the current function calls eh_return.
866         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
867         function calls eh_return.  Save eh data registers if the current
868         function calls eh_return.  Fix code to add frame notes.  Emit
869         blockage to prevent insns with frame notes being scheduled in the
870         delay slot of calls.
871         (hppa_expand_epilogue): Restore eh data registers and do final stack
872         adjustment if the current function calls eh_return.  Don't add frame
873         notes.
874         (output_call): Revise for change in length of call insn.  Don't do
875         return pointer adjustment for an unconditional jump in the delay slot
876         of a call when using frame notes.
877         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
878         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
879         (ARG_POINTER_CFA_OFFSET): Define.
880         * pa.md (return_external_pic): New pattern.
881         (prologue): Correct formatting.  Use return_external_pic if current
882         function calls eh_return.
883         (call_internal_symref, call_value_internal_symref,
884         sibcall_internal_symref, sibcall_value_internal_symref): Change default
885         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
886         respectively.
887         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
888
889         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
890         list of targets to check using "nop" insn.
891         * configure: Rebuilt.
892
893 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
894
895         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
896
897 2002-04-03  David S. Miller  <davem@redhat.com>
898
899         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
900         library sequence passed to the linker.
901         (LINK_COMMAND_SPEC): Use it.
902         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
903         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
904         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
905
906 2002-04-03  Jason Merrill  <jason@redhat.com>
907
908         * except.c (struct eh_status): Remove protect_list.
909         (begin_protect_partials, end_protect_partials): Remove.
910         (add_partial_entry): Remove.
911         * except.h: Remove prototypes.
912
913         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
914         expand_decl_cleanup_eh.
915
916         PR c++/5636
917         * tree.h (CLEANUP_EH_ONLY): New macro.
918         * stmt.c (expand_decl_cleanup_eh): New fn.
919         (expand_cleanups): Check CLEANUP_EH_ONLY.
920         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
921         Use expand_decl_cleanup_eh.
922         (expand_stmt): Adjust.
923         * c-common.h: Adjust prototype.
924
925 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
926
927         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
928         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
929         (cris_target_asm_function_epilogue): Ditto.
930         (cris_initial_frame_pointer_offset): Ditto.
931         (cris_simple_epilogue): Ditto.
932         (cris_expand_builtin_va_arg): Variable-size types come in
933         by-reference.
934
935 2002-04-03  David S. Miller  <davem@redhat.com>
936
937         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
938         little-endian.
939         (set_fast_math): Correct 'fsr' type.
940
941 2002-04-03  Richard Henderson  <rth@redhat.com>
942
943         PR opt/3569
944         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
945         * toplev.c (check_global_declarations): Use it.
946         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
947         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
948         (LANG_HOOKS_DECLS): Add it.
949         * langhooks.c (lhd_warn_unused_global_decl): New.
950         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
951         * c-objc-common.c (c_warn_unused_global_decl): New.
952         * c-tree.h (c_warn_unused_global_decl): Declare.
953         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
954
955 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
956
957         * langhooks-def.h (lhd_set_decl_assembler_name,
958         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
959         (LANG_HOOKS_INITIALIZER): Update.
960         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
961         * langhooks.h (struct lang_hooks): New hook.
962         * tree.c (set_decl_assembler_name): Move to langhooks.c.
963         (lang_set_decl_assembler_name): Remove.
964         (init_obstacks): Don't set hook.
965         (decl_assembler_name): New function.
966         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
967         (decl_assembler_name): New.
968         (lang_set_decl_assembler_name): Remove.
969
970 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
971
972         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
973         works properly with .hidden symbols.
974         * configure: Rebuilt.
975         * config.in: Rebuilt.
976         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
977         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
978         properly with .hidden symbols.
979
980 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
981
982         PR middle-end/6102
983         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
984         USE argument.
985
986 2002-04-03  Richard Henderson  <rth@redhat.com>
987
988         PR opt/4120
989         * sched-rgn.c (sets_likely_spilled): New.
990         (sets_likely_spilled_1): New.
991         (add_branch_dependences): Use it.
992
993 2002-04-02  Richard Henderson  <rth@redhat.com>
994
995         PR opt/4311
996         * loop.h (LOOP_FIRST_PASS): New.
997         * loop.c (strength_reduce): Mind it when deciding to unroll.
998         * toplev.c (rest_of_compilation): Set it.
999
1000 2002-04-02  David S. Miller  <davem@redhat.com>
1001
1002         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1003         mems_ok_for_ldd_peep when the order of the loads being examined
1004         is reversed.
1005         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1006         existing comment to increase comprehension of this situation.
1007
1008 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1009
1010         * config/sh/sh.md: Don't use union real_extract.
1011
1012 2002-04-02  Richard Henderson  <rth@redhat.com>
1013
1014         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1015
1016 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1017
1018         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1019         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1020         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1021         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1022         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1023         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1024         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1025         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1026         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1027         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1028         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1029         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1030         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1031         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1032         Include as many configury headers via tm_file as possible.  This
1033         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1034         * config/openbsd-oldgas.h: New file.
1035         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1036         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1037         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1038         config/i386/i386-coff.h, config/i386/i386-interix.h,
1039         config/i386/iscdbx.h, config/i386/linux-aout.h,
1040         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1041         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1042         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1043         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1044         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1045         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1046         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1047         config/i386/vxi386.h: Do not directly include configury headers.
1048         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1049         Directly include configury headers that are no longer automatically
1050         included by the above headers.
1051         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1052         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1053         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1054         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1055         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1056         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1057         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1058         (TARGET_VERSION): Define.
1059         * config/i386/beos-elf.h, config/i386/freebsd.h,
1060         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1061         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1062         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1063         config/i386/sco5.h, config/i386/sysv4.h
1064         (TARGET_VERSION): Do not need to protect.
1065         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1066         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1067         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1068         config/i386/i386-interix.h, config/i386/linux-aout.h,
1069         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1070         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1071         (YES_UNDERSCORES): Do not define - not needed.
1072         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1073         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1074         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1075         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1076         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1077         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1078         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1079         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1080
1081 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1082             Richard Henderson  <rth@redhat.com>
1083
1084         PR c/5484
1085         * function.c (assign_temp): Accept either type or decl argument.
1086         Detect variables whose size is too large to fit into an integer.
1087         * stmt.c (expand_decl): Pass the decl, not the type.
1088
1089 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1090
1091         * protoize.c: Match include directory usage with cppdefault.c.
1092
1093 2002-04-03  Jeffrey A Law  (law@redhat.com)
1094             Hans-Peter Nilsson  <hp@bitrange.com>
1095
1096         * combine.c (simplify_comparison): Avoid narrowing a comparison
1097         with a paradoxical subreg when doing so would drop signficant bits.
1098
1099 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1100
1101         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1102         if POINTERS_EXTEND_UNSIGNED is defined.
1103
1104 2002-04-02  Richard Henderson  <rth@redhat.com>
1105
1106         PR opt/3967
1107         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1108         replace regs.
1109
1110 2002-04-02  Richard Henderson  <rth@redhat.com>
1111
1112         * doc/standards.texi: Document required freestanding libc entry points.
1113
1114 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1115
1116         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1117         associated splitter.  Remove MQ constraint.
1118         (ctrdi_internal4): Correct CCmode clobber.
1119
1120 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1121
1122         * milli64.S ($$dyncall): New function.
1123         * t-linux (LIB1ASMFUNCS): Revise module list.
1124         (LIB1ASMSRC): Use pa/milli64.S.
1125
1126 2002-04-02  Richard Henderson  <rth@redhat.com>
1127
1128         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1129         rename solaris_sys_varargs_h.
1130
1131 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1132
1133         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1134         the same mode as its component.
1135
1136 2002-04-02  Richard Henderson  <rth@redhat.com>
1137
1138         PR opt/190
1139         * final.c (this_is_asm_operands): Export.
1140         * output.h (this_is_asm_operands): Declare.
1141         * config/i386/i386.c (print_operand): Error odd asm operands.
1142
1143 2002-04-02  Richard Henderson  <rth@redhat.com>
1144
1145         PR opt/420
1146         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1147
1148 2002-04-01  Richard Henderson  <rth@redhat.com>
1149
1150         PR target/1538
1151         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1152         * fixinc/fixincl.x: Rebuild.
1153
1154 2002-04-01  Richard Henderson  <rth@redhat.com>
1155
1156         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1157         (atomic_alloc, atomic_free): New.
1158         (SIZE, MASK_FOR, PTR_IN): New.
1159         (emergency_reg_state, emergency_reg_state_free): New.
1160         (emergency_labeled_state, emergency_labeled_state_free): New.
1161         (reg_state_alloced, labeled_state_alloced): New.
1162         (alloc_reg_state, free_reg_state): New.
1163         (alloc_label_state, free_label_state, free_label_states): New.
1164         (push, pop, dup_state_stack, free_state_stack): Use them.
1165         (desc_label_state): Likewise.
1166         (uw_frame_state_for): Free label states and state stack.
1167         (uw_update_reg_address): Eliminate warnings.
1168
1169 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1170
1171         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1172         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1173
1174 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1175
1176         * c-decl.c (grokdeclarator): Update.
1177         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1178         * c-tree.h (c_mark_addressable): New.
1179         * c-typeck.c (default_function_array_conversion, build_unary_op,
1180         build_array_ref, convert_for_assignment): Update.
1181         (mark_addressable): Rename.
1182         * calls.c (try_to_integrate, expand_call): Use langhook.
1183         * expr.c (expand_expr): Use langhook.
1184         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1185         * langhooks.h (struct lang_hooks): New hook.
1186         * stmt.c (expand_asm_operands): Use langhook.
1187         * tree.h (mark_addressable): Remove.
1188 objc:
1189         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1190
1191 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1192
1193         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1194         in previous change.
1195
1196 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1197
1198         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1199         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1200
1201 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1202
1203         * c-common.c (unsigned_conversion_warning, convert_and_check,
1204         unsigned_type, signed_type, shorten_compare,
1205         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1206         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1207         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1208         New.
1209         * c-decl.c (grokdeclarator): Update.
1210         * c-format.c (check_format_types): Update.
1211         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1212         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1213         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1214         * convert.c (convert_to_integer): Use new hooks.
1215         * expmed.c (make_tree): Use new hooks.
1216         * expr.c (store_expr): Use new hooks.
1217         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1218         all_ones_mask_p, unextend, fold): Use new hooks.
1219         * langhooks.h (struct lang_hooks_for_types): New hooks.
1220         * tree.h (signed_or_unsigned_type, signed_type,
1221         unsigned_type): Remove.
1222 objc:
1223         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1224         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1225
1226 2002-03-31  Richard Henderson  <rth@redhat.com>
1227
1228         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1229         (desc_frgr_mem): Fix reference to f16-f31.
1230
1231 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1232
1233         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1234         RTVEC_ELT): Const-ify.
1235         * varray.h (VARRAY_CHECK): Const-ify.
1236         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1237         ggc_mark_rtvec, ggc_mark): Const-ify.
1238
1239 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1240
1241         * diagnostic.c: Include langhooks-def.h.
1242         * Makefile.in (diagnostic.o): Update.
1243
1244 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1245
1246         * c-common.c (c_unsafe_for_reeval): Rename.
1247         * c-common.h (c_unsafe_for_reeval): Rename.
1248         * c-decl.c (finish_incomplete_decl): Rename.
1249         (c_init_decl_processing): Don't set langhook.
1250         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1251         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1252         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1253         * c-tree.h (finish_incomplete_decl): Rename.
1254         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1255         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1256         (LANG_HOOKS_INITIALIZER): Update.
1257         * langhooks.c (lhd_unsafe_For_reeval): New.
1258         * langhooks.h (struct langhooks): New hooks.
1259         * toplev.c (incomplete_decl_finalize_hook): Remove.
1260         (wrapup_global_declarations): Update.
1261         * tree.c (lang_unsafe_for_reeval): Remove.
1262         (unsafe_for_reeval): Update.
1263         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1264         Remove.
1265 objc:
1266         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1267         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1268
1269 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1270
1271         * diagnostic.c (print_error_function): Remove.
1272         (default_print_error_function): Rename.
1273         (report_error_function): Update.
1274         * diagnostic.h (print_error_function): Remove.
1275         (default_print_error_function): Remove.
1276         * langhooks-def.h (struct diagnostic_context): Predeclare.
1277         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1278         (LANG_HOOKS_INITIALIZER): Update.
1279         * langhooks.h (struct diagnostic context): Predeclare.
1280         (struct lang_hooks): New hook.
1281
1282 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1283
1284         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1285         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1286         !flag_pic.
1287         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1288         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1289         of PIC_OFFSET_TABLE_REGNUM thruout.
1290         * config/rs6000/rs6000.md: Likewise.
1291         * config/rs6000/darwin.h: Likewise.
1292
1293 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1294
1295         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1296         unsigned HOST_WIDE_INT, not unsigned int.
1297
1298 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1299
1300         PR middle-end/6096, middle-end/6098, middle-end/6099
1301         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1302         CODE_LABELs.
1303         (fill_slots_from_thread): Likewise.
1304
1305 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1306
1307         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1308         floating fields in float regs.
1309         (function_arg_record_value_2): Likewise.
1310
1311 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1312
1313         * config/mmix/mmix.md (define_constants): Remove misleading
1314         FIXME.  Add MMIX_fp_rO_OFFSET.
1315         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1316         saved rO as part of the pattern.  Remove FIXME.
1317         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1318         here, at output-time.
1319
1320 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1321
1322         PR middle-end/6100
1323         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1324         REG_BR_PRED.
1325         (output_v9branch): Likewise.
1326
1327 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1328
1329         * gcc.c: Revert previous patch for now.
1330         * config/i386/djgpp.h: Likewise.
1331
1332 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1333
1334         * config/mmix/crti.asm (_init): Register _fini with atexit.
1335         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1336
1337 2002-03-31  Richard Henderson  <rth@redhat.com>
1338
1339         PR target/3997
1340         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1341         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1342
1343 2002-03-31  Richard Henderson  <rth@redhat.com>
1344
1345         * libgcc2.c (__bb_exit_func): Make static.
1346
1347         * config/alpha/alpha.md (trap): New.
1348
1349 2002-03-31  Richard Henderson  <rth@redhat.com>
1350
1351         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1352         promoted argument types; build trap.
1353         (expand_builtin_trap): New.
1354         (expand_builtin): Use it.
1355         * stmt.c (expand_nl_goto_receivers): Likewise.
1356         * expr.h (expand_builtin_trap): Declare.
1357         * libfuncs.h (LTI_abort, abort_libfunc): New.
1358         * optabs.c (init_optabs): Init abort_libfunc.
1359
1360 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1361
1362         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1363         (LINK_COMMAND_SPEC): ... from here.
1364         (init_gcc_specs): Duplicate it here too, omitting
1365         shared_name in the second copy.
1366         (init_spec): Test for duplicate
1367         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1368
1369 2002-03-30  David S. Miller  <davem@redhat.com>
1370
1371         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1372         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1373
1374 2002-03-30  Roger Sayle <roger@eyesopen.com>
1375             Richard Henderson  <rth@redhat.com>
1376
1377         * regmove.c (combine_stack_adjustments_for_block): Avoid
1378         emitting a stack adjustment of zero bytes.  Let delete_insn
1379         update bb->head.
1380
1381 2002-03-30  Richard Henderson  <rth@redhat.com>
1382
1383         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1384         (sparc_emitting_epilogue): New.
1385         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1386         * config/sparc/sparc-protos.h: Update.
1387         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1388         (TARGET_SWITCHES): Update.
1389         * config/sparc/sparc.md (return): Remove.
1390         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1391         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1392         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1393         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1394         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1395         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1396         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1397         Remove MASK_EPILOGUE.
1398         * doc/invoke.texi: Update.
1399
1400 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1401
1402         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1403         CPP will start the file for us.
1404
1405 2002-03-30  Richard Henderson  <rth@redhat.com>
1406
1407         PR target/5446
1408         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1409         prologue_allocate_stack.
1410         (ia64_single_set): Use insn codes for recognition of special
1411         cases, not rtl matching.
1412         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1413
1414 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1415
1416         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1417
1418 2002-03-30  Richard Henderson  <rth@redhat.com>
1419
1420         PR target/6032
1421         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1422         or -fomit-frame-pointer with profiling.
1423         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1424         (FUNCTION_PROFILER): Do nothing.
1425         (PROFILE_HOOK): New.
1426         * config/sparc/sparc.c (sparc_override_options): Don't check
1427         code models for profiling.
1428         (sparc_function_profiler): Remove.
1429         (sparc_profile_hook): New.
1430         * config/sparc/sparc-protos.h: Update.
1431
1432 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1433
1434         PR optimization/6086
1435         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1436         of SUBREG of volatile MEM or because the MEM was mode dependent,
1437         return CLOBBER instead of unmodified SUBREG.
1438
1439 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1440
1441         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1442         when not optimizing.
1443
1444         * toplev.c (rest_of_compilation): Cann mark_constant_function
1445         only when optimizing.
1446
1447         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1448         are NULL.
1449
1450         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1451         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1452         (try_optimize_cfg): clear all AUX fields.
1453
1454         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1455         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1456         (ix86_address_cost): Be prepared for SUBREGed registers.
1457         (legitimate_address_p): Accept SUBREGed registers.
1458
1459 2002-03-29  Richard Henderson  <rth@redhat.com>
1460
1461         PR target/5672
1462         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1463
1464 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1465
1466         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1467         for aggregate and TFmode types.
1468
1469 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1470
1471         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1472
1473 2002-03-29  Richard Henderson  <rth@redhat.com>
1474
1475         PR target/5886
1476         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1477         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1478
1479 2002-03-29  Richard Henderson  <rth@redhat.com>
1480
1481         PR target/6041
1482         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1483         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1484         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1485         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1486         conditional.
1487         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1488
1489 2002-03-29  Dale Johannesen <dalej@apple.com>
1490
1491         * loop.c (combine_movables): Do allow combination of pseudos.
1492
1493 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1494
1495         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1496         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1497         No functional change except ...
1498         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1499         * doc/install.texi (*-*-freebsd*): Document port configuration.
1500
1501 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1502
1503         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1504         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1505         Use new hooks.
1506         * builtin-types.def (BT_PTRMODE): Update.
1507         * c-common.c (type_for_size): Rename c_common_type_for_size.
1508         (type_for_mode): Similarly.
1509         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1510         Use new hook.
1511         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1512         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1513         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1514         Redefine.
1515         * c-typeck.c (common_type, comptypes, default_conversion):
1516         Use new hooks.
1517         * calls.c: Include langhooks.h.
1518         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1519         calls.
1520         * convert.c: Include langhooks.h
1521         (convert_to_pointer, convert_to_integer): Use new hooks.
1522         * except.c (init_eh): Similarly.
1523         * expmed.c: Include langhooks.h.
1524         (expand_mult_add): Use new hooks.
1525         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1526         try_casesi): Similarly.
1527         * fold-const.c (optimize_bit_field_compare, make_range,
1528         decode_field_reference, fold_truthop, fold): Similarly.
1529         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1530         put_var_into_stack): Similarly.
1531         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1532         LANG_HOOKS_TYPE_FOR_SIZE): New.
1533         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1534         * langhooks.h (lang_hooks_for_types): New hooks.
1535         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1536         * tree.c (get_unwidened, get_narrower): Similarly.
1537         * tree.h (type_for_mode, type_for_size): Remove.
1538         * varasm.c (force_const_mem): Use new hooks.
1539         * utils2.c (nonbinary_modular_operation): Update.
1540 objc:
1541         * objc-act.c (handle_impent): Update.
1542         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1543         Redefine.
1544
1545 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1546
1547         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1548         * config/ia64/ia64.c (basereg_operand): New.
1549         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1550         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1551
1552 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1553
1554         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1555         unwind information when frame_pointer_needed.
1556         (mmix_assemble_integer): Tweak wording in comment.
1557
1558 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1559
1560         * Makefile.in (except.o): Update.
1561         * except.c: Include langhooks.h.
1562         (init_eh): Use langhook.
1563         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1564         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1565         (LANG_HOOKS_INITIALIZER): Update.
1566         * langhooks.h (lang_hooks_for_types): New.
1567         (struct lang_hooks): Add it.
1568         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1569         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1570 config:
1571         * alpha/alpha.c: Include langhooks.h.
1572         (alpha_build_va_list): Use langhook.
1573         * d30v/d30v.c: Include langhooks.h.
1574         (d30v_build_va_list): Use langhook.
1575         * i386/i386.c: Include langhooks.h.
1576         (ix86_build_va_list): Use langhook.
1577         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1578         * s390/s390.c: Include langhooks.h.
1579         (s390_build_va_list): Use langhook.
1580         * stormy16/stormy16.c: Include langhooks.h.
1581         (stormy16_build_va_list): Use langhook.
1582
1583 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1584
1585         PR c++/5964
1586         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1587         attributes.
1588         (length): Compute variable length for branches/calls/jumps here.
1589         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1590         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1591         define branch_type attribute.
1592         (divsi3_sp32): Maximum length is 6 not 7.
1593         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1594         call_address_untyped_struct_value_sp32,
1595         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1596         * config/sparc/sparc.c (empty_delay_slot): New function.
1597         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1598         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1599
1600 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1601
1602         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1603         nonzero_bits if not needed.
1604         (nonzero_bits) [XOR]: Likewise.
1605         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1606         reg_last_set_mode and mode are both MODE_INT, but not equal.
1607         (record_value_for_reg): Compute reg_last_set_nonzero_bits
1608         in nonzero_bits_mode for MODE_INT modes.
1609
1610 2002-03-28  Richard Henderson  <rth@redhat.com>
1611
1612         PR target/5715
1613         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1614         to GAS.  Correct drift between alternatives.
1615
1616 2002-03-28  Richard Henderson  <rth@redhat.com>
1617
1618         PR target/6087
1619         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1620
1621 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
1622
1623         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1624         emulation to the linker.
1625
1626 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
1627
1628         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1629         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1630
1631 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
1632
1633         * combine.c (simplify_and_const_int): Make sure to apply mask
1634         when force_to_mode returns a constant integer.  PR3311.
1635
1636 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1637
1638         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1639
1640 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1641
1642         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1643         and Objective-C Dialect Options.
1644
1645 2002-03-28  Richard Henderson  <rth@redhat.com>
1646
1647         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1648         comparison should be done vs !=0 not >0 return code.  Tidy cases.
1649
1650 2002-03-28  Richard Henderson  <rth@redhat.com>
1651
1652         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
1653         on to c_expand_body.
1654         * c-tree.h (finish_function): Update decl.
1655         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1656
1657 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1658
1659         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1660
1661 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
1662
1663         * rtlanal.c: Include flags.h
1664         (may_trap_p): Do not mark FP operations if trapping
1665         if !flag_trapping_math
1666         * Makefile.in (rtlanal.o): Add dependency on flag.h
1667         * ifcvt.c (noce_operand_ok): Avoid the lameness.
1668
1669 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
1670
1671         * mips.md: Use dconst1, not 1.0, as first argument of
1672         REAL_VALUE_LDEXP.  Don't use union real_extract.
1673
1674 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1675
1676         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1677         rather than $target.  Heed program_prefix and
1678         program_transform_name.  Search for gas in cross-compiler case too.
1679         "test -x" rather than "test -f".
1680         (gcc_cv_ld): Likewise.
1681         (gcc_cv_nm): Heed program_prefix and program_transform_name.
1682         (gcc_cv_objdump): Likewise.
1683         * configure: Regenerate.
1684
1685 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1686
1687         * Makefile.in (attribs.o): Update.
1688         * attribs.c: Include langhooks.h.
1689         (decl_attributes): Use langhook.
1690         * c-decl.c (insert_default_attributes): Rename.
1691         * c-tree.h (c_insert_default_attributes): New.
1692         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1693         (LANG_HOOKS_INITIALIZER): Update.
1694         * langhooks.h (struct lang_hooks): New hook.
1695         * tree.h (insert_default_attributes): Remove.
1696 objc:
1697         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1698
1699 2002-03-27  Andreas Schwab  <schwab@suse.de>
1700
1701         * config/i386/i386.c (classify_argument): Also check for
1702         QUAL_UNION_TYPE.
1703
1704 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1705
1706         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1707         any more.
1708
1709 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1710
1711         * i960.md (ret): Set PC.
1712         (nonlocal_goto): Fix expander.
1713         * builtins.c (epxand_builin_longjmp): Check that we've emitted
1714         some jump or call.
1715
1716 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1717
1718         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1719         of libcall regions.
1720
1721 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1722
1723         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1724         assigning to BLOCK_FOR_INSN directly.
1725
1726 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
1727
1728         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1729
1730 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1731
1732         * c-common.c (c_expand_expr): Fix prototype.
1733         * c-common.h (c_expand_expr): Always declare, update.
1734         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1735         * c-objc-common.c (c_objc_common_init): No global hook.
1736         * expr.c (expand_expr): Use langhook.
1737         * expr.h (enum expand_modifier): Conditionally declare.
1738         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1739         (LANG_HOOKS_INITIALIZER): Update.
1740         * langhooks.c (lhd_expand_expr): New.
1741         * langhooks.h (struct lang_hooks): New hook.
1742         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1743         (lang_independent_init): Don't default hook.
1744 objc:
1745         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1746
1747 2002-03-27  Richard Henderson  <rth@redhat.com>
1748
1749         PR target/6054
1750         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1751         TARGET_CONST_GP.  Simplify conditions.
1752
1753 2002-03-27  Richard Henderson  <rth@redhat.com>
1754
1755         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1756         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1757         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1758
1759 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
1760
1761         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1762         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1763         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1764         Remove unnecessary masks.
1765         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1766         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1767         -mwindows, -mdll switches and their negations.
1768
1769 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1770
1771         * gcc-common.c (lang_mark_false_label_stack): Remove.
1772         * ggc.h (lang_mark_false_label_stack): Similarly.
1773
1774 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
1775
1776         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1777
1778         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1779         or __rtems_ is defined.
1780
1781 2002-03-26  Richard Henderson  <rth@redhat.com>
1782
1783         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1784         if a non-trivial load was emitted.
1785         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
1786         in high+extra+low case.
1787
1788 2002-03-26  Richard Henderson  <rth@redhat.com>
1789
1790         * config.gcc (sparc*-solaris): Use float_format=sparc.
1791
1792 2002-03-26  Richard Henderson  <rth@redhat.com>
1793
1794         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1795         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1796         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1797         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1798         (WINT_TYPE_SIZE): Fix at 32.
1799
1800 2002-03-26  Richard Henderson  <rth@redhat.com>
1801
1802         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1803         until after eh landing pad generation.
1804         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1805         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1806
1807 2002-03-26  Richard Henderson  <rth@redhat.com>
1808
1809         * expr.h (ADD_PARM_SIZE): One more convert for INC.
1810
1811 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
1812
1813         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
1814         and warning switches.
1815         (cc1_options):  Likewise.
1816
1817 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
1818
1819         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1820         Restore more of the signal context.  Set no_reg_stack_frame.
1821         * config/ia64/unwind-ia64.c (unw_state_record):
1822         Add no_reg_stack_frame, comments.
1823         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1824         (uw_update_context): Adjust bsp when unwinding from leaf,
1825         but not signal frame.
1826
1827 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
1828
1829         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1830
1831 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
1832
1833         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1834
1835 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
1836
1837         PR target/5621
1838         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1839         "Add a pool_range attribute", which was lost during the ARM/Thumb
1840         merge.
1841
1842 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
1843
1844         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1845         a register into the MAC16 accumulator.
1846
1847 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
1848
1849         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1850         (Warning Options): Document -Wswitch-enum.
1851         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
1852         -Wswitch.
1853         (warn_switch_enum): Define variables.
1854         * flags.h (warn_switch_enum): Declare variables.
1855         * stmt.c (expand_end_case_type): When warn_switch_enum /
1856         -Wswitch-enum, perform switch checks.
1857         Fix PR c/5044.
1858
1859 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
1860
1861         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1862         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1863         (reload_muladdsi_compare0_scratch): Delete.
1864
1865 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
1866
1867         * doc/install.texi (*-*-freebsd*): Update.
1868
1869 2002-03-26  Richard Henderson  <rth@redhat.com>
1870
1871         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1872         (SUB_PARM_SIZE): Cast DEC to ssizetype.
1873
1874         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1875         types from the normal argument frame.
1876
1877         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1878         variable sized objects by reference.
1879         (sparc_va_arg): Receive them by reference too.
1880
1881 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
1882
1883         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1884         code to not restoring global registers.
1885
1886 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1887
1888         * Makefile.in (ggc-common.o): Update.
1889         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1890         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1891         * c-tree.h (c_mark_tree): New.
1892         * ggc-common.c: Include langhooks.h.
1893         (gcc_mark_trees): Use new langhook.
1894         * ggc-callbacks.c: Delete file.
1895         * ggc.h (lang_mark_tree): Remove.
1896         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1897         (LANG_HOOKS_INITIALIZER): Update.
1898         * langhooks.h (struct lang_hooks): New hook.
1899 objc:
1900         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1901
1902 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
1903
1904         * doc/cpp.texi: Exclude entire Top node from printed manual.
1905         Move option index after directive index.  Insert page breaks
1906         before GFDL and concept index.  Index environment variables
1907         with command line options.
1908         * doc/cppenv.texi: Use @vtable for environment variable list.
1909         Add paragraph explaining semantics of empty elements in path
1910         variables.  Exclude a cross-reference to Fishkill from the
1911         manpage.  Remove an unnecessary cross-reference of the entry
1912         right above the referer.  Don't use @anchor in text that goes
1913         into manpage.
1914         * doc/cppopts.texi: Cross-reference the environment variables
1915         section, not the specific environment variable, for consistency.
1916
1917 2002-03-25  Richard Henderson  <rth@redhat.com>
1918
1919         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1920         anywhere in the block.  Don't refer to insns that have been
1921         removed from the chain.  Iterate backward through the new insns.
1922         Don't refer to edges that have been removed.
1923
1924 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
1925
1926         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1927         test for overflow of constant.
1928
1929 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
1930
1931         PR target/2623
1932         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1933         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1934         these patterns on arm_archv4.
1935
1936 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
1937
1938         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1939         int".
1940
1941 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
1942
1943         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
1944         float_handled, float_handler, float_signal, set_float_handler,
1945         and do_float_handler.  Set handler for SIGFPE to crash_signal.
1946         * toplev.h: Don't prototype do_float_handler.
1947
1948         * c-lex.c: Fold parse_float into lex_number.  Make warning
1949         about portability of hex float constants more informative, and
1950         don't issue it on top of a syntax error.
1951         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1952         their callers.
1953         * real.h: Define REAL_VALUE_ABS here...
1954         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
1955         simplify_unary_real, simplify_binary_real, and
1956         simplify_binary_is2orm1 into their callers.
1957         * tree.c: Fold build_real_from_int_cst_1 into caller.
1958
1959         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1960
1961         * tsystem.h: Include float.h here...
1962         * libgcc2.c: ... not here.
1963
1964 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
1965
1966         Fixes for: PR bootstrap/3591, target/5676
1967         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1968         defined.  Do not disable exceptions or rtti.
1969         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1970         mcore.h.  Disable exceptions and rtti, since they are not
1971         supported by EPOC.
1972
1973 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1974
1975         * c-decl.c (maybe_build_cleanup): Remove.
1976         * expr.c (expand_expr): Use langhook.
1977         * langhooks-def.h (lhd_return_null_tree,
1978         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1979         (LANGHOOKS_INITIALIZER): Update.
1980         * langhooks.c (lhd_return_null_tree): New.
1981         * langhooks.h (struct lang_hooks): New hook.
1982         * tree-inline.c (initialize_inlined_parameters): Use langhook.
1983         * tree.h (maybe_build_cleanup): Remove.
1984
1985 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
1986
1987         * regrename.c (build_def_use): Move recog_memoized
1988         before extract_insn.
1989
1990 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
1991
1992         PR target/6043
1993         * expr.c (emit_group_store): Handle storing into CONCAT.
1994
1995 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
1996
1997         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1998         corresponding MATCH_DUP.
1999
2000 2002-03-24  Richard Henderson  <rth@redhat.com>
2001
2002         * unroll.c (unroll_loop): Zero label_map.
2003
2004         * gcse.c: Include except.h.
2005         * Makefile.in (gcse.o): Update.
2006
2007 2002-03-24  Richard Henderson  <rth@redhat.com>
2008
2009         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2010         Do resolve_unique_section before shared data clause.
2011
2012 2002-03-24  Richard Henderson  <rth@redhat.com>
2013
2014         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2015
2016 2002-03-24  Richard Henderson  <rth@redhat.com>
2017
2018         * recog.c (peephole2_optimize): Split blocks when EH insns are
2019         generated in the middle of a block.  Do global life update if
2020         zapped EH edges.
2021
2022 2002-03-24  Richard Henderson  <rth@redhat.com>
2023
2024         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2025
2026 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2027
2028         preprocessor/3951
2029         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2030         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2031         (init_dependency_output): Don't make no_output decision here.
2032
2033 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2034
2035         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2036         warn_switch.  Update description.
2037         (expand_end_case_type): Call check_for_full_enumeration_handling
2038         when warn_switch.
2039
2040 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2041
2042         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2043         (m68hc11_split_move): Call it to see if the source and destination
2044         operands use the same direction auto inc/dec mode, otherwise make the
2045         source an offsetable memory operand and generate an add.
2046
2047 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2048
2049         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2050         register for operand 2.
2051         ("*subsi3_zero_extendqi"): Likewise.
2052         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2053         bits so that it is compatible with a pop.
2054         ("*andhi3_gen"): Likewise.
2055         ("xorhi3"): Likewise.
2056
2057 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2058
2059         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2060         -pedantic here...
2061         (cpp_post_options): ... not here.
2062
2063 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2064             Aldy Hernandez  <aldyh@redhat.com>
2065
2066         Removal of separate preprocessor cpp0.
2067
2068         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2069         cpp0, install-common): Update.
2070         * c-common.c (flag_preprocess_only): New.
2071         (c_common_init): Preprocess for -E.
2072         * c-common.h (flag_preprocess_only): New.
2073         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2074         * c-objc-common.c (c_init_decl_processing): Exit quickly
2075         for NULL return from c_common_init.
2076         * cpplib.h (cpp_preprocess_file): New.
2077         * cppmain.c (main, general_init, pfile, progname): Remove.
2078         (do_preprocessing): Rename cpp_preprocess_file, don't call
2079         cpp_finish.  Don't close stdout here.
2080         (setup_callbacks): Update prototype.
2081         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2082         Update.
2083         * tradcpp.c (main): Ignore -quiet.
2084 objc:
2085         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2086
2087 2002-03-24  Richard Henderson  <rth@redhat.com>
2088
2089         PR optimization/5742
2090         * machmode.def: Add inner mode field to complex modes.
2091         * config/mips/mips.c (mips_function_value): Always define.  Add
2092         new argument to handle libcalls.
2093         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2094         (FUNCTION_VALUE): Likewise.
2095         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2096         * config/mips/mips-protos.h: Update.
2097
2098 2002-03-23  Richard Henderson  <rth@redhat.com>
2099
2100         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2101         * config/sparc/sparc-protos.h: Update.
2102         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2103
2104 2002-03-23  Richard Henderson  <rth@redhat.com>
2105
2106         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2107         _start or _init begins the text segment.
2108
2109 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2110
2111         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2112         not HOST_WIDEST_INT.
2113         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2114
2115 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2116
2117         PR java/5489
2118         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2119         operand argument to output_return_instruction.
2120         * arm.c (arm_print_operand, case 'd'): If the operand is
2121         const_true_rtx then just return.
2122         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2123         then abort.
2124
2125 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2126
2127         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2128         (Warning Options): Document -Wswitch-default.
2129         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2130         -Wswitch.
2131         (warn_switch_default): Define variable.
2132         (warn_switch): Update comment.
2133         * flags.h (warn_switch_default): Declare variable.
2134         (warn_switch): Update comment.
2135         * stmt.c (expand_end_case): Check for and, when
2136         warn_switch_no_default, warn of a missing default case.
2137
2138 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2139
2140         * real.h (N): Special case 128 bit doubles.
2141
2142         * combine.c (simplify_comparison): When widening modes, ignore
2143         sign extension on CONST_INTs.
2144
2145 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2146
2147         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2148         passed to adjust_address.  Fix comment formatting.
2149
2150
2151 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2152
2153         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2154         Always make REAL_VALUE_TYPE a struct containing an array of
2155         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2156         big it is.  Don't declare or use union real_extract.
2157
2158         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2159         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2160         (print_operand), config/arm/arm.c (output_move_double),
2161         config/arm/arm.md (consttable_4, consttable_8),
2162         config/romp/romp.c (output_fpops), config/s390/s390.h
2163         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2164         (xtensa_output_literal): Don't use union real_extract.
2165
2166         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2167         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2168         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2169         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2170         (PRINT_OPERAND): Don't use local version of union
2171         real_extract.
2172
2173         * config/convex/convex.c (check_float_value), config/vax/vax.c
2174         (vax_float_literal), config/m88k/m88k.md (divdf3),
2175         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2176         config/pdp11/pdp11.c (output_move_quad): Don't do host
2177         arithmetic on target floating point quantities.
2178
2179         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2180         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2181
2182         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2183         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2184
2185         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2186         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2187         INFINITY.
2188         * print-rtl.c (print_rtx): Disable code which needs
2189         floating-point emulator.
2190         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2191         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2192         depending on HOST_FLOAT_FORMAT to be defined properly.
2193
2194         * config/1750a/1750a.c (get_double, float_label): Delete.
2195         (print_operand): Delete huge commented-out chunk.  Use
2196         REAL_VALUE_TO_DECIMAL.
2197         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2198         functions.
2199         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2200         IEEE_FLOAT_FORMAT.
2201         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2202         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2203         * config/m88k/m88k.c (real_power_of_2_operand,
2204         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2205         real_extract out of the union; run the input through
2206         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2207         from that into the union.
2208         * config/pdp11/pdp11.c (output_move_double): Rearrange
2209         parentheses to make automatic indenter happy.
2210
2211         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2212         Point" and rewrite to describe current situation.  Also adjust
2213         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2214         match code.
2215         * doc/rtl.texi: Adjust cross reference.
2216
2217 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2218
2219         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2220         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2221         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2222         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2223         prevent use of sp as a reload register.
2224         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2225         non_acc_reg_operand.
2226         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2227         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2228         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2229         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2230
2231 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2232
2233         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2234         * cpplex.c (unterminated): Delete.
2235         (parse_string): No string literal may extend over multiple
2236         lines.  Suppress the error when preprocessing assembly.
2237         * cppmain.c (scan_translation_unit): Strings are single-line.
2238
2239         * doc/cpp.texi: Update to match.
2240
2241 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2242
2243         PR optimization/5854
2244         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2245         Shut up warnings.
2246         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2247         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2248         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2249         const0 if scratch register was not allocated.
2250         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2251         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2252         with GEN_INT (...).
2253         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2254         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2255         with GEN_INT (...) everywhere.  Remove constraints in define_split
2256         patterns.
2257         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2258         require scratch register for setting 0 into regs/non-pushable memory.
2259
2260 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2261
2262         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2263         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2264
2265 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2266
2267         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2268         * cppinit.c (cpp_create_reader):  On by default.
2269         (cpp_handle_option):  Handle -W[no-]endif-labels.
2270         (cpp_post_options):  Also enable if -pedantic.
2271         * cpplib.c (do_else):  Use it.
2272         (do_endif):  Likewise.
2273         * doc/cppopts.texi:  Document new option.
2274         * doc/invoke.texi:  Document new option.
2275
2276 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2277
2278         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2279         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2280
2281 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2282
2283         * flow.c (calculate_global_regs_live): Clear aux fields of
2284         ENTRY and EXIT.
2285
2286 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2287
2288         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2289         REG or MEM subregs, pass rtx * instead of rtx to it.
2290         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2291         rtx * instead of rtx to alter_subreg.
2292         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2293         * config/pj/pj.c (pj_output_rval): Likewise.
2294
2295 2002-03-22  Richard Henderson  <rth@redhat.com>
2296
2297         PR target/3177
2298         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2299         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2300         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2301         (ia64_expand_prologue): Look at int_regs, not words, for number
2302         of incomming int regs.
2303
2304 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2305
2306         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2307
2308 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2309
2310         * toplev.c (flag_loop_optimize, flag_crossjumping):
2311         New static variables.
2312         (rest_of_compilation): Conditionalize crossjumping and
2313         loop optimizer.
2314         (parse_options_and_default_flags): Default loop_optimize and
2315         crossjumping.
2316         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2317         * invoke.texi (crossjumping, loop-optimize): Document.
2318
2319 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2320
2321         * real.c (eiisneg): Move outside #ifdef NANS.
2322
2323 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2324
2325         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2326         frequencies match; avoid match on different loop depths.
2327         (try_crossjump_to_bb): Kill tests that no longer brings time
2328         savings.
2329         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2330         updating code.
2331         (split_edge): Likewise.
2332
2333         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2334         variable.
2335
2336         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2337         * cfgrtl.c: Include insn-config.h
2338         (split_block) Dirtify block in presence of conditional execution
2339
2340 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2341
2342         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2343         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2344         (function_arg): Constify CUMULATIVE_ARGS.
2345         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2346         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2347         (UNITS_PER_DOUBLE): New macro.
2348         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2349         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2350         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2351         fp_regs and stack_words.
2352         (EABI_FLOAT_VARARGS_P): New macro.
2353         * config/mips/mips.c (struct mips_arg_info): New.
2354         (mips_arg_info): New function.
2355         (function_arg_advance): Use it.  Add adjustment instructions here
2356         rather than in function_arg.
2357         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2358         for VOIDmode at the beginning of the function.
2359         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2360         (function_arg_pass_by_reference): Likewise.
2361         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2362         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2363         (mips_va_start): Likewise.  Use the new stack_words field of
2364         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2365         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2366         doubles and other types, aligning the overflow pointer for non-doubles
2367         too.  Remove some code duplication.  Replace hard-coded constants.
2368
2369 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2370
2371         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2372         (CLASS_UNITS): Undefine.
2373         (CLASS_MAX_NREGS): Use FP_INC.
2374         * config/mips/mips.c (compute_frame_size): Likewise.
2375         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2376
2377 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2378
2379         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2380         prototype, and handle lexing numbers and identifiers.
2381         (parse_identifier): Update to new form of parse_slow.
2382         (parse_number): Fast path only, use parse_slow otherwise.
2383         (_cpp_lex_direct): Update calls to parse_number.
2384
2385 2002-03-21  DJ Delorie  <dj@redhat.com>
2386
2387         * bb-reorder.c (make_reorder_chain_1): Protect against
2388         when redundant edges are omitted.
2389         * predict.c (dump_prediction): Likewise.
2390
2391 2002-03-21  Richard Henderson  <rth@redhat.com>
2392
2393         PR target/5996
2394         * fixinc/inclhack.def (solaris_stdio_tag): New.
2395         * fixinc/fixincl.x: Regenerate.
2396
2397 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2398
2399         PR c/5597
2400         * c-typeck.c (process_init_element): Flag non-static
2401         initialization of a flexible array member as illegal.
2402
2403 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2404
2405         * config/rs6000/t-linux64: New.
2406         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2407         t-ppccomm.  Use t-rs6000 and t-linux64.
2408         (powerpc64-*-gnu* <tmake_file>): Likewise.
2409         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2410         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2411         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2412
2413 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2414
2415         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2416         flag_really_no_inline instead of optimize == 0.
2417
2418         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2419
2420         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2421
2422         * flags.h (flag_really_no_inline): New.
2423
2424         * c-common.c (c_common_post_options): Initialize
2425         flag_really_no_inline.
2426
2427         * toplev.c (flag_really_no_inline): New.
2428
2429 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2430
2431         * config/avr/avr.md (length): Fix length computation for
2432         conditional branches.
2433
2434 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2435
2436         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2437         sdbout.o, profile.o): Update.
2438         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2439         langhook.
2440         * c-common.h (gettags): Move here from tree.h.
2441         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2442         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2443         * dbxout.c (dbxout_init): Use getdecls langhook.
2444         * expr.c (expand_expr): Use insert_block langhook.
2445         * fold-const.c: Include langhooks.h.
2446         (fold_range_test, fold_binary_op_with_conditional_arg,
2447         fold): Use global_bindings_p langhook.
2448         * integrate.c (expand_inline_function): Use insert_block langhook.
2449         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2450         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2451         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2452         LANG_HOOKS_GETDECLS): New.
2453         (LANG_HOOKS_INITIALIZER): Update.
2454         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2455         langhook.
2456         * langhooks.h (struct lang_hooks_for_decls): New.
2457         (struct lang_hooks): Update.
2458         * profile.c: Include langhooks.h.
2459         (output_func_start_profiler): Use new langhooks.
2460         * sdbout.c: Include langhooks.h.
2461         (sdbout_init, sdbout_finish): Use getdecls langhook.
2462         * stmt.c: Include langhooks.h.
2463         (expand_fixup, fixup_gotos): Use new langhooks.
2464         * stor-layout.c: Include langhooks.h.
2465         (variable_size): Use global_bindings_p langhook.
2466         * toplev.c (compile_file): Use getdecls langhook.
2467         * tree-inline.c (remap_block): Use insert_block langhook.
2468         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2469         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2470
2471 2002-03-21  Richard Henderson  <rth@redhat.com>
2472
2473         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2474         constants in .data when -fpic.
2475
2476 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2477
2478         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2479         where appropriate.
2480
2481 2002-03-21  Tom Tromey  <tromey@redhat.com>
2482
2483         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2484
2485 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2486
2487         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2488
2489         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2490
2491 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2492             Richard Henderson  <rth@redhat.com>
2493
2494         PR c/5354
2495         * c-common.c (c_expand_expr): Preserve result of a statement
2496         expression if needed.
2497
2498 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2499
2500         PR bootstrap/4195
2501         * genrecog.c (maybe_both_true_mode): Remove.
2502         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2503         * machmode.def (Pmode): Likewise.
2504
2505 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2506
2507         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2508         (nonlocal_mentioned_p_1): New function.
2509         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2510         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2511         (mark_constant_function): Recognize pure functions.
2512         * rtl.h (global_reg_mentioned_p): New prototype.
2513         * rtlanal.c (global_reg_mentioned_p,
2514         global_reg_mentioned_p_1): New function.
2515
2516 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2517
2518         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2519         UNIX assert.h.
2520         * fixinc/fixincl.x: Regenerate.
2521
2522 2002-03-20  Jason Merrill  <jason@redhat.com>
2523
2524         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2525
2526 2002-03-20  Michael Meissner  <meissner@redhat.com>
2527
2528         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2529         -fstrict-aliasing.
2530
2531 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2532
2533         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2534         ".literal_position" directive before the constant pool.
2535
2536 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2537
2538         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2539         Add Craig Rodrigues.
2540         Add Brad Lucier to testers.
2541
2542 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2543
2544         PR target/4792
2545         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2546         to if_then_else.
2547         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2548         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2549         instead of insn_extract.
2550
2551 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2552
2553         PR bootstrap/4192
2554         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2555
2556         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2557         stmt if some case has been output.
2558
2559 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2560
2561         PR c/5972
2562         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2563         movsfcc_1, movdfcc_1): Add %O2.
2564         * config/i386/i386.c (print_operand): Handle %ON.
2565         Print . before float condition codes in Sun as cmov syntax.
2566         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2567         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2568         no longer true.
2569
2570 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2571
2572         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2573         return instruction if PC was popped.
2574
2575 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2576
2577         * config/xtensa/xtensa.md: Remove unused type attributes.
2578         (adddi_carry, subddi_carry): Change type attribute to "multi".
2579
2580 2002-03-19  Dale Johannesen  <dalej@apple.com>
2581
2582         PR optimization/5999, middle-end/5731
2583         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2584         multiplications by reciprocals.
2585
2586 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2587
2588         * Makefile.in: Update.
2589         * c-common.c: Include langhooks.h.
2590         (inline_forbidden_p): Use new hook.
2591         * diagnostic.c: Include langhooks.h.
2592         (format_with_decl, announce_function,
2593         default_print_error_function): Use new hook.
2594         * dwarf2out.c (dwarf2_name): Use new hook.
2595         * function.c: Include langhooks.h.
2596         (init_function_start): Use new hook.
2597         * langhooks-def.h (lhd_decl_printable_name): New.
2598         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2599         (LANGHOOKS_INITIALIZER): Update.
2600         * langhooks.c (lhd_decl_printable_name): New.
2601         * langhooks.h (struct lang_hooks): New hook.
2602         * toplev.c (decl_name, decl_printable_name): Remove.
2603         (open_dump_file): Use new hook.
2604         (process_options): Remove old hook.
2605         * tree.h (decl_printable_name): Remove.
2606 objc:
2607         * objc-act.c (objc_init): Remove old hook.
2608         (objc_printable_name): Export.
2609         * objc-act.h (objc_printable_name): New.
2610         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2611
2612 2002-03-19  Jim Blandy  <jimb@redhat.com>
2613
2614         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2615         the start_source_file debug hook, not the current line number.
2616
2617 2002-03-19  Richard Henderson  <rth@redhat.com>
2618
2619         * flow.c (EH_USES): Provide default.
2620         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2621         * doc/tm.texi (EH_USES): New.
2622
2623         * config/ia64/ia64.c (ia64_eh_uses): New.
2624         * config/ia64/ia64-protos.h: Update.
2625         * config/ia64/ia64.h (EH_USES): New.
2626
2627 2002-03-19  Richard Henderson  <rth@redhat.com>
2628
2629         * varasm.c (output_constant_def): Fix stupid typo.
2630
2631 2002-03-19  Richard Henderson  <rth@redhat.com>
2632
2633         PR 5879
2634         * except.c (current_function_has_exception_handlers): New.
2635         * except.h: Declare it.
2636         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2637         Combine tests that disable all sibcalls for the function.
2638
2639 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
2640
2641         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2642         for INTEGER_CST.
2643
2644 2002-03-19  Richard Henderson  <rth@redhat.com>
2645
2646         PR 5977, 5991
2647         * config/ia64/ia64.c: Revert 2002-03-01 patch.
2648         * config/ia64/ia64.h (INIT_EXPANDERS): New.
2649
2650 2002-03-19  Jim Blandy  <jimb@redhat.com>
2651
2652         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2653         name, even if the replacement list contains no tokens, as required
2654         by Dwarf.
2655
2656 2002-03-19  Jason Merrill  <jason@redhat.com>
2657
2658         * varasm.c (globalize_decl): Get the name from the RTL, not
2659         DECL_ASSEMBLER_NAME.
2660
2661         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2662
2663 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
2664
2665         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2666         subdi_carry): Define.
2667
2668 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2669
2670         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2671         about -fpic/-fPIC if extra_warnings set.
2672
2673 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2674
2675         * expr.c (expand_expr): Sign-extend CONST_INT generated from
2676         TREE_STRING_POINTER.
2677         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2678
2679 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2680
2681         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2682         in favor of SP if FRAME_POINTER_REQUIRED is false.
2683
2684 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
2685
2686         * emit-rtl.c (gen_int_mode): New function.
2687         * rtl.h: Prototype for it.
2688         * combine.c (make_extraction, simplify_comparison), expmed.c
2689         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2690         (convert_modes, store_field), optabs.c (expand_fix),
2691         simplify-rtx.c (neg_const_int, simplify_unary_real),
2692
2693         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2694         Use it instead of GEN_INT (trunc_int_for_mode (...)).
2695
2696 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
2697
2698         PR c/5656
2699         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2700         convert_parm_for_inlining.
2701         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2702         Define.
2703         * langhooks-def.h: Likewise.
2704         * objc/objc-lang.c: Likewise.
2705         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2706         function.
2707         * tree-inline.c (initialize_inlined_parameters):
2708         Call convert_parm_for_inlining lang hook if needed.
2709         * c-typeck.c (c_convert_parm_for_inlining): New function.
2710         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2711
2712 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
2713
2714         * calls.c (precompute_arguments): Do not assume that temporaries
2715         can be destroyed after expanding the argument.
2716         (expand_call): Likewise.
2717
2718 2002-03-15  Eric Christopher  <echristo@redhat.com>
2719
2720         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2721         Fix register preference on last change.
2722         * config/mips/mips.c (mips_return_in_memory): New function.
2723         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2724         * config/mips/mips-protos.h: Declare.
2725         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2726         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2727
2728 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2729
2730         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2731         a register too.
2732         (anddi3, iorsi3): Likewise.
2733
2734         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2735         use %gprel for symbols that are going to be placed in linkonce
2736         sections.
2737
2738         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2739         RETURN_ADDRESS_POINTER_REGNUM to $ra.
2740         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2741         not needed.  Disregard leaf_function_p().
2742         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2743         mips16 frame pointer.
2744         * config/mips/mips.md (store ra): Only to small SP offsets.
2745         2001-08-22  Graham Stott  <grahams@redhat.com>
2746         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2747         return a REG rtx for the return address register.
2748
2749 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
2750
2751         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2752         constant-pool addresses as "mode-dependent".
2753         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2754
2755 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
2756
2757         PR target/5740
2758         * expr.c (emit_group_load): Use extract_bit_field if
2759         needed for CONCAT arguments.
2760
2761 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
2762
2763         PR target/4863
2764         * arm.md (tablejump): Make this a define_expand.  For PIC add the
2765         offset to the base of the table.
2766         (thumb_tablejump): Matcher for Thumb tablejump insn.
2767         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2768         as the difference of two labels.
2769         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2770         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2771         tables in the code.
2772         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2773         * arm.c (get_jump_table_size): If the table is not in the text
2774         section, return zero.
2775
2776 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
2777
2778         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2779         of gen_rtx_SUBREG.
2780         (arm_reload_out_hi): Use gen_lowpart instead of
2781         gen_rtx_SUBREG to access QImode components.
2782         * config/arm/arm.md: Disable zero_extend split for QImode
2783         subregs in BIG_ENDIAN mode.
2784         (storehi_bigend): Match use of least significant byte.
2785         (storeinthi): Remove extraneous SUBREG.
2786         Add missing construction of operands[2].
2787         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2788         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2789         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2790
2791 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
2792
2793         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2794         any_operand.
2795
2796 2002-03-17  Richard Henderson  <rth@redhat.com>
2797
2798         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2799         explicitly.
2800
2801 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2802
2803         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2804         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2805
2806 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2807
2808         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2809
2810         * predict.c (estimate_bb_frequencies): Delete unused variables.
2811
2812 2002-03-17  Richard Henderson  <rth@redhat.com>
2813
2814         * config/ia64/ia64.c (ia64_attribute_table): Move before
2815         targetm definition.  Make static.
2816
2817 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2818
2819         * c-common.h (yyparse, c_common_parse_file): New.
2820         * c-lang.c: Include c-common.h.
2821         (LANG_HOOKS_PARSE_FILE): Redefine.
2822         * c-lex.c: Include c-common.h.
2823         (yyparse): Rename c_common_parse_file.  Call yyparse.
2824         * c-parse.in (yyparse): Remove macro.
2825         * c-tree.h (yyparse_1): Remove.
2826         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2827         (LANG_HOOKS_INITIALIZER): Update.
2828         * langhooks.h (struct lang_hoooks): New hook parse_file.
2829         * toplev.c (compile_file): Use parse_file hook.
2830         * tree.h (yyparse): Remove.
2831         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2832
2833 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2834
2835         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2836         float_truncate, not fix.
2837         ("*truncdfsf2_real"): Ditto.
2838         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2839
2840         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2841
2842 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
2843
2844         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2845         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
2846         where appropriate.  Make the second reference to
2847         leaf_function_p a function call, as intended.  Reindented.
2848
2849         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2850         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2851
2852         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2853         add register to non-constant into sp.
2854
2855         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2856         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2857         (mips16_gp_pseudo_rtx): Lose.
2858         (INIT_EXPANDERS): Deleted.
2859         * config/mips/mips.c (mips_init_machine_status): New.
2860         (mips_free_machine_status): New.
2861         (mips_mark_machine_status): New.
2862         (override_options): Set them.
2863         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2864         (struct machine_function): ... new.  Replaced all references.
2865         (mips_add_gc_roots): Don't mark them.
2866         (embedded_pic_fnaddr_reg): New, extracted from...
2867         (embedded_pic_offset): ... here.
2868         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2869         (movsi): Likewise.
2870
2871 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2872
2873         * cppinit.c: Revert -MD removal.
2874
2875 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2876
2877         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2878         soft registers by default for 68HC12.
2879         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2880         when compiling with -fomit-frame-pointer.
2881         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2882         (expand_epilogue): Likewise.
2883         (m68hc11_gen_rotate): Use exg when rotating by 8.
2884
2885 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2886
2887         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2888         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2889         (splits): Remove unused add splits.
2890         ("*addhi3_68hc12"): Tune constraints.
2891         ("addhi_sp"): Try to use X instead of Y in all cases and if the
2892         constant fits in 8-bits and D is dead use abx/aby instructions.
2893         ("*addhi3"): Remove extern declaration of ix_reg.
2894         ("*subsi3"): Optimize and provide new split.
2895         ("subhi3"): Cleanup.
2896         ("*subhi3_sp"): Avoid saving X if we know it is dead.
2897         (arith splits): For 68hc12 save the address register on the stack
2898         and do the arithmetic operation with a pop.
2899
2900 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2901
2902         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2903         allocating QImode in address registers.
2904         ("*movqi_m68hc11"): Likewise.
2905
2906 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
2907
2908         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2909
2910 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2911
2912         * cppinit.c (print_help): Display -MD and -MMD.
2913         Don't display usage string.  Update assertion syntax and
2914         typo.
2915         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2916         (cpp_handle_option): Update.
2917
2918 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
2919
2920         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2921         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2922         and define it so that regardless of target CPU size,
2923         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2924         of "int" rather than "long."
2925
2926 2002-03-15  Richard Henderson  <rth@redhat.com>
2927
2928         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2929         size as a tree.
2930
2931 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2932
2933         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2934         ("tstqi" split): Avoid using memory for tstqi on address register.
2935         (splits): Remove constraints.
2936         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2937         ("cmpdf", "cmpsf"): Remove since not used.
2938         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2939         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2940
2941 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2942
2943         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2944         ("neghi2"): Tighten constraints.
2945         ("one_cmplsi2"): Optimize and simplify split.
2946         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2947
2948 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2949
2950         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2951         and split of AND operation to clear the upper bits.
2952         ("*logicalsi3_zextqi"): Likewise.
2953         ("*logicallhi3_zexthi_ashift8"): Likewise.
2954         ("*logicalsi3_silshr16"): Likewise.
2955         ("logicalsi3_silshl16"): Likewise.
2956         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2957
2958 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2959
2960         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2961         (m68hc11_indirect_p): New function.
2962         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2963         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2964         TARGET_M6812.
2965         (asm_print_register): Likewise.
2966         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2967         (m68hc11_indirect_p): Declare.
2968         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2969         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2970         (TARGET_SWITCHES): New option -mrelax.
2971         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2972         destination.
2973         ("iorsi3", "xorsi3"): Likewise.
2974         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2975         ("*andhi3_mem"): New to handle destination in memory with bclr
2976         and a scratch register.
2977         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2978         ("*andhi3_const"): New when operand2 is constant.
2979         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2980         ("*andhi3_gen"): Cleanup of the old "andhi3".
2981         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2982         ("xorqi3"): Update constraints.
2983
2984 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2985
2986         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2987         for reg_equiv_memory_loc when the operand is a register that does
2988         not get a hard register (stack location).
2989         (tst_operand): After reload, accept all memory operand.
2990         (symbolic_memory_operand): Fix detection of symbolic references.
2991         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2992         accept symbols and any constant.
2993
2994 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2995
2996         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2997         note on the insn that sets the soft frame register.
2998         (must_parenthesize): ix and iy are also reserved names.
2999         (print_operand_address): One more place where parenthesis are required
3000         to avoid confusion with register names.
3001         (m68hc11_gen_movhi): Allow push of stack pointer.
3002         (m68hc11_check_z_replacement): Fix handling of parallel with a
3003         clobber.
3004         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3005         the replacement register is.
3006         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3007         and D8_REGS classes.
3008         (MODES_TIEABLE_P): All modes are tieable except QImode.
3009
3010 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3011
3012         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3013         (___subdi3): Likewise.
3014         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3015         (__map_data_section): Optimize 68hc11 case.
3016
3017 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3018
3019         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3020         than a shift to avoid adding a register with itself.
3021         (m68hc11_memory_move_cost): Take into account NO_REGS.
3022         (m68hc11_register_move_cost): Update and use memory move cost
3023         for soft registers.
3024         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3025         it gives more opportunities to cse to optimize.
3026         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3027         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3028
3029 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3030
3031         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3032         * c-common.def (CLEANUP_STMT): New tree node.
3033         * c-common.h (CLEANUP_DECL): New macro.
3034         (CLEANUP_EXPR): Likewise.
3035         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3036         * expr.c (expand_expr): Tidy.
3037         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3038         * tree-inline.c (initialize_inlined_parameters): Clean up
3039         new local variables.
3040
3041 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3042
3043         PR bootstrap/4128
3044         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3045         before movrXX only, use reg_overlap_mentioned_p.
3046         Only special case NE if just one insn can be generated.
3047
3048 2002-03-15  Jason Merrill  <jason@redhat.com>
3049
3050         * varasm.c (assemble_variable): Call resolve_unique_section before
3051         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3052         of error_mark_node.
3053
3054 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3055
3056         PR target/5170
3057         * arm.md (split pattern for thumb shiftable immediates): Add comment
3058         explaining non-obvious test.
3059
3060 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3061
3062         PR target/5712
3063         * arm.md (movaddr, movaddr_insn): Delete.
3064
3065 2002-03-15  Jason Merrill  <jason@redhat.com>
3066
3067         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3068         -fkeep-static-consts doesn't apply to comdats.
3069
3070 2002-03-14  Richard Henderson  <rth@redhat.com>
3071
3072         * c-decl.c: Include c-pragma.h.
3073         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3074         (finish_function): Tidy.
3075         * c-pragma.c: Include c-common.h.
3076         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3077         (handle_pragma_weak): Use them.
3078         (init_pragma): Register pending_weaks.
3079         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3080         * print-tree.c (print_node): Print DECL_WEAK.
3081         * varasm.c (mark_weak_decls): Remove.
3082         (remove_from_pending_weak_list): Remove.
3083         (add_weak): Remove.
3084         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3085         (weak_decls): Make a tree_list.
3086         (declare_weak): Cons weak_decls directly.
3087         (globalize_decl): Remove weak_decls elements directly.
3088         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3089         symbols.  Don't pretend to handle aliases.
3090         (init_varasm_once): Update weak_decls registry.
3091         * Makefile.in: Update dependencies.
3092
3093 2002-03-14  Richard Henderson  <rth@redhat.com>
3094
3095         PR target/5312
3096         * config/ia64/ia64.c: Include tm_p.h last.
3097         (gen_nop_type): Remove duplicate definition.
3098         (cycle_end_fill_slots): Set sched_data for second L slot.
3099         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3100         (nop_cycles_until): Fix typos.
3101
3102 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3103
3104         PR optimization/5891
3105         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3106
3107 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3108
3109         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3110           descriptors correctly.
3111
3112 2002-03-14  Michael Meissner  <meissner@redhat.com>
3113
3114         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3115         100, allowing MAX_UNROLLED_INSNS to be overridden.
3116
3117         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3118         --param.
3119
3120         * unroll.c (params.h): Include.
3121         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3122
3123         * doc/invoke.texi (--param max-unroll-insns): Document.
3124
3125         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3126
3127 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3128
3129         * arm.md: Fix warnings about constraints in peepholes and splits.
3130
3131 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3132
3133         * cpphash.h (struct lexer_state): Remove line_extension member.
3134         * cpplib.c (dequote_string, do_linemarker): New functions.
3135         (linemarker_dir): New data object.
3136         (DIRECTIVE_TABLE): No longer need to interpret #line in
3137         preprocessed source.  Delete obsolete comment about return
3138         values of handlers.
3139         (end_directive, directive_diagnostics, _cpp_handle_directive):
3140         Don't muck with line_extension.
3141         (directive_diagnostics): No need to issue warnings for
3142         linemarkers here.
3143         (_cpp_handle_directive): Issue warnings for linemarkers here,
3144         when appropriate.  Dispatch linemarkers to do_linemarker, not
3145         do_line.
3146         (do_line): Code to handle linemarkers split out to do_linemarker.
3147         Convert escape sequences in filename argument, both places.
3148
3149         * cppmacro.c (quote_string): Rename cpp_quote_string and
3150         export.  All callers changed.
3151         * cpplib.h (cpp_quote_string): Prototype.
3152         * cppmain.c (print_line): Call cpp_quote_string on to_file
3153         before printing it.
3154
3155         * doc/cpp.texi: Document that escapes are now interpreted in
3156         #line and in linemarkers, and that non-printing characters are
3157         converted to octal escapes when linemarkers are generated.
3158
3159 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3160
3161         * emit-rtl.c (try_split): Use delete_insns.
3162         * recog.c (split_all_insns): Fix terminating condition.
3163
3164 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3165             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3166
3167         PR target/5828
3168         * arm.c (arm_output_epilogue): Fix floating-point register save
3169         adjustment when using a frame pointer.
3170
3171 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3172
3173         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3174         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3175         (save_restore_insns, mips_expand_epilogue): And here.
3176         (build_mips16_call_stub): And here.
3177         (mips_function_value): Use the new macros to decide whether a single
3178         or complex float can be returned in floating-point registers.  Return
3179         a parallel rtx in the complex case.
3180
3181 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3182
3183         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3184         call after liveness analysis.
3185
3186         * recog.c (split_insn): Use delete_insn_and_edges.
3187
3188         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3189         instructions to have branch prediction notes.
3190         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3191
3192 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3193
3194         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3195         that doesn't support it.
3196         * configure: Regenerate.
3197
3198 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3199
3200         PR target/5626
3201         * config/sparc/sparc.md (normal_branch, inverted_branch,
3202         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3203         inverted_fp_branch): Adjust calls to output_cbranch.
3204         Set length attribute.
3205         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3206         output_v9branch.  Set length attribute.
3207         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3208         predicates.
3209         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3210         (output_cbranch): Likewise.  Handle far branches.
3211         (output_v9branch): Handle far branches.
3212         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3213         Adjust prototypes.
3214         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3215         noov_compare64_op predicates.
3216
3217 2002-03-13  Jason Merrill  <jason@redhat.com>
3218
3219         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3220         into the function and constify it.
3221         * gthr-dce.h, gthr-solaris.h: Likewise.
3222
3223 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3224
3225         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3226         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3227         std_expand_builtin_va_arg if not ABI_V4.
3228
3229 2002-03-13  Jason Merrill  <jason@redhat.com>
3230
3231         * varasm.c (globalize_decl): New fn.
3232         (assemble_start_function): Use it.
3233         (asm_emit_uninitialized): Use it.
3234         (assemble_alias): Use it.
3235         (assemble_variable): Use it.
3236
3237 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3238
3239         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3240         2002-03-12 internal visibility change.
3241         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3242         visibility into SYMBOL_REF_FLAG.
3243
3244 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3245
3246         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3247         VOIDmode operand.  Add compile-time optimization for constant results.
3248
3249 2002-03-12  Jason Merrill  <jason@redhat.com>
3250
3251         * c-typeck.c (convert_for_assignment): Don't allow conversions
3252         between pointers and references.  Only allow lvalues to convert to
3253         reference.
3254
3255 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3256
3257         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3258         before prologue, to avoid scheduling problems.
3259
3260 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3261
3262         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3263         (ELIMINABLE_REGS): Add sfp->sp.
3264         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3265
3266 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3267
3268         PR optimization/5892
3269         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3270
3271 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3272
3273         * loop.c (basic_induction_var): Don't call convert_modes if mode
3274         classes are different.
3275
3276 2002-03-12  Richard Henderson  <rth@redhat.com>
3277
3278         PR optimization/5901
3279         * function.c (reposition_prologue_and_epilogue_notes): Position
3280         the markers after/before the last/first insn not deleted.
3281
3282 2002-03-12  Richard Henderson  <rth@redhat.com>
3283
3284         PR optimization/5878
3285         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3286         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3287         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3288
3289         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3290         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3291         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3292
3293         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3294         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3295         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3296         also.  Don't set it if not flag_pic.
3297         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3298         to be INVALID_REGNUM when not used.
3299
3300 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3301
3302         * expmed.c (store_bit_field): Reset alias set for memory.
3303         (extract_bit_field): Same.
3304
3305 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3306
3307         * c-common.c (c_tree_code_type, c_tree_code_length,
3308         c_tree_code_name, add_c_tree_codes): Delete.
3309         * c-common.h (add_c_tree_codes): Delete.
3310         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3311         Define.
3312         * c-objc-common.c (c_objc_common_init): Don't call
3313         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3314         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3315         objc_tree_code_name, add_objc_tree_codes): Delete.
3316         (objc_init): Don't call add_objc_tree_codes.
3317         * objc/objc-lang.c (tree_code_type, tree_code_length,
3318         tree_code_name): Define.
3319         * toplev.c (lang_independent_init): Don't set
3320         tree_code_length[IDENTIFIER_NODE].
3321         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3322         Delete definitions, moved to language front-ends.
3323         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3324         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3325         Const-ify.
3326         (tree_code_length): Change type to unsigned char.
3327
3328 2002-03-12  Richard Henderson  <rth@redhat.com>
3329
3330         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3331         internal visibility change.
3332
3333 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3334
3335         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3336         validize_mem() instead of change_address to avoid clobbering
3337         memory attributes.
3338
3339 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3340
3341         * c-lex.h (position_after_whitespace): Remove.
3342
3343 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3344
3345         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3346         (lex_string): Use unsigned char pointers.
3347
3348 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3349
3350         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3351         is not a valid memory_operand.
3352
3353 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3354
3355         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3356         * config/xtensa/lib1funcs.asm: Fix copyright to include
3357         special case for libgcc files.
3358         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3359         (__divsi3): Likewise.
3360         (__umodsi3): Likewise.
3361         (__modsi3): Likewise.
3362         * config/xtensa/lib2funcs.S: Fix copyright to include
3363         special case for libgcc files.
3364
3365 2002-03-12  Tom Rix  <trix@redhat.com>
3366
3367         * collect2.c (resolve_lib_name): Move outside of
3368         OBJECT_FORMAT_COFF ifdef.
3369         (ignore_library): Same.
3370
3371 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3372
3373         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3374
3375 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3376
3377         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3378         to function_section before writing out the constant pool.
3379
3380 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3381
3382         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3383         zero_constant.
3384         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3385
3386 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3387
3388         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3389         (adddi3): Likewise.
3390         (movdf): Likewise.
3391         (movdi): Likewise.
3392         (cmpsi splitter): Likewise.
3393         (modsi3): Fail if <= 0.
3394         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3395         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3396         (reg_or_sub_cint64_operand): Likewise.
3397         (num_insns_constant_wide): Optimize sign extension.
3398         (rs6000_legitimize_address): Likewise.
3399
3400 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3401
3402         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3403         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3404
3405 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3406
3407         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3408         address calculation.
3409
3410 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3411
3412         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3413         scratch register to DImode / TImode.
3414         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3415         register used does not overlap the target.
3416
3417 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3418
3419         * Makefile.in (debug.o): Depend on debug.h.
3420         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3421         * debug.c (do_nothing_debug_hooks): Likewise.
3422         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3423         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3424         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3425         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3426         * dwarfout.c (dwarf_debug_hooks): Likewise.
3427         * integrate.c (output_inline_function): Likewise.
3428         * objc/objc-act.c (synth_module_prologue): Likewise.
3429         * sdbout.c (sdb_debug_hooks): Likewise.
3430         * toplev.c (debug_hooks): Likewise.
3431         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3432
3433 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3434
3435         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3436         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3437         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3438         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3439         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3440         * defaults.h (POINTER_SIZE): Define.
3441         * doc/tm.texi (POINTER_SIZE): Document default.
3442
3443 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3444
3445         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3446
3447 2002-03-11  Richard Henderson  <rth@redhat.com>
3448
3449         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3450         if rebuild_label_notes_after_reload.
3451
3452 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3453
3454         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3455         emit pic register load if "internal" visibility.
3456         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3457         (cris_expand_builtin_va_arg): Do all computations on trees.
3458
3459 2002-03-11  Richard Henderson  <rth@redhat.com>
3460
3461         * rtlanal.c: Include recog.h.
3462         (keep_with_call_p): Fix thinko.
3463         * Makefile.in (rtlanal.o): Update dependencies.
3464
3465 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3466
3467         * genflags.c (gen_insn): Use IS_VSPACE.
3468         * genoutput.c (output_insn_data): Likewise.
3469         (process_template): Likewise.
3470
3471 2002-03-11  Richard Henderson  <rth@redhat.com>
3472
3473         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3474
3475 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3476
3477         * Makefile.in: Update.
3478         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3479         Update documentation.
3480         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3481         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3482
3483 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3484
3485         * Makefile.in: Give texi2pod its input file as a command line
3486         argument, not on stdin.
3487
3488 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3489             Daniel Berlin  <dan@dberlin.org>
3490
3491         C++ alias analysis improvement.
3492         * alias.c (record_component_aliases): Record aliases for base
3493         classes too.
3494
3495 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3496
3497         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3498
3499 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3500
3501         * toplev.c (vms_fopen): Remove, not needed.
3502
3503         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3504
3505         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3506
3507         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3508         for FP, already done later.
3509
3510         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3511         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3512
3513 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3514
3515         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3516         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3517         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3518         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3519         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3520         (ediv, emul, eldexp, esqrt): Likewise.
3521         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3522         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3523         (saturate): New function.
3524         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3525         (make_nan): Use a saturation value instead of a NaN if
3526         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3527         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3528         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3529         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3530         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3531         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3532         !ROUND_TOWARDS_ZERO.
3533         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3534         (ROUND_TOWARDS_ZERO): Document.
3535
3536 2002-03-11  Andreas Jaeger  <aj@suse.de>
3537
3538         * cfg.c (dump_flow_info): Remove unused variable.
3539
3540 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3541
3542         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3543         computations on trees.
3544
3545 2002-03-10  Richard Henderson  <rth@redhat.com>
3546
3547         PR 5693:
3548         * reload.c (copy_replacements_1): New.
3549         (copy_replacements): Use it to recurse through the rtx.
3550
3551 2002-03-10  Richard Henderson  <rth@redhat.com>
3552
3553         * loop.c (strength_reduce): Compute number of iterations as
3554         unsigned HOST_WIDE_INT.
3555
3556 2002-03-10  Richard Henderson  <rth@redhat.com>
3557
3558         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3559         to move away from the end of the block.
3560
3561 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3562
3563         PR preprocessor/5899
3564         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3565
3566 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3567
3568         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3569
3570         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3571
3572 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3573
3574         * config/mmix/mmix.c: Improve comments.
3575         (mmix_target_asm_function_prologue): Drop variable
3576         empty_stack_frame.  Don't allocate unused slot above fp.
3577         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3578         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3579         brace in first column.
3580         (enum reg_class): Ditto.
3581         (FIRST_PARM_OFFSET): Now 0.
3582         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3583
3584 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3585
3586         * combine.c (make_extraction): Fix error in last change.
3587
3588 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3589
3590         * c4x.c (c4x_fp_reglist): Const-ify.
3591         * cris.c (cris_print_operand): Likewise.
3592         * i386.c (ix86_va_arg): Likewise.
3593         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3594         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3595         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3596         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3597         * mcore.h (regno_reg_class): Likewise.
3598         * mips.c (gen_int_relational): Likewise.
3599         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3600         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3601         * pdp11.c (move_costs): Likewise.
3602         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3603         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3604         Likewise.
3605         * s390.h (regclass_map): Likewise.
3606         * sh.c (shift_amounts): Likewise.
3607         * sh.md (rotlsi3): Likewise.
3608
3609 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3610
3611         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3612         (ne0+5): Use new clobber to generate proper shift pattern.
3613         Patch by Michael Matz <matz@kde.org>.
3614
3615 2002-03-09  Andreas Schwab  <schwab@suse.de>
3616
3617         * gcc.c (validate_all_switches): Also handle `%W{...}'.
3618
3619 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3620
3621         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3622
3623 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3624
3625         PR middle-end/5877
3626         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3627         even for non-representable constants.
3628
3629 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3630
3631         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3632         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3633         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3634         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3635         (pop_function_context): Compute MAY_SHARE parameter for
3636         fixup_var_refs.
3637         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3638         (gen_mem_addressof): Call fixup_var_refs with new parm.
3639
3640         * combine.c (make_extraction): Don't make extension of CONST_INT.
3641
3642 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3643
3644         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3645         in o32 and o64 ABIs.
3646         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3647         but getting fixed-size structs passed in registers regardless of
3648         padding in o32 and o64 ABIs.
3649
3650         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3651         offset before loading address of argument passed by transparent
3652         reference.
3653
3654 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3655
3656         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3657
3658 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3659
3660         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3661         marker such that registers after it are saved.
3662
3663 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3664
3665         * sparc.c (arith_4096_operand): Fix error in last change.
3666
3667 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3668
3669         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3670         defaults for MEABI.
3671
3672 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3673
3674         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3675         vectors.
3676
3677 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3678
3679         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3680
3681 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
3682
3683         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3684         removed; fix return value.
3685         * combine.c (combine_instructions): Dirtify blocks where we failed to
3686         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3687         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3688
3689 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3690
3691         * gcse.c (insert_insn_end_bb): Fix typo in last change.
3692
3693 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
3694
3695         * recog.c (peephole2_optimize): Re-distribute EH edges.
3696
3697 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3698
3699         * expr.c (expand_expr): Use unsave lang hook.
3700         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3701         (LANG_HOOKS_INITIALIZER): Update.
3702         * langhooks.h (struct lang_hooks): New hook unsave.
3703         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3704         (unsave_expr_1): Remove unused lang_unsave_expr_now.
3705         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
3706         (unsave_expr_now): Remove.
3707         * tree.h (unsave_expr_now, lang_unsave,
3708         lang_unsave_expr_now): Remove.
3709         (lhd_unsave): New.
3710
3711 2002-03-08  Andreas Jaeger  <aj@suse.de>
3712
3713         * flow.c (propagate_block_delete_insn): Remove unused variable.
3714
3715 2002-03-08  Kazu Hirata  <kazu@hxi.com>
3716
3717         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3718         insn length for memory load/store.
3719
3720 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3721
3722         * doc/install.texi (--with-libiconv-prefix): Document.
3723
3724 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
3725
3726         * doc/sourcebuild.texi: Fix typo.
3727
3728 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
3729
3730         PR c/3711
3731         * builtins.c (std_expand_builtin_va_arg): Do all computations on
3732         trees.
3733
3734 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3735
3736         * rtl.c (copy_most_rtx): Move from here ...
3737         * emit-rtl.c (copy_most_rtx): ... to here.
3738
3739 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3740
3741         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3742         SUBTARGET_CPP_SIZE_SPEC.
3743         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3744
3745         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3746
3747 2002-03-07  Matt Hiller  <hiller@redhat.com>
3748
3749         * gensupport.c (first_dir_md_include): Renamed from include;
3750         change all references.
3751         (last_dir_md_include): Renamed from last_include; change all
3752         references.
3753         (init_md_reader): Unconditionally initialize base_dir whether or
3754         not filename is a relative path.
3755
3756 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
3757
3758         * config/fp-bit.c (_unord_f2): Compile it in even if
3759         US_SOFTWARE_GOFAST is enabled.
3760
3761         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3762         NULL_RTX.  Set all HFmode operations as NULL_RTX.
3763         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3764         NULL_RTX, try reversing the comparison and the operands.
3765
3766 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3767
3768         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3769         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3770         and MATCH_OP_DUP.
3771
3772 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
3773
3774         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3775
3776 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3777
3778         * basic-block.h (fixup_abnormal_edges): Declare.
3779         * reload1.c (fixup_abnormal_edges): New function.
3780         * reg-stack.c (convert_regs): Use it.
3781
3782         * gcse.c (insert_insn_end_bb): Handle trapping insns.
3783
3784         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3785
3786 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
3787
3788         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3789         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3790         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3791         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3792         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3793         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3794         unless x and y could be infinite.
3795         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3796         Check that the common type of both arguments is a real, even for
3797         targets without unordered comparisons.  Allow an integer argument
3798         to be compared against a real.
3799         (expand_tree_builtin): Use expand_unordered_cmp.
3800         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3801         * cse.c (fold_rtx): Likewise.  Fix indentation.
3802         * fold-const.c (fold_real_zero_addition_p): New.
3803         (fold): Use it, and the new HONOR_... macros.
3804         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3805         * jump.c (reversed_comparison_code_parts): After searching for
3806         the true comparison mode, use HONOR_NANS to decide whether it
3807         can be safely reversed.
3808         (reverse_condition_maybe_unordered): Remove IEEE check.
3809         * simplify-rtx.c (simplify_binary_operation): Use the new macros
3810         to decide which simplifications are valid.  Allow the following
3811         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3812         and (a - -b) to (a + b).
3813         (simplify_relational_operation): Use HONOR_NANS.
3814         * doc/tm.texi: Document the MODE_HAS_... macros.
3815
3816 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
3817
3818         * combine.c (simplify_comparison): If simplifying a logical shift
3819         right and compare with constant, force the comparison to unsigned.
3820
3821 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
3822
3823         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3824
3825         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3826         -mabi=no-altivec
3827         (alt_reg_names): Remove % for vrsave.
3828
3829 2002-03-06  Richard Henderson  <rth@redhat.com>
3830
3831         PR optimization/5844
3832         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
3833         if used indicates we've already emitted one copy of an operand.
3834         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3835         (gen_split): Supply a non-null used.
3836
3837 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3838
3839         * reload1.c (reload): Unshare all rtl after reload is done.
3840
3841         * simplify-rtx.c (simplify_plus_minus): Do not abort,
3842         but simply fail if the expression is too complex to simplify.
3843         (simplify_gen_binary): Handle simplify_plus_minus failures.
3844
3845 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3846
3847         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3848         consistently call delete_trivially_dead_insns after CSE and GCSE;
3849         fix DFI_life dumping; do jump threading after liveness; do crossjumping
3850         after liveness2; update comment in last crossjumping.
3851         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3852
3853 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
3854
3855         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3856         after completing fast dead code elimination.
3857
3858         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3859         COMPARE operator.
3860
3861 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
3862
3863         * version.c:  Fix misplaced leading blanks on first line.
3864
3865 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
3866
3867         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3868
3869 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
3870
3871         * cfgcleanup.c (mentions_nonequal_regs): New function.
3872         (thread_jump): Use it.
3873         * toplev.c (rest_of_compilation): Run jump threading after
3874         liveness.
3875
3876 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3877
3878         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3879         patch.
3880
3881 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
3882
3883         * predict.c (estimate_bb_frequencies): Do not reload the
3884         frequencies from notes.
3885
3886 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
3887
3888         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3889         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3890
3891         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3892         delete_noop_moves): Return indeger.
3893         * flow.c (ndead): New variable.
3894         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3895         BB argument; update callers.
3896         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3897         (life_analysis): Do not call purge_all_dead_edges.
3898         (update_life_info): Return number of deleted insns; print statistics.
3899         (update_life_info_in_dirty_blocks): likewise.
3900         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3901         return number of insns deleted.
3902
3903         * cse.c: Include timevar.h
3904         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3905         iterate until stabilizes; print statistics; return number of killed
3906         insns.
3907         * Makefile.in: (cse.o): Add timevar.h dependency
3908         * rtl.h (delete_trivially_dead_insns): New.
3909         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3910         * toplev.c (rest_of_compilation): Update callers.
3911
3912         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3913         (try_optimize_cfg): Do not update liveness.
3914         (cleanup-cfg): Loop until try_optimize_cfg and dead code
3915         removal stabilizes; use delete_trivially_dead_insns.
3916
3917         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3918
3919 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
3920
3921         * cppmain.c (setup_callbacks): Disable #pragma and #ident
3922         callbacks when processing assembly language.
3923
3924 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3925
3926         * pa.h (ASM_FILE_END): Define.
3927         * som.h (ASM_FILE_END): Delete.
3928
3929         * pa.c (function_arg): Don't pass floats in general registers in
3930         indirect calls if TARGET_ELF32.
3931
3932 2002-03-05  Richard Henderson  <rth@redhat.com>
3933
3934         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3935
3936 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
3937
3938         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3939
3940 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3941
3942         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3943         -r command line.  Don't hide any symbols if not building
3944         shared libgcc.
3945
3946 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
3947
3948         * cfg.c (dump_flow_info): Warn about profile mismatches.
3949         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3950         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3951
3952 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3953
3954         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3955         wide volatile memory by parts.
3956
3957 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3958
3959         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3960         is NULL.
3961
3962 2002-03-05  Richard Henderson  <rth@redhat.com>
3963
3964         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
3965
3966 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
3967
3968         * toplev.c (documented_lang_options): Document more
3969         language-specific options.
3970         * doc/invoke.texi (Warning Options): Correct documentation for
3971         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3972         * c-decl.c (c_decode_option): Use a table to handle warning options.
3973
3974 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
3975
3976         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3977         parameter to mmix_encode_section_info.
3978         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3979         relocatably.  Always produce ELF, not mmo if linking relocatably.
3980         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3981         first is non-zero, don't add symbol prefix.
3982         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3983         prototype accordingly.
3984
3985 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
3986
3987         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3988
3989 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3990
3991         * configure.in: Increase required makeinfo version to 4.1.
3992         * configure: Regenerate.
3993
3994 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
3995
3996         * .cvsignore: Remove *.info* and genrtl*; these files are generated
3997         elsewhere now.
3998
3999 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4000
4001         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4002         * doc/invoke.texi: Fix @math uses.
4003
4004 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4005
4006         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4007         removal
4008
4009 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4010
4011         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4012         (powerpc-*-eabisimaltivec*): Same.
4013
4014         * config/rs6000/t-ppcendian: New.
4015
4016 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4017
4018         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4019         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4020         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4021
4022 2002-03-03  Richard Henderson  <rth@redhat.com>
4023
4024         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4025
4026 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4027
4028         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4029         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4030         tree.c, config/m68k/m68k.c:
4031         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4032         REAL_ARITHMETIC blocks unconditional.  Delete some further
4033         #ifdef blocks predicated on REAL_ARITHMETIC.
4034         * flags.h, toplev.c: Delete remaining references to
4035         flag_pretend_float.
4036
4037         * doc/invoke.texi: Remove documentation of -fpretend-float.
4038         * doc/tm.texi: Describe the various REAL_* macros as provided by
4039         real.h, not by the target configuration files.
4040
4041         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4042         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4043         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4044         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4045         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4046         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4047         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4048         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4049         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4050         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4051         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4052         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4053         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4054         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4055         config/xtensa/xtensa.h:
4056         Do not define, undefine, or mention in comments any of
4057         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4058         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4059         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4060         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4061         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4062         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4063         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4064         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4065         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4066
4067 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4068
4069         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4070         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4071         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4072         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4073         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4074         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4075         Delete.
4076         * defaults.h (BITS_PER_WORD): Define.
4077         * doc/tm.texi (BITS_PER_WORD): Document default value.
4078
4079         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4080         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4081         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4082
4083 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4084
4085         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4086         lieu of explicit sizeof/sizeof.
4087         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4088         ix86_expand_builtin): Likewise.
4089         * mips.c (mips_add_gc_roots): Likewise.
4090         * mmix.c (mmix_output_condition): Likewise.
4091         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4092         altivec_init_builtins): Likewise.
4093         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4094         * cppexp.c (Nsuff, parse_number): Likewise.
4095         * cppinit.c (builtin_array_end): Likewise.
4096         * gcc.c (n_default_compilers, process_command): Likewise.
4097         * genpreds.c (output_predicate_decls): Likewise.
4098         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4099         * lcm.c (N_ENTITIES): Likewise.
4100         * stor-layout.c (set_sizetype): Likewise.
4101
4102 2002-03-03  Richard Henderson  <rth@redhat.com>
4103
4104         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4105         for types or labels.
4106
4107 2002-03-03  Richard Henderson  <rth@redhat.com>
4108
4109         * c-decl.c (start_decl): Initialized variables are not common.
4110
4111 2002-03-02  Per Bothner  <per@bothner.com>
4112
4113         * gcc.c (option_map):  Suport new --bootclasspath option.
4114         --CLASSPATH is now just an alias for --classpath.
4115
4116 2002-03-02  Richard Henderson  <rth@redhat.com>
4117
4118         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4119         load if "internal" visibility.
4120         * doc/extend.texi: Document visibility meanings.
4121
4122 2002-03-02  Richard Henderson  <rth@redhat.com>
4123
4124         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4125         to functions as well.
4126
4127 2002-03-02  Richard Henderson  <rth@redhat.com>
4128
4129         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4130         (handle_visibility_attribute): Don't call assemble_visibility.
4131         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4132         without asmspec.  Invoke assemble_alias when needed.
4133         * varasm.c (maybe_assemble_visibility): New.
4134         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4135
4136 2002-03-02  Richard Henderson  <rth@redhat.com>
4137
4138         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4139         invoke ENCODE_SECTION_INFO with first call flag.
4140
4141         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4142         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4143         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4144         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4145         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4146         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4147         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4148         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4149         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4150         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4151         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4152         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4153         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4154         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4155         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4156         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4157         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4158         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4159         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4160         config/sh/sh.h, config/sparc/sparc.h,
4161         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4162         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4163         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4164         FIRST argument.  As needed, examine it and do nothing.
4165
4166         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4167         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4168         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4169
4170         * config/arm/t-pe (pe.o): Add dependencies.
4171
4172 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4173
4174         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4175         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4176         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4177         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4178         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4179         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4180         * defaults.h (BITS_PER_UNIT): Define.
4181         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4182
4183 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4184
4185         * config/h8300/h8300-protos.h: Add a prototype for
4186         compute_a_shift_length.
4187         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4188         (compute_a_shift_length): Likewise.
4189         (h8300_adjust_insn_length): Do not adjust insn length of shift
4190         insns.
4191         * config/h8300/h8300.md (anonymous shift patterns): Use
4192         compute_a_shift_length.
4193
4194 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4195
4196         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4197         trunc_int_for_mode.
4198
4199         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4200
4201 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4202
4203         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4204         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4205         * flags.h (flag_zero_initialized_in_bss): Declare.
4206         * toplev.c (flag_zero_initialized_in_bss): New flag.
4207         (lang_independent_options): Add flag_zero_initialized_in_bss.
4208         * tree.c (initializer_zerop): New function.
4209         * tree.h (initializer_zerop): Declare.
4210         * varasm.c (assemble_variable): If we can emit bss, put zero
4211         initializers in the bss section.
4212
4213 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4214
4215         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4216         like more than one symbol per .weak directive.
4217
4218 2002-03-01  Richard Henderson  <rth@redhat.com>
4219
4220         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4221         adjust argument_pointer by pretend_args_size.
4222         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4223
4224 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4225
4226         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4227
4228 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4229
4230         * toplev.c (rest_of_compilation): Delete dead jumptables before
4231         loop.
4232         * flow.c (delete_dead_jumptables): Make global.
4233         * rtl.h (delete_dead_jumptables): Declare.
4234
4235 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4236
4237         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4238         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4239         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4240
4241 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4242
4243         * config/h8300/h8300-protos.h: Fix formatting.
4244         * config/h8300/h8300.c: Likewise.
4245         * config/h8300/h8300.h: Likewise.
4246
4247 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4248
4249         * config/h8300/h8300.c (print_operand): Support 16-bit
4250         constant addresses.
4251         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4252
4253 2002-02-28  Richard Henderson  <rth@redhat.com>
4254
4255         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4256         pun complex values as integers; use gen_lowpart instead of
4257         gen_rtx_SUBREG.
4258         (extract_bit_field): Likewise.
4259
4260 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4261             David Edelsohn  <edelsohn@gnu.org>
4262
4263         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4264         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4265         (SUPPORTS_WEAK): Likewise.
4266         * output.h (add_weak): Add tree param.
4267         * varasm.c (add_weak): Likewise.  Save decl.
4268         (struct weak_syms): Add decl field.
4269         (mark_weak_decls): New function.
4270         (init_varasm_once): ggc_add_root mark_weak_decls.
4271         (assemble_start_function): Use ASM_WEAKEN_DECL.
4272         (assemble_variable): Likewise.
4273         (assemble_alias): Likewise.
4274         (declare_weak): Pass decl to add_weak.
4275         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4276         (remove_from_pending_weak_list): Declare and define for
4277         ASM_WEAKEN_DECL.
4278         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4279         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4280         * defaults.h (SUPPORTS_WEAK): Likewise.
4281         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4282         .weak for code sym.  Do emit .size for descriptor sym.
4283         (ASM_DECLARE_FUNCTION_SIZE): Define.
4284         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4285         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4286         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4287         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4288         .weak for code sym.
4289         (HANDLE_PRAGMA_WEAK): Remove.
4290         (ASM_WEAKEN_LABEL): Remove.
4291         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4292
4293 2002-03-01  Jason Merrill  <jason@redhat.com>
4294
4295         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4296         (TARGET_EXPR_CLEANUP): New macro.
4297
4298 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4299
4300         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4301         to take ptr_extend into account as third type of extension.
4302         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4303         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4304         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4305         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4306         * calls.c (precompute_arguments): Use new macro.
4307         (expand_call): Ditto.
4308         * combine.c (nonzero_bits): Ditto.
4309         (record_promoted_value): Ditto.
4310         * expr.c (store_expr): Ditto.
4311         (expand_expr): Ditto.
4312         * function.c (assign_parms): Ditto.
4313
4314 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4315
4316         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4317         override -shared and -shared-libgcc.
4318
4319 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4320
4321         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4322         of "ultrasparc".
4323         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4324         to be broken.
4325
4326 2002-02-28  Richard Henderson  <rth@redhat.com>
4327
4328         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4329         4 cycle latency from MM producers.
4330         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4331
4332 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4333
4334         * mklibgcc.in: Don't use GNU make extension.
4335
4336 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4337
4338         * c-parse.in (STATIC): New terminal.
4339         (scspec): New non-terminal.  Update productions accordingly.
4340         (program): Remove bogus ifc / end ifc.
4341         (array_declarator): Simplify production using STATIC.
4342
4343 2002-02-28  Jim Meyering  <meyering@lucent.com>
4344
4345         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4346         \a still means TARGET_BELL.
4347
4348 2002-02-28  Richard Henderson  <rth@redhat.com>
4349
4350         * haifa-sched.c (sched_emit_insn): New.
4351         (schedule_block): Use last_scheduled_insn to track last insn.
4352         * sched-int.h (sched_emit_insn): Prototype.
4353         * config/ia64/ia64.c (last_issued): Remove.
4354         (ia64_variable_issue): Don't set it.
4355         (nop_cycles_until): Use sched_emit_insn.
4356
4357 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4358
4359         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4360         extended constants.
4361
4362 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4363
4364         * config/h8300/h8300.c: Fix formatting.
4365         * config/h8300/h8300.h: Likewise.
4366
4367 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4368
4369         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4370         which may overwrite the high byte of the frame pointer.
4371
4372 2002-02-28  Bo Thorsen  <bo@suse.de>
4373
4374         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4375         (STARTFILE_SPEC): Add 64 bit files.
4376         (ENDFILE_SPEC): Likewise.
4377
4378 2002-02-28  Jason Merrill  <jason@redhat.com>
4379
4380         * c-decl.c (finish_function): Only warn about missing return
4381         statement with -Wreturn-type.
4382
4383 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4384
4385         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4386
4387         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4388         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4389
4390 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4391
4392         * basic-block.h (BB_REACHABLE): Renumber.
4393         (BB_DIRTY, BB_NEW): New flags.
4394         (clear_bb_flags): Declare.
4395         (update_life_info_in_dirty_blocks): Declare.
4396         * cfg.c (clear_bb_flags): New function.
4397         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4398         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4399         reorder_insns, emit_insn_after): Mark block as dirty.
4400         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4401         (update_life_info_in_dirty_blocks): New function.
4402         * recog.c (apply_change_group): Dirtify block.
4403
4404         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4405         cfg consistent.
4406         * gcse.c (delete_null_pointer_checks): Likewise.
4407
4408         * toplev.c (dump_file_index): Move cse2 after bp,
4409         add DFI_null
4410         (dump_file_info): Similary.
4411         (rest_of_compilation): Avoid most of CFG rebuilds;
4412         do first if converision after null pointer checks, do cse2
4413         after branch prediction; avoid full liveness rebuild after
4414         initializing subregs.
4415         * invoke.texi (-d options): Document -du, renumber.
4416
4417         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4418         (notice_new_block): Do not set BB_UPDATE_LIFE.
4419         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4420          merge_blocks_move_successor_nojumps, merge_blocks,
4421          try_crossjump_to_edge): Likewise.
4422         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4423         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4424         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4425         (merge_of_block): Do not use life_data_ok.
4426         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4427         (if_convert): Use BB_DIRTY mechanizm to update life.
4428         * lcm.c (optimize_mode_switching): Update
4429         update_life_info_in_dirty_blocks
4430
4431 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4432
4433         * Makefile.in (integrate.o): Update.
4434         * c-decl.c (copy_lang_decl): Rename.
4435         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4436         * integrate.c: Include langhooks.h.
4437         (copy_decl_for_inlining): Update to use langhook.
4438         * langhooks-def.h (lhd_do_nothing_t,
4439         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4440         (LANG_HOOKS_INITIALIZER): Update.
4441         * langhooks.c (lhd_do_nothing_t): New.
4442         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4443         * tree.h (copy_lang_decl): Remove.
4444 objc:
4445         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4446
4447 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4448
4449         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4450         POST_DEC, and POST_MODIFY.
4451
4452 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4453
4454         * c-typeck.c (digest_init): Remove unused parameter; all
4455         callers changed.
4456
4457 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4458
4459         * expmed.c (expand_shift): Correctly test for low part of a
4460         subreg.
4461
4462 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4463
4464         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4465         insn UIDs with insn addresses.
4466
4467 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4468
4469         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4470         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4471         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4472         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4473         gcc.c, toplev.c: Delete code implementing -traditional mode.
4474
4475         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4476         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4477         Document removal of -traditional mode for compilation, and
4478         remove documentation only relevant to that mode.
4479
4480         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4481         config/convex/convex.h, config/d30v/d30v.h,
4482         config/i386/dgux.h, config/i386/osf1elf.h,
4483         config/i386/osfelf.h, config/i386/osfrose.h,
4484         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4485         config/m68k/hp310.h, config/m88k/dgux.h,
4486         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4487         config/m88k/m88k.h, config/m88k/openbsd.h,
4488         config/mips/abi64.h, config/mips/osfrose.h,
4489         config/mips/svr4-5.h, config/mips/svr4-t.h,
4490         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4491         config/stormy16/stormy16.h: Remove all references to
4492         -traditional from target specs.  Delete all mention of the
4493         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4494         delete a couple of commented-out definitions of
4495         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4496         to -traditional.
4497
4498         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4499         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4500
4501 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4502
4503         * mklibgcc.in: Don't use \n in a line subject to
4504         interpretation by echo.
4505
4506 2002-02-27  Graham Stott  <grahams@redhat.com>
4507
4508         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4509         Constify NAME.
4510
4511         * loop.c (prescan_loop): Handle PARALLEL.
4512
4513         * unroll.c (loop_iterations): Return 0 if the add_val for
4514         a BIV is REG.
4515
4516         * final.c (output_operand_lossage): Constify PFX_STR.
4517
4518         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4519
4520 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4521
4522         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4523         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4524
4525 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4526
4527         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4528
4529 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4530
4531         * cpplex.c (_cpp_lex_token): Handle directives in macro
4532         arguments.
4533         * cpplib.c (_cpp_handle_directive): Save and restore state
4534         if parsing macro args when entering a directive.
4535         * cppmacro.c (collect_args): No need to handle directives
4536         in macro arguments.
4537         (enter_macro_context, replace_args): Use the original macro
4538         definition in case it was redefined whilst collecting arguments.
4539 doc:
4540         * cpp.texi: Update.
4541
4542 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4543
4544         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4545         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4546         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4547         method on AIX.
4548         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4549         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4550         (load_toc_v4_PIC_2): Same.
4551
4552 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4553
4554         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4555
4556 2002-02-26  Richard Henderson  <rth@redhat.com>
4557
4558         * config/alpha/alpha.md (ashldi_se): Re-enable.
4559
4560 2002-02-26  Richard Henderson  <rth@redhat.com>
4561
4562         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4563         MODULE_LOCAL_P; improve commentary.
4564
4565 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4566
4567         * doc/cpp.texi: Clarify documentation of relationship between
4568         #line and #include.
4569
4570 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4571
4572         * config/h8300/h8300-protos.h: Update the prototype for
4573         compute_logical_op_length.  Add the prototype for
4574         compute_logical_op_cc.
4575         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4576         code from operands.
4577         (compute_logical_op_cc): New.
4578         * config/h8300/h8300.md: Combine all the logical op patterns
4579         in HImode and SImode.  Use compute_logical_op_cc.
4580
4581 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4582
4583         * config/i386/i386.c (print_operand): Don't append ATT-style
4584         length suffixs to x87 opcodes when in Intel mode.
4585
4586 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4587
4588         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4589         (init_emit_once): Update calls.
4590         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4591         (init_syntax_once): Prototype.
4592
4593 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4594
4595         * pa-linux.h (LIB_SPEC): Update definition.
4596         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4597
4598 2002-02-26  Richard Henderson  <rth@redhat.com>
4599
4600         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4601         if we emitted a stop bit.
4602
4603 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4604
4605         * configure.in (libgcc_visibility): Substitute.
4606         * configure: Rebuilt.
4607         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4608         defined symbols .hidden.
4609
4610 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4611
4612         * attribs.c (c_common_attribute_table): Add visibility.
4613         (handle_visibility_attribute): New function.
4614         * varasm.c (assemble_visibility): New function.
4615         * output.h (assemble_visibility): Add prototype.
4616         * tree.h (MODULE_LOCAL_P): Define.
4617         * crtstuff.c (__dso_handle): Use visibility attribute.
4618         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4619         for MODULE_LOCAL_P symbols too.
4620         * config/ia64/ia64.c (ia64_encode_section_info): Handle
4621         MODULE_LOCAL_P symbols the same way as local symbols.
4622         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4623         into .sdata/.sbss by the user.
4624         * doc/extend.texi (Function Attributes): Document visibility
4625         attribute.
4626
4627 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4628
4629         PR debug/5770
4630         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4631         STRING_CST initializer spanning the whole variable without
4632         embedded zeros.
4633         If expand_expr returned MEM, don't use it.
4634
4635 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
4636
4637         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4638         generate a die for the lexical block.
4639
4640 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4641
4642         * config/h8300/h8300-protos.h: Add a prototype for
4643         compute_logical_op_length.
4644         * config/h8300/h8300.c (compute_logical_op_length): New.
4645         * config/h8300/h8300.md (anonymous logical patterns): Use
4646         compute_logical_op_length for length.
4647
4648 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4649
4650         * dwarf2out.c (modified_type_die): Do not call type_main_variant
4651         for vectors.
4652         (gen_type_die): Same.
4653
4654         * attribs.c (handle_vector_size_attribute): Set debug information.
4655
4656 2002-02-26  Daniel Egger  <degger@fhm.edu>
4657
4658         * config/rs6000/rs6000.md: Swap define_insn attributes to
4659         fix incorrect generation of merge high instructions instead
4660         of merge low.
4661
4662 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4663
4664         * c-typeck.c (really_start_incremental_init): Use
4665         bitsize_zero_node for vectors.
4666
4667 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4668
4669         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4670         ("*set_vrsave_internal"): Same.
4671
4672 2002-02-25  Richard Henderson  <rth@redhat.com>
4673
4674         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4675         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
4676
4677 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
4678
4679         PR target/5755
4680         * config/i386/i386.c (ix86_return_pops_args): Only pop
4681         fake structure return argument if it was passed on the stack.
4682
4683 2002-02-25  Jason Merrill  <jason@redhat.com>
4684
4685         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4686         RESULT_DECL.
4687
4688 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4689
4690         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4691         link with shared_name only.
4692         * doc/invoke.texi (Link Options): Document new behavior.
4693
4694 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4695
4696         * c-typeck.c (push_init_level): Handle vectors.
4697
4698 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4699
4700         * config/sparc/sparc.c (const64_high_operand): Zero-extend
4701         operands of SPARC_SETHI_P.
4702         (input_operand): Likewise.
4703         (sparc_emit_set_const32): Likewise.
4704         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4705         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4706         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
4707         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4708         (movdi_insn_sp64_vis): Likewise.
4709         (movdi split, movdf split): Use SETHI32.
4710         * doc/md.texi: Document SPARC constraints L, M and N.
4711
4712 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4713
4714         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4715         ("*set_vrsave_internal"): use mfspr for Darwin.
4716
4717         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4718         gen_get_vrsave_internal.
4719
4720 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4721
4722         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4723
4724 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4725
4726         * cpplex.c (cpp_interpret_charconst): Get signedness or
4727         otherwise of wide character constants correct.
4728         * cppexp.c (lex): Get signedness of wide charconsts correct.
4729
4730 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4731
4732         * optabs.c (widen_operand): Only call convert_modes for
4733         promoted SUBREG if signedness matches.
4734         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4735
4736 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4737
4738         * cpplib.c (glue_header_name): Use local buffer to build up
4739         header name.
4740
4741 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4742
4743         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4744
4745 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4746
4747         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4748         H8/300[HS] separately.
4749         * config/h8300/h8300.md: Remove the early clobber constraint
4750         from bit field patterns.
4751
4752 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4753
4754         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4755         register_operand.
4756         (mulhisi3): Likewise.
4757         (umulqisi3): Likewise.
4758         (umulhisi3): Likewise.
4759
4760 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4761
4762         * cppinit.c (output_deps): Correct test for stdout output.
4763         (init_dependency_output): Cure warning.
4764
4765 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4766
4767         * expr.c (store_expr): When converting expression to promoted
4768         equivalent type, allow using SUBREG_REG of TARGET as the target
4769         of the expansion of EXP.
4770         * loop.c (basic_induction_var, case SUBREG): Always look inside.
4771         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4772         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4773         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4774         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4775
4776 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4777
4778         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4779         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4780         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4781
4782 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
4783
4784         PR optimization/5747
4785         * loop.c (scan_loop): Update reg info if move_movables created new
4786         pseudos.
4787
4788 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4789
4790         * gcc.c (init_gcc_spec): Revert last change.
4791
4792 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4793
4794         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4795         gpc_reg_operand constraint.
4796
4797 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
4798
4799         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4800         Simplify comparison of `low'.
4801         (add_operand): Fix formatting.
4802         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4803         (mask_operand): Disallow mask to wrap in 64-bit mode.
4804         (rs6000_stack_info): Remove redundant test setting push_p.
4805         (output_toc): Fix formatting.
4806         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4807         cc_reg_not_cr0_operand constraint.
4808         (booldi3, boolcdi3 splitters): Same.
4809
4810 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
4811
4812         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4813
4814 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
4815
4816         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4817         gcc invoked with -shared-libgcc.
4818
4819 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
4820
4821         PR c++/5748
4822         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4823         decl if any of elements was TREE_USED.
4824
4825 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
4826
4827         * config/sparc/sol2.h: Don't include sys/mman.h.
4828         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4829         (arith_4096_operand): Don't throw high bits away.
4830         (const64_operand): Take sign extension of CONST_INTs into account.
4831         (const64_high_operand, sparc_emit_set_const32): Likewise.
4832         (GEN_HIGHINT64): Likewise.
4833         (sparc_emit_set_const64_quick1): Likewise.
4834         (const64_is_2insns): Likewise.
4835         (print_operand): Use trunc_int_for_mode for sign extension.
4836         * config/sparc/sparc.h (SMALL_INT32): Likewise.
4837         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4838         chars.  Assume CONST_INT is already properly sign-extended.
4839         (movdi split): Sign-extend each SImode part.
4840         (andsi3 split): Don't mask high bits off, so that result
4841         remains properly sign-extend.
4842         (iorsi3 split): Likewise.
4843         (xorsi3 split): Likewise.
4844
4845 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
4846
4847         * fold-const.c (fold): Fix typo in comments.
4848
4849 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
4850
4851         * Makefile.in (langhooks.o): Update dependencies.
4852
4853 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
4854
4855         * langhooks.c: Include flags.h.
4856
4857 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
4858
4859         * testsuite/gcc.dg/attr-alwaysinline.c: New.
4860
4861         * c-common.c (c_common_post_options): Set inline trees by
4862         default.
4863
4864         * doc/extend.texi (Function Attributes): Document always_inline
4865         attribute.
4866         Update documentation about inlining when not optimizing.
4867
4868         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4869
4870         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4871         unless DECL_ALWAYS_INLINE.
4872
4873         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4874         unless DECL_ALWAYS_INLINE.
4875         (c_disregard_inline_limits): Disregard if always_inline set.
4876
4877         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4878         Disregard if always_inline set.
4879         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4880         unless DECL_ALWAYS_INLINE.
4881
4882         * attribs.c (handle_always_inline_attribute): New.
4883         (c_common_attribute_table): Add always_inline.
4884
4885         * config/rs6000/altivec.h: Add prototypes for builtins
4886         requiring the always_inline attribute.
4887
4888 2002-02-21  Eric Christopher  <echristo@redhat.com>
4889
4890         * expmed.c (store_bit_field): Try to simplify the subreg
4891         before generating a new one when when the mode size of
4892         value is less than maxmode.
4893
4894 2002-02-21  Richard Henderson  <rth@redhat.com>
4895
4896         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4897         than gen_rtx_PLUS to form the sum.
4898         * explow.c (force_reg): Rearrange to not allocate new pseudo
4899         when force_operand returns a register.
4900         * expr.c (expand_assignment): Allow offset_rtx expansion to
4901         return a sum.  Do not force addresses into registers.
4902         (expand_expr): Likewise.
4903         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4904         to canonicalize arithmetic that didn't simpify.
4905         (simplify_plus_minus): New argument force; update
4906         all callers.  Don't split CONST unless we can do something with it,
4907         and wouldn't lose the constness of the operands.
4908
4909         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4910         that we generated earlier.
4911
4912 2002-02-21  Tom Tromey  <tromey@redhat.com>
4913
4914         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4915         (output_line_info): Use constant `1', with a long explanatory
4916         comment.
4917         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4918
4919 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
4920
4921         * jump.c (redirect_jump): If old label has no UID, don't try to
4922         delete it.
4923
4924 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
4925
4926         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4927         If input is constant, do shifts at compile time.
4928
4929 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4930
4931         * doc/extend.texi: Fix some more overfull hboxes.
4932
4933 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4934
4935         PR optimization/4994
4936         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4937         register moves.
4938
4939 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4940
4941         PR c++/4574
4942         * expr.h (expand_and): Add mode argument.
4943         * expmed.c (expand_and): Add mode argument.
4944         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4945         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4946         * except.c (expand_builtin_extract_return_addr): Likewise.
4947         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4948         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4949         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4950         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4951         * config/c4x/c4x.md: Use GEN_INT (x) instead of
4952         gen_rtx (CONST_INT, VOIDmode, x).
4953
4954 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4955
4956         PR c/4697:
4957         * stmt.c (warn_if_unused_value): Move side effects test once more.
4958
4959 2002-02-20  Torbjorn Granlund  <tege@swox.com>
4960
4961         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
4962         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
4963
4964 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
4965
4966         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4967         SUBREG or ZERO_EXTEND.
4968
4969 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
4970
4971         * sh.h (current_function_anonymous_args): Remove.
4972         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4973         of current_function_varargs and current_function_stdarg is set.
4974         * sh.c (sh_expand_prologue): Check current_function_varargs /
4975         current_function_stdarg / TARGET_SH5 instead of
4976         current_function_anonymous_args.
4977
4978         * sh64.h (TARGET_VERSION): Define.
4979
4980 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
4981
4982         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4983         VRSAVE_REGNO on TARGET_ALTIVEC.
4984
4985 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
4986
4987         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4988         bits of SImode const_int.
4989         (includes_rshift_p): Likewise.
4990         (print_operand): Call mask_operand and mask64_operand with correct
4991         mode.
4992         (rs6000_output_function_epilogue): Pad traceback table to word.
4993         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4994         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4995         mask64_operand with correct mode.
4996         (FUNCTION_ARG_REGNO_P): Correct parentheses.
4997
4998 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
4999
5000         PR debug/4461
5001         * varasm.c (get_pool_constant_mark): New.
5002         * rtl.h (get_pool_constant_mark): Add prototype.
5003         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5004         be represented if it has not been output.
5005
5006 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5007
5008         * combine.c (do_SUBST): Sanity check substitutions of
5009         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5010         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5011         CONST_INT into its operand.
5012         (known_cond): Likewise, for ZERO_EXTEND.
5013         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5014         allow for simplification of wide modes.  Reject CONST_INTs in
5015         ZERO_EXTEND when their actual mode is not given.
5016
5017 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5018
5019         * c-decl.c (pushdecl): If no global declaration is found for an
5020         extern declaration in block scope, try a limbo one.
5021
5022 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5023
5024         PR c++/4401
5025         * c-common.c (pointer_int_sum): Moved from...
5026         * c-typeck.c (pointer_int_sum): ...here.
5027         * c-common.h (pointer_int_sum): Add prototype.
5028
5029 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5030
5031         PR c++/5713
5032         * c-decl.c (duplicate_decls): Return 0 if issued error about
5033         redeclaration.
5034
5035 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5036             Jakub Jelinek  <jakub@redhat.com>
5037
5038         PR c/4389
5039         * tree.c (host_integerp): Ensure that the constant integer is
5040         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5041         when pos is zero or non-zero respectively.  Clarify comment.
5042         * c-format.c (check_format_info_recurse): Fix host_integerp
5043         usage; the pos argument should be zero when assigning to a
5044         signed HOST_WIDE_INT.
5045
5046 2002-02-20  Richard Henderson  <rth@redhat.com>
5047
5048         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5049         of the operand, rather than assuming TImode.
5050         (ix86_expand_binop_builtin): Cope with commutative patterns
5051         using nonimmediate_operand for both operands.
5052         (ix86_expand_timode_binop_builtin): Likewise.
5053         (ix86_expand_store_builtin): Validate operand 1.
5054         (ix86_expand_unop1_builtin): Likewise.
5055
5056 2002-02-20  Philip Blundell  <philb@gnu.org>
5057
5058         PR 5705
5059         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5060
5061 2002-02-20  Richard Henderson  <rth@redhat.com>
5062
5063         PR c/5615
5064         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5065
5066 2002-02-20  Tom Tromey  <tromey@redhat.com>
5067
5068         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5069         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5070         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5071         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5072         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5073         unconditionally.
5074
5075 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5076
5077         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5078           for (const_int 0) in X not just INTVAL.
5079
5080 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5081
5082         * doc/extend.texi: Avoid or reduce overfull hboxes.
5083
5084 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5085
5086         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5087         operations if the field does not start at a mode boundary.
5088
5089 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5090
5091         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5092         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5093         Also done for -Acpu and -Amachine.
5094
5095 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5096
5097         * cppinit.c (init_dependency_output): Take deps output file
5098         from -o if none given with -MF.  Suppress normal output.
5099         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5100         * doc/cpp.texi, doc/invoke.texi: Update.
5101
5102 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5103
5104         * toplev.c (output_quoted_string): Write unprintable
5105         characters with octal escapes.
5106
5107 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5108
5109         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5110         really_call_used[VRSAVE_REGNO] if not Altivec.
5111
5112 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5113
5114         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5115         MODE_MASK.
5116         (constant_pool_expr_1): Fix formatting.
5117         (rs6000_legitimize_reload_address): Likewise.
5118
5119 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5120
5121         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5122         now that we have one.
5123
5124 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5125
5126         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5127         end of first block of bitfields (which was only seven bits);
5128         rename dummy to unused_1; remove comment which is no longer true.
5129
5130 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5131
5132         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5133
5134 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5135
5136         PR 5399
5137         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5138         if generating PIC.
5139
5140         PR 5054
5141         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5142         arm_is_longcall_p rather than inspecting call-type cookie
5143         directly.
5144         (call_value_insn) [TARGET_THUMB]: Likewise.
5145
5146 2002-02-19  Graham Stott  <grahams@redhat.com>
5147
5148         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5149
5150 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5151
5152         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5153         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5154         (FP_SAVE_INLINE): Delete.
5155
5156         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5157         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5158         * config/rs6000/t-ppccomm: Build crtsavres.o.
5159         * config/rs6000/crtsavres.asm: New file.
5160
5161 2002-02-19  Philip Blundell  <philb@gnu.org>
5162
5163         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5164         functions.
5165         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5166         (output_return_instruction): Allow interrupt functions to return with
5167         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5168         (arm_expand_prologue): Subtract 4 before stacking LR in an
5169         interrupt function.
5170
5171 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5172
5173         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5174         decl, not just FUNCTION_DECL.
5175         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5176         (arm_assemble_integer): Likewise.
5177         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5178         marked local.
5179
5180 2002-02-19  matthew green  <mrg@eterna.com.au>
5181
5182         * config.gcc (sparc-*-netbsdelf*): Enable target.
5183         (sparc64-*-netbsd*): New target.
5184         * config/sparc/netbsd-elf.h: New file.
5185         * config/sparc/t-netbsd64: New file.
5186
5187 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5188
5189         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5190
5191 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5192
5193         * doc/invoke.texi: explicitly list the style guidelines that
5194         -Weffc++ checks for.
5195
5196 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5197
5198         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5199
5200 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5201
5202         PR other/5718
5203         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5204         only if not -E.  If -E, pass -o through to the preprocessor.
5205
5206 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5207
5208         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5209         register number with an appropriate macro.
5210
5211 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5212
5213         * doc/rtl.texi (Constants): Close @code tag.
5214
5215 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5216
5217         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5218         ("mmx_uavgv4hi3"): Same.
5219         ("pmulhrwv4hi3"): Same.
5220
5221         * tree-inline.c (walk_tree): Handle vectors.
5222
5223         * c-common.c (constant_expression_warning): Handle vectors.
5224         (overflow_warning): Same.
5225
5226         * sched-deps.c (sched_analyze_2): Handle vectors.
5227
5228         * rtlanal.c (rtx_unstable_p): Handle vectors.
5229         (rtx_varies_p): Same.
5230         (count_occurrences): Same.
5231         (regs_set_between_p): Same.
5232         (modified_between_p): Same.
5233         (modified_in_p): Same.
5234         (volatile_insn_p): Same.
5235         (volatile_refs_p): Same.
5236         (side_effects_p): Same.
5237         (may_trap_p): Same.
5238         (inequality_comparisons_p): Same.
5239         (replace_regs): Same.
5240         (computed_jump_p_1): Same.
5241
5242         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5243         argument.
5244         (inner_mode_array): New.
5245         (copy_rtx): Handle vectors.
5246         (copy_most_rtx): Same.
5247         (rtx_equal_p): Same.
5248         (get_mode_alignment): Adjust for vectors.
5249
5250         * resource.c (mark_referenced_resources): Handle vectors.
5251         (mark_set_resources): Same.
5252
5253         * reload1.c (eliminate_regs): Handle vectors.
5254         (elimination_effects): Same.
5255         (scan_paradoxical_subregs): Same.
5256
5257         * reload.c (subst_reg_equivs): Handle vectors.
5258
5259         * regrename.c (scan_rtx): Handle vectors.
5260
5261         * regclass.c (reg_scan_mark_refs): Handle vectors.
5262
5263         * recog.c (find_single_use_1): Handle vectors.
5264
5265         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5266         (contains_replace_regs): Same.
5267         (memref_referenced_p): Same.
5268
5269         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5270         (subst_constants): Same.
5271
5272         * genattrtab.c (attr_copy_rtx): Handle vectors.
5273         (encode_units_mask): Same.
5274         (clear_struct_flag): Same.
5275         (count_sub_rtxs): Same.
5276
5277         * gcse.c (want_to_gcse_p): Handle vectors.
5278         (oprs_unchanged_p): Same.
5279         (hash_expr_1): Same.
5280         (oprs_not_set_p): Same.
5281         (expr_killed_p): Same.
5282         (compute_transp): Same.
5283         (store_ops_ok): Same.
5284
5285         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5286         of vectors.
5287         (fixup_var_refs_1): Same.
5288         (instantiate_virtual_regs_1): Same.
5289
5290         * fold-const.c (operand_equal_p): Handle vectors.
5291         (fold): Same.
5292         (rtl_expr_nonnegative_p): Same.
5293
5294         * flow.c (mark_used_regs): Handle vectors.
5295
5296         * df.c (df_uses_record): Handle vectors.
5297
5298         * cselib.c (cselib_subst_to_values): Handle vectors.
5299         (cselib_mem_conflict_p): Same.
5300         (hash_rtx): Same.
5301
5302         * cse.c (canon_reg): Handle vectors.
5303         (fold_rt): Same.
5304         (cse_process_notes): Same.
5305         (count_reg_usage): Same.
5306         (canon_hash): Same.
5307
5308         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5309
5310         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5311
5312         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5313         (gen_rtx): Handle CONST_VECTOR.
5314         (gen_const_vector_0): New.
5315         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5316         (reset_used_flags): Same.
5317         (copy_insn_1): Same.
5318         (initializer_constant_valid_p): Handle VECTOR_CST.
5319
5320         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5321
5322         * doc/rtl.texi (Constants): Document const_vector.
5323         (CONST0_RTX): Update for vectors.
5324         (RTL sharing): Same.
5325
5326         * print-tree.c (print_node): Add case for VECTOR_CST.
5327
5328         * tree.h (TREE_VECTOR_CST_ELTS): New.
5329         (struct tree_vector): New.
5330         (union tree_node): Add vector node.
5331         (build_vector): Add prototype.
5332
5333         * tree.def (VECTOR_CST): New.
5334
5335         * tree.c (build_vector): New.
5336
5337         * expmed.c (make_tree): Handle CONST_VECTOR.
5338
5339         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5340         (CONST_VECTOR_ELT): New.
5341         (CONST_VECTOR_NUNITS): New.
5342
5343         * machmode.h (GET_MODE_INNER): New.
5344         (DEF_MACHMODE): Accept 8th arg.
5345
5346         * machmode.def: Add 8th argument for vector inner mode.
5347         Add inner vector modes for vectors.
5348
5349         * rtl.def (VEC_CONST): Remove.
5350         (CONST_VECTOR): New.
5351
5352         * expr.c (clear_storage): Allow vectors.
5353         (is_zeros_p): Handle VECTOR_CST.
5354
5355         * varasm.c (output_constant_pool): Handle vectors.
5356         (rtx_const): Add veclo and vechi fields.
5357         (kind): Add RTX_VECTOR.
5358         (decode_rtx_const): Add case for vector.
5359
5360         * config/rs6000/rs6000-protos.h: Add zero_constant.
5361
5362         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5363         constants.  Force easy vector constants into memory.
5364         (easy_vector_constant): New.
5365         (emit_easy_vector_constant): New.
5366         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5367         darwin.
5368
5369         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5370         instruction does.
5371         ("altivec_lvxl"): Same.
5372         (altivec_lvebx): Same.
5373         (altivec_lvehx): Same.
5374         (altivec_lvewx): Same.
5375         ("*movv4si_const0"): New.
5376         ("*movv4sf_const0"): New.
5377         ("*movv8hi_const0"): New.
5378         ("*movv16qi_const0"): New.
5379
5380 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5381
5382         * config/h8300/h8300.c (notice_update_cc): Use
5383         cc_status.value2.
5384
5385 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5386
5387         * config/h8300/h8300.md (divmod patterns): Change the
5388         constraints for operands[1] to register_operand.
5389
5390 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5391
5392         * config/h8300/h8300-protos.h: Remove the prototype for
5393         p_operand.
5394         * config/h8300/h8300.c (p_operand): Remove.
5395         * config/h8300/h8300.md: Replace p_operand with
5396         const_int_operand.
5397
5398 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5399
5400         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5401         comment.
5402         (output_return_instruction): Allow use of LDR to unstack
5403         return addresss even for interrupt handlers or when
5404         interworking.  If compiling for ARMv5, use interworking-safe
5405         return instructions by default.  Remove duplicated code and
5406         lengthy "strcat" sequences.
5407
5408 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5409
5410         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5411         (LINK_EH_SPEC): Define.
5412         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5413
5414 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5415
5416         * config/s390/s390.c (s390_emit_prologue): Do not set the
5417         frame_related flag for call-clobbered registers.
5418
5419 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5420
5421         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5422         (construct_container): Fix handling of SSE operands.
5423         (ix86_expand_builtin): Fix handling of 64bit pointers.
5424         (mmx_maskmovq_rex): New pattern.
5425
5426 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5427
5428         * regrename.c (kill_set_value): Handle subregs properly.
5429
5430 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5431
5432         * objc/objc-act.c (handle_impent): Remove leading '*'
5433         from objc_class_name.
5434
5435 2002-02-17  Richard Henderson  <rth@redhat.com>
5436
5437         * config/alpha/alpha.c (some_small_symbolic_operand,
5438         some_small_symbolic_operand_1, split_small_symbolic_operand,
5439         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5440         Handle small SYMBOL_REFs anywhere, not just inside memories.
5441         * config/alpha/alpha-protos.h: Update.
5442         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5443         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5444
5445 2002-02-17  Roland McGrath  <roland@frob.com>
5446
5447         * config.gcc (powerpc-*-gnu-gnualtivec*,
5448         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5449         * config/rs6000/gnu.h: New file.
5450         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5451         Grok "gnu" in rs6000_abi_name.
5452         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5453         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5454         Grok -mcall-gnu analogous to -mcall-linux et al.
5455         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5456         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5457         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5458
5459 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5460
5461         PR c/3444:
5462         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5463         shortening.
5464
5465 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5466
5467         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5468         ENDFILE_SPEC before (re)defining them.
5469
5470 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5471
5472         * config/h8300/h8300.c: Fix formatting.
5473         * config/h8300/h8300.h: Likewise.
5474
5475 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5476
5477         * doc/tm.texi: Explain why empty strings should not be
5478         marked for translation.
5479
5480 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5481
5482         * final.c (output_operand_lossage): Changed to accept
5483         printf style arguments. Change calls where necessary.
5484         * output.h (output_operand_lossage): Change declaration
5485         accordingly. Update copyright.
5486         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5487         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5488         Update copyright date where necessary.
5489
5490         * config/i386/i386.c (print_operand): Likewise. Remove use of
5491         sprintf.
5492
5493         * config/cris/cris.c (cris_operand_lossage): Likewise.
5494         Rename parameter so that exgettext recognizes it as
5495         translatable message.
5496         (LOSE_AND_RETURN): Rename parameter to msgid.
5497
5498 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5499
5500         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5501         hard coded register number with an appropriate macro.
5502         (HARD_REGNO_MODE_OK): Likewise.
5503         (ARG_POINTER_REGNUM): Likewise.
5504         (STATIC_CHAIN_REGNUM): Likewise.
5505         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5506         * config/h8300/h8300.md (define_constants): Define more
5507         register numbers.
5508
5509 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5510
5511         * config/i386/i386.h: Don't mark empty strings for translation.
5512
5513 2002-02-16  H.J. Lu <hjl@gnu.org>
5514
5515         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5516
5517 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5518
5519         * cppinit.c (merge_include_chains): Check for brack being
5520         NULL before attempting to merge it with qtail.
5521
5522 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5523
5524         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5525         DBX_DEBUG.
5526
5527 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5528
5529         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5530
5531 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5532
5533         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5534         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5535         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5536
5537 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5538
5539         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5540         now only if !TARGET_FIX.
5541         (*movsi_nt_vms_fix): New pattern.
5542
5543 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5544
5545         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5546         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5547         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5548         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5549         (alpha_start_function, alpha_expand_epilogue): Likewise.
5550         (unicosmk_gen_dsib): Likewise.
5551
5552 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5553
5554         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5555
5556 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5557
5558         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5559         check_and_change_labels, s390_final_chunkify): Delete.
5560         (s390_split_branches, s390_chunkify_pool): New functions.
5561         (s390_function_prologue): Call them.
5562
5563         * config/s390/s390.h (S390_REL_MAX): Delete.
5564         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5565
5566         * config/s390/s390.md (cjump, icjump, jump): Fix length
5567         attribute calculation.
5568
5569
5570 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5571
5572         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5573         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5574
5575 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5576
5577         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5578         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5579         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5580
5581 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5582
5583         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5584
5585 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5586
5587         * reload.c (find_dummy_reload): Check that an output register
5588         is valid for its mode.
5589
5590 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5591
5592         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5593         to simplify it.
5594
5595         * function.c (assign_parms): Demote promoted argument passed by
5596         transparent reference.
5597
5598 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5599
5600         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5601         -Acpu() and -Amachine() to eliminate warnings.
5602
5603 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5604
5605         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5606
5607 2002-02-14  Kazu Hirata  <kazu@hxi.com>
5608
5609         * config/h8300/h8300-protos.h: Update the prototype for
5610         const_costs.
5611         * config/h8300/h8300.c (const_costs): Treat SET as a little
5612         more expensive operation.
5613         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5614         reference to const_costs.
5615
5616 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
5617
5618         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5619
5620 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
5621
5622         PR c/5503:
5623         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5624         use arguments from newtype.
5625
5626 2002-02-13  Eric Christopher  <echristo@redhat.com>
5627
5628         * config/mips/mips.c (override_options): Add check for march/mipsX
5629         on the same command line. Fix error message in cpu processing.
5630         Remove architecture and ISA checks.
5631
5632 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5633
5634         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5635
5636         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5637
5638 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5639
5640         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5641         alternatives.
5642         ("*movv8hi_internal1"): Same.
5643         ("*movv16qi_internal1"): Same.
5644         ("*movv4sf_internal1"): Same.
5645
5646         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5647         not push_reload for altivec modes.
5648
5649 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
5650
5651         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5652         all RTEMS targets including removal of #includes from config/*/rtems*.h
5653         file and adding them to tm_file setting. Added xm_defines=POSIX to
5654         many targets.
5655         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5656         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5657         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5658         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5659         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5660         config/m68k/rtemself.h: Ditto.
5661         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5662         config/mips/rtems64.h: Ditto.
5663         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5664         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5665         Ditto.
5666         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5667         config/sparc/rtemself.h: Ditto.
5668         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5669         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5670         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5671         more like arm-elf.
5672         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5673         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5674         target made more similar to i386-elf.
5675         * config/i386/t-rtems-i386: Added soft float support and multilibs.
5676         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5677         be similar to config/m68k/t-m68kelf.
5678         * gthr-rtems.h: Encapsulate with extern "C" for C++.
5679
5680 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
5681
5682         * regmove.c (kill_value): Handle subregs.
5683
5684 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5685
5686         * i386.md (mul patterns): Allow memory operand to be first;
5687         add expanders where needed; fix constraints.
5688         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5689         Allow memory operand to be the first.
5690
5691         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5692         operands.
5693
5694 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5695
5696         PR c/5681:
5697         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5698         GET_MODE (x).
5699
5700 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5701
5702         PR optimization/5547:
5703         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5704         all valid IA-32 address modes involving non-scaled %ebx and
5705         GOT/GOTOFF as displacement.
5706
5707 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5708
5709         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5710         after emitting ltorg insns.
5711
5712         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5713         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5714         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5715         *abssf2): Fix "op_type" attribute.
5716
5717 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
5718
5719         * mkconfig.sh: Avoid using a subshell redirect.
5720         ($output.T): Change to $(output)T.
5721         (ENABLE_NLS): Remove unneeded undef.
5722
5723         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5724         * config/alpha/x-vms (libsubdir): Define.
5725
5726         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5727         register frame procedures. Optimize retrieving context.
5728
5729         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5730         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5731         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5732
5733 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5734
5735         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5736         Make same change as for find_base_value.
5737
5738 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5739
5740         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5741         of QImode and SImode.
5742
5743 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5744
5745         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5746         length computation of movsi.
5747         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5748
5749 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5750
5751         * config/h8300/h8300.md (subqi3): Tighten the predicate for
5752         operands[2] to register_operand.
5753
5754 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
5755
5756         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5757
5758 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
5759
5760         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5761         for altivec_lvx* and altivec_stvx*.
5762         ("*movv4si_internal"): Add constraint for loading from GPRs.
5763         ("*movv8hi_internal1"): Same.
5764         ("*movv16qi_internal1"): Same.
5765         ("*movv4sf_internal1"): Same.
5766
5767         * config/rs6000/rs6000.c (altivec_register_operand): New.
5768
5769         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5770         altivec_register_operand.
5771
5772 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
5773
5774         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5775         handle SYMBOL_REF.
5776
5777 2002-02-13  Stan Shebs  <shebs@apple.com>
5778
5779         * c-typeck.c (digest_init): Handle vectors.
5780         (really_start_incremental_init): Same.
5781         (pop_init_level): Same.
5782         (process_init_element): Same.
5783
5784         * varasm.c (output_constant): Same.
5785
5786         * expr.c (clear_storage): Same.
5787         (store_constructor): Same.
5788
5789 2002-02-12  Eric Christopher  <echristo@redhat.com>
5790
5791         * explow.c (hard_function_value): Add comment explaining
5792         signed/unsigned comparison.
5793
5794 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
5795
5796         * jump.c (never_reached_warning): Add finish argument.
5797         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5798         real insn after end.
5799         * rtl.h (never_reached_warning): Adjust prototype.
5800         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5801         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5802         never_reached_warning.
5803
5804 2002-02-12  Graham Stott  <grahams@redhat.com>
5805
5806         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5807
5808 2002-02-12  Kazu Hirata  <kazu@hxi.com>
5809
5810         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5811         logical shifts on H8/300.
5812         (shift_alg_si): Improve several shifts on H8/300.
5813         (get_shift_alg): Likewise.
5814
5815 2002-02-12  Graham Stott  <grahams@redhat.com>
5816
5817         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5818
5819 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5820
5821         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5822         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5823
5824 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
5825
5826         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5827         non-CONST_INT through default_assemble_integer.
5828         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5829         <case 8>: Abort for CONST_DOUBLE.
5830
5831 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5832
5833         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5834         is specified.
5835         * config/pa/pa-linux.h (LIB_SPEC): Delete.
5836         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5837
5838 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
5839
5840         * config/stormy16/stormy16.md (zero_extendqihi2): New.
5841
5842 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
5843
5844         * regrename.c (regrename_optimize): Don't accept a
5845         part-clobbered register if the replaced register is not part
5846         clobbered.
5847
5848         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5849         take padding into account when computing the argument value.
5850
5851         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5852
5853         * combine.c (try_combine): Apply substitutions in
5854         CALL_INSN_FUNCTION_USAGE too.
5855
5856 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
5857
5858         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5859         __builtin_altivec_abs*.
5860         (bdesc_abs): New.
5861
5862         * config/rs6000/rs6000.h (rs6000_builtins): Add
5863         ALTIVEC_BUILTIN_ABS*.
5864
5865         * config/rs6000/altivec.h: Use const char for builtins expecting
5866         literals.
5867         (vec_abs): New versions for C and C++.
5868         (vec_abss): Same.
5869
5870 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5871
5872         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5873         using Pmode.
5874
5875 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5876
5877         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5878         constant definition from h8300.md.
5879         (FRAME_POINTER_REGNUM): Likewise.
5880         * config/h8300/h8300.md (define_constants): Add FP_REG.
5881
5882 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5883
5884         * config/h8300/h8300.c (print_operand): Remove redundant code.
5885
5886 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5887
5888         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5889         * config/h8300/h8300.c (byte_reg): Make it static.
5890
5891 2002-02-10  Richard Henderson  <rth@redhat.com>
5892
5893         PR c/5623
5894         * c-typeck.c (incomplete_type_error): Handle flexible array members.
5895
5896 2002-02-10  Richard Henderson  <rth@redhat.com>
5897
5898         PR c++/5624
5899         * tree.c (append_random_chars): Don't abort if main_input_filename
5900         does not exist.
5901
5902 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
5903
5904         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5905
5906 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5907
5908         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
5909         (pushhi1): Likewise.
5910
5911 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5912
5913         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5914         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5915
5916 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
5917
5918         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5919         remove MASK_VIS.
5920         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
5921
5922 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5923
5924         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5925         a half of an SImode register on H8/300.
5926
5927 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
5928
5929         * i386.md (movdi_2): Add missing '!'.
5930
5931 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5932
5933         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
5934         definitions.
5935
5936 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5937
5938         * config/h8300/h8300.md (length): Correct the distance valid
5939         for the short branch.
5940
5941 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5942
5943         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5944
5945 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
5946
5947         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5948         registers in SImode.
5949         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5950         part-clobbered.
5951
5952         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5953         patch.
5954
5955         Contribute sh64-elf.
5956         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
5957         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5958         (sh_cannot_modify_jumps_p): New function.
5959         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
5960         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5961         (sh_ms_bitfield_layout_p): New function.
5962         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
5963                     Zack Weinberg  <zack@codesourcery.com>
5964         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5965         expand_simple_binop instead of expand_binop.
5966         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
5967         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5968         use of .quad and .uaquad.
5969         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5970         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5971         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5972         * config/sh/sh.md (movdi_const, movdi_const_32bit,
5973         movdi_const_16bit): Make sure all CONSTs have modes.
5974         (sym2PIC): Ditto, but by adjusting all callers.
5975         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5976         if the prologue calls the SHmedia argument decoder or register
5977         saver.
5978         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5979         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5980         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5981         (sh_expand_epilogue): Don't emit USE of return target register.
5982         (prepare_move_operands): Legitimize DImode PIC addresses.
5983         (sh_media_register_for_return): Skip tr0, used to initialize the
5984         PIC register.
5985         (sh_expand_prologue): Remove explicit USE of return register.
5986         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
5987         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
5988         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5989         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5990         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5991         EXTRA_CONSTRAINT_T.
5992         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5993         (MOVI_SHORI_BASE_OPERAND_P): New.
5994         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5995         (EXTRA_CONSTRAINT_T): Define in terms of them.
5996         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5997         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5998         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5999         alternatives supporting TARGET_REGS.
6000         (UNSPEC_GOTPLT): New constant.
6001         (movdi split): Move incrementing of LABEL_NUSES...
6002         (movdi_const, movdi_const_32bit): Here.  Use
6003         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6004         (movdi_const_16bit): New.
6005         (call, call_value) [flag_pic]: Use GOTPLT.
6006         (call_pop, call_value_pop): New expands.
6007         (call_pop_compact, call_pop_rettramp): New insns.
6008         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6009         (sibcall) [flag_pic]: Use GOT.
6010         (builtint_setjmp_receiver): Remove bogus, unused expand.
6011         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6012         (*pt, *ptb, ptrel): New insns.
6013         (sym2GOT): Handle DImode GOT.
6014         (sym2GOTPLT, symGOTPLT2reg): New expands.
6015         (sym2PIC): New expand.
6016         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6017         (shcompact_return_tramp_i): Use return register explicitly.
6018         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6019         disable flag_reorder_blocks.
6020         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6021         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6022         clobbers, for clarity.
6023         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6024         restoring of r0 in macl as MAYBE_DEAD.
6025         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6026         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6027         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6028         alter_subreg all over.
6029         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6030         reload, instead of emitting instructions that would require
6031         reloading.
6032         (casesi_load_media): Add missing modes.
6033         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6034         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6035         as used if the argument decoder is called.
6036         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6037         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6038         Pmode, then extend it to DImode if necessary.
6039         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6040         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6041         constants in FPU-enabled SHmedia, let them be loaded from memory.
6042         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6043         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6044         Adjust whitespace in assembly output templates.
6045         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6046         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6047         mode of if_then_else.
6048         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6049         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6050         sh.h.
6051         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6052                     Joern Rennecke <amylaar@redhat.com>
6053         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6054         (SUBTARGET_CPP_PTR_SPEC): New.
6055         (SUBTARGET_CPP_SPEC): Remove.
6056         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6057         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6058         Fix typo in previous checkin.
6059         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6060         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6061         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6062                     Alexandre Oliva  <aoliva@redhat.com>
6063         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6064         what single FP register can hold for SHmedia target.
6065         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6066                     Alexandre Oliva  <aoliva@redhat.com>
6067         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6068         Do not split into SUBREG.
6069         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6070         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6071         and added new functions as specified in SH5 ABI r9.
6072         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6073         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6074         8-byte boundary.
6075         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6076         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6077         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6078         and consttable_window_ends.
6079         2001-06-03  Graham Stott  <grahams@redhat,com>
6080         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6081         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6082         * config/sh/sh.c (print_operand): Handle floating-point pair,
6083         vector and matrix registers.
6084         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6085         vector modes into account.
6086         * config/sh/sh.md (movv2sf): Split move between registers into
6087         movdf.
6088         (movv4sf, movv16sf): Introduce insns that get split only after
6089         reload.
6090         * config/sh/shmedia.h: Fix Copyright dates.
6091         * config/sh/ushmedia.h: Likewise.  Move loop counter
6092         declarations into conditionals that uses them.
6093         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6094         loop boundary.
6095         * config/sh/sshmedia.h: Fix Copyright dates.
6096         (sh_media_PUTCFG): Fix constraints.
6097         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6098         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6099         ptrmemfunc_vbit_in_delta for SH5.
6100         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6101         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6102         * invoke.texi: Likewise.
6103         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6104         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6105         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6106         GCC_pop_shmedia_regs_nofpu): New global symbols.
6107         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6108         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6109         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6110         compact function with nonlocal labels.
6111         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6112         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6113         (initial_elimination_offset): Account for their stack space.
6114         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6115         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6116         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6117         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6118         least one of the operands to be a register.
6119         (movv2sf): Likewise.  Renamed to movv2sf_i.
6120         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6121         prepare_move_operands() before emitting SHmedia insns.
6122         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6123         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6124         Don't save nor initialize r12.  Don't mis-align the stack.
6125         Pad the code with a nop.
6126         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6127         stack.
6128         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6129         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6130         [__SHMEDIA__]: Implement.
6131         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6132         * config/sh/sh.md: Set latency of `pt' closer to reality.
6133         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6134         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6135         Set move, load and store type attributes.
6136         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6137         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6138         profiling.
6139         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6140         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6141         * config/sh/sh.c (sh_media_register_for_return): New function.
6142         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6143         branch-target register.
6144         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6145         * config/sh/sh.md (return_media_i): Use any call-clobbered
6146         branch-target register.
6147         (return_media): If r18 wasn't copied in the prologue, copy it
6148         here.
6149         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6150         Clear class FP0_REGS.
6151         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6152         from elf.h.
6153         2001-03-08  DJ Delorie  <dj@redhat.com>
6154         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6155         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6156         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6157         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6158         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6159         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6160         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6161         return value correctly for call_cookie.
6162         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6163         * config/sh/crt1.asm (start): Modified so as to call
6164         ___setup_argv_and_call_main.
6165         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6166         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6167         SHmedia mode.
6168         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6169         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6170         (STRIP_NAME_ENCODING): Use it.
6171         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6172         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6173         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6174         prepare_scc_operands().
6175         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6176         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6177         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6178         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6179         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6180         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6181         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6182         used in shcompact_incoming_args.
6183         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6184         change.
6185         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6186         mode.
6187         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6188         Adjust accordingly.
6189         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6190         Simplify.  Adjust.  Add sanity check.
6191         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6192         FPU_SINGLE_BIT.
6193         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6194         TARGET_SHCOMPACT.
6195         (udivsi3, divsi3): Use them.
6196         (force_mode_for_call): New insn.
6197         (call, call_value, sibcall_value): Emit it before SHcompact
6198         calls.
6199         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6200         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6201         call cookie is non-NULL before taking its value.
6202         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6203         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6204         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6205         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6206         block.
6207         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6208         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6209         temporary for stack adjusts.  Use MACL and MACH to pass
6210         arguments to shcompact_incoming_args.
6211         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6212         clobber r1.
6213         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6214         (nested_trampoline): Load static chain address into r1.
6215         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6216         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6217         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6218         fp_arith_reg_operand().
6219         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6220         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6221         and use signed compares for them.
6222         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6223         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6224         ones properly aligned.
6225         (find_barrier): Account for extra alignment needed for 8-byte wide
6226         constants.
6227         (machine_dependent_reorg): Require a label for the second 4-byte
6228         constant after an 8-byte one.
6229         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6230         change.
6231         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6232         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6233         last_float when switching float modes.
6234         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6235         auto-increment for general-purpose registers.
6236         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6237         result.
6238         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6239         for stack adjust.
6240         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6241         registers for varargs.
6242         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6243         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6244         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6245         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6246         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6247         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6248         call_cookie accordingly.
6249         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6250         (SHCOMPACT_BYREF): Likewise.
6251         (SHCOMPACT_FORCE_ON_STACK): New macro.
6252         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6253         (sh_builtin_saveregs): Likewise.
6254         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6255         shcompact_incoming_args): Use new shift values.  Support
6256         sequences of consecutive and non-consecutive pushes/pops.
6257         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6258         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6259         * config/sh/sh.h (TEXT_SECTION): Define.
6260         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6261         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6262         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6263         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6264         return values on FPU-enabled SHmedia.
6265         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6266         FPU-enabled SHmedia.
6267         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6268         value is returned in a non-FP reg and is not returned by
6269         reference.
6270         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6271         jump_ind.
6272         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6273         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6274         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6275         quad-aligned to be passed by callee-copy reference.
6276         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6277         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6278         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6279         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6280         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6281         copying low-numbered FP regs to r7 and r8.
6282         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6283         FP regs to general-purpose regs only if the copy was passed on the
6284         stack.
6285         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6286         copying FP reg to r9.
6287         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6288         copy FP regs to general-purpose regs only in outgoing calls.
6289         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6290         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6291         HOST_WIDE_INT.
6292         * config/sh/sh.h (struct sh_args): Document all fields.
6293         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6294         passed partially on the stack should not consider making
6295         sibcalls.
6296         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6297         stack_regs only for incoming calls.  When passing FP args,
6298         make sure there are FP regs available before modifying
6299         call_cookie.
6300         (SHCOMPACT_BYREF): Pass double args in general-purpose
6301         registers by reference.
6302         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6303         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6304         attempt to generate sibcalls if the caller got any arguments
6305         by reference.
6306         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6307         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6308         to 8-byte boundaries.
6309         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6310         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6311         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6312         stored in the stack.
6313         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6314         for the offsets to have the ISA bit set.
6315         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6316         invocation.  Use beq instead of bgt to mark end of sequence of
6317         loads.
6318         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6319         bgt to mark end of sequence of stores.
6320         * config/sh/sh.c (arith_operand): Don't check whether
6321         CONST_OK_FOR_J for now.
6322         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6323         instead of long for conversion.
6324         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6325         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6326         before passing it to fprintf.
6327         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6328         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6329         Call set_fpscr before reading/writing SR.
6330         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6331         Call set_fpscr.
6332         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6333         SHmedia code.
6334         (FMOVD_WORKS): Define on SH5 with FPU.
6335         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6336         setting.
6337         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6338         _fpscr_values.
6339         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6340         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6341         address.
6342         (ia_main_table): Ditto.
6343         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6344         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6345         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6346         the definitions from sh.h.
6347         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6348         TARGET_SH5.
6349         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6350         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6351         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6352         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6353         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6354         Increment LABEL_NUSES.
6355
6356         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6357         TARGET_SH5.
6358         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6359         defined.
6360         * config/sh/elf.h (SIZE_TYPE): Likewise.
6361         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6362         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6363         shcompact_incoming_args): Load switch table addresses using
6364         datalabel.
6365         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6366         (NO_BUILTIN_SIZE_TYPE): Define.
6367         (SIZE_TYPE): Don't define.
6368         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6369         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6370         definition of __SH5__=32 for -m5-compact-nofpu.
6371         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6372         ADDR_DIFF_VEC.
6373         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6374         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6375         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6376         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6377         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6378         (INSN_LENGTH_ALIGNMENT): Likewise.
6379         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6380         * config/sh/sh.md (call, call_value, sibcall): Simplify
6381         copying of non-branch-target register.
6382         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6383         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6384         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6385         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6386         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6387         floating-point values as structs.
6388         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6389         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6390         general-purpose register.
6391         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6392         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6393         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6394         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6395         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6396         (ENCODE_SECTION_INFO): Enclose variables and constants in
6397         DATALABEL unspecs.
6398         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6399         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6400         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6401         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6402         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6403         SH_DATALABEL_ENCODING to the symbol name.
6404         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6405         convert_mode().
6406         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6407         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6408         UNSPEC_DATALABEL.
6409         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6410         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6411         (DATALABEL_REF_P): Don't require CONST.
6412         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6413         REL label.
6414         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6415         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6416         right.
6417         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6418         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6419         Use shallow_copy_rtx and PUT_MODE to change the mode of
6420         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6421         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6422         on SHmedia using GENERAL_REGs.
6423         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6424         bltu_media_i): Fix reversion of conditions.
6425         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6426         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6427         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6428         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6429         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6430         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6431         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6432         (GCC_nested_trampoline): Likewise.
6433         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6434         * config/sh/sh.c (gen_datalabel_ref): Define.
6435         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6436         (INITIALIZE_TRAMPOLINE): Likewise.
6437         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6438         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6439         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6440         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6441         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6442         (ic_invalidate): Adjust for SH5.
6443         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6444         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6445         _nested_trampoline.
6446         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6447         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6448         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6449         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6450         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6451         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6452         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6453         * config/sh/sh.c (target_reg_operand): Match only target-branch
6454         registers and pseudos that aren't virtual registers.
6455         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6456         Copy operands that don't match target_reg_operand to pseudos.
6457         (call_media, call_value_media, sibcall_media): Use
6458         target_reg_operand instead of target_operand.
6459         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6460         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6461         * config/sh/sh.c (target_reg_operand): Match hardware registers
6462         other than branch-target registers.
6463         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6464         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6465         (fpscr_values) [SH5 == 32]: Define.
6466         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6467         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6468         Handle function addresses coming in SUBREGs.
6469         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6470         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6471         shcompact_return_trampoline): Use datalabel where appropriate.
6472         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6473         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6474         general-purpose register to copy one branch-target register to
6475         another.
6476         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6477         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6478         SYMBOL_REFs with VOIDmode.
6479         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6480         bltu_media_i): New insns.
6481         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6482         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6483         (INIT_CUMULATIVE_ARGS): Likewise.
6484         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6485         * machmode.def (V16SFmode): New mode.
6486         * c-common.c (type_for_mode): Support V2SF and V16SF.
6487         * tree.c (build_common_tree_nodes_2): Likewise.
6488         * tree.h (tree_index): Likewise.
6489         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6490         callers.  Introduce CALL_POPS_ARGS.
6491         * tm.texi (CALL_POPS_ARGS): Document.
6492         * config/sh/crt1.asm: Implement in SHmedia mode.
6493         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6494         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6495         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6496         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6497         Implement divsi and udivsi in SHmedia mode.  Introduce
6498         SHcompact trampolines.
6499         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6500         only in SHmedia64.
6501         (regno_reg_class): Rewrite.
6502         (fp_reg_names): Remove.
6503         (sh_register_names, sh_additional_register_names): New.
6504         (print_operand): Added `u'.  Support SUBREGs in addresses.
6505         Add parentheses around shifted CONSTs.
6506         (output_file_start): Output .mode and .abi directives.
6507         (shiftcosts, addsubcosts, multcosts): Adjust.
6508         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6509         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6510         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6511         bytes, not registers.  Take into account the need for the
6512         SHcompact incoming args trampoline.  Adjust all callers.
6513         (sh_expand_prologue): Take stack_regs into account.  Call
6514         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6515         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6516         stack aligned as per SH5 ABI.
6517         (sh_builtin_saveregs): Support SH5 ABI.
6518         (sh_build_va_list, sh_va_start): Likewise.
6519         (initial_elimination_offset): Take alignment into account.
6520         Compute location of PR according to the SH5 stack frame.
6521         (arith_reg_operand): Reject branch-target registers.
6522         (shmedia_6bit_operand): New.
6523         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6524         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6525         (target_operand): New.
6526         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6527         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6528         SIBCALL_REGS for SHmedia.
6529         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6530         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6531         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6532         (TARGET_SWITCHES): New SH5 flags.
6533         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6534         VALID_REGISTER_P to disable unsupported registers.
6535         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6536         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6537         (FUNCTION_ARG_PADDING): Define.
6538         (FASTEST_ALIGNMENT): Adjust.
6539         (SH_REGISTER_NAMES_INITIALIZER): New.
6540         (sh_register_names): Declare.
6541         (DEBUG_REGISTER_NAMES): Define.
6542         (REGISTER_NAMES): Define based on sh_register_names.
6543         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6544         (sh_additional_register_names): Declare.
6545         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6546         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6547         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6548         (REGISTER_NATURAL_MODE): Define.
6549         (FIRST_PSEUDO_REGISTER): Adjust.
6550         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6551         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6552         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6553         (VECTOR_MODE_SUPPORTED_P): Define.
6554         (REG_CLASS_CONTENTS): Adjust.
6555         (SMALL_REGISTER_CLASSES): Adjust.
6556         (REG_ALLOC_ORDER): Adjust.
6557         (INDEX_REG_CLASS): Adjust.
6558         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6559         (CONST_OK_FOR_LETTER_P): Adjust.
6560         (PREFERRED_RELOAD_CLASS): Adjust.
6561         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6562         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6563         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6564         (FIRST_FP_PARM_REG): Adjust.
6565         (CALL_POPS_ARGS): Define.
6566         (FUNCTION_ARG_REGNO_P): Adjust.
6567         (struct sh_args): New fields.
6568         (GET_SH_ARG_CLASS): Adjust.
6569         (INIT_CUMULATIVE_ARGS): Adjust.
6570         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6571         (FUNCTION_ARG_ADVANCE): Adjust.
6572         (FUNCTION_ARG): Adjust.
6573         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6574         (FUNCTION_ARG_CALLEE_COPIES): Define.
6575         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6576         (STRICT_ARGUMENT_NAMING): Define.
6577         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6578         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6579         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6580         (SETUP_INCOMING_VARARGS): Adjust.
6581         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6582         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6583         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6584         (SUBREG_OK_FOR_INDEX_P): Adjust.
6585         (EXTRA_CONSTRAINT_S): Update.
6586         (EXTRA_CONSTRAINT_T): New.
6587         (EXTRA_CONSTRAINT): Adjust.
6588         (GO_IF_LEGITIMATE_INDEX): Adjust.
6589         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6590         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6591         (MOVE_MAX): Adjust.
6592         (MAX_MOVE_MAX): Define.
6593         (Pmode): Adjust.
6594         (CONST_COSTS): Adjust.
6595         (REGISTER_MOVE_COST): Adjust.
6596         (BRANCH_COST): Adjust.
6597         (TEXT_SECTION_ASM_OP): Adjust.
6598         (DBX_REGISTER_NUMBER): Adjust.
6599         (ASM_OUTPUT_DOUBLE_INT): New.
6600         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6601         (PREDICATE_CODES): Adjust.
6602         (PROMOTE_MODE): Adjust.
6603         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6604         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6605         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6606         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6607         (DR0_REG, DR2_REG, DR4_REG): Renumber.
6608         (TR0_REG, TR1_REG, TR2_REG): New.
6609         (XD0_REG): Renumber.
6610         (UNSPEC_COMPACT_ARGS): New.
6611         (type): Added pt and ptabs.
6612         (length): Default to 4 on SHmedia.  Default pt length to 12
6613         and     20 on SHmedia32 and SHmedia64, respectively.
6614         (pt): New function unit.
6615         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
6616         Add whitespace between operands of SHmedia instructions.
6617         (movdicc): Fix.
6618         (adddi3_media, addsi3_media): Adjust constraints.
6619         (subsi3) [SHmedia]: Force operand 1 into a register.
6620         (udivsi3_i1_media, udivsi3_i4_media): New.
6621         (udivsi3): Support SHmedia.
6622         (divsi3_i1_media, divsi3_i4_media): New.
6623         (divsi3): Support SHmedia.
6624         (anddi3, iordi3, xordi3): Adjust constraints.
6625         (zero_extendhidi2, zero_extendqidi2): New.
6626         (extendsidi2, extendhidi2, extendqidi2): New.
6627         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6628         (pop_e, pop_fpul, pop_4): Likewise.
6629         (movsi_media): Support FP and BT registers.
6630         (movsi_media_nofpu): New.  Adjust splits to DImode.
6631         (lduw, ldub): Renamed to zero_extend* above.
6632         (movqi_media): Fix typo.
6633         (movdi_media): Support FP and BT registers.
6634         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
6635         (movdi_const_32bit): New.
6636         (shori_media): Require immediate operand.  Use `u' for output.
6637         (movdf_media, movsf_media): Simplified.
6638         (movdf_media_nofpu, movsf_media_nofpu): New.
6639         (movdf, movsf): Adjust
6640         (movv2sf, movv2sf, movv16sf): New.
6641         (beq_media, beq_media_i): Adjust constraints.  Don't use
6642         scratch BT register.
6643         (bne_media, bne_media_i): Likewise.
6644         (bgt_media, bgt_media_i): Likewise.
6645         (bge_media, bge_media_i): Likewise.
6646         (bgtu_media, bgtu_media_i): Likewise.
6647         (bgeu_media, bgeu_media_i): Likewise.
6648         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6649         bunordered): Emit jump insn.  Force operands to registers when
6650         needed.
6651         (jump_media, jump): Simplify.
6652         (call_compact, call_compact_rettramp): New.
6653         (call_value_compact, call_value_compact_rettramp): New.
6654         (call_media, call_value_media): Simplify.
6655         (sibcall_compact, sibcall_media): New.
6656         (call, call_value): Adjust for SHmedia and SHcompact.
6657         (sibcall, sibcall_value, untyped_call): Likewise.
6658         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6659         (indirect_jump): Adjust for SHmedia.
6660         (casesi_jump_media): New.
6661         (nop): Re-enable for SHmedia.
6662         (call_site): Restrict to SH1.
6663         (casesi): Adjust for SHmedia.
6664         (casesi_shift_media, casesi_load_media): New.
6665         (return): Explicitly use PR register.  Call return trampoline
6666         on SHcompact.
6667         (return_i): Explicitly use PR register.
6668         (shcompact_return_tramp, shcompact_return_tramp_i): New.
6669         (return_media): Adjust.
6670         (shcompact_incoming_args): New.
6671         (epilogue): Adjust.
6672         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6673         (movstrsi): Disable on SH5.
6674         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6675         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6676         (subsf3, subsf3_media): Likewise.
6677         (mulsf3, mulsf3_media, mac_media): Likewise.
6678         (divsf3, divsf3_media): Likewise.
6679         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
6680         (floatsisf2, fux_truncsfsi2): Likewise.
6681         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
6682         constraints.
6683         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6684         (cmpunsf_media, cmpsf): Likewise.
6685         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6686         (abssf2, abssf2_media): Likewise.
6687         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6688         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6689         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
6690         (floatsidf2, fix_truncdfsi2): Likewise.
6691         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
6692         constraints.
6693         (cmpeqdf_media, cmpgtdf_media): Likewise.
6694         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6695         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6696         (absdf2, absdf2_media): Likewise.
6697         (extendsfdf2, extendsfdf2_media): Likewise.
6698         (truncsfdf2, truncsfdf2_media): Likewise.
6699         * config/sh/sh64.h: New file.
6700         * config/sh/t-sh64: New file.
6701         * config/sh/shmedia.h: New file.
6702         * config/sh/ushmedia.h: New file.
6703         * config/sh/sshmedia.h: New file.
6704         * configure.in: Added sh64-*-elf.
6705         * configure: Rebuilt.
6706         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
6707         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6708         (reg_class_from_letter): Use `b' for TARGET_REGS.
6709         (print_operand): Support `%M', `%m', `AND' and
6710         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
6711         (andcosts): Adjust for SHmedia.
6712         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6713         Likewise.
6714         (target_reg_operand): New function.
6715         * config/sh/sh-protos.h (target_reg_operand): Declare.
6716         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6717         FP registers on SH5.
6718         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6719         on SH4.
6720         (TARGET_REGISTER_P): New macro.
6721         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6722         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6723         (EXTRA_CONSTRAINT_S): New macro.
6724         (EXTRA_CONSTRAINT): Adjust.
6725         (FLOAT_TYPE_SIZE): Define to 32.
6726         (Pmode): DImode on SHmedia.
6727         (CONST_COSTS): Adjust for SHmedia literals.
6728         (PREDICATE_CODES): Added target_reg_operand.
6729         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6730         * config/sh/sh.md: Remove all attrs from SHmedia insns.
6731         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6732         (cmpdi): Accept SHmedia.
6733         (movdicc_false, movdicc_true): New insns.
6734         (movdicc): New expand.
6735         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6736         no_new_pseudos.
6737         (addsi3_media): Match `S' constraint.
6738         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6739         (negdi2): Expand for SHmedia.
6740         (one_cmpldi2): New expand.
6741         (zero_extendsidi2): Change from expand to insn.
6742         (extendsidi2): Add constraints.
6743         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
6744         LD/ST address.  Fix SI immediate loading split.
6745         (movhi_media, movqi_media, lduw, ldub): New insns.
6746         (movhi, movqi): Accept SHmedia.
6747         (shori_media, movdi_media): Relax input constraints.  Split
6748         symbolic constants.
6749         (movdf_media, movsf_media): New insn.  New split to movdi.
6750         (movdf, movsf): Match on SHmedia.
6751         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6752         bgeu_media): New insns and splits.  New insns with `_i' suffix.
6753         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6754         (bunordered): New expand.
6755         (jump_compact): Renamed from `jump'.
6756         (jump_media): New insn.
6757         (jump): New expand.
6758         (call_media, call_value_media): New insns.
6759         (call, call_value): Adjust.
6760         (indirect_jump_compact): Renamed from `indirect_jump'.
6761         (indirect_jump_media): New insn.
6762         (indirect_jump): New expand.
6763         (untyped_call, return): Accept SHmedia.
6764         (return_media): New insn.
6765         (prologue, epilogue, blockage): Accept SHmedia.
6766         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6767         (sunordered): New expand.
6768         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6769         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6770         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6771         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6772         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6773         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6774         abssf2_media): New insns.
6775         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6776         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6777         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6778         floatdidf2, floatsidf2_media, fix_truncdfdi2,
6779         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6780         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6781         absdf2_media): New insns.
6782         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6783         (extendsfdf2_media, truncdfsf2_media): New insns.
6784         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
6785         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6786         * config/sh/sh.h (CONST_OK_FOR_J): Document.
6787         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6788         * config/sh/sh.md (adddi3): New expand.
6789         (adddi3_media, adddi3z_media): New insns.
6790         (adddi3_compact): Renamed from adddi3.
6791         (addsi3_media): Use add.l r63 to add constant zero.
6792         (subdi3): New expand.
6793         (subdi3_media): New insn.
6794         (subdi3_compact): Renamed from subdi3.
6795         (mulsidi3): New expand.
6796         (mulsidi3_media): New insn.
6797         (mulsidi3_compact): Renamed from mulsidi3.
6798         (umulsidi3): New expand.
6799         (umulsidi3_media): New insn.
6800         (umulsidi3_compact): Renamed from umulsidi3.
6801         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6802         (ashlsi3, ashrsi3, lshrsi3): Use them.
6803         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6804         (ashldi3, ashrdi3, lshrdi3): Use them.
6805         (zero_extendsidi2): New expand.
6806         (extendsidi2): New insn.
6807         (movsi_media): New insn.  Split to movdi to load constants.
6808         (movsi): Enable for shmedia.
6809         (movdi_media): New insn.  Use shori_media to load wide constants.
6810         (short_media): New insn.
6811         (movdi): Enable for shmedia.
6812         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
6813         * config/sh/sh.h (CPP_SPEC): Added `m5'.
6814         (SUBTARGET_CPP_SPEC): Added `!m5'.
6815         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6816         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
6817         to all other SH variants.
6818         (TARGET_DEFAULT): Set to SH1_BIT.
6819         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6820         (BITS_PER_WORD): Raise to 64 on shmedia.
6821         (MAX_BITS_PER_WORD): Change to 64.
6822         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6823         (INT_TYPE_SIZE): Keep as 32.
6824         (UNITS_PER_WORD): Raise to 8 on shmedia.
6825         (MIN_UNITS_PER_WORD): Keep as 4.
6826         (POINTER_SIZE): Raise to 64 on shmedia.
6827         (CONST_OK_FOR_J): New macro.
6828         (CONST_OK_FOR_LETTER_P): Use it.
6829         (processor_type): Add PROCESSOR_SH5.
6830         * config/sh/sh.md: Conditionalize all expands, insns and
6831         splits to TARGET_SH1.
6832         (cpu): Added sh5.
6833         (addsi3_compact): Renamed from...
6834         (addsi3): Now an expand.
6835         (addsi3_media, subsi3_media): New insns.
6836         (subsi3): Don't negate constants with SHmedia.
6837
6838         * hooks.c: New file.
6839         * hooks.h: New file.
6840         * Makefile.in (HOOKS_H): New.
6841         (TARGET_DEF_H): Added $(HOOKS_H).
6842         (OBJS): Added hooks.o.
6843         (cfgcleanup.o, bb-reorder.o): Added target.h.
6844         (hooks.o): Added dependencies.
6845         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6846         (TARGET_INITIALIZER): this.
6847         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6848         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6849         * bb-reorder.c: Include target.h.
6850         (reorder_basic_blocks): Skip if cannot modify jumps.
6851         * cfgcleanup.c: Include target.h.
6852         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6853
6854 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6855
6856         * config/mips/mips.md (casesi_internal, casesi_internal_di):
6857         Protect jump delay slot instructions with .set noreorder and
6858         .set nomacro.
6859
6860 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6861
6862         * config/mips/mips.md (casesi_internal_di): Calculate
6863         the index into the target offset table correctly.
6864
6865 2002-02-08  Richard Henderson  <rth@redhat.com>
6866
6867         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6868         * final.c (output_addr_const): Accept and discard SUBREG.
6869         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6870         mark them unknown instead.
6871         (simplify_subtraction): Handle RTX_UNKNOWN.
6872         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6873
6874 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
6875
6876         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6877
6878 2002-02-08  Richard Henderson  <rth@redhat.com>
6879
6880         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6881
6882 2002-02-08  Andreas Jaeger  <aj@suse.de>
6883
6884         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6885         * config/i386/t-linux64: New file.
6886
6887 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
6888
6889         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6890         * c-parse.in (compstmt): Clear last_expr_type.
6891
6892 2002-02-07  Richard Henderson  <rth@redhat.com>
6893
6894         * loop.c (strength_reduce): Sink final_value when not
6895         eliminating a biv.
6896
6897 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
6898
6899         * config/sparc/freebsd.h: Fix mismatched spec {.
6900
6901 2002-02-07  Richard Henderson  <rth@redhat.com>
6902
6903         * cfgrtl.c: Include recog.h and insn-config.h.
6904         (keep_with_call_p): Fix general_operand invocation.
6905         * Makefile.in (cfgrtl.o): Update dependencies.
6906
6907 2002-02-07  Kazu Hirata  <kazu@hxi.com>
6908
6909         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6910         comment.  Accept HImode only if TARGET_H8300.
6911
6912 2002-02-07  Eric Christopher  <echristo@redhat.com>
6913
6914         * config/mips/crtn.asm: Cleanup #ifdefs.
6915
6916 2002-02-07  Eric Christopher  <echristo@redhat.com>
6917
6918         * config/mips/crti.asm: Add changes for mips16. mips16 uses
6919         register 7 as RA instead of $31.
6920         * config/mips/crtn.asm: Ditto.
6921         * config/mips/mips.c (mips_move_2words): Add case for
6922         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6923         (compute_frame_size): Fix typo.
6924         (save_restore_insns): Ditto.  Make documentation about using
6925         register $7 as return register more precise.
6926         (mips_expand_epilogue): Fix comment. Add code to work around not
6927         being able to add to the stack pointer directly.
6928         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6929         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6930         epilogue.
6931
6932 2002-02-07  Tom Rix  <trix@redhat.com>
6933
6934         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
6935         immediates in ldu and stdu DS opcode field.
6936         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6937         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6938         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6939
6940 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
6941
6942         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6943         offset for stack bias.
6944
6945 2002-02-07  H.J. Lu <hjl@gnu.org>
6946
6947         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6948
6949 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
6950
6951         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6952
6953 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
6954
6955         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6956         * i386.c (x86_order_regs_for_local_alloc): New global function.
6957         * i386.h (REG_ALLOC_ORDER): CLeanup.
6958         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6959
6960 2002-02-07  Richard Henderson  <rth@redhat.com>
6961
6962         PR optimization/2463
6963         * alias.c (find_base_value): Recall base values for fixed hard regs.
6964         * loop.c (loop_regs_update): Don't use single_set on non-insns.
6965
6966 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
6967
6968         * config/mips/mips.md (define_delay) [mips16]: Adjust required
6969         length.
6970
6971 2002-02-06  Richard Henderson  <rth@redhat.com>
6972
6973         PR c/5609
6974         * stmt.c (resolve_operand_name_1): Take more care with mixed
6975         named and unnamed operands.
6976
6977 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
6978             Jan Hubicka  <jh@suse.cz>
6979
6980         * loop.c (remove_constant_addition): Avoid clobbering a shared
6981         CONST expression.
6982
6983 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6984
6985         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6986         * config/s390/t-linux64: New file.
6987         * config/s390/libgcc-glibc.ver: New file.
6988
6989 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6990
6991         * config/s390/linux64.h: Delete file.
6992         * config/s390/s390x.h: New file.
6993         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6994         as target header file.
6995         * config/s390/linux.h (TARGET_VERSION): Define depending on
6996         DEFAULT_TARGET_64BIT.
6997         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6998         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6999         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7000         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7001         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7002         (EXTRA_SPEC): New define.
7003         * config/s390/s390.h (TARGET_VERSION): Define depending on
7004         DEFAULT_TARGET_64BIT.
7005         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7006
7007 2002-02-06  Jason Merrill  <jason@redhat.com>
7008
7009         * c-decl.c (finish_function): Warn about a non-void function with
7010         no return statement and no abnormal exit.
7011         (current_function_returns_abnormally): New variable.
7012         (start_function): Clear it.
7013         (struct c_language_function): Add returns_abnormally.
7014         (push_c_function_context): Save it.
7015         (pop_c_function_context): Restore it.
7016         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7017         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7018         an explicit return type.
7019         * c-tree.h: Declare current_function_returns_abnormally.
7020         (C_FUNCTION_IMPLICIT_INT): New macro.
7021         * c-typeck.c (build_function_call): Set it.
7022         (c_expand_return): Set current_function_returns_value even if the
7023         value is erroneous.
7024
7025 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7026
7027         PR c/5420:
7028         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7029         unsafe for reevaluation.
7030
7031 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7032
7033         PR c/5482:
7034         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7035         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7036
7037 2002-02-06  Richard Henderson  <rth@redhat.com>
7038
7039         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7040         be a general_operand.  Dest for function value must be a pseudo.
7041
7042 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7043
7044         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7045         as SYMBOL_REFs from the constant pool.
7046
7047 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7048
7049         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7050         passed by invisible reference.
7051
7052 2002-02-05  Richard Henderson  <rth@redhat.com>
7053
7054         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7055
7056 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7057
7058         Implement using "base addresses" in insn operands as default.
7059         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7060         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7061         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7062         used to read the rtx value.
7063         (mmix_target_asm_function_epilogue): Fix spacing.
7064         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7065         (mmix_legitimate_address): Ditto.
7066         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7067         should be loaded with a GETA insn.  Don't allocate needless extra
7068         char for nul termination and fix misleading comment.
7069         (mmix_print_operand_address): Handle constants if
7070         TARGET_BASE_ADDRESSES.
7071         (mmix_output_register_setting): Use base addressing if
7072         TARGET_BASE_ADDRESSES and the number of insns is 3.
7073         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7074         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7075         to use R as constraint, add LDA to match s.
7076         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7077         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7078         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7079         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7080         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7081         order with other fixed registers.
7082         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7083         other parameter/call-clobbered registers.
7084         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7085         -mbase-addresses, -mno-base-addresses.
7086         (MMIX Options): Ditto.
7087
7088 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7089
7090         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7091
7092 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7093
7094         * config/rs6000/altivec.h: Change elem to _S_elem.
7095
7096 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7097
7098         * config/netbsd.h (WCHAR_TYPE): Define.
7099         (WCHAR_TYPE_SIZE): Ditto.
7100         (WINT_TYPE): Ditto.
7101         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7102         (WCHAR_UNSIGNED): Ditto.
7103         (WCHAR_TYPE_SIZE): Ditto.
7104         (WINT_TYPE): Ditto.
7105         * config/arm/netbsd.h: Likewise.
7106         * config/i386/netbsd-elf.h: Likewise.
7107         * config/i386/netbsd.h: Likewise.
7108         * config/m68k/netbsd-elf.h: Likewise.
7109         * config/m68k/netbsd.h: Likewise.
7110         * config/ns32k/netbsd.h: Likewise.
7111         * config/sparc/netbsd.h: Likewise.
7112         * config/vax/netbsd.: Likewise.
7113
7114 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7115
7116         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7117         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7118         (TARGET_INITIALIZER): this.
7119         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7120         (BITFIELD_NBYTES_LIMITED): Markup fix.
7121         * tree.h (default_ms_bitfield_layout_p): Declare.
7122         (record_layout_info): Added prev_field.
7123         * tree.c (default_ms_bitfield_layout_p): New fn.
7124         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7125         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7126         * stor-layout.c: Include target.h.
7127         (start_record_layout): Initialize prev_field.
7128         (place_field): Handle MS bit-field layout, and disregard
7129         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7130         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7131         * Makefile.in (stor-layout.o): Adjust dependencies.
7132
7133 2002-02-05  Jason Merrill  <jason@redhat.com>
7134
7135         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7136
7137 2002-02-05  Andreas Jaeger  <aj@suse.de>
7138
7139         * crtstuff.c: Fix comments.
7140
7141 2002-02-05  Richard Henderson  <rth@redhat.com>
7142
7143         PR fortran/3393
7144         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7145         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7146
7147         PR fortran/3392
7148         * config/mips/mips.c (function_arg): Handle TImode.
7149         (function_arg_advance): Likewise.
7150
7151 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7152
7153         * config/rs6000/altivec.h (vec_step_help): Rename to
7154         __vec_step_help.
7155
7156 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7157
7158         * config/rs6000/altivec.h: Fix typos.
7159
7160 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7161
7162         * config/arm/netbsd.h: Correct a comment.
7163
7164 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7165
7166         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7167         building void typed builtins.
7168
7169         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7170         (vec_step): Implement for C++.
7171
7172 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7173
7174         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7175
7176 2002-02-04  Richard Henderson  <rth@redhat.com>
7177
7178         * combine.c (nonzero_bits): Re-introduce special case for
7179         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7180
7181 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7182
7183         * doc/extend.texi: Warn about unsupported usage of altivec
7184         builtins.
7185
7186         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7187         (altivec_predicate_*): New.
7188
7189         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7190         Add C++ version of vec_*() functions.
7191
7192         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7193         (bdesc_2arg): Remove altivec predicates.
7194         (altivec_expand_builtin): Handle predicates.
7195         (altivec_init_builtins): Handle predicates.
7196         (altivec_expand_predicate_builtin): New.
7197
7198 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7199
7200         * pa.c (DO_FRAME_NOTES): Move forward.
7201         (store_reg): Revise handling of frame notes.
7202         (load_reg): Likewise.
7203         (set_reg_plus_d): Likewise.
7204         (hppa_expand_prologue): Likewise.
7205         (hppa_expand_epilogue): Likewise.
7206
7207 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7208
7209         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7210
7211 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7212
7213         PR c/4475, c++/3780:
7214         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7215         * c-common.h (SWITCH_TYPE): Define.
7216         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7217         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7218         Rename spareness variable to sparseness.
7219         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7220         if non-NULL instead of TREE_TYPE (orig_index).
7221         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7222         (expand_end_case): Define using expand_end_case_type.
7223         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7224         to expand_end_case_type.
7225         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7226
7227 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7228
7229         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7230         (BIGGEST_ALIGNMENT): Change to 128.
7231
7232 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7233
7234         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7235
7236 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7237
7238         * pa.md (call_internal_reg_64bit): Remove unused variable.
7239
7240 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7241
7242         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7243         field.
7244         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7245         * config/arm/arm.c (current_function_anonymous_args): Delete,
7246         replace uses with cfun->machine->uses_anonymous_args.
7247         (arm_reorg): Do not reset uses_anonymous_args.
7248
7249         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7250         any geenral register.
7251
7252 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7253
7254         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7255         the entry block.
7256
7257 2002-02-04  Richard Henderson  <rth@redhat.com>
7258
7259         * combine.c (force_to_mode): Remove STACK_BIAS code.
7260         (nonzero_bits): Likewise.  Replace sp/fp special case with
7261         REGNO_POINTER_ALIGN.
7262
7263         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7264         (HARD_FRAME_POINTER_REGNUM): New.
7265         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7266         (FIXED_REGS, CALL_USED_REGS): Update.
7267         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7268         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7269         (HARD_REGNO_NREGS): Update for SFP.
7270         (STACK_POINTER_OFFSET): Include bias here ...
7271         (FIRST_PARM_OFFSET): ... not here.
7272         (STACK_BIAS): Remove.
7273         (INIT_EXPANDERS): New.
7274         (STARTING_FRAME_OFFSET): Do not include bias.
7275         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7276         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7277         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7278         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7279         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7280         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7281         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7282         (MUST_SAVE_REGISTER): Likewise.
7283         (sparc_flat_function_prologue): Likewise.
7284         (sparc_flat_function_epilogue): Likewise.
7285         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7286         (sparc_init_modes): SFP is GENERAL_REGS.
7287         (sparc_builtin_saveregs): SFP does not have bias applied.
7288
7289 2002-02-04  Richard Henderson  <rth@redhat.com>
7290
7291         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7292         current_function_is_thunk.
7293         (alpha_sa_mask): Distinguish between current_function_is_thunk
7294         called from ASM_OUTPUT_MI_THUNK and not.
7295         (alpha_does_function_need_gp): Thunks always need gp.
7296         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7297         (alpha_output_mi_thunk_osf): New.
7298         * config/alpha/alpha-protos.h: Update.
7299         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7300
7301 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7302
7303         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7304         function types, not when they're taken away.
7305
7306 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7307
7308         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7309         CODE_LABEL and jump table when replacing a table jump with a
7310         simple jump.
7311
7312 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7313
7314         * config/s390/s390-protos.h (legitimize_la_operand,
7315         s390_secondary_input_reload_class, s390_plus_operand,
7316         s390_expand_plus_operand): Add prototypes.
7317
7318         config/s390/s390.c (s390_secondary_input_reload_class,
7319         s390_plus_operand, s390_expand_plus_operand): New functions.
7320
7321         (struct s390_address): New member 'pointer'.
7322         (s390_decompose_address): Compute it.
7323         (legitimate_la_operand_p): Use it.
7324         (legitimize_la_operand): New function.
7325         (movti, movdi, movdf splitters): Call it.
7326
7327         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7328         (PREDICATE_CODES): Add s390_plus_operand.
7329
7330         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7331         (la_ccclobber): Allow GENERAL_REGS as output operand.
7332
7333         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7334         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7335         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7336
7337 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7338
7339         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7340         register names for regular asm () construct.
7341
7342 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7343
7344         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7345         registers.
7346
7347 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7348
7349         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7350         pat for recog.
7351
7352 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7353
7354         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7355         constant pool to be identical by string address and index.
7356
7357 2002-02-04  Anthony Green  <green@redhat.com>
7358
7359         * output.h (SECTION_OVERRIDE): Define.
7360         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7361
7362 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7363
7364         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7365         by existing arm*-*-netbsd* (a.out) target.
7366         (ns32k-*-netbsdelf*): Likewise.
7367         (sparc-*-netbsdelf*): Likewise.
7368         (vax-*-netbsdelf*): Likewise.
7369
7370 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7371
7372         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7373         headers and libobjc headers.
7374
7375 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7376
7377         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7378         (_mingw.h): Remove duplicate include.
7379
7380 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7381
7382         * config.gcc: Set cpu_type to m68k for 68010, as well.
7383         (m68010-*-netbsdelf*): New...
7384         (m68k*-*-netbsdelf*): ...targets.
7385         * config/m68k/netbsd-elf.h: New file.
7386
7387 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7388
7389         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7390
7391 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7392
7393         * config/h8300/h8300.c (h8_push_ops): Move inside
7394         h8300_init_once.
7395         (h8_pop_ops): Likewise.
7396         (h8_move_ops): Likewise.
7397
7398 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7399
7400         * config/h8300/h8300.c (os_task): Make it static.
7401         (monitor): Likewise.
7402         (pragma_saveall): Likewise.
7403
7404 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7405
7406         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7407         constant is a valid sign-extension for Pmode.
7408
7409 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7410
7411         * config/h8300/h8300.c: Fix formatting.
7412
7413 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7414
7415         * config/h8300/h8300.md: Fix formatting.
7416
7417 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7418
7419         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7420         predicates of operands[1].  Split the patterns for each
7421         processor variant.
7422
7423 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7424
7425         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7426         of operands[1] to register_operand.
7427
7428 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7429
7430         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7431         * cpphash.c (_cpp_init_hashtable): Similarly.
7432         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7433         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7434         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7435         (cpp_handle_option): Handle the new options.
7436         * cpplex.c (cpp_interpret_charconst): Use new flag.
7437         * cpplib.h (struct cpp_options): New member signed_char.
7438         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7439         (cpp_options): Handle -fsigned-char and -funsigned-char.
7440         (static_specs): Remove signed_char_spec.
7441         (do_spec1): Don't handle %c.
7442         * system.h: Poison SIGNED_CHAR_SPEC.
7443         * tradcif.y (yylex): Use flag_signed_char.
7444         * tradcpp.h (flag_signed_char): New.
7445         * tradcpp.c (flag_signed_char): New.
7446         (main): Handle new command-line options.
7447         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7448 config:
7449         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7450         * avr/avr.h: Remove old comments.
7451         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7452         (CC1_SPEC): Pass -fsigned-char if -mic*.
7453         (SIGNED_CHAR_SPEC): Remove.
7454 doc:
7455         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7456
7457 2002-02-01  Eric Christopher  <echristo@redhat.com>
7458
7459         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7460         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7461         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7462         (ASM_OUTPUT_REG_POP): Ditto.
7463
7464 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7465
7466         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7467         patch.
7468
7469 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7470
7471         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7472
7473 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7474
7475         PR c/5304:
7476         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7477         unconditionally.
7478
7479 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7480
7481         * cfganal.c: Include tm_p.h.
7482         (keep_with_call_p): Fix the test that determines if a register holds
7483         the return value of a call.
7484
7485 2002-02-01  DJ Delorie  <dj@redhat.com>
7486
7487         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7488         we are given conflicting registers, switch to the other one we
7489         had allocated for us.
7490         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7491         as TImode so we know when the "other" register is available.
7492
7493 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7494
7495         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7496         sparc/sparc_bi.h.
7497
7498 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7499
7500         * cfganal.c (keep_with_call_p): New function.
7501         (flow_call_edges_add): Prevent splitting a block between a call and
7502         a single-set instruction that should be kept in the same block.
7503
7504 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7505
7506         * doc/install.texi (avr): Update outdated URL.
7507
7508 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7509
7510         * config/stormy16/stormy16.md (pushqi): New.
7511         (popqi): New.
7512         (pushhi): New.
7513         (pophi): New.
7514         (movhi): Remove stack operands.
7515         (movqi): Likewise.
7516         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7517         nonimmediate_nonstack_operand.
7518         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7519         New.
7520         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7521         New.
7522
7523 2002-01-31  Jason Merrill  <jason@redhat.com>
7524
7525         * Makefile.in (c-parse.c): Handle .output file.
7526         * objc/Make-lang.in (objc-parse.c): Likewise.
7527
7528 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7529
7530         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7531         the -me[lb] option is given.  Don't output the default flag
7532         twice.
7533
7534 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7535
7536         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7537         the primary source file; this has not been done yet.
7538         * c-decl.c (c_expand_body): Reset input_filename from
7539         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7540
7541 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7542
7543         * rtlanal.c (subreg_regno_offset): Do not use
7544         SUBREG_REGNO_OFFSET.
7545         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7546         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7547
7548 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7549
7550         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7551         version rather than GNATS version in --version output.
7552
7553 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7554
7555         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7556         when copying back from a temporary.
7557
7558 2002-01-30  Richard Henderson  <rth@redhat.com>
7559
7560         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7561         and new_dest are the same.
7562
7563 2002-01-30  Richard Henderson  <rth@redhat.com>
7564
7565         PR opt/5076
7566         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7567         * rtl.c (note_insn_name): Update.
7568         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7569         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7570         to perform loop rotation.
7571         (expand_exit_loop_top_cond): New.
7572         * tree.h (expand_exit_loop_top_cond): Declare it.
7573         * c-semantics.c (genrtl_while_stmt): Use it.
7574         (genrtl_for_stmt): Likewise.
7575
7576 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7577
7578         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7579         arguments to 64-bit boundaries on 64-bit ABIs.
7580
7581 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7582
7583         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7584
7585 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7586
7587         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7588         invalid type.
7589
7590 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7591
7592         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7593         * config/sparc/sparc_bi.h: Remove file.
7594         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7595
7596 2002-01-30  Richard Henderson  <rth@redhat.com>
7597
7598         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7599
7600 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7601
7602         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7603
7604 2002-01-30  Jason Merrill  <jason@redhat.com>
7605
7606         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7607         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7608         (reg_save): Use DW_CFA_offset_extended_sf instead.
7609
7610         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7611
7612 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7613
7614         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7615         in cselib_lookup.
7616
7617 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
7618
7619         * rs6000.md ("*call_value_local32"): Remove constraints.
7620         ("*call_value_local64"): Same.
7621         ("*call_value_indirect_nonlocal_aix32"): Same.
7622         ("*call_value_nonlocal_aix32"): Same.
7623         ("*call_value_indirect_nonlocal_aix64"): Same.
7624         ("*call_value_nonlocal_aix64"): Same.
7625         ("*call_value_nonlocal_sysv"): Same.
7626
7627 2002-01-29  Richard Henderson  <rth@redhat.com>
7628
7629         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7630
7631 2002-01-29  Richard Henderson  <rth@redhat.com>
7632
7633         * expr.c (force_operand): Ignore flag_pic for detecting pic
7634         address loads.
7635         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7636         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7637         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7638         instead of open-coded loop.
7639         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7640         be fixed when in use.
7641
7642 2002-01-29  Richard Henderson  <rth@redhat.com>
7643
7644         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7645         * sched-rgn.c (propagate_deps): Update them.
7646         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
7647         clobbers list when either gets too long.
7648
7649 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7650
7651         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7652         and INDEX_REGS the same as GENERAL_REGS.
7653         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7654
7655 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7656
7657         * tree.c (build_nonstandard_integer_type): Correct prototype.
7658
7659 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
7660
7661         * config/s390/s390.md (movstrsico, movstrdix_64,
7662         movstrsix_31): Remove, replace by ...
7663         (movstrdi_short, movstrsi_short, movstrdi_long,
7664         movstrsi_long): ... these.  New.
7665         (movstrdi, movstrsi): Adapt.
7666
7667         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7668         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7669         Remove unnecessary CC clobber.
7670         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7671         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7672
7673         (divmoddi4): Don't partially initialize TImode register.
7674
7675 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
7676
7677         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7678
7679 2002-01-29  Richard Henderson  <rth@redhat.com>
7680
7681         * flow.c (print_rtl_and_abort): Remove.
7682         (print_rtl_and_abort_fcn): Remove.
7683         (verify_local_live_at_start): Use dump_bb instead.
7684         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7685         (verify_wide_reg_1): Return 2 on mode test failure.
7686
7687 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7688
7689         PR c/3325, c/3326, c/2511, c/3347
7690         * c-decl.c (enum_decl_context): Remove BITFIELD.
7691         (grokdeclarator): Take bitfield width as an input.
7692         Ensure bitfields are given the correct type.  Perform
7693         bitfield width validation with build_bitfield_integer_type
7694         rather than waiting for finish_struct.
7695         (grok_typename, grok_typename_in_parm_context, start_decl,
7696         push_parmdecl, grokfield, start_function): Update calls to
7697         grokdeclarator.
7698         (build_bitfield_integer_type): New function.
7699         (finish_struct): Move bitfield validation to grokdeclarator
7700         and build_bitfield_integer_type.
7701         * tree.c (build_nonstandard_integer_type): New function.
7702         * tree.h (build_nonstandard_integer_type): New prototype.
7703 objc:
7704         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7705
7706 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7707
7708         PR other/1502:
7709         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7710         don't ignore unrecognized -W* options.
7711         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7712         * cpplib.h (cpp_handle_option): Adjust prototype.
7713         * c-decl.c (c_decode_options): Pass 0 as last argument to
7714         cpp_handle_option.
7715
7716         PR c/2896:
7717         * gcc.c (cpp_unique_options): Split from cpp_options.
7718         (cpp_options): Source cpp_unique_options.
7719         (default_compilers): Use cpp_unique_options instead of cpp_options
7720         when used together with cc1_options.
7721         (static_specs): Add cpp_unique_options.
7722         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7723         when used together with cc1_options.
7724
7725 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7726
7727         * config/h8300/h8300-protos.h: Update the prototype of
7728         output_a_shift.
7729         * config/h8300/h8300.c (output_a_shift): Remove an unused
7730         argument 'insn'.  Remove redundant code.
7731         * config/h8300/h8300.md: Adust to the new prototype of
7732         output_a_shift.
7733
7734 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7735
7736         * config/h8300/h8300-protos.h: Update the prototypes of
7737         emit_a_rotate and expand_a_rotate.
7738         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7739         first argument to 'enum rtx_code'.
7740         (expand_a_rotate): Likewise.
7741
7742 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7743
7744         * config/h8300/h8300-protos.h: Update the prototype of
7745         output_simode_bld.
7746         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7747         'log2'.
7748         * config/h8300/h8300.md: Adjust to the new prototype.
7749
7750 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7751
7752         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7753         redundant code.
7754
7755 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7756
7757         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7758         is a fixed register before returning pic_offset_table_rtx.
7759         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7760         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7761
7762 2002-01-28  Jason Merrill  <jason@redhat.com>
7763
7764         * dwarf2.h: Sync with src version.
7765
7766 2002-01-28  Paul Koning  <pkoning@equallogic.com>
7767
7768         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7769         BT_FN_VOID_PTR_VAR.
7770         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7771         * doc/extend.texi (__builtin_prefetch): Update documentation:
7772         first argument is now const void ptr.
7773
7774 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7775
7776         * config/h8300/h8300-protos.h: Remove an unused prototype.
7777
7778 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
7779
7780         * toplev.c (lang_independent_init): Round up identifier size.
7781
7782 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7783
7784         * config.gcc: Revert previous change.
7785
7786 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
7787
7788         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7789
7790 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7791
7792         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7793         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
7794         other non-elf netbsd config frags.
7795         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7796         collect2 will does that.
7797         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7798         shared-lib frobbing will work.
7799
7800 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7801
7802         * config/h8300/h8300.h: Fix formatting.
7803         * config/h8300/h8300.md: Likewise.
7804
7805 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
7806
7807         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7808         the old, removed AAA_standards fix.
7809         * fixinc/fixincl.x: Rebuilt.
7810
7811 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
7812
7813         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7814         atexit call in crtbegin, hooked in after call to frame_dummy;
7815         register EH before registering __fini__start.
7816
7817 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
7818
7819         * config/rs6000/altivec.h: Remove spurious semicolons.
7820
7821 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7822
7823         * config/h8300/h8300.md: Replace dead bit extraction patterns
7824         with ones that work.
7825
7826 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7827
7828         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7829         if not STRICT_ALIGNMENT.
7830         * rtl.h (MEM_ALIGN): Likewise.
7831
7832 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7833
7834         * doc/invoke.texi (-fdump-translation-unit): Revert this
7835         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7836
7837 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7838
7839         * config/h8300/h8300.md (define_constants): New.
7840         (anonymous patterns) Use defined constants appropriately.
7841
7842 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7843
7844         * config/h8300/h8300.c (function_arg): Remove redundant code.
7845
7846 2002-01-26  Richard Henderson  <rth@redhat.com>
7847
7848         * sched-deps.c (reg_pending_uses_head): New.
7849         (reg_pending_barrier): Rename from reg_pending_sets_all.
7850         (find_insn_list): Don't mark inline.
7851         (find_insn_mem_list): Remove.
7852         (add_dependence_list, add_dependence_list_and_free): New.
7853         (flush_pending_lists): Replace only_write param with separate
7854         for_read and for_write parameters.  Update all callers.  Use
7855         add_dependence_list_and_free.
7856         (sched_analyze_1): Do not add reg dependencies here; just set
7857         the pending bits.  Use add_dependence_list.
7858         (sched_analyze_2): Likewise.
7859         (sched_analyze_insn): Replace schedule_barrier_found with
7860         reg_pending_barrier.  Add all dependencies for pending reg
7861         uses, sets, and clobbers.
7862         (sched_analyze): Don't add reg dependencies for calls, just
7863         set pending bits.  Use regs_invalidated_by_call.  Treat
7864         sched_before_next_call as a normal list, not a fake insn.
7865         (init_deps): No funny init for sched_before_next_call.
7866         (free_deps): Free pending mems lists.  Don't zero reg_last.
7867         (init_deps_global): Init reg_pending_uses.
7868         (finish_deps_global): Free it.
7869         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
7870         (find_insn_mem_list): Remove.
7871         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7872         (propagate_deps): Use them.  Zero temp mem lists.
7873
7874 2002-01-26  Richard Henderson  <rth@redhat.com>
7875
7876         * Makefile.in (CRTSTUFF_CFLAGS): New.
7877         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7878         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7879         crtstuff.c instead of alpha assembly version.
7880         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7881         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
7882         not FORCE_{INIT,FINI}_SECTION_ALIGN.
7883         (__do_global_dtors_aux): Mark used.
7884         (frame_dummy, __do_global_ctors_aux): Mark used.
7885         (fini_dummy, init_dummy): Remove.
7886
7887         * config/alpha/crtbegin.asm: Remove file.
7888         * config/alpha/crtend.asm: Remove file.
7889         * config/alpha/t-crtbe: Remove file.
7890         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7891         (LINK_EH_SPEC): New.
7892
7893         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7894         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
7895         calling constructors.
7896         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7897
7898         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7899         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7900         CRT_END_INIT_DUMMY hack.
7901         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7902         FORCE_{INIT,FINI}_SECTION_ALIGN.
7903
7904         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7905         FORCE_{INIT,FINI}_SECTION_ALIGN.
7906
7907         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7908         invocation sequence.
7909         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7910
7911         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7912         (FORCE_CODE_SECTION_ALIGN): New.
7913
7914 2002-01-26  Richard Henderson  <rth@redhat.com>
7915
7916         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7917
7918 2002-01-26  Richard Henderson  <rth@redhat.com>
7919
7920         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7921         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7922
7923 2002-01-26  Kazu Hirata  <kazu@hxi.com>
7924
7925         * config/h8300/h8300.md: Remove bit extraction patterns that
7926         cannot be triggered.
7927         Restrict each bit extraction pattern to a variant on which the
7928         pattern is tested.
7929
7930 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
7931
7932         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7933
7934 2002-01-26  Kazu Hirata  <kazu@hxi.com>
7935
7936         * config/h8300/h8300.md: Remove bit test patterns that cannot
7937         be triggered.
7938         Restrict each bit test pattern to a variant on which the
7939         pattern is tested.
7940
7941 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7942
7943         * builtins.c (expand_builtin_strncat): Remove redundant check for
7944         INTEGER_CST.
7945
7946 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
7947
7948         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7949         default setting.
7950         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7951         existing setting.
7952
7953 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
7954
7955         * dbxout.c (dbxout_init): Use assemble_name rather than just
7956         stripping off the first character.
7957         (dbxout_source_file): Likewise.
7958
7959 2002-01-25  DJ Delorie  <dj@redhat.com>
7960
7961         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7962         using rtx_equal_p, not by comparing pointers.
7963
7964 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
7965
7966         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7967         for PIC_OFFSET_TABLE_REGNUM.
7968         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7969
7970 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
7971
7972         * config.gcc (x86_64-*-freebsd*): New target.
7973         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7974         value.
7975         (i[34567]86-*-freebsd*): Don't include svr4.h.
7976         * config/i386/freebsd64.h: New file.
7977
7978 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
7979
7980         * config/alpha/x-vms (version): Make static.
7981
7982         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7983         in previous checkin.
7984
7985         * Makefile.in (install-headers-cp): New target.
7986         * config.gcc (alpha-dec-*vms*): Install headers with
7987         install-headers-cp
7988
7989 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
7990
7991         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7992         avoid it's copies.
7993
7994 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7995
7996         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7997         of compare_tree_int.
7998         (expand_builtin_strncat): Likewise.
7999         * c-decl.c (finish_struct): Use tree_low_cst.
8000         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8001         * tree.c (compare_tree_int): Likewise.
8002
8003 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8004
8005         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8006         adjustments even if they are implemented by more than two insns.
8007
8008 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8009
8010         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8011         * df.h (struct ref): Kill B.
8012         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8013
8014         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8015         * flow.c (propagate_one_insn): Use it.
8016         (mark_used_regs): Handle NIL.
8017
8018 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8019
8020         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8021         to help folding.
8022
8023 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8024
8025         * rs6000.md (prefetch): Make address V4SI mode so that the address
8026         is restricted to legitimate form for instruction.
8027
8028 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8029
8030         * doc/install.texi (xtensa-*-elf): New target.
8031         (xtensa-*-linux*): New target.
8032         * doc/contrib.texi: Add myself.
8033
8034 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8035
8036         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8037         purpose register to hold an SImode (or smaller) value.
8038
8039 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8042         registry only.
8043         * crtstuff.c: Likewise.
8044
8045 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8046
8047         * config/h8300/h8300.md (negation patterns): Tighten
8048         predicates to register_operand.
8049
8050 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8051
8052         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8053         mode, not Pmode.
8054
8055         * builtins.c (expand_builtin_prefetch): Same.
8056
8057 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8058
8059         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8060         modes.
8061
8062 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8063
8064         * config/h8300/h8300.c (print_operand): Remove support for
8065         operand character 'A'.
8066         * config/h8300/h8300.md (three anonymous patterns): Replace
8067         operand character 'A' with either 'T' or 'S'.
8068
8069 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8070
8071         * config/h8300/h8300.c (print_operand): Remove support for
8072         operand character 'U'.
8073
8074 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8075
8076         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8077
8078 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8079
8080         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8081         values to be assigned to the stack pointer.
8082
8083 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8084
8085         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8086         to const_double needs to be done right for big-endian systems.
8087
8088 2002-01-24  Jason Merrill  <jason@redhat.com>
8089
8090         PR c++/2432
8091         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8092         to can_throw_internal.
8093
8094 2002-01-23  Richard Henderson  <rth@redhat.com>
8095
8096         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8097         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8098
8099 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8100
8101         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8102         (symGOT2reg): Use them, then set as GOT value as unchanging.
8103         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8104         as a temporary, if possible.
8105         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8106         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8107
8108 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8109
8110         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8111         accept to accept 0x80 as operands[2].
8112
8113 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8114
8115         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8116
8117 2002-01-23  Richard Henderson  <rth@redhat.com>
8118
8119         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8120
8121 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8122
8123         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8124         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8125         an attribute.
8126
8127 2002-01-23  Richard Henderson  <rth@redhat.com>
8128
8129         * expr.c (move_by_pieces_1): Extend size before negation.
8130
8131         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8132         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8133         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8134         * config/m68k/t-m68kelf: Likewise.
8135
8136 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8137
8138         * config/xtensa/elf.h: New file.
8139         * config/xtensa/lib1funcs.asm: New file.
8140         * config/xtensa/lib2funcs.S: New file.
8141         * config/xtensa/linux.h: New file.
8142         * config/xtensa/t-xtensa: New file.
8143         * config/xtensa/xtensa-config.h: New file.
8144         * config/xtensa/xtensa-protos.h: New file.
8145         * config/xtensa/xtensa.c: New file.
8146         * config/xtensa/xtensa.h: New file.
8147         * config/xtensa/xtensa.md: New file.
8148         * config.gcc (xtensa-*-elf*): New target.
8149         (xtensa-*-linux*): New target.
8150         * cse.c (canon_hash): Compare rtx pointers instead of register
8151         numbers.  This is required for the Xtensa port.
8152         * integrate.c (copy_insn_list): Handle case where the static
8153         chain is in memory and the memory address has to be copied to
8154         a register.
8155         * doc/invoke.texi (Option Summary): Add Xtensa options.
8156         (Xtensa Options): New node.
8157         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8158
8159 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8160
8161         * diagnostic.c (internal_error): Do ICE suppression only
8162         when ENABLE_CHECKING is not defined.
8163
8164         * c-typeck.c (require_complete_type): Return error_mark_node
8165         if type is error_mark_node.
8166
8167 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8168
8169         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8170         -Os and issue a warning.
8171
8172 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8173
8174         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8175         current (lack of) need for host configuration by hand.
8176
8177         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8178         references.  Documentation of some target macros moved from
8179         hostconfig.texi to tm.texi.
8180
8181 2002-01-23  Will Cohen  <wcohen@redhat.com>
8182
8183         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8184         defined.
8185
8186 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8187
8188         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8189         operand[3].
8190
8191 2002-01-23  Jason Merrill  <jason@redhat.com>
8192
8193         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8194
8195         * function.c (assign_parms): Don't put args of inline functions
8196         into registers when not optimizing.
8197
8198 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8199
8200         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8201         (prologue_use): New pattern.
8202         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8203         preference to gen_rtx_USE.
8204         (thumb_expand_prologue): Use gen_prologue_use in preference to
8205         gen_rtx_USE.
8206         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8207         gen_rtx_USE.
8208
8209 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8210
8211         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8212
8213 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8214
8215         PR c/3504
8216         * doc/extend.texi: Correct documentation of __alignof__.
8217
8218 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8219
8220         * params.h: Rename arguments of DEFPARAM so that it will be
8221         recognized as a translation keyword.
8222
8223 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8224
8225         * extend.texi: Document altivec functions.
8226         Fix N-bit adjectives in X86 builtin documentation.
8227
8228 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8229
8230         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8231         auto_inc_dec values.
8232
8233 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8234
8235         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8236         after backslash.
8237         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8238
8239 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8240
8241         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8242
8243 2002-01-22  Richard Henderson  <rth@redhat.com>
8244
8245         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8246         copy_insn not copy_rtx.
8247
8248 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8249
8250         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8251         "nonzero" as that might add "1" bits.  Ensure "constop" is
8252         properly sign extened.
8253         (force_to_mode): Tweak for sign extended constop.
8254
8255 2002-01-22  Richard Henderson  <rth@redhat.com>
8256
8257         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8258         for_each_rtx instead of assuming we're already looking at the MEM.
8259         (split_small_symbolic_mem_operand): Likewise.
8260         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8261         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8262
8263 2002-01-22  Richard Henderson  <rth@redhat.com>
8264
8265         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8266         sequence number for the literal.
8267         (divmoddi_internal_er): Likewise.
8268
8269 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8270
8271         PR java/4972
8272         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8273         in LIBICONV variable.
8274         * configure: Regenerated.
8275
8276 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8277
8278         * dependence.c (build_def_use): Remove array_idx.
8279
8280         * dwarfout.c (last_filename): Remove.
8281         (output_compile_unit_die): Remove last_filename.
8282
8283 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8284             Richard Henderson  <rth@redhat.com>
8285
8286         PR opt/3640
8287         * fold-const.c (fold): Optimize unsigned comparisons against
8288         UINT_MAX (and similar unsigned constants).
8289
8290 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8291
8292         * Makefile.in (loop.o): Depend on OPTABS_H.
8293         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8294         against the predicate.
8295
8296         PR target/5379
8297         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8298         for the address operand.
8299
8300 2002-01-22  Richard Henderson  <rth@redhat.com>
8301
8302         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8303
8304 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8305
8306         PR other/5450
8307         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8308         preprocessor flags.
8309
8310 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8311
8312         * config.gcc (x86_64-*-netbsd*): New target.
8313         * config/i386/netbsd64.h: New file.
8314
8315 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8316
8317         * regrename.c (kill_value): Fix typo.
8318
8319 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8320
8321         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8322
8323         * config/rs6000/rs6000.h: Same.
8324
8325         * function.c (instantiate_virtual_regs): Remove
8326         STARTING_FRAME_PHASE.
8327         (assign_stack_local_1): Same.
8328         Calculate frame phase.
8329
8330 2002-01-22  Nick Clifton  <nickc@redhat.com>
8331
8332         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8333         variable declaration to outer scope in order to simplify
8334         future extensions.
8335         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8336         arm_hard_regno_mode_ok.
8337         * config/arm/arm-protos.h: Add a prototype for
8338         arm_hard_regno_mode_ok.
8339         * config/arm/arm.c (soft_df_operand): Remove now redundant
8340         check for DImode values using IP_REGNUM.
8341         (nonimmediate_soft_df_operand): Remove now redundant check for
8342         DImode values using IP_REGNUM.
8343         (arm_hard_regno_mode_ok): New function. New check: make sure
8344         that DImode values are not stored in IP_REGNUM.
8345
8346         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8347         note with a USE.
8348         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8349
8350 2002-01-22  Jason Merrill  <jason@redhat.com>
8351
8352         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8353         consistency if this COMPOUND_STMT is scoped.
8354
8355 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8356
8357         * predict.c: Fix formatting.
8358         * print-tree.c: Likewise.
8359         * protoize.c: Likewise.
8360         * real.h: Likewise.
8361         * rtl.h: Likewise.
8362         * sbitmap.h: Likewise.
8363         * scan.c: Likewise.
8364         * sched-deps.c: Likewise.
8365         * sched-vis.c: Likewise.
8366         * sdbout.c: Likewise.
8367         * sibcall.c: Likewise.
8368         * ssa.c: Likewise.
8369         * ssa-ccp.c: Likewise.
8370         * ssa-dce.c: Likewise.
8371         * stmt.c: Likewise.
8372         * stor-layout.c: Likewise.
8373         * system.h: Likewise.
8374
8375 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8376
8377         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8378         if fits in bounds of base type.
8379
8380         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8381         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8382         (add_bound_info, default): If can't find a context, make a
8383         SAVE_EXPR.
8384         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8385
8386 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8387
8388         * c-typeck.c (parser_build_binary_op): If result from
8389         build_binary_op is ERROR_MARK just return error_mark_node without
8390         further processing.
8391
8392 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8393
8394         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8395         Split a.out-specific bits into...
8396         * config/netbsd-aout.h: ...this.
8397         * config/netbsd-elf.h: New file.
8398         * config/alpha/netbsd-elf.h: Remove.
8399         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8400         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8401         (STARTFILE_SPEC): Remove redundant definition.
8402         (ENDFILE_SPEC): Likewise.
8403         (LINK_SPEC): Likewise.
8404         (CPP_SPEC): Likewise.
8405         (ASM_SPEC): Likewise.
8406         (LIB_SPEC): Likewise.
8407         (SWITCH_TAKES_ARG): Likewise.
8408         (TARGET_MEM_FUNCTIONS): Likewise.
8409         (CPP_PREDEFINES): Redefine.
8410         (ASM_FINAL_SPEC): Remove redefinition.
8411         (ASM_COMMENT_START): Redefine.
8412         (FUNCTION_PROFILER): Define.
8413         (TARGET_VERSION): Redefine.
8414         Comment and formatting cleanup.
8415         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8416         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8417         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8418         big- or little-endian.
8419         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8420         * config.gcc (*-*-netbsd*): Add definitions common to all
8421         NetBSD configs.
8422         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8423         gnu_ld definitions.  Add netbsd-elf.h to and remove
8424         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8425         tmake_file, and don't lose previous tmake_file contents.
8426         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8427         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8428         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8429         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8430         (mipsel-*-netbsd*): Rename this to...
8431         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8432         mips/little.h to tm_file for mips*el-*.
8433         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8434         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8435         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8436
8437 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8438
8439         * pa-protos.h (reg_before_reload_operand): New function prototype.
8440         * pa.c (reg_before_reload_operand): New function implementation.
8441         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8442         contraints to "*m".
8443
8444 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8445
8446         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8447
8448 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8449
8450         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8451         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8452         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8453         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8454         (ENDFILE_SPEC): Undefine.
8455         (STARTFILE_SPEC): Redefine for PA.
8456
8457 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8458
8459         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8460
8461 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8462
8463         * config.gcc: Add entries to supported PowerPC --with-cpu
8464         types.
8465
8466 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8467
8468         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8469         true for 64-bit mode only SSE registers in 32-bit mode.
8470
8471 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8472
8473         * unwind-dw2.c: Fix formatting.
8474         * unwind-dw2-fde.c: Likewise.
8475         * unwind-dw2-fde.h: Likewise.
8476         * unwind-pe.h: Likewise.
8477         * varasm.c: Likewise.
8478         * varray.h: Likewise.
8479
8480 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8481
8482         Remove workaround for register stack overwrite bug in mmix.
8483         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8484         support for TARGET_REG_STACK_FILL_BUG.
8485         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8486         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8487         Delete.
8488         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8489         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8490         -mno-reg-stack-fill-bug-workaround.
8491         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8492         machine member has_call_without_parameters.
8493         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8494         -mreg-stack-fill-bug-workaround and
8495         -mno-reg-stack-fill-bug-workaround.
8496         (MMIX Options): Ditto.
8497
8498 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8499
8500         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8501         as appropriate.
8502         Remove redundant code.
8503
8504 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8505
8506         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8507         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8508         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8509         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8510         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8511         out target macro definitions and non-target-specific comments
8512         mostly taken from old versions of the manual.
8513
8514 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8515
8516         * config/h8300/h8300.h: Fix comment formatting.
8517         * config/ia64/aix.h: Likewise.
8518         * config/ia64/ia64-protos.h: Likewise.
8519         * config/ia64/ia64.c: Likewise.
8520         * config/ia64/ia64.h: Likewise.
8521         * config/ia64/ia64intrin.h: Likewise.
8522         * config/ia64/linux.h: Likewise.
8523         * config/ia64/unwind-aix.c: Likewise.
8524         * config/ia64/unwind-ia64.c: Likewise.
8525
8526 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8527
8528         * config/h8300/h8300.c: Revise comments about shift code.
8529
8530 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8531
8532         * config/h8300/h8300.c (function_arg): Update a comment.
8533
8534 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8535
8536         * config/h8300/h8300.md: Update the comments at the beginning
8537         of the file.
8538
8539 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8540
8541         * config/i370/i370.c: Fix comment formatting.
8542         * config/i370/i370.h: Likewise.
8543         * config/i370/i370.md: Likewise.
8544         * config/i370/linux.h: Likewise.
8545
8546 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8547
8548         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8549
8550         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8551         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8552         in incomplete case.
8553
8554 2002-01-20  Graham Stott  <grahams@redhat.com>
8555
8556         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8557
8558 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8559
8560         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8561
8562 2002-01-19  Tom Rix  <trix@redhat.com>
8563
8564         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8565
8566 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8567
8568         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8569
8570         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8571         STARTING_FRAME_PHASE.
8572         (STARTING_FRAME_PHASE): New.
8573         (instantiate_virtual_regs): Check saneness of
8574         STARTING_FRAME_PHASE.
8575
8576         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8577
8578 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8579
8580         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8581
8582 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8583
8584         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8585         be used for bootstrapping GCC 3.0.
8586
8587 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8588
8589         * config/h8300/h8300.md: Fix an insn length.
8590
8591 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8592
8593         * bitmap.h: Fix comment formatting.
8594         * combine.c: Likewise.
8595         * cppfiles.c: Likewise.
8596         * c-pragma.h: Likewise.
8597         * c-typeck.c: Likewise.
8598         * df.c: Likewise.
8599         * dwarf2out.c: Likewise.
8600         * function.c: Likewise.
8601         * gcc.c: Likewise.
8602         * genattrtab.c: Likewise.
8603         * gthr-win32.h: Likewise.
8604         * haifa-sched.c: Likewise.
8605         * predict.c: Likewise.
8606         * rtlanal.c: Likewise.
8607         * rtl.h: Likewise.
8608         * unwind-dw2-fde.h: Likewise.
8609         * unwind-pe.h: Likewise.
8610         * vmsdbgout.c: Likewise.
8611
8612 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8613
8614         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8615         if type_required and passed decl.
8616
8617 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
8618
8619         * config.gcc (cpu_type): Include altivec.h in powerpc
8620         extra_headers.
8621         Same for darwin.
8622
8623         * config/rs6000/altivec.h: New.
8624
8625 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
8626
8627         * doc/install.texi (*-ibm-aix*): Update assembler and exception
8628         handling information.
8629         * doc/trouble.texi (Interoperation): Add libstdc++ information
8630         for AIX.
8631         (Misunderstandings): Add template instantiation and static template
8632         member information for AIX.
8633
8634 2002-01-17  Jason Merrill  <jason@redhat.com>
8635
8636         * dbxout.c (dbxout_type): Support const and volatile.
8637
8638         * except.c (add_partial_entry): Remove backwards compatibility code.
8639         (end_protect_partials): Likewise.
8640
8641 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
8642
8643         * config/ia64/ia64.md (prologue_use): New.
8644         * config/ia64/ia64.c (ia64_expand_prologue): Use
8645         gen_prologue_use instead of gen_rtx_USE.
8646         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8647         as CODE_FOR_pred_rel_mutex.
8648         (ia64_sched_reorder2): Likewise.
8649
8650 2002-01-16  Eric Christopher  <echristo@redhat.com>
8651
8652         * config/mips/r3900.h: Reformat.
8653         (SUBTARGET_CPP_SIZE_SPEC): Remove.
8654         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8655         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8656         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8657         * config/mips/t-elf: Remove mips3 multilib.
8658
8659 2002-01-16  H.J. Lu <hjl@gnu.org>
8660
8661         * config/mips/linux.h: Include "mips/abi64.h".
8662
8663 2002-01-16  H.J. Lu <hjl@gnu.org>
8664
8665         * config/mips/t-linux: New.
8666
8667         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8668
8669         * config/mips/linux.h: Don't include "gofast.h".
8670         (INIT_SUBTARGET_OPTABS): Removed.
8671
8672 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8673
8674         * config/h8300/h8300-protos.h: Replace emit_a_shift with
8675         output_a_shift.
8676         * config/h8300/h8300.c: Likewise.
8677         * config/h8300/h8300.md: Likewise.
8678
8679 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8680
8681         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8682         spaces after an opcode name.
8683         (pushqi1_h8300hs): Likewise.
8684         (pushhi1_h8300hs): Likewise.
8685
8686 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8687
8688         * doc/extend.texi: Replace "option" with "attribute"
8689         appropriately.
8690
8691 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8692
8693         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8694         (and:DI () (const_int -8)).
8695         (split_small_symbolic_mem_operand): Split
8696         (mem (and:DI () (const_int -8)).
8697
8698 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8699
8700         PR target/5309:
8701         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8702         same way as TYPE_IMUL.
8703         (ultrasparc_sched_reorder): Likewise.
8704         * config/sparc/sparc.md (type): Add comment to update
8705         ultrasparc_sched_reorder when making changes.
8706
8707 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8708
8709         * doc/invoke.texi: Change the dump file name of block
8710         reordering pass from 28.bbro to 29.bbro.
8711         Mention -dk option.
8712
8713 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
8714
8715         * i386.md (minsf splitter): Fix pasto.
8716
8717 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8718
8719         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8720         to frame pointer initialisation instruction.
8721         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8722         initialisation instruction.
8723         (soft_df_operand): Do not accept the IP register.
8724         (nonimmediate_soft_df_operand): Do not accept the IP register.
8725
8726 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8727
8728         PR target/5357:
8729         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8730         MASK_V8 being both set.
8731
8732 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
8733
8734         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8735         insn for GOT register; add REG_MAYBE_DEAD notes instead.
8736         config/s390/s390.md (call, call_value): Add GOT register to
8737         CALL_INSN_FUNCTION_USAGE where needed.
8738         (call_exp, call_value_exp): New.
8739
8740 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8741
8742         * config/arm/arm.c: General formatting tidy up.
8743
8744 2002-01-16  Graham Stott  <grahams@redhat.com>
8745
8746         * calls.c (try_to_integrate): Use "(size_t)" intermediate
8747         cast and when casting an integer literal to "rtx" pointer.
8748         (expand_call): Likewise.
8749         * flow.c (try_pre_increment): Likewise.
8750         (find_use_as_address): Likewise.
8751         * integrate.c (expand_iline_function): Likewise.
8752         * regmove.c (try_auto_increment): Likewise.
8753
8754 2002-01-16  Graham Stott  <grahams@redhat.com>
8755
8756         * sched-rgn.c (passed): Use sbitmap_free.
8757         (header): Likewise.
8758         (inner): Likewise.
8759         (in_queue): Likewise.
8760         (in_stack): Likewise.
8761
8762 2002-01-15  Eric Christopher  <echristo@redhat.com>
8763
8764         * flow.c (propagate_one_insn): Change to use fatal_insn.
8765
8766 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8767
8768         * expmed.c (extract_fixed_bit_field): Remove unused code.
8769         * system.h: Poison SLOW_ZERO_EXTEND.
8770         * doc/tm.texi: Remove.
8771         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8772         * config/arm/arm.h: Likewise.
8773         * config/avr/avr.h: Likewise.
8774         * config/clipper/clipper.h: Likewise.
8775         * config/convex/convex.h: Likewise.
8776         * config/d30v/d30v.h: Likewise.
8777         * config/dsp16xx/dsp16xx.h: Likewise.
8778         * config/elxsi/elxsi.h: Likewise.
8779         * config/fr30/fr30.h: Likewise.
8780         * config/h8300/h8300.h: Likewise.
8781         * config/i370/i370.h: Likewise.
8782         * config/i386/i386.h: Likewise.
8783         * config/m68k/m68k.h: Likewise.
8784         * config/mips/mips.h: Likewise.
8785         * config/ns32k/ns32k.h: Likewise.
8786         * config/pdp11/pdp11.h: Likewise.
8787         * config/pj/pj.h: Likewise.
8788         * config/s390/s390.h: Likewise.
8789         * config/sh/sh.h: Likewise.
8790         * config/stormy16/stormy16.h: Likewise.
8791         * config/v850/v850.h: Likewise.
8792         * config/vax/vax.h: Likewise.
8793         * config/we32k/we32k.h: Likewise.
8794
8795 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8796
8797         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8798         (altivec_lvsl): Change constraint to b.
8799         (altivec_lvsr): Same.
8800         (altivec_lvebx): Same.
8801         (altivec_lvehx): Same.
8802         (altivec_lvewx): Same.
8803         (altivec_lvxl): Same.
8804         (altivec_lvx): Same.
8805         (altivec_stvx): Add parallel.
8806         (altivec_stvxl): Same.
8807         (altivec_stvehx): Same.
8808         (altivec_stvebx): Same.
8809         (altivec_stvebx): Same.
8810
8811 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8812
8813         * config.gcc: Change altivec.h to altivec-defs.h.
8814
8815         * config/rs6000/altivec.h: Delete.
8816
8817         * config/rs6000/altivec-defs.h: Add.
8818
8819 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8820
8821         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8822         and UMOD modes.
8823
8824         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8825         less than or equal to eight bytes.
8826
8827         * vax.md (andsi3): Remove constraints and change SET destination
8828         operand type to nonimmediate_operand.
8829         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
8830         when it is a CONST_INT.
8831
8832 2002-01-15  Jason Merrill  <jason@redhat.com>
8833
8834         * c-common.def (FILE_STMT): New code.
8835         * c-common.c (statement_code_p): It's a statement.
8836         * c-common.h (stmt_tree_s): Add x_last_filename.
8837         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8838         (last_expr_filename): New macro.
8839         * c-semantics.c (begin_stmt_tree): Initialize it.
8840         (add_stmt): If the filename changed, also insert a
8841         FILE_STMT.
8842         (expand_stmt): Handle seeing one.
8843
8844 2002-01-15  Eric Christopher  <echristo@redhat.com>
8845
8846         * flow.c (propagate_one_insn): Add error message and print out
8847         insn for debugging.
8848
8849 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8850
8851         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8852         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8853         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8854         TRAMPOLINE_ALIGNMENT.
8855         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
8856         to be in bits.
8857         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8858         PCC_BITFIELD_TYPE_MATTERS.
8859         * config/interix.h (STDC_VALUE): Remove.  Use
8860         STDC_0_IN_SYSTEM_HEADERS.
8861         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8862         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8863         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8864
8865 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8866
8867         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8868         not work on this platform currently.
8869
8870 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8871
8872         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8873         readonly_warning in _().
8874
8875 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
8876
8877         * gcc.c (delete_if_ordinary): Backout previous change.
8878
8879 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8880
8881         * config/h8300/h8300.c (print_operand): Remove support for
8882         unused operand characters.
8883
8884         * read-rtl.c: Fix formatting.
8885         * real.c: Likewise.
8886         * recog.c: Likewise.
8887         * regclass.c: Likewise.
8888         * regmove.c: Likewise.
8889         * reg-stack.c: Likewise.
8890         * reload1.c: Likewise.
8891         * rtlanal.c: Likewise.
8892
8893 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8894
8895         * config/i386/i386.c: Fix formatting.
8896
8897 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
8898
8899         * c-typeck.c (process_init_element): Don't save_expr
8900         COMPOUND_LITERAL_EXPR if just its initializer will be used.
8901
8902 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
8903
8904         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8905         emit optional traceback table if optimize_size or TARGET_ELF.
8906         * config/rs6000/rs6000.md (prefetch): New.
8907
8908 2002-01-15  Andreas Jaeger  <aj@suse.de>
8909
8910         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8911
8912 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8913
8914         * mips-tfile.c: Fix formatting.
8915
8916 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
8917
8918         * unroll.c (final_reg_note_copy): Fix previous commit.
8919
8920 2002-01-14  Kazu Hirata  <kazu@hxi.com>
8921
8922         * config/h8300/h8300-protos.h: Remove the prototype for
8923         eq_operator.
8924         * config/h8300/h8300.c (eq_operator): Remove.
8925
8926 2002-01-14  Richard Henderson  <rth@redhat.com>
8927
8928         * config/i386/i386.md (prefetch): Tidy.
8929         (prefetch_3dnow): Fix locality operand.
8930
8931 2002-01-14  Richard Henderson  <rth@redhat.com>
8932
8933         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8934         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8935
8936 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
8937
8938         * reload1.c (reload_combine): Pass reg_sum replacement through
8939         copy_rtx in loop performing multiple changes.
8940
8941 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
8942
8943         * except.c (remove_unreachable_regions): New.
8944         (free_eh_status): Clear exception_handler_labels.
8945         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8946         (find_exception_handler_labels): Don't add the same label more than
8947         once.
8948         (remove_exception_handler_label): Don't die if
8949         find_exception_handler_labels hasn't been called for the current
8950         function yet.
8951
8952 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
8953
8954         * toplev.c (rest_of_compilation): Rebuild jump labels after
8955         gcse.
8956
8957 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
8958
8959         * doc/extend.texi: Move documentation of X86 built-in functions
8960         here.
8961         * doc/invoke.texi: From here.
8962         * doc/sourcebuild.texi: Document location of documentation for
8963         machine built-in functions.
8964
8965 2002-01-13  Christopher Faylor  <cgf@redhat.com>
8966
8967         * cppfiles.c (TEST_THRESHOLD): New macro.
8968         (SHOULD_MMAP): Ditto.
8969         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8970         be used.
8971
8972 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
8973
8974         * unroll.c (final_reg_note_copy): Properly handle
8975         REG_LABEL
8976         (unroll_loops): Fix LOOP_CONDITION heuristics.
8977
8978 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
8979
8980         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8981         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8982
8983 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8984
8985         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8986         threaded loop.
8987
8988 2002-01-14  Tom Rix  <trix@redhat.com>
8989
8990         * config/rs6000/rs6000.md: Fix typo with sradi.
8991
8992 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
8993
8994         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8995         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8996         (clrstrdi, clrstrsi): Adapt callers.
8997
8998         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8999
9000         (movti splitter): Never use register 0 as base register.
9001
9002 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9003
9004         * combine.c (simplify_shift_const): Always generate new rtx
9005         for shift expression instead of reusing given expression.
9006
9007 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9008
9009         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9010         alpha_legitimize_address unless mode is Pmode.
9011
9012 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9013
9014         * doc/md.texi (Modifiers): Document the '*' constraint for the
9015         user.
9016
9017         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9018         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9019         for xstormy16 too.
9020
9021 2002-01-13  Richard Henderson  <rth@redhat.com>
9022
9023         * reload.c (find_reloads): Use a hard reg destination as reload reg
9024         for an input reload of the source.
9025
9026 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9027
9028         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9029         more generic.
9030
9031 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9032
9033         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9034         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9035
9036         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9037
9038 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9039
9040         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9041
9042 2002-01-12  Tom Rix  <trix@redhat.com>
9043
9044         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9045         TARGET_POWERPC64.
9046
9047 2002-01-12  Richard Henderson  <rth@redhat.com>
9048
9049         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9050
9051         * doc/invoke.texi: Update Alpha options.
9052
9053         * doc/invoke.texi: Update i386 built-in function lists.
9054
9055 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9056
9057         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9058         referencing outside.
9059
9060 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9061
9062         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9063         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9064         offsets, and change line folding.
9065         * optabs.c (expand_binop): Remove warnings.
9066         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9067
9068 2002-01-12  Graham Stott <grahams@redhat.com>
9069
9070         * attribs.c (handle_deprecated_attribute): constify WHAT.
9071         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9072         dangling else warning and constify WHAT.
9073         * except.h (struct function, struct inline_remap): Move
9074         struct tag forward defs before all prototypes.
9075         (duplicate_eh_regions): Whitespace.
9076
9077 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9078
9079         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9080         MODE_BASE_REG_CLASS.
9081         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9082
9083 2002-01-12  Richard Henderson  <rth@redhat.com>
9084
9085         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9086         (ix86_expand_vector_move): New.
9087         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9088         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9089         Remove old prefetch builtins.  Special case the logicals removed above.
9090         (ix86_expand_builtin): Likewise.
9091         (safe_vector_operand): Use V4SFmode, not TImode.
9092         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9093         (ix86_expand_timode_binop_builtin): New.
9094         * config/i386/i386-protos.h: Update.
9095         * config/i386/i386.h (enum ix86_builtins): Update.
9096         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9097         Use ix86_expand_vector_move in vector move expanders.
9098         (movti_internal, movti_rex64): Add xorps alternative.
9099         (sse_clrv4sf): Rename and adjust from sse_clrti.
9100         (prefetch): Don't work so hard.
9101         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9102         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9103         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9104
9105 2002-01-11  Richard Henderson  <rth@redhat.com>
9106
9107         * config/i386/mmintrin.h: New file.
9108         * config/i386/xmmintrin.h: New file.
9109         * config.gcc (i?86-*-*): Add extra_headers.
9110         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9111         truncation codes.
9112         (simplify_binary_operation): Handle saturating arithmetic codes.
9113         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9114         not the lowpart subreg.
9115         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9116         on error.
9117         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9118
9119 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9120
9121         * conflict.c (conflict_graph_compute): Free regsets when finished.
9122         * ssa.c (compute_coalesced_reg_partition): Likewise.
9123
9124 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9125
9126         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9127         every where we allocate a register.
9128
9129 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9130
9131         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9132         * lcm.c (compute_earliest, compute_farthest): Likewise.
9133
9134 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9135
9136         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9137
9138 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9139
9140         * doc/rtl.texi (Insns): Fix 2 typos.
9141
9142 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9143
9144         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9145         options.  Use @table @gcctabopt for MMIX options.  Add index
9146         entries for MMIX options.  Start new paragraph with first
9147         heading of the machine-dependent options.
9148
9149 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9150
9151         PR other/5299
9152         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9153         * combine.c (force_to_mode): Same.
9154         * reload1.c (clear_reload_reg_in_use): Same.
9155
9156 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9157
9158         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9159         and 'subtargets'.
9160
9161 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9162             Brad Lucier <lucier@math.purdue.edu>
9163
9164         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9165         mcpu.
9166
9167 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9168
9169         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9170         Protect with IN_LIBGCC.
9171         (LINK_EH_SPEC): Add required trailing space.
9172
9173 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9174
9175         * c-tree.h: Move function declarations so that they are listed
9176         under the filename which contains them.
9177         (check_identifier, finish_decl_top_level,
9178         lookup_name_current_level_global, shadow_record_fields): Remove.
9179
9180 2002-01-11  Andreas Jaeger  <aj@suse.de>
9181
9182         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9183         march.
9184
9185 2002-01-10  Richard Henderson  <rth@redhat.com>
9186
9187         * config/alpha/alpha.c (print_operand): Add 'J'.
9188         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9189         new operand with the sequence number for the lituse.  When splitting
9190         the insns, use gen_movdi_er_high_g and generate a sequence number.
9191         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9192
9193 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9194
9195         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9196         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9197         stvxl.
9198         (altivec_expand_builtin): Same.
9199         (altivec_expand_stv_builtin): New.
9200
9201         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9202
9203         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9204         ("altivec_lvehx"): New.
9205         ("altivec_lvewx"): New.
9206         ("altivec_lvxl"): New.
9207         ("altivec_lvx"): New.
9208         ("altivec_stvx"): New.
9209         ("altivec_stvebx"): New.
9210         ("altivec_stvehx"): New.
9211         ("altivec_stvewx"): New.
9212         ("altivec_stvxl"): New.
9213
9214 2002-01-10  Richard Henderson  <rth@redhat.com>
9215
9216         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9217         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9218         care not to delete instructions twice.
9219
9220 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9221
9222         * toplev.c: Don't declare environ (it's not used anywhere).
9223         * configure.in: Don't check for declaration of environ.
9224         * config/i386/xm-mingw32.h: Don't #define environ.
9225         * config.in, configure: Regenerate.
9226
9227 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9228
9229         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9230         * configure: Regenerate.
9231
9232         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9233         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9234         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9235         alpha/xm-vms.h.
9236         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9237         LIMITS_H_TEST here, not in m68k/x-next.
9238         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9239         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9240
9241         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9242         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9243         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9244
9245         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9246         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9247         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9248         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9249         replacement of quadlib.asm with quadlib.c.
9250
9251         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9252         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9253         config/rs6000/xm-beos.h: Delete file.
9254
9255         * config.gcc: Update to match above changes.
9256
9257 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9258
9259         * config/h8300/h8300.h: Fix comment typos.
9260         * config/h8300/h8300.md: Likewise.
9261         * config/h8300/lib1funcs.asm: Likewise.
9262
9263 2002-01-10  Dale Johannesen  <dalej@apple.com>
9264
9265         PR optimization/5269
9266         * unroll.c (precondition_loop_p): Make *increment be the correct
9267         sign when n_iterations known, to avoid confusing caller.
9268
9269 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9270
9271         * doc/extend.texi (deprecated): Fix a typo.
9272
9273 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9274
9275         * basic-block.h (update_br_prob_note): Declare.
9276         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9277         (try_forward_edges): Care negative frequencies and update note.
9278         (outgoing_edges_match): Tweek conditional merging heuristics.
9279         (try_crossjump_to_edge): use update_br_prob_note.
9280         * cfglayout.c (fixup_reorder_chain): Likewise.
9281         * cfrtl.c (update_br_prob_note): New.
9282         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9283
9284         * i386.c (ix86_decompose_address): Return -1 if address contains
9285         shift.
9286         (legitimate_address_p): Require ix86_decompose_address to return 1.
9287
9288         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9289         (cprop_insn): Likewise.
9290
9291 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9292
9293         * toplev.c: Fix formatting.
9294         * tree.c: Likewise.
9295         * tree-dump.c: Likewise.
9296         * unroll.c: Likewise.
9297         * unwind-dw2.c: Likewise.
9298         * unwind-dw2-fde.c: Likewise.
9299         * unwind-dw2-fde-glibc.c: Likewise.
9300         * unwind-sjlj.c: Likewise.
9301
9302 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9303
9304         * doc/invoke.texi: Document PDP-11 options.
9305
9306 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9307
9308         * config/h8300/h8300.h: Fix formatting.
9309
9310 2002-01-10  Ira Ruben   <ira@apple.com>
9311
9312         Add __attribute__ ((deprecated)).
9313         * extend.texi: Document __attribute__ ((deprecated)).
9314         * invoke.texi: Document -Wno-deprecated-declarations.
9315         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9316         * testsuite/gcc.dg/deprecated.c: New C test.
9317         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9318         (c_common_attribute_table): Add "deprecated" entry.
9319         (handle_deprecated_attribute): New function.
9320         * c-decl.c (deprecated_states): New enum.
9321         deprecated_state: State of "deprecated" handling.
9322         (start_decl): Set deprecated_state based on attributes.
9323         (grokdeclarator): Test for deprecated uses, propagate attribute.
9324         * c-typeck.c (build_component_ref): Test for deprecated fields.
9325         (build_external_ref): Test for deprecated primaries.
9326         * diagnostic.c (warn_deprecated_use) New function to issue
9327         warnings about __attribute__ ((depricated)) references.
9328         * flags.h (warn_deprecated_decl): Extern declared for
9329         -W[no-]deprecated-declarations option.
9330         * print-tree.c (print_node): Show deprecated flag status.
9331         * toplev.c (warn_deprecated_decl): Defined.
9332         (W_options): Added "deprecated-declaration".
9333         * toplev.h (warn_deprecated_use): Extern declared.
9334         * tree.h (struct tree_common): Define deprecated_flag.
9335         (TREE_DEPRECATED): New macro to access flag.
9336         * cp/call.c (build_call): Test for deprecated calls.
9337         * cp/class.c (add_implicitly_declared_members): Set global
9338         flag to tell grokdeclarator to not issue deprecated warnings.
9339         * cp/cp-tree.h: Add extern for adding_implicit_members.
9340         * cp/decl.c (deprecated_states): New enum.
9341         (start_decl): Set deprecated_state based on attributes.
9342         (grokdeclarator): Test for deprecated uses, propagate attribute.
9343         * cp/lex.c (do_identifier): Test for deprecated primaries.
9344         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9345
9346 2002-01-10  Ira Ruben   <ira@apple.com>
9347
9348         Fix to assign attributes to inline member functions.
9349         * cp/decl.c (start_method): Handle attrlist.
9350
9351 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9352
9353         * combine.c (expand_field_assignment): Use subreg_lsb().
9354
9355 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9356
9357         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9358         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9359         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9360         Recurse for any operand of AND as long as constant is non-zero.
9361
9362 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9363
9364         * config/h8300/h8300.md: Remove constraints from expanders.
9365
9366 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9367
9368         * varasm.c: Fix formatting.
9369         * varray.c: Likewise.
9370         * vmsdbgout.c: Likewise.
9371         * xcoffout.c: Likewise.
9372
9373 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9374
9375         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9376         update edge probabilities to match.
9377
9378 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9379
9380         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9381         dependencies.
9382         * doc/languages.texi, doc/sourcebuild.texi: New files.
9383         * doc/configfiles.texi: Make a subsubsection.  Update.
9384         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9385         instructions for building GCC.
9386         * doc/makefile.texi: Make a subsection.
9387         * doc/gccint.texi: Update.
9388
9389 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9390
9391         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9392
9393 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9394
9395         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9396
9397 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9398
9399         * optabs.c (expand_fix): Look for wider integer modes first.
9400
9401         * i386.md (mov?f): Avoid the fake const double trick for medium
9402         memory model.
9403         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9404         (fop_df_4): Disable for SSE compilation.
9405
9406 2002-01-10  Graham Stott  <grahams@redhat.com>
9407
9408         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9409         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9410
9411 2002-01-10  Richard Henderson  <rth@redhat.com>
9412
9413         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9414
9415 2002-01-10  Richard Henderson  <rth@redhat.com>
9416
9417         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9418         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9419
9420 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9421
9422         * combine.c (can_combine_p): Fix a comment typo.
9423
9424 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9425
9426         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9427         empty list correctly.  Change loop index $t to $f for
9428         consistency with rest of Makefile.
9429
9430 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9431
9432         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9433         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9434
9435         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9436         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9437         (altivec_init_builtins): Same.
9438         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9439         (altivec_expand_binop_builtin): Same.
9440         (altivec_expand_ternop_builtin): Same.
9441         (bdesc_dst): New.
9442
9443         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9444         ("altivec_vctuxs"): Fix typo.
9445         ("altivec_vnmsubfp"): Same.
9446         ("altivec_dssall"): New.
9447         ("altivec_mfvscr"): New.
9448         ("altivec_dss"): New.
9449         ("altivec_lvsl"): New.
9450         ("altivec_lvsr"): New.
9451         ("altivec_dstt"): New.
9452         ("altivec_dstst"): New.
9453         ("altivec_dststt"): New.
9454         ("altivec_dst"): New.
9455
9456         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9457         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9458
9459 2002-01-09  Richard Henderson  <rth@redhat.com>
9460
9461         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9462
9463 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9464
9465         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9466         function.
9467         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9468         prototype.
9469         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9470
9471 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9472
9473         * read-rtl.c: Fix formatting.
9474         * real.c: Likewise.
9475         * regclass.c: Likewise.
9476         * regrename.c: Likewise.
9477         * reg-stack.c: Likewise.
9478         * reload1.c: Likewise.
9479         * reload.c: Likewise.
9480         * rtl.c: Likewise.
9481
9482 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9483
9484         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9485         to extract items in the expr_list chain.
9486
9487 2002-01-09  Richard Henderson  <rth@redhat.com>
9488
9489         * config/vax/vax.c (vax_rtx_cost): Never abort.
9490
9491         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9492
9493 2002-01-09  Jan Hubicka  <jh@suse.cz>
9494
9495         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9496
9497 2002-01-09  Richard Henderson  <rth@redhat.com>
9498
9499         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9500         Unify code from various alternatives.
9501
9502 2002-01-09  Richard Henderson  <rth@redhat.com>
9503
9504         * regrename.c (copy_value): Ignore the copy if the source register
9505         is present in the value chain with a narrower mode.
9506
9507 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9508
9509         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9510         for the c4x target. Also improve layout.
9511
9512 2002-01-09  Richard Henderson  <rth@redhat.com>
9513
9514         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9515         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9516         to match insn patterns.
9517
9518 2002-01-09  Richard Henderson  <rth@redhat.com>
9519
9520         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9521         (copyprop_hardreg_forward_1): Likewise.
9522
9523 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9524
9525         * pa.md (decrement_and_branch_until_zero): Change predicate for
9526         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9527
9528 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9529
9530         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9531         gets undefined. For Darwin.
9532
9533 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9534
9535         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9536
9537 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9538
9539         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9540
9541 2002-01-08  Richard Henderson  <rth@redhat.com>
9542
9543         * regrename.c (copy_value): Ignore overlapping copies.
9544
9545 2002-01-08  Richard Henderson  <rth@redhat.com>
9546
9547         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9548         as needed to avoid shared structure.
9549
9550 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9551
9552         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9553         H8/300H and H8/S.
9554
9555 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9556
9557         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9558         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9559         documentation of obsolete macros.
9560         * system.h: Poison these macros.
9561         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9562         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9563         config/c4x/c4x.h, config/clipper/clipper.h,
9564         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9565         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9566         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9567         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9568         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9569         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9570         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9571         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9572         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9573         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9574         config/sparc/sparc.h, config/stormy16/stormy16.h,
9575         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9576         definitions and commented out definitions of obsolete macros.
9577         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9578         of MAX_INT_TYPE_SIZE.
9579
9580 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9581
9582         * config/s390/s390.c (s390_preferred_reload_class): Never
9583         return ADDR_REGS if it isn't a subset of the given class.
9584         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9585         FP_REGS, but all superclasses as well.
9586
9587         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9588
9589         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9590         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9591         must not be a const_int.
9592
9593 2002-01-08  Richard Henderson  <rth@redhat.com>
9594
9595         * Makefile.in (toplev.o): Depend on options.h.
9596         (gcc.o): Depend on specs.h.
9597
9598 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9599
9600         * expr.c (store_expr): Convert VOIDmode constants back to target's
9601         mode.
9602
9603 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9604
9605         * doc/invoke.texi: Markup gcc as @command.  Refer to
9606         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9607         of http://gcc.gnu.org/thanks.html.
9608
9609 2002-01-08  Dale Johannesen  <dalej@apple.com>
9610
9611         * config/rs6000/rs6000.md: Add missing int register
9612         target case to movdf_low.
9613
9614 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
9615
9616         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9617         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
9618         (cppinit.o): Depend on except.h.
9619         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9620         s-specs): New rules.
9621
9622         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9623         Don't create specs.h/options.h/gencheck.h here.  Remove
9624         unnecessary variable settings from last argument of AC_OUTPUT.
9625         * config.in, configure: Regenerate.
9626         * intl.c: Hardcode package name as "gcc".
9627
9628         * cppinit.c: Include except.h.
9629         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9630         appropriate.
9631         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9632         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9633         (!)USING_SJLJ_EXCEPTIONS.
9634         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9635
9636 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9637
9638         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9639         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9640         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9641         documentation of obsolete macros.
9642         * system.h: Poison these macros.
9643         * config/d30v/d30v.h, config/ns32k/encore.h,
9644         config/stormy16/stormy16.h: Remove definitions and commented out
9645         definitions of obsolete macros.
9646
9647 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
9648
9649         * objc/objc-act.c (handle_class_ref): Mark the declaration of
9650         %sobjc_class_ref_%s as used - to prevent unwanted compiler
9651         warnings.
9652
9653 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9654
9655         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9656         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9657         to insn adjusting stack/frame pointer.
9658         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9659         accept operands that cause the insn to be non-splittable.
9660
9661 2002-01-08  Graham Stott  <grahams@redhat.com>
9662
9663         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9664         (C_TYPE_FIELDS_VOLATILE): Likewise.
9665         (C_TYPE_BEING_DEFINED): Likewise.
9666         (C_IS_RESERVED_WORD): Likewise.
9667         (C_TYPE_VARIABLE_SIZE): Likewise.
9668         (C_DECL_VARIABLE_SIZE): Likewise.
9669         (C_MISSING_PROTOTYPE_WARNED): Likewise.
9670         (C_SET_EXP_ORIGINAL_CODE): Likewise.
9671         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9672         parenthesis.
9673         (C_DECL_ANTICIPATED): Likewise.
9674         (c_build_type_variant): Add parenthesis.
9675
9676 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9677
9678         * gcc.c (option_map): Remove --version.
9679         (process_command): Handle -fversion following the GNU Coding
9680         Standards.  Partially addresses PR other/704.
9681
9682 2002-01-08  Graham Stott  <grahams@redhat.com>
9683
9684         * combine.c (combine_instructions): Fix typo.
9685
9686 2002-01-08  Graham Stott  <grahams@redhat.com>
9687
9688         * debug.h: Use "tree" and "rtx" throughout.
9689
9690         * debug.c: Likewise.
9691
9692 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
9693
9694         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9695         constant pool, use the pool's version of the symbol instead.
9696
9697 2002-01-07  Richard Henderson  <rth@redhat.com>
9698
9699         * regrename.c (find_oldest_value_reg): Ignore the value chain if
9700         the original register was copied in a mode with a fewer number of
9701         hard registers than the desired mode.
9702         (copyprop_hardreg_forward_1): Likewise.
9703         (debug_value_data): Fix loop test.
9704         * toplev.c (parse_options_and_default_flags): Reenable
9705         -fcprop-registers at -O1.
9706
9707 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9708
9709         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9710         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9711
9712         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9713         predicates.
9714
9715         * config/rs6000/rs6000.md: Add altivec predicate patterns.
9716
9717 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9718
9719         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9720         (pa_output_function_prologue): Output local label at the beginning of
9721         the prologue when profiling.
9722         (hppa_profile_hook): Use the local label rather than the function label.
9723         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9724
9725 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9726
9727         * config/rs6000/rs6000.c (print_operand): Remove extra space.
9728         (altivec_expand_unop_builtin): Fix thinko.
9729         (altivec_expand_binop_builtin): Same.
9730         (altivec_expand_ternop_builtin): Same.
9731         (altivec_expand_builtin): Same.
9732
9733 2002-01-07  Richard Henderson  <rth@redhat.com>
9734
9735         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9736
9737 2002-01-07  Jason Merrill  <jason@redhat.com>
9738
9739         * unwind-dw2.c (execute_cfa_program): Use < again.
9740
9741 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9742
9743         * predict.c (combine_predictions_for_insn): Avoid division by zero.
9744
9745 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9746
9747         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9748         Don't allow -1 - x -> ~x simplifications in the first pass.
9749
9750 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9751
9752         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9753         arguments.
9754         (altivec_expand_binop_builtin): Same.
9755         (altivec_expand_unop_builtin): Same.
9756         (print_operand): Fix typo.
9757         (bdesc_1arg): Add vupk* variants.
9758
9759         * rs6000.h (rs6000_builtins): Add vupk* enums.
9760
9761         * rs6000.md: Add altivec_vupk* variants.
9762
9763 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9764
9765         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9766         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9767         and last update dates.
9768
9769 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
9770
9771         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9772
9773 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9774
9775         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9776         * config/avr/avr.h (CPP_SPEC): Likewise.
9777         (LINK_SPEC): Likewise.
9778         (CRT_BINUTILS_SPECS): Likewise.
9779         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9780         * doc/invoke.texi (AVR Options): Document them.
9781
9782 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9783
9784         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9785         LABEL_NUSES.
9786
9787 2002-01-07  Graham Stott  <grahams@redhat.com>
9788
9789         * config/i386/i386.h: Update copyright date.
9790         (HALF_PIC_PTR): Add parenthesis.
9791         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9792         (CONSTANT_ALIGNMENT): Add parenthesis.
9793         (DATA_ALIGNMENT): Likewise.
9794         (LOCAL_ALIGNMENT): Likewise.
9795         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9796         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9797         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9798         (HARD_REGNO_NREGS): Add paranethesis.
9799         (VALID_SSE_REG_MODE): Whitespace.
9800         (VALID_MMX_REG_MODE): Whitespace.
9801         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9802         (ix86_hard_regno_mode_ok): Add parenthesis.
9803         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9804         (RETURN_IN_MEMORY): Whitespace.
9805         (N_REG_CLASSES): Add parenthesis.
9806         (INTEGER_CLASS_P): Add parenthesis and wrap.
9807         (FLOAT_CLASS_P): Likewise.
9808         (SSE_CLASS_P): Likewise.
9809         (MMX_CLASS_P): Likewise.
9810         (MAYBE_INTEGER_CLASS_P): Likewise.
9811         (MAYBE_FLOAT_CLASS_P): Likewise.
9812         (MAYBE_SSE_CLASS_P): Likewise.
9813         (MAYBE_MMX_CLASS_P): Likewise.
9814         (Q_CLASS_P): Likewise.
9815         (GENERAL_REGNO_P): Uppercase macro parameter.
9816         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9817         (FP_REGNO_P): Likewise.
9818         (ANY_FP_REGNO_P): Uppercase macro parameter.
9819         (SSE_REGNO_P): Likewise.
9820         (SSE_REGNO): Likewise.
9821         (SSE_REG_P): Likewise.
9822         (SSE_FLOAT_MODE_P): Likewise.
9823         (MMX_REGNO_P): Likewise.
9824         (MMX_REG_P):Likewise.
9825         (STACK_REG_P): Likewise.
9826         (NON_STACK_REG_P): Likewise.
9827         (STACK_TOP_P): Likewise.
9828         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9829         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9830         (SECONDARY_MEMORY_NEEDED): Likewise.
9831         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9832         (MD_ASM_CLOBBERS): Whitespace and wrap.
9833         (MUST_PASS_IN_STACK): Whitespace and wrap.
9834         (RETURN_POPS_ARGS): Add parenthesis.
9835         (INIT_CUMULATIVE_ARGS): Likewise.
9836         (FUNCTION_ARG): Likewise.
9837         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9838         (SETUP_INCOMING_VARARGS): Likewise.
9839         (BUILD_VA_LIST_TYPE):  Add parenthesis.
9840         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9841         parenthsis.
9842         (EXPAND_BUILTIN_VA_ARG): Likewise.
9843         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9844         (INITIALIZE_TRAMPOLINE): Add parenthesis.
9845         (INITIAL_ELIMINATION_OFFSET): Likewise.
9846         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9847         (REGNO_OK_FOR_BASE_P): Likewise.
9848         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9849         (REGNO_OK_FOR_DIREG_P): Likewise.
9850         (REG_OK_FOR_INDEX_P): Whitespace.
9851         (REG_OK_FOR_BASE_P): Whitespace.
9852         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9853         parenthesis.
9854         (FIND_BASE_TERM): Fix typo.
9855         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
9856         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9857         (SYMBOLIC_CONST; Whitespace.
9858         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
9859         (ENCODE_SECTION_INFO): Whitespace.
9860         (FINALIZE_PIC): Remove do { ... } while (0).
9861         (PROMOTE_MODE): Wrap in do { ... } while (0).
9862         (CONST_COSTS): Whitespace.
9863         (RTX_COSTS): Add paramethesis, whitespace and wrap.
9864         (REGISTER_MOVE_COST): Add parenthesis.
9865         (MEMORY_MOVE_COST): Likewise.
9866         (EXTRA_CC_MODES): Whitespace.
9867         (SELECT_CC_MODE): Add parenthesis and whitespace.
9868         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9869         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9870         (ASM_OUTPUT_LABEL): Add paramethesis.
9871         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9872         (ASM_OUTPUT_REG_POP): Likewise.
9873         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9874         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9875
9876         * config/i386/i386.c: Update copyright.
9877         (CHECK_STACK_LIMIT): Add parenthesis.
9878         (AT_BP): Uppercase macro parameter.
9879         (x86_64_int_parameter_registers): Constify.
9880         (x86_64_int_return_registers): Likewise.
9881         (ix86_compare_op0): Use rtx.
9882         (construct_container): Constify INTREG parameter.
9883         (function_arg): Use rtx.
9884
9885         * diagnostic.h: Update copyright date.
9886         (output_buffer_state): Add parenthesis.
9887         (output_buffer_format_args): Likewise.
9888
9889         * combine.c (combine_instructions): Replace XEXP (links, 0)
9890         with link.
9891
9892 2002-01-06  H.J. Lu <hjl@gnu.org>
9893
9894         * cfgcleanup.c (thread_jump): Fix 2 typos.
9895
9896 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
9897
9898         * config.gcc: Add support for --enable-altivec.
9899
9900 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9901
9902         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9903
9904 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
9905
9906         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9907         __objc_class_name_*.
9908
9909 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9910
9911         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9912
9913 2002-01-06  Richard Henderson  <rth@redhat.com>
9914
9915         * reorg.c (emit_delay_sequence): Remove death notes, not merely
9916         nop them out.  Increment label reference count for REG_LABEL.
9917         (fill_slots_from_thread): Frob label reference count around
9918         delete_related_insns.
9919
9920 2002-01-05  Richard Henderson  <rth@redhat.com>
9921
9922         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9923         jump threading.
9924
9925 2002-01-05  Richard Henderson  <rth@redhat.com>
9926
9927         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9928         * integrate.c (output_inline_function): Likewise.
9929         * toplev.c (rest_of_compilation): Do it here instead.  Move call
9930         to remove_unnecessary_notes after emitting abstract instance.
9931         Force an emitted nested function to have its parent emited as well.
9932         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9933         for null.
9934         (rtl_for_decl_location): Do not look at reload data structures
9935         before reload has run.
9936
9937 2002-01-05  Kazu Hirata  <kazu@hxi.com>
9938
9939         * cse.c: Fix formatting.
9940         * dwarf2asm.c: Likewise.
9941         * dwarf2out.c: Likewise.
9942         * explow.c: Likewise.
9943         * expmed.c: Likewise.
9944         * function.c: Likewise.
9945         * gcov.c: Likewise.
9946         * gencheck.c: Likewise.
9947         * genrecog.c: Likewise.
9948         * ggc-common.c: Likewise.
9949         * ggc-page.c: Likewise.
9950         * global.c: Likewise.
9951
9952 2002-01-05  Kazu Hirata  <kazu@hxi.com>
9953
9954         * combine.c: Fix formatting.
9955
9956 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
9957
9958         PR middle-end/1557
9959         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9960
9961 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
9962
9963         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9964         as 1 for __powerpc64__ as well.
9965
9966         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9967
9968         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9969         return it.
9970
9971 2002-01-05  Daniel Berlin  <dan@dberlin.org>
9972
9973         * lcm.c: Revert change, due to performance regression it causes on
9974         SPEC because it's slightly more conservative (sigh, I hate
9975         edge-based LCM).
9976
9977 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
9978
9979         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9980
9981 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9982
9983         * doc/cppinternals.texi: Update.
9984
9985 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
9986
9987         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9988         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9989         negatives.
9990         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
9991         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9992         kludge for pre-october-14th mmix versions to handle new-found bug
9993         with PUSHJ/PUSHGO and the register stack.
9994         * config/mmix/mmix.h (struct machine_function): Rename member
9995         has_call_value_without_parameters to has_call_without_parameters.
9996         All referers changed.
9997         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9998         TARGET_MASK_BRANCH_PREDICT): New macros.
9999         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10000         -mno-reg-stack-fill-bug-workaround.
10001         * config/mmix/mmix.md ("call"): Set struct machine member
10002         has_call_without_parameters.
10003
10004 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10005
10006         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10007
10008 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10009
10010         * cfgcleanup.c: Include tm_p.h
10011         (mark_effect): Fix handling of hard register; fix handling of SET
10012
10013 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10014
10015         * config/h8300/h8300.md (anonymous patterns): Check that
10016         operands are registers before using REGNO on them.
10017
10018 2002-01-03  Roland McGrath  <roland@frob.com>
10019
10020         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10021
10022 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10023
10024         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10025         * c-common.h (genrtl_expr_stmt_value): Likewise.
10026         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10027         (expand_expr_stmt_value): Add maybe_last argument.
10028         Don't warn about statement with no effect if it is the last statement
10029         in expression statement.
10030         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10031         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10032         expand_expr_stmt_value.
10033         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10034         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10035         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10036         as maybe_last to expand_expr_stmt_value.
10037
10038 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10039
10040         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10041         be passed in, do not build it.
10042         (c_begin_if_stmt): New function.
10043         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10044         * c-common.h (c_expand_start_cond): Update prototype.
10045         (c_begin_if_stmt): Prototype new function.
10046         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10047         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10048         c_begin_while_stmt and c_finish_while_stmt_cond.
10049
10050 2002-01-04  William Cohen  <wcohen@redhat.com>
10051
10052         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10053         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10054         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10055         * config/pa/som.h (ASM_FILE_START): Likewise.
10056
10057 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10058
10059         * lcm.c: Include df.h.
10060         Add available_transfer_function prototype.
10061         (compute_available): Rework to use iterative dataflow framework.
10062         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10063         with bb_info in df.h
10064         (available_transfer_function): New function.
10065
10066         * Makefile.in (lcm.o): add df.h to dependencies.
10067
10068 2002-01-04  Richard Henderson  <rth@redhat.com>
10069
10070         * config/alpha/alpha.c (some_operand): Accept HIGH.
10071         (input_operand): Likewise; accept simple references to globals.
10072         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10073         (alpha_const_double_ok_for_letter_p): Likewise.
10074         (alpha_extra_constraint): Likewise.
10075         (alpha_preferred_reload_class): Likewise.  Do not force
10076         symbolic constants to memory.
10077         (alpha_legitimate_address_p): Accept simple references
10078         to small_symbolic_operand.
10079         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10080         called when no_new_pseudos.  Emit simple symbolic references.
10081         Split integers into low, high, and rest.
10082         (alpha_expand_mov): Use alpha_legitimize_address.
10083         (some_small_symbolic_mem_operand): New.
10084         (split_small_symbolic_mem_operand): New.
10085         * config/alpha/alpha-protos.h: Update.
10086         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10087         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10088         (EXTRA_CONSTRAINT): Likewise.
10089         (PREFERRED_RELOAD_CLASS): Likewise.
10090         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10091         (PREDICATE_CODES): Update.
10092         * config/alpha/alpha.md: New post-reload splitters to convert
10093         simplfied symbolic operands to the form that references $29.
10094         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10095         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10096
10097 2002-01-03  Richard Henderson  <rth@redhat.com>
10098
10099         * local-alloc.c (function_invariant_p): Update commentary.
10100
10101 2002-01-04  H.J. Lu <hjl@gnu.org>
10102
10103         * toplev.c (rest_of_compilation): Fix a typo when calling
10104         cleanup_cfg.
10105
10106 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10107
10108         * c-common.c: Fix formatting.
10109         * diagnostic.c: Likewise.
10110         * doloop.c: Likewise.
10111         * dwarf2out.c: Likewise.
10112
10113 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10114
10115         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10116         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10117
10118 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10119
10120         * cpperror.c: Update comments and copyright.
10121         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10122         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10123
10124 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10125
10126         * collect2.c (main): Use strcmp when testing for "-shared".
10127
10128 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10129
10130         * cppmacro.c: Don't include intl.h.  Update comments.
10131         (new_number_token): Allocate enough buffer for 64-bit unsigned
10132         integers; update prototype.
10133         * cppmain.c: Update comments.
10134
10135 2002-01-03  William Cohen  <wcohen@redhat.com>
10136
10137         * function.h (struct function): Add profile.
10138         (current_function_profile): New.
10139         doc/extend.texi: Update documentation.
10140         * final.c (final_start_function): Use current_function_profile
10141         instead of profile_flag.
10142         (profile_after_prologue): Likewise.
10143         * function.c (expand_function_start): Likewise.
10144         (expand_function_start): Likewise.
10145         * config/alpha/alpha.c (direct_call_operand):
10146         (alpha_does_function_need_gp): Likewise.
10147         (alpha_expand_prologue): Likewise.
10148         * config/arm/arm.c (arm_expand_prologue): Likewise.
10149         thumb_expand_prologue: Likewise.
10150         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10151         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10152         (fr30_expand_prologue): Likewise.
10153         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10154         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10155         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10156         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10157         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10158         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10159         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10160         (m32r_expand_prologue): Likewise.
10161         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10162         (m88k_expand_prologue): Likewise.
10163         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10164         * config/mips/mips.c (compute_frame_size): Likewise.
10165         (mips_expand_prologue): Likewise.
10166         (mips_can_use_return_insn): Likewise.
10167         * config/pa/elf.h (ASM_FILE_START): Likewise.
10168         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10169         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10170         * config/pa/som.h (ASM_FILE_START): Likewise.
10171         * config/romp/romp.c (romp_using_r14): Likewise.
10172         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10173         (rs6000_stack_info): Likewise.
10174         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10175         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10176         * config/v850/v850.c (compute_register_save_size): Likewise.
10177
10178 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10179
10180         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10181         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10182
10183 2002-01-03  Turly O'Connor  <turly@apple.com>
10184
10185         * darwin.c (machopic_output_possible_stub_label): Don't generate
10186         stub routines for pseudo-stubs which we've just defined.
10187
10188 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10189
10190         * builtins.c: Fix formatting.
10191         * c-typeck.c: Likewise.
10192         * combine.c: Likewise.
10193         * expr.c: Likewise.
10194         * loop.c: Likewise.
10195
10196 2002-01-03  Andreas Schwab  <schwab@suse.de>
10197
10198         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10199         and return true if _cpp_push_next_buffer pushed a new include
10200         file.
10201         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10202         _cpp_pop_file_buffer did not push a new file.
10203         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10204
10205 2002-01-02  Eric Christopher  <echristo@redhat.com>
10206
10207         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10208         FIND_REG_INC_NOTE call. Update copyright.
10209         * loop.c (canonicalize_condition): Ditto.
10210         * reorg.c (delete_scheduled_jump): Ditto.
10211
10212 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10213
10214         * gcse.c: Fix formatting.
10215
10216 2002-01-03  Graham Stott  <grahams@redhat.com>
10217
10218         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10219         forward defs for struct tags rtx_def, union_tree, rtvec_def
10220         also output corresponding typedefs for rtx, tree, and rtvec.
10221
10222         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10223         rtvec_def along with corresponding typedefs for rtx, tree, and
10224         rtvec to config.h, hconfig.h, tconfig.h.
10225
10226 2002-01-03  Graham Stott  <grahams@redhat.com>
10227
10228         * tree.h: Update copyright date.
10229         (IS_EXPR_CODE_CLASS): Add parenthesis.
10230         (TREE_SET_CODE): Add whitespace.
10231         (TREE_CHECK): Add parenthesis.
10232         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10233         (CST_OR_CONSTRUCTOR_CHECK):
10234         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10235         (TREE_SYMBOL_REFERENCED): Whitespace.
10236         (INT_CST_LT): Likewise.
10237         (INT_CST_LT_UNSIGNED): Likewise.
10238         (tree_real_cst): Unwrap comment.
10239         (tree_string): Likewise.
10240         (tree_complex): Likewise.
10241         (IDENTIFIER_POINTER): correct cast.
10242         (SAVE_EXPR_CONTEXT): Whitespace.
10243         (EXPR_WFL_FILENAME_NODE): Likewise.
10244         (EXPR_WFL_FILENAME): Remove parenthesis.
10245         (DECL_ORIGIN): Add parenthesis.
10246         (DECL_FROM_INLINE): Use NULL_TREE.
10247         (build_int_2): Whitespace.
10248         (build_type_variant): Add parenthesis.
10249
10250         * gcc/jcf-parse.c: Update copyright date.
10251         (yyparse): Constify resource_filename.
10252
10253 2002-01-03  Graham Stott  <grahams@redhat.com>
10254
10255         * rtl.h: Update copyright date.
10256         (RTL_CHECK1): Wrap long line.
10257         (RTL_CHECK2): Likewise.
10258         (RTL_CHECKC1): Wrap long line and whitespace.
10259         (RTL_CHECKC2): Likewise.
10260         (XWINT): Whitespace.
10261         (XINT): Likewise.
10262         (XSTR): Likewise.
10263         (XEXP): Likewise.
10264         (XVEC): Likewise.
10265         (XMODE): Likewise.
10266         (XBITMAP): Likewise.
10267         (XTREE): Likewise.
10268         (XBBDEF): Likewise.
10269         (XTMPL): Likewise.
10270         (X0WINT): Likewise.
10271         (X0INT):Likewise.
10272         (X0UINT): Likewise.
10273         (X0STR): Likewise.
10274         (X0EXP): Likewise.
10275         (X0VEC): Likewise.
10276         (X0MODE): Likewise.
10277         (X0BITMAP): Likewise.
10278         (X0TREE): Likewise.
10279         (X0BBDEF): Likewise.
10280         (X0ADVFLAGS): Likewise.
10281         (X0CSELIB): Likewise.
10282         (X0MEMATTR): Likewise.
10283         (XCWINT): Likewise.
10284         (XCINT): Likewise.
10285         (XCUINT): Likewise.
10286         (XCSTR): Likewise.
10287         (XCEXP): Likewise.
10288         (XCVEC): Likewise.
10289         (XCMODE): Likewise.
10290         (XCBITMAP): Likewise.
10291         (XCTREE): Likewise.
10292         (XCBBDEF): Likewise.
10293         (XCADVFLAGS): Likewise.
10294         (XCCSELIB): Likewise.
10295         (XC2EXP): Likewise.
10296         (INSN_UID): Likewise.
10297         (PREV_INSN): Likewise.
10298         (PATTERN): Likewise.
10299         (INSN_CODE): Likewise.
10300         (PUT_REG_NOTE_KIND): Likewise.
10301         (CODE_LABEL_NUMBER): Likewise.
10302         (NOTE_SOURCE_FILE): Likewise.
10303         (NOTE_BLOCK): Likewise.
10304         (NOTE_EH_HANDLER): Likewise.
10305         (NOTE_RANGE_INFO): Likewise.
10306         (NOTE_LIVE_INFO): Likewise.
10307         (NOTE_BASIC_BLOCK): Likewise.
10308         (NOTE_EXPECTED_VALUE): Likewise.
10309         (NOTE_LINE_NUMBER): Likewise.
10310         (LABEL_NAME): Likewise.
10311         (LABEL_NUSES): Likewise.
10312         (LABEL_ALTERNATE_NAME): Likewise.
10313         (ADDRESSOF_DECL): Likewise.
10314         (JUMP_LABEL): Likewise.
10315         (LABEL_NEXTREF): Likewise.
10316         (REGNO): Likewise.
10317         (ORIGINAL_REGNO: Likewise.
10318         (HARD_REGISTER_NUM_P): Add parenthesis.
10319         (SUBREG_REG): Whitespace.
10320         (SUBREG_BYTE): Likewise.
10321         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10322         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10323         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10324         (ASM_OPERANDS_INPUT_VEC): Likewise.
10325         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10326         (ASM_OPERANDS_INPUT): Likewise.
10327         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10328         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10329         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10330         (ASM_OPERANDS_INPUT_MODE): Likewise.
10331         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10332         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10333         (MEM_SET_IN_STRUCT_P): Minor reformat.
10334         (TRAP_CONDITION): Whitespace.
10335         (TRAP_CODE): Likewise.
10336         (COND_EXEC_TEST): Likewise.
10337         (COND_EXEC_CODE): Likewise.
10338         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10339         (PHI_NODE_P): Add parenthesis.
10340         (plus_constant): Whitespace and add parenthesis.
10341
10342 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10343
10344         * config/avr/avr.c: Fix comment typos.
10345         * config/c4x/c4x.md: Likewise.
10346         * config/dsp16xx/dsp16xx.h: Likewise.
10347         * config/dsp16xx/dsp16xx.md: Likewise.
10348         * config/i386/i386.md: Likewise.
10349         * config/ia64/ia64.c: Likewise.
10350         * config/m32r/m32r.h: Likewise.
10351         * config/m68hc11/m68hc11.md: Likewise.
10352         * config/mmix/mmix.c: Likewise.
10353         * config/mn10200/mn10200.c: Likewise.
10354         * config/romp/romp.c: Likewise.
10355         * config/sh/sh.c: Likewise.
10356         * config/stormy16/stormy16.c: Likewise.
10357         * config/stormy16/stormy16.h: Likewise.
10358         * config/stormy16/stormy16.md: Likewise.
10359
10360 2002-01-03  Graham Stott  <grahams@redhat.com>
10361
10362         * loop.h: Update copyright date.
10363         (LOOP_MOVABLES): Fix typo.
10364         (LOOP_REGS): Likewise.
10365         (LOOP_IVS): Likewise.
10366
10367 2002-01-03  Graham Stott  <grahams@redhat.com>
10368
10369         * cppinit.c: Update copyright date.
10370         Don't include output.h
10371         * Makefile.in: Update copyright date.
10372         Update dependency.
10373
10374 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10375
10376         PR c/5226
10377         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10378         (-pthread) Add to RS/6000 options.
10379
10380 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10381
10382         * except.c: Fix comment typos.
10383         * loop.c: Likewise.
10384         * varasm.c: Likewise.
10385         * doc/tm.texi: Fix a typo.
10386
10387 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10388
10389         * c-typeck.c (output_init_element): Allow initializing static storage
10390         duration objects with compound literals.
10391
10392 2002-01-02  Richard Henderson  <rth@redhat.com>
10393
10394         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10395         after abusing it.
10396
10397 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10398
10399         * gcc.c (default_compilers): Const-ify.
10400         * mips-tdump.c (stab_names): Likewise.
10401         * mips-tfile.c (map_coff_types, map_coff_storage,
10402         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10403         pseudo_ops_t, pseudo_ops): Likewise.
10404         * protoize.c (default_include): Likewise
10405
10406         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10407         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10408         Add array size in declaration.
10409         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10410         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10411         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10412         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10413         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10414         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10415         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10416         emtens, make_nan): Const-ify.
10417         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10418         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10419
10420 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10421
10422         * config.gcc (ia64-*-*): Set extra_headers.
10423         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10424         * config/alpha/t-osf: Remove.
10425         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10426
10427 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10428
10429         * config/rs6000/t-aix43: Revert previous change.
10430
10431 2002-01-02  Jason Merrill  <jason@redhat.com>
10432
10433         * c-decl.c (c_expand_body): Call outlining_inline_function when
10434         emitting an inline function out of line.
10435
10436 2002-01-02  Richard Henderson  <rth@redhat.com>
10437
10438         * dwarf2out.c (limbo_die_node): Add created_for member.
10439         (new_die): New argument created_for.  Update all callers.
10440         (mark_limbo_die_list): New.
10441         (dwarf2out_init): Register limbo_die_list as a root.
10442         (dwarf2out_finish): Force insert limbo dies into their function
10443         context.
10444
10445 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10446
10447         PR c++/5089
10448         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10449
10450 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10451
10452         * config/h8300/fixunssfsi.c: Update copyright.
10453         Fix comment typos.
10454         Fix formatting.
10455         * config/h8300/h8300.c: Update copyright.
10456         Eliminate warnings.
10457
10458 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10459
10460         * config/romp/romp.c: Fix comment formatting.
10461         * config/romp/romp.h: Likewise.
10462         * config/romp/romp.md: Likewise.
10463         * config/s390/s390.c: Likewise.
10464         * config/stormy16/stormy16.c: Likewise.
10465         * config/stormy16/stormy16.h: Likewise.
10466
10467 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10468
10469         * c-common.h (genrtl_expr_stmt_value): Declare.
10470         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10471         (genrtl_goto_stmt_value): ... this new function.  Pass new
10472         argument down to expand_expr_stmt_value, taking
10473         TREE_ADDRESSABLE into account.
10474         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10475         STMT_EXPR as addressable, i.e., one whose result we want.
10476         * expr.c (expand_expr): Don't save expression statement value
10477         of labeled_blocks or loop_exprs.
10478         * stmt.c (expand_expr_stmt): Redirect to...
10479         (expand_expr_stmt_value): ... this new function.  Use new
10480         argument to tell whether to save expression value.
10481         (expand_end_stmt_expr): Reset last_expr_type and
10482         last_expr_value if we don't have either.
10483         * tree-inline.c (declare_return_variable): Mark its use
10484         statement as addressable.
10485         * tree.h: Document new use of TREE_ADDRESSABLE.
10486         (expand_expr_stmt_value): Declare.
10487
10488 2002-01-01  Tom Rix  <trix@redhat.com>
10489
10490         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10491         rs6000_emit_allocate_stack.
10492
10493 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10494
10495         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10496         ${srcdir}/ginclude/ to every entry in extra_headers.
10497         * configure: Regenerate.
10498         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10499         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10500         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10501         * ginclude/proto.h: Rename to config/convex/proto.h.
10502
10503 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10504
10505         * attribs.c (handle_vector_size_attribute): Use host_integerp
10506         and tree_int_cst; remove warnings.
10507         * caller-save.c (insert_restore): Add cast to get rid of warning.
10508         (insert_save): Likewise.
10509         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10510         * regmove.c (find_matches): Add temporary var to kill a warning.
10511
10512 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10513
10514         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10515         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10516         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10517         (vms-dwarf2eh.o): Add Makefile rule.
10518         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10519         * config/alpha/vms-dwarf2eh.asm: New file.
10520
10521         * gcc.c (delete_if_ordinary): Delete all versions.
10522
10523 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10524
10525         * config/mmix/mmix.md: Update FIXME to not mention
10526         define_constants.
10527         (MMIX_rJ_REGNUM): New define_constants constant.
10528         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10529         "*movdicc_real"): Adjust contraints formatting.
10530         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10531         for branch prediction.
10532         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10533         output template.
10534         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10535         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10536         number.  Delete related FIXMEs.
10537         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10538         from number to MMIX_rJ_REGNUM.
10539         (TARGET_MASK_BRANCH_PREDICT): New.
10540         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10541         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10542         value.  Add -mbranch-predict and -mno-branch-predict.
10543         (TARGET_VERSION): Drop date.
10544         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10545         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10546         for finding out global symbols.
10547         (mmix_asm_output_labelref): Revert condition for global symbol.
10548         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10549         (mmix_print_operand_punct_valid_p): A '+' is valid.
10550
10551 See ChangeLog.6 for earlier changes.