OSDN Git Service

9b1f9e1eb8dca4fbed45b9ac8a5f958853c39b33
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-16  Richard Henderson  <rth@redhat.com>
2
3         PR c++/6320
4         * except.c (remove_eh_handler): Insert inner regions at beginning
5         of sibling chain.  Refactor expressions.
6
7 2002-04-16  Richard Henderson  <rth@redhat.com>
8
9         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10         * config/sparc/sol2-gas-bi.h: New file.
11         * config.gcc (sparc*-solaris): Add it as needed.
12         * configure.in (AS_SPARC64_FLAG): Remove check.
13         * config.in, configure: Regenerate.
14
15         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
16
17 2002-04-16  Richard Henderson  <rth@redhat.com>
18
19         * config/mips/mips.c (override_options): Don't override N32 for
20         a 64-bit ISA.
21
22         PR 6202
23         * config/mips/mips.md (can_delay): Split out of existing define_delays.
24         (HILO_delay): Set can_delay false.
25
26 2002-04-16  Dale Johannesen <dalej@apple.com>
27
28         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
29         instruction addresses.
30         (rs6000_output_function_epilogue): Likewise.
31
32 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
33
34         * c-parse.in (poplevel, compstmt_start,
35         compstmt_primary_start): Add ending ';', in accordance
36         with POSIX.
37
38 2002-04-16  Richard Henderson  <rth@redhat.com>
39
40         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
41         Adjust tm_file order to get TARGET_DEFAULT set properly.
42         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
43         * doc/install.texi (sparc-solaris): Update.
44
45 2002-04-16  Dale Johannesen <dalej@apple.com>
46
47         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
48         comparison operands do not match each other or if modes of
49         conditions do not match result.
50
51 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
52
53         PR target/6305
54         * config/s390/s390.md (mulsidi3): Set both subregs of the
55         multiword register. 
56
57 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
58
59         * config/rs6000/altivec.h (vec_addc): Type check.
60
61 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
62
63         PR middle-end/6279
64         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
65
66         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
67
68 2002-04-15  Richard Henderson  <rth@redhat.com>
69
70         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
71         call_really_used_regs too.
72
73 2002-04-15  Richard Henderson  <rth@redhat.com>
74
75         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
76
77 2002-04-15  David S. Miller  <davem@redhat.com>
78
79         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
80         as being CLOBBERed.
81
82 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
83
84         PR c/6290
85         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
86         CONST_VECTOR is { 0, ... 0 }.
87
88 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
89
90         * doc/install.texi (Installing GCC: Configuration): Clarify
91         the only supported ways to configure gcc.
92
93 2002-04-15  Roland McGrath  <roland@frob.com>
94  
95         * config.gcc (alpha*-*-gnu*): New target configuration.
96         * config/alpha/gnu.h: New file for it.
97         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
98
99 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
100
101         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
102         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
103         * tree.h (expand_start_stmt_expr): Update prototype.
104         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
105         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
106         on the STMT_EXPR created for the inline function.
107         
108 2002-04-15  Richard Henderson  <rth@redhat.com>
109
110         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
111         config/i386/linux-aout.h, config/i386/linux-oldld.h,
112         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
113         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
114         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
115         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
116         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
117         Define __gnu_linux__, not gnu_linux.
118         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
119
120 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
121
122         Remove Chill front end.
123         * gcc.c (default_compilers): Remove Chill entries.
124         * ch: Remove directory.
125         * doc/frontends.texi: Remove information about Chill.
126         * doc/sourcebuild.texi: Likewise.
127         * doc/standards.texi: Likewise.
128
129 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
130
131         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
132         (LONGLONG_STANDALONE): Define.
133
134 2002-04-15  David S. Miller  <davem@redhat.com>
135
136         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
137         Call emit_library_call with LCT_NORMAL.
138         (sparc_initialize_trampoline): Use LCT_foo instead of
139         magic constant in emit_library_call invocations.
140         (sparc64_initialize_trampoline): Likewise.
141         (sparc_profile_hook): Likewise.
142         * config/sparc/sparc.md: Likewise.
143
144         * config/sparc/sparc.c (sparc_extra_constraint_check):
145         Fix type of argument 'c'.
146         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
147         Likewise.
148
149 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
150
151         * diagnostic.h (output_buffer_state): Redefine.
152         (output_format_decoder): New macro.
153         (output_prefixing_rule): Likewise.
154         (output_line_cutoff): Likewise.
155         (diagnostic_format_decoder): Adjust.
156         (diagnostic_prefixing_rule): Likewise.
157         (diagnostic_line_cutoff): Likewise.
158         (diagnostic_state): Likewise.
159         (diagnostic_kind_count): Likewise.
160         (diagnostic_buffer): Now a macro.
161
162         * diagnostic.c (diagnostic_buffer): Remove definition.
163         (output_is_line_wrapping): Adjust.
164         (set_real_maximum_length): Likewise.
165         (output_set_maximum_length): Likewise.
166         (init_output_buffer): Likewise.
167         (lhd_print_error_function): Likewise.
168         (output_do_verbatim): Likewise.
169
170 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
171
172         * cpperror.c (print_location): Don't print include chain
173         if line == 0.
174         (cpp_begin_message): Update to use DL_ macros.
175         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
176         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
177         cpp_notice, cpp_notice_from_errno): Remove.
178         (cpp_error, cpp_error_with_line): Update to take a diagnostic
179         level.
180         (cpp_errno): New.
181         * cppexp.c (CPP_ICE): Remove.
182         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
183         lex, integer_overflow, _cpp_parse_expr): Update.
184         * cppfiles.c (read_include_file, find_include_file,
185         handle_missing_header, _cpp_read_file, remap_filename): Update.
186         * cpphash.h (enum error_type): Remove.
187         (_cpp_begin_message): Update.
188         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
189         cpp_handle_option, cpp_post_options): Update.
190         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
191         skip_whitespace, parse_identifier, parse_slow, parse_string,
192         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
193         cpp_interpret_charconst): Update.
194         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
195         lex_macro_node, do_undef, glue_header_name, parse_include,
196         do_include_common, read_flag, do_line, do_linemarker, do_ident,
197         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
198         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
199         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
200         _cpp_pop_buffer, do_diagnostic): Update.
201         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
202         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
203         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
204         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
205         cpp_notice, cpp_notice_from_errno): Remove.
206         (cpp_error, cpp_error_with_line): Update to take a diagnostic
207         level.
208         (cpp_errno): New.
209         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
210         collect_args, enter_macro_context, save_parameter, parse_params,
211         _cpp_create_definition, check_trad_stringification,
212         cpp_macro_definition): Update.
213         * cppmain.c (cpp_preprocess_file): Update.
214         * fix-header.c (read_scan_file): Update.
215
216 2002-04-14  Andreas Schwab  <schwab@suse.de>
217
218         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
219
220 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
221
222         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
223
224 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
225
226         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
227         not gnu_hurd.
228
229 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
230
231         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
232
233 2002-04-13      Joel Sherrill <joel@OARcorp.com>
234
235         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
236         sparc-elf and sparc-rtems targets.
237
238 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
239
240         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
241         defined, and __gnu_hurd__ wherever __GNU__ is defined.
242         * arm/linux-elf.h: Likewise.
243         * cris/aout.h: Likewise.
244         * cris/linux.h: Likewise.
245         * i370/linux.h: Likewise.
246         * i386/gnu.h: Likewise.
247         * i386/linux-aout.h: Likewise.
248         * i386/linux-oldld.h: Likewise.
249         * i386/linux.h: Likewise.
250         * i386/linux64.h: Likewise.
251         * ia64/linux.h: Likewise.
252         * m68k/linux-aout.h: Likewise.
253         * m68k/linux.h: Likewise.
254         * mips/linux.h: Likewise.
255         * pa/pa-linux.h: Likewise.
256         * pj/linux.h: Likewise.
257         * rs6000/sysv4.h: Likewise.
258         * s390/linux.h: Likewise.
259         * sh/linux.h: Likewise.
260         * sparc/linux-aout.h: Likewise.
261         * sparc/linux.h: Likewise.
262         * sparc/linux64.h: Likewise.
263         * xtensa/linux.h: Likewise.
264
265 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
266
267         * stmt.c (check_unique_operand_names): Expect operand names to
268         be strings rather than identifiers.  Use simple_cst_equal to
269         compare them.
270         (resolve_operand_name_1): Make same identifier to string change here.
271         * c-parse.in (asm_operand): Convert a named operand into a string.
272         * cp/parse.y (asm_operand): Likewise.
273
274 2002-04-13  Andreas Schwab  <schwab@suse.de>
275
276         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
277
278 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
279
280         Revert these changes:
281
282         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
283
284         PR c++/5571
285         * stor-layout.c (layout_decl): Reset the RTL for the decl.
286
287 2002-04-12  Richard Henderson  <rth@redhat.com>
288
289         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
290         (sparc*-*-solaris): Clean up header files.
291         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
292         and plan on generating 64-bit code.
293         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
294         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
295         * config/sparc/sol2-sld-64.h: Rename ...
296         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
297         for AS_SPARC64_FLAG not defined.
298         * config/sparc/sol2-gld-bi.h: New.
299         * config/sparc/sol2-sld.h: Remove.
300         * config/sparc/sol26-sld.h: New.
301         * config/sparc/sol2.h: Tidy comments.
302         * doc/install.texi: Document sparc-solaris configury changes.
303
304 2002-04-12  Richard Henderson  <rth@redhat.com>
305
306         * recog.c (offsettable_address_p): Match the logic in adjust_address.
307
308         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
309         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
310
311 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
312
313         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
314
315 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
316
317         * pa.c (pa_can_combine_p): Call extract_insn before calling
318         constrain_operands.
319
320 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
321
322         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
323         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
324         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
325         (CPP_PREDEFINES): Handle __declspec.
326         * config/i386/t-interix (USER_H): Remove.
327
328 2002-04-12  DJ Delorie  <dj@redhat.com>
329
330         * integrate.c (compare_blocks): Make comparisons safe for when
331         sizeof(int) < sizeof(char *).
332         (find_block): Likewise.
333
334 2002-04-12  Jan Hubicka  <jh@suse.cz>
335             David Edelsohn  <edelsohn@gnu.org>
336
337         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
338         registers.
339         (symbol_ref_operand): New.
340         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
341         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
342
343 2002-04-12  Andreas Schwab  <schwab@suse.de>
344
345         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
346         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
347         overrides the definition in config/svr4.h.
348         
349 2002-04-12      Eric Norum <eric.norum@usask.ca>
350
351         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
352         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
353         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
354         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
355         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
356         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
357         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
358         definitions to config/rtems.h and make the targets more similar.
359
360 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
361
362         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
363         POINTERS_EXTEND_UNSIGNED.
364         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
365         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
366
367         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
368         not specified.
369
370 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
371
372         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
373         depends on TARGET_SHMEDIA, not TARGET_SH5.
374
375 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
376
377         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
378         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
379
380 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
381
382         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
383         no r0 clobber.
384
385 2002-04-12  Andreas Schwab  <schwab@suse.de>
386
387         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
388
389 2002-04-12  Richard Henderson  <rth@redhat.com>
390
391         PR bootstrap/4191
392         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
393
394         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
395         modes spanning multiple hard regs.
396     
397         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
398
399 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
400
401         * pa.c (pa_output_function_prologue): Don't accumulate the total
402         number of code bytes when using TARGET_64BIT, or gas, SOM and not
403         the portable runtime.
404         (output_deferred_plabels): Handle 64bit plabels.
405         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
406         generating pic code using the GAS assembler for object formats that
407         are not SOM (ie., ELF32 and ELF64).
408         (output_millicode_call): Check attribute type if attribute length is 28.
409         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
410         dbr_sequence_length once.
411         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
412         dbr_sequence_length once.
413         * pa.h (TARGET_SOM): Define if not defined.
414         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
415         with GAS and not SOM.
416         (jump, call_internal_reg, call_value_internal_reg): Likewise.
417         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
418
419 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
420
421         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
422         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
423         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
424         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
425         elfos.h and dbxelf.h values are fine now.
426         * config/i386/freebsd.h, config/alpha/freebsd.h
427         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
428
429 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
430
431         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
432         or set Acpu or Amachine.  Reformat.
433         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
434         define.
435         (LINK_SPEC): Do not need to undef.
436         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
437         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
438         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
439         define.
440         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
441         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
442         (LINK_SPEC): Do not need to undef.
443         (DONT_USE_BUILTIN_SETJMP): Do not define.
444         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
445         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
446         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
447         Remove trailing spaces.
448         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
449         __ELF__, or set Acpu or Amachine.  Reformat.
450         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
451         define.
452
453 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
454
455         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
456         all other *-*-freebsd* targets.
457
458 2002-04-11  Richard Henderson  <rth@redhat.com>
459
460         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
461
462 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
463
464         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
465         Include {cpu}/{cpu}.h thru tm_file.
466         (alpha*-*-linux*ecoff): Remove target.
467         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
468         (LINK_SPEC): Remove, is not OS independent.
469         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
470         (LINK_SPEC): Do not need to #undef any longer.
471         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
472         any longer.
473         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
474         __ELF__.
475         (LINK_SPEC): Moved here from alpha/elf.h.
476         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
477         SUB_CPP_PREDEFINES.
478         * config/alpha/linux-ecoff.h: Remove.
479         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
480         (CPP_SPEC): Define _POSIX_SOURCE as needed.
481         (CPP_SUBTARGET_SPEC): Do not define.
482         (LINK_SPEC): Do not need to #undef any longer.
483         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
484         * config/alpha/vms.h: Likewise.
485
486 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
487
488         * doc/extend.texi: Remove old claim that typedefs cannot have
489         an alignment attribute.
490
491 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
492
493         PR optimization/6177
494         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
495         bitpos is 0 and bitsize CONCAT size.
496
497 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
498
499         PR c/6223
500         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
501
502 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
503
504         * config/alpha/freebsd.h: Minor reformatting.
505         (CPP_SPEC): Define ELF and add cpp_subtarget.
506         (ASM_SPEC): No longer needed.
507
508 2002-04-11  Richard Henderson  <rth@redhat.com>
509
510         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
511         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
512         (dimode mem/zero splitter): New.
513
514 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
515
516         * config/cris/cris.c (cris_override_options): Tweak error message
517         for PIC not implemented.
518
519         * config/cris/cris.h: Tweak comments related to parameter-passing.
520
521         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
522
523 2002-04-10  Richard Henderson  <rth@redhat.com>
524
525         * except.c (add_ehl_entry): Allow duplicates after landing pad
526         creation.
527
528 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
529
530         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
531
532 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
533
534         * c-decl.c (c_init_decl_processing): Move generation of
535         decls for g77_integer_type_node and friends from here ...
536         * c-common.c (c_common_nodes_and_builtins): ... to here.
537
538 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
539
540         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
541         is only used as frame pointer when frame_pointer_needed is true.
542
543 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
544
545         PR target/817
546         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
547         for the fact that the pool entry uses two words.
548         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
549         1k bytes.
550         (movdf_soft_insn): Similarly.
551         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
552         for the fact that the pool entry uses three words.
553
554 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
555
556         * config/mips/mips.c (mips_va_arg): When using the struct version
557         of the EABI va_list, allow arguments in the register save area to
558         take up less room than a stack argument.
559
560 2002-04-10  Richard Henderson  <rth@redhat.com>
561
562         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
563         if EXPAND_INITIALIZER.
564
565 2002-04-09  Richard Henderson  <rth@redhat.com>
566
567         * config/alpha/alpha.md (movdi_er_maybe_g): New.
568         * config/alpha/alpha.c (alpha_expand_mov): Use it.
569
570 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
571
572         PR optimization/6233
573         * rtlanal.c (pure_call_p): New function.
574         * rtl.h (pure_call_p): Declare.
575         * loop.c (prescan_loop): Use it to set has_nonconst_call.
576         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
577
578 2002-04-09  Eric Christopher  <echristo@redhat.com>
579
580         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
581         information to .comm directive.
582
583 2002-04-09  Richard Henderson  <rth@redhat.com>
584
585         PR c/5078
586         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
587
588 2002-04-09  Richard Henderson  <rth@redhat.com>
589
590         * basic-block.h (flow_delete_block_noexpunge): Declare.
591         (expunge_block_nocompact): Declare.
592         * cfg.c (expunge_block_nocompact): Split out from ...
593         (expunge_block): ... here.
594         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
595         (flow_delete_block_noexpunge): Split out from ...
596         (flow_delete_block): ... here.
597         * cfgcleanup.c (delete_unreachable_blocks): Compact while
598         removing dead blocks.
599         * except.c (exception_handler_labels): Remove.
600         (exception_handler_label_map): New.
601         (struct eh_region): Add aka member.
602         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
603         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
604         (for_each_eh_label, for_each_eh_label_1): New.
605         (init_eh): Register exception_handler_label_map.
606         (free_eh_status): Use free_region.
607         (find_exception_handler_labels): Use the map, not the list.
608         (remove_exception_handler_label): Likewise.
609         (maybe_remove_eh_handler): Likewise.
610         (remove_eh_handler): Use the region aka bitmap.
611         * except.h (exception_handler_labels): Remove.
612         (for_each_eh_label): Declare.
613         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
614         * loop.c (invalidate_loops_containing_label): New.
615         (find_and_verify_loops): Use it.  Use for_each_eh_label.
616         * sched-rgn.c (is_cfg_nonregular): Use
617         current_function_has_exception_handlers.
618
619 2002-04-09  Richard Henderson  <rth@redhat.com>
620
621         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
622         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
623         Do not return changed status.
624         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
625         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
626         New functions that do return changed status.
627         * sbitmap.h: Update decls.
628         * gcse.c, lcm.c: Use _cg functions as needed.
629
630 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
631
632         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
633         (sh64-*-elf*, sh-*-rtemself*): Likewise.
634         * config/sh/embed_bb.c: New file.
635         * config/sh/embed-elf.h: New file.
636         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
637         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
638         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
639         __PTRDIFF_TYPE__ .
640         (SUBTARGET_CPP_PTR_SPEC): Don't define.
641         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
642         Add subtarget_asm_endian_spec.
643         (ASM_SPEC): Use subtarget_asm_endian_spec.
644         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
645         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
646         (WCHAR_UNSIGNED): Define.
647         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
648         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
649         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
650         Fix value.
651         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
652         (sh_adjust_cost): Likewise.
653         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
654         __PTRDIFF_TYPE__ .
655         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
656         (WCHAR_TYPE_SIZE): Likewise.
657         (ASM_SPEC): Use subtarget_asm_endian_spec.
658         (SH_ELF_WCHAR_TYPE): #undef/ #define.
659         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
660         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
661         (MAX_WCHAR_TYPE_SIZE): Don't #define .
662         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
663         (USER_LABEL_PREFIX): Don't #undef /#define .
664         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
665         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
666         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
667         (ASM_SPEC): Likewise.
668         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
669         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
670         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
671         (LIB2FUNCS_EXTRA): Define.
672         * t-sh64 (LIB2FUNCS_EXTRA): Define.
673         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
674         (LIB1ASMFUNCS_CACHE): Define.
675         (LIB2FUNCS_EXTRA): Redefine empty.
676
677 2002-04-08  Richard Henderson  <rth@redhat.com>
678
679         * reorg.c (get_branch_condition): Use reversed_comparison_code.
680
681 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
682
683         * config/m68hc11/larith.asm (__map_data_section): Fix condition
684         and optimize for size.
685         (__do_global_ctors): Fix pointer comparison.
686         (__do_global_dtors): Likewise.
687
688 2002-04-09  David S. Miller  <davem@redhat.com>
689
690         * config/sparc/sparc.c (sparc_extra_constraint_check): New
691         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
692         allow reloading pseudos.
693         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
694         * config/sparc/sparc-protos.h: Declare it.
695
696         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
697         unsigned comparison warning.
698         (output_restore_regs): Mark leaf_function as unused.
699
700 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
701
702         * expr.c (is_aligning_offset): New function.
703         (expand_expr, case COMPONENT_EXPR): Call it.
704
705 2002-04-08  David S. Miller  <davem@redhat.com>
706
707         PR target/6082
708         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
709
710         Make init_priority work on Sparc when using GNU ld.
711         * config/sparc/linux.h, config/sparc/linux64.h,
712         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
713         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
714         * config/sparc/sol2-gld.h: New file to do the same.
715         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
716         sparc/sol2-gld.h to tm_file.
717
718         PR optimization/4328
719         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
720         * doc/md.texi: Document it.
721         * config/sparc/sparc.md (movdi_insn_sp64_novis,
722         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
723         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
724         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
725         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
726
727 2002-04-08  Andreas Jaeger  <aj@suse.de>
728
729         * stmt.c (expand_asm_operands): Revert last patch from Richard
730         Henderson.
731
732 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
733
734         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
735         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
736
737 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
738
739         * doc/contrib.texi (Contributors): Add David O'Brien.
740
741 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
742
743         * configure.in (auto-build.h): Use target_alias and build_alias
744         when running configure.
745         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
746         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
747         * configure: Regenerate.
748
749 2002-04-07  David S. Miller  <davem@redhat.com>
750
751         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
752
753 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
754
755         PR 5933
756         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
757         generating 32-bit pic code.
758
759 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
760
761         * cppinit.c (cpp_create_reader): Initialize
762         discard_comments_in_macro_exp.
763         (COMMAND_LINE_OPTIONS): Add "-CC" option.
764         (cpp_handle_option): Handle "-CC" option.
765         * cpplex.c (save_comment): If saving a C++ comment in
766         a directive, convert it to a C comment.
767         (_cpp_lex_direct): Pass second comment start character to
768         save_comment to indicate comment type.
769         * cpplib.c (_cpp_handle_directive): If processing
770         a "#define" directive and discard_comments_in_macro_exp
771         is false,  re-enable saving of comments.
772         (lex_macro_node): If discard_comments_in_macro_exp is false,
773         discard any comments before the macro identifier.
774         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
775         member.
776         * cppmacro.c (cpp_get_token): If expanding a macro while
777         processing a directive, discard any comments we might encounter.
778         (parse_params): If discard_comments_in_macro_exp is false,
779         ignore comments in the macro parameter list.
780         * gcc.c (cpp_unique_options): Add "-CC" option.
781         (option_map): Map "--comments-in-macros" to "-CC".
782         * doc/cppopts.texi: Document "-CC" option.
783         * f/lang-specs.h: Add "-CC" option.
784         * testsuite/gcc.dg/cpp/maccom1.c: New test.
785         * testsuite/gcc.dg/cpp/maccom2.c: New test.
786         * testsuite/gcc.dg/cpp/maccom3.c: New test.
787         * testsuite/gcc.dg/cpp/maccom4.c: New test.
788         * testsuite/gcc.dg/cpp/maccom5.c: New test.
789         * testsuite/gcc.dg/cpp/maccom6.c: New test.
790
791 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
792
793         PR middle-end/6180
794         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
795
796 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
797
798         PR c++/5571
799         * stor-layout.c (layout_decl): Reset the RTL for the decl.
800
801         PR opt/5120
802         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
803         RTX_UNCHANGING_P for the functions arguments when a tail call
804         is made.
805
806 2002-04-06  Jason Merrill  <jason@redhat.com>
807
808         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
809         (parse_options_and_default_flags): Set them appropriately.
810         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
811
812 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
813
814         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
815         here.
816
817         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
818         semicolon.
819
820         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
821         types come in by-reference.  Fix typo in comment.
822
823 2002-04-05  David S. Miller  <davem@redhat.com>
824
825         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
826         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
827         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
828         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
829
830 2002-04-05  David S. Miller  <davem@redhat.com>
831
832         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
833         are not going to emit return instructions, emit at least a nop
834         for the sake of sane backtraces.
835
836 2002-04-05  Richard Henderson  <rth@redhat.com>
837
838         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
839
840 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
841
842         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
843
844 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
845
846         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
847         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
848         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
849
850 2002-04-05  Andreas Schwab  <schwab@suse.de>
851
852         * c-convert.c: Include c-common.h.
853         * Makefile.in (c-convert.o): Updated.
854
855 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
856
857         * mklibgcc.in: Use separate libgcc.map for each multilib.
858         * Makefile.in (distclean): Don't remove libgcc.map here.
859
860 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
861
862         * Makefile.in (s-mlib): Handle --disable-multilib by separate
863         genmultilib invocation.
864
865 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
866
867         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
868         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
869         to num_gprs for symmetry.
870         * config/mips/mips.c: Adjust accordingly.
871
872 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
873
874         * c-common.c (truthvalue_conversion): Rename, update.
875         * c-common.h (c_common_truthvalue_conversion): New.
876         * c-convert.c (convert): Update.
877         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
878         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
879         * c-typeck.c (build_binary_op, build_unary_op,
880         build_conditional_expr): Update.
881         * fold-const.c (constant_boolean_node, fold): Use langhook.
882         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
883         * langhooks.h (struct lang_hooks): New hook.
884         * stmt.c (expand_decl_cleanup): Use langhook.
885         * tree.h (truthvalue_conversion): Remove.
886 objc:
887         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
888
889 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
890
891         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
892         Add rules to make null object file.
893
894 2002-04-04  Jim Blandy  <jimb@redhat.com>
895
896         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
897         macro formal parameter names.
898
899 2002-04-04  David S. Miller  <davem@redhat.com>
900
901         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
902
903 2002-04-04  Richard Henderson  <rth@redhat.com>
904
905         PR middle-end/5099
906         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
907         Support copies into and out of memory.  Don't accept allows_reg
908         and allows_mem as gospel.
909
910 2002-04-04  Richard Henderson  <rth@redhat.com>
911
912         PR opt/6165
913         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
914         (write_dependence_p): Likewise.
915
916 2002-04-04  Richard Henderson  <rth@redhat.com>
917
918         * predict.c (estimate_bb_frequencies): Do frequency calculation
919         with a volatile temporary.
920
921 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
922
923         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
924
925 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
926
927         PR c++/6119
928         * final.c (final_start_function): Don't bump profile_label_no here...
929         (final_end_function): ...but here.
930
931 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
932
933         * config/sparc/sparc.md (pic): New attribute.
934         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
935         into stack slots.
936         (split after do_builtin_setjmp_setup): New.
937
938 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
939
940         PR fortran/6106
941         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
942         change.
943
944 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
945
946         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
947         UNITS_PER_WORD for zero sized aggregates.
948
949 2002-04-03  David S. Miller  <davem@redhat.com>
950
951         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
952         one-character spec for this, just use %(link_gcc_c_sequence).
953
954 2002-04-03  David S. Miller  <davem@redhat.com>
955
956         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
957         handling.
958
959 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
960
961         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
962         (DWARF_FRAME_RETURN_COLUMN): Move.
963         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
964         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
965         * pa.c (except.h, predict.h): Include.
966         (FRP): Delete.
967         (store_reg_modify, set_reg_plus_d): Revise prototypes.
968         (output_ascii): Add cast.
969         (store_reg_modify): Revise to add frame notes.
970         (set_reg_plus_d): Likewise.
971         (compute_frame_size): Include space for eh data registers in frame if
972         the current function calls eh_return.
973         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
974         function calls eh_return.  Save eh data registers if the current
975         function calls eh_return.  Fix code to add frame notes.  Emit
976         blockage to prevent insns with frame notes being scheduled in the
977         delay slot of calls.
978         (hppa_expand_epilogue): Restore eh data registers and do final stack
979         adjustment if the current function calls eh_return.  Don't add frame
980         notes.
981         (output_call): Revise for change in length of call insn.  Don't do
982         return pointer adjustment for an unconditional jump in the delay slot
983         of a call when using frame notes.
984         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
985         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
986         (ARG_POINTER_CFA_OFFSET): Define.
987         * pa.md (return_external_pic): New pattern.
988         (prologue): Correct formatting.  Use return_external_pic if current
989         function calls eh_return.
990         (call_internal_symref, call_value_internal_symref,
991         sibcall_internal_symref, sibcall_value_internal_symref): Change default
992         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
993         respectively.
994         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
995
996         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
997         list of targets to check using "nop" insn.
998         * configure: Rebuilt.
999
1000 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1001
1002         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1003
1004 2002-04-03  David S. Miller  <davem@redhat.com>
1005
1006         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1007         library sequence passed to the linker.
1008         (LINK_COMMAND_SPEC): Use it.
1009         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1010         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1011         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1012
1013 2002-04-03  Jason Merrill  <jason@redhat.com>
1014
1015         * except.c (struct eh_status): Remove protect_list.
1016         (begin_protect_partials, end_protect_partials): Remove.
1017         (add_partial_entry): Remove.
1018         * except.h: Remove prototypes.
1019
1020         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1021         expand_decl_cleanup_eh.
1022
1023         PR c++/5636
1024         * tree.h (CLEANUP_EH_ONLY): New macro.
1025         * stmt.c (expand_decl_cleanup_eh): New fn.
1026         (expand_cleanups): Check CLEANUP_EH_ONLY.
1027         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1028         Use expand_decl_cleanup_eh.
1029         (expand_stmt): Adjust.
1030         * c-common.h: Adjust prototype.
1031
1032 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1033
1034         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1035         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1036         (cris_target_asm_function_epilogue): Ditto.
1037         (cris_initial_frame_pointer_offset): Ditto.
1038         (cris_simple_epilogue): Ditto.
1039         (cris_expand_builtin_va_arg): Variable-size types come in
1040         by-reference.
1041
1042 2002-04-03  David S. Miller  <davem@redhat.com>
1043
1044         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1045         little-endian.
1046         (set_fast_math): Correct 'fsr' type.
1047
1048 2002-04-03  Richard Henderson  <rth@redhat.com>
1049
1050         PR opt/3569
1051         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1052         * toplev.c (check_global_declarations): Use it.
1053         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1054         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1055         (LANG_HOOKS_DECLS): Add it.
1056         * langhooks.c (lhd_warn_unused_global_decl): New.
1057         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1058         * c-objc-common.c (c_warn_unused_global_decl): New.
1059         * c-tree.h (c_warn_unused_global_decl): Declare.
1060         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1061
1062 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1063
1064         * langhooks-def.h (lhd_set_decl_assembler_name,
1065         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1066         (LANG_HOOKS_INITIALIZER): Update.
1067         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1068         * langhooks.h (struct lang_hooks): New hook.
1069         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1070         (lang_set_decl_assembler_name): Remove.
1071         (init_obstacks): Don't set hook.
1072         (decl_assembler_name): New function.
1073         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1074         (decl_assembler_name): New.
1075         (lang_set_decl_assembler_name): Remove.
1076
1077 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1078
1079         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1080         works properly with .hidden symbols.
1081         * configure: Rebuilt.
1082         * config.in: Rebuilt.
1083         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1084         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1085         properly with .hidden symbols.
1086
1087 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1088
1089         PR middle-end/6102
1090         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1091         USE argument.
1092
1093 2002-04-03  Richard Henderson  <rth@redhat.com>
1094
1095         PR opt/4120
1096         * sched-rgn.c (sets_likely_spilled): New.
1097         (sets_likely_spilled_1): New.
1098         (add_branch_dependences): Use it.
1099
1100 2002-04-02  Richard Henderson  <rth@redhat.com>
1101
1102         PR opt/4311
1103         * loop.h (LOOP_FIRST_PASS): New.
1104         * loop.c (strength_reduce): Mind it when deciding to unroll.
1105         * toplev.c (rest_of_compilation): Set it.
1106
1107 2002-04-02  David S. Miller  <davem@redhat.com>
1108
1109         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1110         mems_ok_for_ldd_peep when the order of the loads being examined
1111         is reversed.
1112         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1113         existing comment to increase comprehension of this situation.
1114
1115 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1116
1117         * config/sh/sh.md: Don't use union real_extract.
1118
1119 2002-04-02  Richard Henderson  <rth@redhat.com>
1120
1121         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1122
1123 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1124
1125         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1126         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1127         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1128         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1129         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1130         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1131         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1132         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1133         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1134         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1135         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1136         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1137         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1138         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1139         Include as many configury headers via tm_file as possible.  This
1140         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1141         * config/openbsd-oldgas.h: New file.
1142         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1143         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1144         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1145         config/i386/i386-coff.h, config/i386/i386-interix.h,
1146         config/i386/iscdbx.h, config/i386/linux-aout.h,
1147         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1148         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1149         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1150         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1151         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1152         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1153         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1154         config/i386/vxi386.h: Do not directly include configury headers.
1155         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1156         Directly include configury headers that are no longer automatically
1157         included by the above headers.
1158         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1159         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1160         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1161         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1162         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1163         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1164         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1165         (TARGET_VERSION): Define.
1166         * config/i386/beos-elf.h, config/i386/freebsd.h,
1167         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1168         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1169         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1170         config/i386/sco5.h, config/i386/sysv4.h
1171         (TARGET_VERSION): Do not need to protect.
1172         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1173         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1174         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1175         config/i386/i386-interix.h, config/i386/linux-aout.h,
1176         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1177         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1178         (YES_UNDERSCORES): Do not define - not needed.
1179         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1180         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1181         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1182         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1183         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1184         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1185         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1186         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1187
1188 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1189             Richard Henderson  <rth@redhat.com>
1190
1191         PR c/5484
1192         * function.c (assign_temp): Accept either type or decl argument.
1193         Detect variables whose size is too large to fit into an integer.
1194         * stmt.c (expand_decl): Pass the decl, not the type.
1195
1196 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1197
1198         * protoize.c: Match include directory usage with cppdefault.c.
1199
1200 2002-04-03  Jeffrey A Law  (law@redhat.com)
1201             Hans-Peter Nilsson  <hp@bitrange.com>
1202
1203         * combine.c (simplify_comparison): Avoid narrowing a comparison
1204         with a paradoxical subreg when doing so would drop signficant bits.
1205
1206 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1207
1208         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1209         if POINTERS_EXTEND_UNSIGNED is defined.
1210
1211 2002-04-02  Richard Henderson  <rth@redhat.com>
1212
1213         PR opt/3967
1214         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1215         replace regs.
1216
1217 2002-04-02  Richard Henderson  <rth@redhat.com>
1218
1219         * doc/standards.texi: Document required freestanding libc entry points.
1220
1221 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1222
1223         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1224         associated splitter.  Remove MQ constraint.
1225         (ctrdi_internal4): Correct CCmode clobber.
1226
1227 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1228
1229         * milli64.S ($$dyncall): New function.
1230         * t-linux (LIB1ASMFUNCS): Revise module list.
1231         (LIB1ASMSRC): Use pa/milli64.S.
1232
1233 2002-04-02  Richard Henderson  <rth@redhat.com>
1234
1235         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1236         rename solaris_sys_varargs_h.
1237
1238 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1239
1240         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1241         the same mode as its component.
1242
1243 2002-04-02  Richard Henderson  <rth@redhat.com>
1244
1245         PR opt/190
1246         * final.c (this_is_asm_operands): Export.
1247         * output.h (this_is_asm_operands): Declare.
1248         * config/i386/i386.c (print_operand): Error odd asm operands.
1249
1250 2002-04-02  Richard Henderson  <rth@redhat.com>
1251
1252         PR opt/420
1253         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1254
1255 2002-04-01  Richard Henderson  <rth@redhat.com>
1256
1257         PR target/1538
1258         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1259         * fixinc/fixincl.x: Rebuild.
1260
1261 2002-04-01  Richard Henderson  <rth@redhat.com>
1262
1263         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1264         (atomic_alloc, atomic_free): New.
1265         (SIZE, MASK_FOR, PTR_IN): New.
1266         (emergency_reg_state, emergency_reg_state_free): New.
1267         (emergency_labeled_state, emergency_labeled_state_free): New.
1268         (reg_state_alloced, labeled_state_alloced): New.
1269         (alloc_reg_state, free_reg_state): New.
1270         (alloc_label_state, free_label_state, free_label_states): New.
1271         (push, pop, dup_state_stack, free_state_stack): Use them.
1272         (desc_label_state): Likewise.
1273         (uw_frame_state_for): Free label states and state stack.
1274         (uw_update_reg_address): Eliminate warnings.
1275
1276 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1277
1278         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1279         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1280
1281 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1282
1283         * c-decl.c (grokdeclarator): Update.
1284         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1285         * c-tree.h (c_mark_addressable): New.
1286         * c-typeck.c (default_function_array_conversion, build_unary_op,
1287         build_array_ref, convert_for_assignment): Update.
1288         (mark_addressable): Rename.
1289         * calls.c (try_to_integrate, expand_call): Use langhook.
1290         * expr.c (expand_expr): Use langhook.
1291         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1292         * langhooks.h (struct lang_hooks): New hook.
1293         * stmt.c (expand_asm_operands): Use langhook.
1294         * tree.h (mark_addressable): Remove.
1295 objc:
1296         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1297
1298 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1299
1300         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1301         in previous change.
1302
1303 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1304
1305         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1306         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1307
1308 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1309
1310         * c-common.c (unsigned_conversion_warning, convert_and_check,
1311         unsigned_type, signed_type, shorten_compare,
1312         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1313         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1314         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1315         New.
1316         * c-decl.c (grokdeclarator): Update.
1317         * c-format.c (check_format_types): Update.
1318         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1319         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1320         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1321         * convert.c (convert_to_integer): Use new hooks.
1322         * expmed.c (make_tree): Use new hooks.
1323         * expr.c (store_expr): Use new hooks.
1324         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1325         all_ones_mask_p, unextend, fold): Use new hooks.
1326         * langhooks.h (struct lang_hooks_for_types): New hooks.
1327         * tree.h (signed_or_unsigned_type, signed_type,
1328         unsigned_type): Remove.
1329 objc:
1330         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1331         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1332
1333 2002-03-31  Richard Henderson  <rth@redhat.com>
1334
1335         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1336         (desc_frgr_mem): Fix reference to f16-f31.
1337
1338 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1339
1340         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1341         RTVEC_ELT): Const-ify.
1342         * varray.h (VARRAY_CHECK): Const-ify.
1343         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1344         ggc_mark_rtvec, ggc_mark): Const-ify.
1345
1346 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1347
1348         * diagnostic.c: Include langhooks-def.h.
1349         * Makefile.in (diagnostic.o): Update.
1350
1351 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1352
1353         * c-common.c (c_unsafe_for_reeval): Rename.
1354         * c-common.h (c_unsafe_for_reeval): Rename.
1355         * c-decl.c (finish_incomplete_decl): Rename.
1356         (c_init_decl_processing): Don't set langhook.
1357         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1358         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1359         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1360         * c-tree.h (finish_incomplete_decl): Rename.
1361         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1362         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1363         (LANG_HOOKS_INITIALIZER): Update.
1364         * langhooks.c (lhd_unsafe_For_reeval): New.
1365         * langhooks.h (struct langhooks): New hooks.
1366         * toplev.c (incomplete_decl_finalize_hook): Remove.
1367         (wrapup_global_declarations): Update.
1368         * tree.c (lang_unsafe_for_reeval): Remove.
1369         (unsafe_for_reeval): Update.
1370         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1371         Remove.
1372 objc:
1373         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1374         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1375
1376 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1377
1378         * diagnostic.c (print_error_function): Remove.
1379         (default_print_error_function): Rename.
1380         (report_error_function): Update.
1381         * diagnostic.h (print_error_function): Remove.
1382         (default_print_error_function): Remove.
1383         * langhooks-def.h (struct diagnostic_context): Predeclare.
1384         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1385         (LANG_HOOKS_INITIALIZER): Update.
1386         * langhooks.h (struct diagnostic context): Predeclare.
1387         (struct lang_hooks): New hook.
1388
1389 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1390
1391         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1392         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1393         !flag_pic.
1394         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1395         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1396         of PIC_OFFSET_TABLE_REGNUM thruout.
1397         * config/rs6000/rs6000.md: Likewise.
1398         * config/rs6000/darwin.h: Likewise.
1399
1400 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1401
1402         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1403         unsigned HOST_WIDE_INT, not unsigned int.
1404
1405 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1406
1407         PR middle-end/6096, middle-end/6098, middle-end/6099
1408         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1409         CODE_LABELs.
1410         (fill_slots_from_thread): Likewise.
1411
1412 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1413
1414         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1415         floating fields in float regs.
1416         (function_arg_record_value_2): Likewise.
1417
1418 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1419
1420         * config/mmix/mmix.md (define_constants): Remove misleading
1421         FIXME.  Add MMIX_fp_rO_OFFSET.
1422         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1423         saved rO as part of the pattern.  Remove FIXME.
1424         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1425         here, at output-time.
1426
1427 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1428
1429         PR middle-end/6100
1430         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1431         REG_BR_PRED.
1432         (output_v9branch): Likewise.
1433
1434 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1435
1436         * gcc.c: Revert previous patch for now.
1437         * config/i386/djgpp.h: Likewise.
1438
1439 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1440
1441         * config/mmix/crti.asm (_init): Register _fini with atexit.
1442         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1443
1444 2002-03-31  Richard Henderson  <rth@redhat.com>
1445
1446         PR target/3997
1447         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1448         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1449
1450 2002-03-31  Richard Henderson  <rth@redhat.com>
1451
1452         * libgcc2.c (__bb_exit_func): Make static.
1453
1454         * config/alpha/alpha.md (trap): New.
1455
1456 2002-03-31  Richard Henderson  <rth@redhat.com>
1457
1458         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1459         promoted argument types; build trap.
1460         (expand_builtin_trap): New.
1461         (expand_builtin): Use it.
1462         * stmt.c (expand_nl_goto_receivers): Likewise.
1463         * expr.h (expand_builtin_trap): Declare.
1464         * libfuncs.h (LTI_abort, abort_libfunc): New.
1465         * optabs.c (init_optabs): Init abort_libfunc.
1466
1467 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1468
1469         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1470         (LINK_COMMAND_SPEC): ... from here.
1471         (init_gcc_specs): Duplicate it here too, omitting
1472         shared_name in the second copy.
1473         (init_spec): Test for duplicate
1474         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1475
1476 2002-03-30  David S. Miller  <davem@redhat.com>
1477
1478         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1479         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1480
1481 2002-03-30  Roger Sayle <roger@eyesopen.com>
1482             Richard Henderson  <rth@redhat.com>
1483
1484         * regmove.c (combine_stack_adjustments_for_block): Avoid
1485         emitting a stack adjustment of zero bytes.  Let delete_insn
1486         update bb->head.
1487
1488 2002-03-30  Richard Henderson  <rth@redhat.com>
1489
1490         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1491         (sparc_emitting_epilogue): New.
1492         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1493         * config/sparc/sparc-protos.h: Update.
1494         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1495         (TARGET_SWITCHES): Update.
1496         * config/sparc/sparc.md (return): Remove.
1497         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1498         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1499         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1500         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1501         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1502         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1503         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1504         Remove MASK_EPILOGUE.
1505         * doc/invoke.texi: Update.
1506
1507 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1508
1509         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1510         CPP will start the file for us.
1511
1512 2002-03-30  Richard Henderson  <rth@redhat.com>
1513
1514         PR target/5446
1515         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1516         prologue_allocate_stack.
1517         (ia64_single_set): Use insn codes for recognition of special
1518         cases, not rtl matching.
1519         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1520
1521 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1522
1523         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1524
1525 2002-03-30  Richard Henderson  <rth@redhat.com>
1526
1527         PR target/6032
1528         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1529         or -fomit-frame-pointer with profiling.
1530         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1531         (FUNCTION_PROFILER): Do nothing.
1532         (PROFILE_HOOK): New.
1533         * config/sparc/sparc.c (sparc_override_options): Don't check
1534         code models for profiling.
1535         (sparc_function_profiler): Remove.
1536         (sparc_profile_hook): New.
1537         * config/sparc/sparc-protos.h: Update.
1538
1539 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1540
1541         PR optimization/6086
1542         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1543         of SUBREG of volatile MEM or because the MEM was mode dependent,
1544         return CLOBBER instead of unmodified SUBREG.
1545
1546 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1547
1548         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1549         when not optimizing.
1550
1551         * toplev.c (rest_of_compilation): Cann mark_constant_function
1552         only when optimizing.
1553
1554         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1555         are NULL.
1556
1557         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1558         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1559         (try_optimize_cfg): clear all AUX fields.
1560
1561         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1562         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1563         (ix86_address_cost): Be prepared for SUBREGed registers.
1564         (legitimate_address_p): Accept SUBREGed registers.
1565
1566 2002-03-29  Richard Henderson  <rth@redhat.com>
1567
1568         PR target/5672
1569         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1570
1571 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1572
1573         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1574         for aggregate and TFmode types.
1575
1576 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1577
1578         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1579
1580 2002-03-29  Richard Henderson  <rth@redhat.com>
1581
1582         PR target/5886
1583         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1584         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1585
1586 2002-03-29  Richard Henderson  <rth@redhat.com>
1587
1588         PR target/6041
1589         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1590         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1591         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1592         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1593         conditional.
1594         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1595
1596 2002-03-29  Dale Johannesen <dalej@apple.com>
1597
1598         * loop.c (combine_movables): Do allow combination of pseudos.
1599
1600 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1601
1602         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1603         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1604         No functional change except ...
1605         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1606         * doc/install.texi (*-*-freebsd*): Document port configuration.
1607
1608 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1609
1610         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1611         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1612         Use new hooks.
1613         * builtin-types.def (BT_PTRMODE): Update.
1614         * c-common.c (type_for_size): Rename c_common_type_for_size.
1615         (type_for_mode): Similarly.
1616         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1617         Use new hook.
1618         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1619         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1620         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1621         Redefine.
1622         * c-typeck.c (common_type, comptypes, default_conversion):
1623         Use new hooks.
1624         * calls.c: Include langhooks.h.
1625         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1626         calls.
1627         * convert.c: Include langhooks.h
1628         (convert_to_pointer, convert_to_integer): Use new hooks.
1629         * except.c (init_eh): Similarly.
1630         * expmed.c: Include langhooks.h.
1631         (expand_mult_add): Use new hooks.
1632         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1633         try_casesi): Similarly.
1634         * fold-const.c (optimize_bit_field_compare, make_range,
1635         decode_field_reference, fold_truthop, fold): Similarly.
1636         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1637         put_var_into_stack): Similarly.
1638         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1639         LANG_HOOKS_TYPE_FOR_SIZE): New.
1640         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1641         * langhooks.h (lang_hooks_for_types): New hooks.
1642         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1643         * tree.c (get_unwidened, get_narrower): Similarly.
1644         * tree.h (type_for_mode, type_for_size): Remove.
1645         * varasm.c (force_const_mem): Use new hooks.
1646         * utils2.c (nonbinary_modular_operation): Update.
1647 objc:
1648         * objc-act.c (handle_impent): Update.
1649         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1650         Redefine.
1651
1652 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1653
1654         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1655         * config/ia64/ia64.c (basereg_operand): New.
1656         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1657         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1658
1659 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1660
1661         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1662         unwind information when frame_pointer_needed.
1663         (mmix_assemble_integer): Tweak wording in comment.
1664
1665 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1666
1667         * Makefile.in (except.o): Update.
1668         * except.c: Include langhooks.h.
1669         (init_eh): Use langhook.
1670         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1671         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1672         (LANG_HOOKS_INITIALIZER): Update.
1673         * langhooks.h (lang_hooks_for_types): New.
1674         (struct lang_hooks): Add it.
1675         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1676         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1677 config:
1678         * alpha/alpha.c: Include langhooks.h.
1679         (alpha_build_va_list): Use langhook.
1680         * d30v/d30v.c: Include langhooks.h.
1681         (d30v_build_va_list): Use langhook.
1682         * i386/i386.c: Include langhooks.h.
1683         (ix86_build_va_list): Use langhook.
1684         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1685         * s390/s390.c: Include langhooks.h.
1686         (s390_build_va_list): Use langhook.
1687         * stormy16/stormy16.c: Include langhooks.h.
1688         (stormy16_build_va_list): Use langhook.
1689
1690 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1691
1692         PR c++/5964
1693         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1694         attributes.
1695         (length): Compute variable length for branches/calls/jumps here.
1696         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1697         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1698         define branch_type attribute.
1699         (divsi3_sp32): Maximum length is 6 not 7.
1700         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1701         call_address_untyped_struct_value_sp32,
1702         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1703         * config/sparc/sparc.c (empty_delay_slot): New function.
1704         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1705         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1706
1707 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1708
1709         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1710         nonzero_bits if not needed.
1711         (nonzero_bits) [XOR]: Likewise.
1712         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1713         reg_last_set_mode and mode are both MODE_INT, but not equal.
1714         (record_value_for_reg): Compute reg_last_set_nonzero_bits
1715         in nonzero_bits_mode for MODE_INT modes.
1716
1717 2002-03-28  Richard Henderson  <rth@redhat.com>
1718
1719         PR target/5715
1720         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1721         to GAS.  Correct drift between alternatives.
1722
1723 2002-03-28  Richard Henderson  <rth@redhat.com>
1724
1725         PR target/6087
1726         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1727
1728 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
1729
1730         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1731         emulation to the linker.
1732
1733 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
1734
1735         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1736         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1737
1738 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
1739
1740         * combine.c (simplify_and_const_int): Make sure to apply mask
1741         when force_to_mode returns a constant integer.  PR3311.
1742
1743 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1744
1745         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1746
1747 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1748
1749         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1750         and Objective-C Dialect Options.
1751
1752 2002-03-28  Richard Henderson  <rth@redhat.com>
1753
1754         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1755         comparison should be done vs !=0 not >0 return code.  Tidy cases.
1756
1757 2002-03-28  Richard Henderson  <rth@redhat.com>
1758
1759         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
1760         on to c_expand_body.
1761         * c-tree.h (finish_function): Update decl.
1762         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1763
1764 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1765
1766         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1767
1768 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
1769
1770         * rtlanal.c: Include flags.h
1771         (may_trap_p): Do not mark FP operations if trapping
1772         if !flag_trapping_math
1773         * Makefile.in (rtlanal.o): Add dependency on flag.h
1774         * ifcvt.c (noce_operand_ok): Avoid the lameness.
1775
1776 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
1777
1778         * mips.md: Use dconst1, not 1.0, as first argument of
1779         REAL_VALUE_LDEXP.  Don't use union real_extract.
1780
1781 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1782
1783         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1784         rather than $target.  Heed program_prefix and
1785         program_transform_name.  Search for gas in cross-compiler case too.
1786         "test -x" rather than "test -f".
1787         (gcc_cv_ld): Likewise.
1788         (gcc_cv_nm): Heed program_prefix and program_transform_name.
1789         (gcc_cv_objdump): Likewise.
1790         * configure: Regenerate.
1791
1792 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1793
1794         * Makefile.in (attribs.o): Update.
1795         * attribs.c: Include langhooks.h.
1796         (decl_attributes): Use langhook.
1797         * c-decl.c (insert_default_attributes): Rename.
1798         * c-tree.h (c_insert_default_attributes): New.
1799         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1800         (LANG_HOOKS_INITIALIZER): Update.
1801         * langhooks.h (struct lang_hooks): New hook.
1802         * tree.h (insert_default_attributes): Remove.
1803 objc:
1804         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1805
1806 2002-03-27  Andreas Schwab  <schwab@suse.de>
1807
1808         * config/i386/i386.c (classify_argument): Also check for
1809         QUAL_UNION_TYPE.
1810
1811 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1812
1813         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1814         any more.
1815
1816 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1817
1818         * i960.md (ret): Set PC.
1819         (nonlocal_goto): Fix expander.
1820         * builtins.c (epxand_builin_longjmp): Check that we've emitted
1821         some jump or call.
1822
1823 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1824
1825         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1826         of libcall regions.
1827
1828 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1829
1830         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1831         assigning to BLOCK_FOR_INSN directly.
1832
1833 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
1834
1835         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1836
1837 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1838
1839         * c-common.c (c_expand_expr): Fix prototype.
1840         * c-common.h (c_expand_expr): Always declare, update.
1841         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1842         * c-objc-common.c (c_objc_common_init): No global hook.
1843         * expr.c (expand_expr): Use langhook.
1844         * expr.h (enum expand_modifier): Conditionally declare.
1845         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1846         (LANG_HOOKS_INITIALIZER): Update.
1847         * langhooks.c (lhd_expand_expr): New.
1848         * langhooks.h (struct lang_hooks): New hook.
1849         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1850         (lang_independent_init): Don't default hook.
1851 objc:
1852         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1853
1854 2002-03-27  Richard Henderson  <rth@redhat.com>
1855
1856         PR target/6054
1857         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1858         TARGET_CONST_GP.  Simplify conditions.
1859
1860 2002-03-27  Richard Henderson  <rth@redhat.com>
1861
1862         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1863         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1864         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1865
1866 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
1867
1868         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1869         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1870         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1871         Remove unnecessary masks.
1872         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1873         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1874         -mwindows, -mdll switches and their negations.
1875
1876 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1877
1878         * gcc-common.c (lang_mark_false_label_stack): Remove.
1879         * ggc.h (lang_mark_false_label_stack): Similarly.
1880
1881 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
1882
1883         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1884
1885         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1886         or __rtems_ is defined.
1887
1888 2002-03-26  Richard Henderson  <rth@redhat.com>
1889
1890         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1891         if a non-trivial load was emitted.
1892         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
1893         in high+extra+low case.
1894
1895 2002-03-26  Richard Henderson  <rth@redhat.com>
1896
1897         * config.gcc (sparc*-solaris): Use float_format=sparc.
1898
1899 2002-03-26  Richard Henderson  <rth@redhat.com>
1900
1901         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1902         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1903         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1904         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1905         (WINT_TYPE_SIZE): Fix at 32.
1906
1907 2002-03-26  Richard Henderson  <rth@redhat.com>
1908
1909         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1910         until after eh landing pad generation.
1911         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1912         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1913
1914 2002-03-26  Richard Henderson  <rth@redhat.com>
1915
1916         * expr.h (ADD_PARM_SIZE): One more convert for INC.
1917
1918 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
1919
1920         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
1921         and warning switches.
1922         (cc1_options):  Likewise.
1923
1924 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
1925
1926         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1927         Restore more of the signal context.  Set no_reg_stack_frame.
1928         * config/ia64/unwind-ia64.c (unw_state_record):
1929         Add no_reg_stack_frame, comments.
1930         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1931         (uw_update_context): Adjust bsp when unwinding from leaf,
1932         but not signal frame.
1933
1934 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
1935
1936         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1937
1938 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
1939
1940         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1941
1942 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
1943
1944         PR target/5621
1945         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1946         "Add a pool_range attribute", which was lost during the ARM/Thumb
1947         merge.
1948
1949 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
1950
1951         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1952         a register into the MAC16 accumulator.
1953
1954 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
1955
1956         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1957         (Warning Options): Document -Wswitch-enum.
1958         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
1959         -Wswitch.
1960         (warn_switch_enum): Define variables.
1961         * flags.h (warn_switch_enum): Declare variables.
1962         * stmt.c (expand_end_case_type): When warn_switch_enum /
1963         -Wswitch-enum, perform switch checks.
1964         Fix PR c/5044.
1965
1966 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
1967
1968         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1969         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1970         (reload_muladdsi_compare0_scratch): Delete.
1971
1972 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
1973
1974         * doc/install.texi (*-*-freebsd*): Update.
1975
1976 2002-03-26  Richard Henderson  <rth@redhat.com>
1977
1978         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1979         (SUB_PARM_SIZE): Cast DEC to ssizetype.
1980
1981         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1982         types from the normal argument frame.
1983
1984         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1985         variable sized objects by reference.
1986         (sparc_va_arg): Receive them by reference too.
1987
1988 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
1989
1990         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1991         code to not restoring global registers.
1992
1993 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1994
1995         * Makefile.in (ggc-common.o): Update.
1996         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1997         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1998         * c-tree.h (c_mark_tree): New.
1999         * ggc-common.c: Include langhooks.h.
2000         (gcc_mark_trees): Use new langhook.
2001         * ggc-callbacks.c: Delete file.
2002         * ggc.h (lang_mark_tree): Remove.
2003         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2004         (LANG_HOOKS_INITIALIZER): Update.
2005         * langhooks.h (struct lang_hooks): New hook.
2006 objc:
2007         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2008
2009 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2010
2011         * doc/cpp.texi: Exclude entire Top node from printed manual.
2012         Move option index after directive index.  Insert page breaks
2013         before GFDL and concept index.  Index environment variables
2014         with command line options.
2015         * doc/cppenv.texi: Use @vtable for environment variable list.
2016         Add paragraph explaining semantics of empty elements in path
2017         variables.  Exclude a cross-reference to Fishkill from the
2018         manpage.  Remove an unnecessary cross-reference of the entry
2019         right above the referer.  Don't use @anchor in text that goes
2020         into manpage.
2021         * doc/cppopts.texi: Cross-reference the environment variables
2022         section, not the specific environment variable, for consistency.
2023
2024 2002-03-25  Richard Henderson  <rth@redhat.com>
2025
2026         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2027         anywhere in the block.  Don't refer to insns that have been
2028         removed from the chain.  Iterate backward through the new insns.
2029         Don't refer to edges that have been removed.
2030
2031 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2032
2033         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2034         test for overflow of constant.
2035
2036 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2037
2038         PR target/2623
2039         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2040         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2041         these patterns on arm_archv4.
2042
2043 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2044
2045         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2046         int".
2047
2048 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2049
2050         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2051         float_handled, float_handler, float_signal, set_float_handler,
2052         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2053         * toplev.h: Don't prototype do_float_handler.
2054
2055         * c-lex.c: Fold parse_float into lex_number.  Make warning
2056         about portability of hex float constants more informative, and
2057         don't issue it on top of a syntax error.
2058         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2059         their callers.
2060         * real.h: Define REAL_VALUE_ABS here...
2061         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2062         simplify_unary_real, simplify_binary_real, and
2063         simplify_binary_is2orm1 into their callers.
2064         * tree.c: Fold build_real_from_int_cst_1 into caller.
2065
2066         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2067
2068         * tsystem.h: Include float.h here...
2069         * libgcc2.c: ... not here.
2070
2071 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2072
2073         Fixes for: PR bootstrap/3591, target/5676
2074         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2075         defined.  Do not disable exceptions or rtti.
2076         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2077         mcore.h.  Disable exceptions and rtti, since they are not
2078         supported by EPOC.
2079
2080 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2081
2082         * c-decl.c (maybe_build_cleanup): Remove.
2083         * expr.c (expand_expr): Use langhook.
2084         * langhooks-def.h (lhd_return_null_tree,
2085         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2086         (LANGHOOKS_INITIALIZER): Update.
2087         * langhooks.c (lhd_return_null_tree): New.
2088         * langhooks.h (struct lang_hooks): New hook.
2089         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2090         * tree.h (maybe_build_cleanup): Remove.
2091
2092 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2093
2094         * regrename.c (build_def_use): Move recog_memoized
2095         before extract_insn.
2096
2097 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2098
2099         PR target/6043
2100         * expr.c (emit_group_store): Handle storing into CONCAT.
2101
2102 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2103
2104         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2105         corresponding MATCH_DUP.
2106
2107 2002-03-24  Richard Henderson  <rth@redhat.com>
2108
2109         * unroll.c (unroll_loop): Zero label_map.
2110
2111         * gcse.c: Include except.h.
2112         * Makefile.in (gcse.o): Update.
2113
2114 2002-03-24  Richard Henderson  <rth@redhat.com>
2115
2116         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2117         Do resolve_unique_section before shared data clause.
2118
2119 2002-03-24  Richard Henderson  <rth@redhat.com>
2120
2121         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2122
2123 2002-03-24  Richard Henderson  <rth@redhat.com>
2124
2125         * recog.c (peephole2_optimize): Split blocks when EH insns are
2126         generated in the middle of a block.  Do global life update if
2127         zapped EH edges.
2128
2129 2002-03-24  Richard Henderson  <rth@redhat.com>
2130
2131         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2132
2133 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2134
2135         preprocessor/3951
2136         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2137         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2138         (init_dependency_output): Don't make no_output decision here.
2139
2140 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2141
2142         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2143         warn_switch.  Update description.
2144         (expand_end_case_type): Call check_for_full_enumeration_handling
2145         when warn_switch.
2146
2147 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2148
2149         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2150         (m68hc11_split_move): Call it to see if the source and destination
2151         operands use the same direction auto inc/dec mode, otherwise make the
2152         source an offsetable memory operand and generate an add.
2153
2154 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2155
2156         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2157         register for operand 2.
2158         ("*subsi3_zero_extendqi"): Likewise.
2159         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2160         bits so that it is compatible with a pop.
2161         ("*andhi3_gen"): Likewise.
2162         ("xorhi3"): Likewise.
2163
2164 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2165
2166         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2167         -pedantic here...
2168         (cpp_post_options): ... not here.
2169
2170 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2171             Aldy Hernandez  <aldyh@redhat.com>
2172
2173         Removal of separate preprocessor cpp0.
2174
2175         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2176         cpp0, install-common): Update.
2177         * c-common.c (flag_preprocess_only): New.
2178         (c_common_init): Preprocess for -E.
2179         * c-common.h (flag_preprocess_only): New.
2180         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2181         * c-objc-common.c (c_init_decl_processing): Exit quickly
2182         for NULL return from c_common_init.
2183         * cpplib.h (cpp_preprocess_file): New.
2184         * cppmain.c (main, general_init, pfile, progname): Remove.
2185         (do_preprocessing): Rename cpp_preprocess_file, don't call
2186         cpp_finish.  Don't close stdout here.
2187         (setup_callbacks): Update prototype.
2188         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2189         Update.
2190         * tradcpp.c (main): Ignore -quiet.
2191 objc:
2192         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2193
2194 2002-03-24  Richard Henderson  <rth@redhat.com>
2195
2196         PR optimization/5742
2197         * machmode.def: Add inner mode field to complex modes.
2198         * config/mips/mips.c (mips_function_value): Always define.  Add
2199         new argument to handle libcalls.
2200         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2201         (FUNCTION_VALUE): Likewise.
2202         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2203         * config/mips/mips-protos.h: Update.
2204
2205 2002-03-23  Richard Henderson  <rth@redhat.com>
2206
2207         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2208         * config/sparc/sparc-protos.h: Update.
2209         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2210
2211 2002-03-23  Richard Henderson  <rth@redhat.com>
2212
2213         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2214         _start or _init begins the text segment.
2215
2216 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2217
2218         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2219         not HOST_WIDEST_INT.
2220         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2221
2222 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2223
2224         PR java/5489
2225         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2226         operand argument to output_return_instruction.
2227         * arm.c (arm_print_operand, case 'd'): If the operand is
2228         const_true_rtx then just return.
2229         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2230         then abort.
2231
2232 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2233
2234         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2235         (Warning Options): Document -Wswitch-default.
2236         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2237         -Wswitch.
2238         (warn_switch_default): Define variable.
2239         (warn_switch): Update comment.
2240         * flags.h (warn_switch_default): Declare variable.
2241         (warn_switch): Update comment.
2242         * stmt.c (expand_end_case): Check for and, when
2243         warn_switch_no_default, warn of a missing default case.
2244
2245 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2246
2247         * real.h (N): Special case 128 bit doubles.
2248
2249         * combine.c (simplify_comparison): When widening modes, ignore
2250         sign extension on CONST_INTs.
2251
2252 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2253
2254         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2255         passed to adjust_address.  Fix comment formatting.
2256
2257
2258 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2259
2260         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2261         Always make REAL_VALUE_TYPE a struct containing an array of
2262         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2263         big it is.  Don't declare or use union real_extract.
2264
2265         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2266         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2267         (print_operand), config/arm/arm.c (output_move_double),
2268         config/arm/arm.md (consttable_4, consttable_8),
2269         config/romp/romp.c (output_fpops), config/s390/s390.h
2270         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2271         (xtensa_output_literal): Don't use union real_extract.
2272
2273         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2274         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2275         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2276         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2277         (PRINT_OPERAND): Don't use local version of union
2278         real_extract.
2279
2280         * config/convex/convex.c (check_float_value), config/vax/vax.c
2281         (vax_float_literal), config/m88k/m88k.md (divdf3),
2282         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2283         config/pdp11/pdp11.c (output_move_quad): Don't do host
2284         arithmetic on target floating point quantities.
2285
2286         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2287         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2288
2289         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2290         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2291
2292         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2293         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2294         INFINITY.
2295         * print-rtl.c (print_rtx): Disable code which needs
2296         floating-point emulator.
2297         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2298         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2299         depending on HOST_FLOAT_FORMAT to be defined properly.
2300
2301         * config/1750a/1750a.c (get_double, float_label): Delete.
2302         (print_operand): Delete huge commented-out chunk.  Use
2303         REAL_VALUE_TO_DECIMAL.
2304         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2305         functions.
2306         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2307         IEEE_FLOAT_FORMAT.
2308         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2309         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2310         * config/m88k/m88k.c (real_power_of_2_operand,
2311         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2312         real_extract out of the union; run the input through
2313         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2314         from that into the union.
2315         * config/pdp11/pdp11.c (output_move_double): Rearrange
2316         parentheses to make automatic indenter happy.
2317
2318         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2319         Point" and rewrite to describe current situation.  Also adjust
2320         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2321         match code.
2322         * doc/rtl.texi: Adjust cross reference.
2323
2324 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2325
2326         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2327         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2328         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2329         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2330         prevent use of sp as a reload register.
2331         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2332         non_acc_reg_operand.
2333         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2334         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2335         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2336         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2337
2338 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2339
2340         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2341         * cpplex.c (unterminated): Delete.
2342         (parse_string): No string literal may extend over multiple
2343         lines.  Suppress the error when preprocessing assembly.
2344         * cppmain.c (scan_translation_unit): Strings are single-line.
2345
2346         * doc/cpp.texi: Update to match.
2347
2348 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2349
2350         PR optimization/5854
2351         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2352         Shut up warnings.
2353         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2354         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2355         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2356         const0 if scratch register was not allocated.
2357         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2358         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2359         with GEN_INT (...).
2360         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2361         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2362         with GEN_INT (...) everywhere.  Remove constraints in define_split
2363         patterns.
2364         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2365         require scratch register for setting 0 into regs/non-pushable memory.
2366
2367 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2368
2369         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2370         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2371
2372 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2373
2374         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2375         * cppinit.c (cpp_create_reader):  On by default.
2376         (cpp_handle_option):  Handle -W[no-]endif-labels.
2377         (cpp_post_options):  Also enable if -pedantic.
2378         * cpplib.c (do_else):  Use it.
2379         (do_endif):  Likewise.
2380         * doc/cppopts.texi:  Document new option.
2381         * doc/invoke.texi:  Document new option.
2382
2383 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2384
2385         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2386         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2387
2388 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2389
2390         * flow.c (calculate_global_regs_live): Clear aux fields of
2391         ENTRY and EXIT.
2392
2393 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2394
2395         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2396         REG or MEM subregs, pass rtx * instead of rtx to it.
2397         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2398         rtx * instead of rtx to alter_subreg.
2399         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2400         * config/pj/pj.c (pj_output_rval): Likewise.
2401
2402 2002-03-22  Richard Henderson  <rth@redhat.com>
2403
2404         PR target/3177
2405         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2406         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2407         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2408         (ia64_expand_prologue): Look at int_regs, not words, for number
2409         of incomming int regs.
2410
2411 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2412
2413         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2414
2415 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2416
2417         * toplev.c (flag_loop_optimize, flag_crossjumping):
2418         New static variables.
2419         (rest_of_compilation): Conditionalize crossjumping and
2420         loop optimizer.
2421         (parse_options_and_default_flags): Default loop_optimize and
2422         crossjumping.
2423         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2424         * invoke.texi (crossjumping, loop-optimize): Document.
2425
2426 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2427
2428         * real.c (eiisneg): Move outside #ifdef NANS.
2429
2430 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2431
2432         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2433         frequencies match; avoid match on different loop depths.
2434         (try_crossjump_to_bb): Kill tests that no longer brings time
2435         savings.
2436         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2437         updating code.
2438         (split_edge): Likewise.
2439
2440         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2441         variable.
2442
2443         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2444         * cfgrtl.c: Include insn-config.h
2445         (split_block) Dirtify block in presence of conditional execution
2446
2447 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2448
2449         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2450         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2451         (function_arg): Constify CUMULATIVE_ARGS.
2452         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2453         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2454         (UNITS_PER_DOUBLE): New macro.
2455         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2456         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2457         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2458         fp_regs and stack_words.
2459         (EABI_FLOAT_VARARGS_P): New macro.
2460         * config/mips/mips.c (struct mips_arg_info): New.
2461         (mips_arg_info): New function.
2462         (function_arg_advance): Use it.  Add adjustment instructions here
2463         rather than in function_arg.
2464         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2465         for VOIDmode at the beginning of the function.
2466         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2467         (function_arg_pass_by_reference): Likewise.
2468         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2469         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2470         (mips_va_start): Likewise.  Use the new stack_words field of
2471         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2472         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2473         doubles and other types, aligning the overflow pointer for non-doubles
2474         too.  Remove some code duplication.  Replace hard-coded constants.
2475
2476 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2477
2478         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2479         (CLASS_UNITS): Undefine.
2480         (CLASS_MAX_NREGS): Use FP_INC.
2481         * config/mips/mips.c (compute_frame_size): Likewise.
2482         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2483
2484 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2485
2486         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2487         prototype, and handle lexing numbers and identifiers.
2488         (parse_identifier): Update to new form of parse_slow.
2489         (parse_number): Fast path only, use parse_slow otherwise.
2490         (_cpp_lex_direct): Update calls to parse_number.
2491
2492 2002-03-21  DJ Delorie  <dj@redhat.com>
2493
2494         * bb-reorder.c (make_reorder_chain_1): Protect against
2495         when redundant edges are omitted.
2496         * predict.c (dump_prediction): Likewise.
2497
2498 2002-03-21  Richard Henderson  <rth@redhat.com>
2499
2500         PR target/5996
2501         * fixinc/inclhack.def (solaris_stdio_tag): New.
2502         * fixinc/fixincl.x: Regenerate.
2503
2504 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2505
2506         PR c/5597
2507         * c-typeck.c (process_init_element): Flag non-static
2508         initialization of a flexible array member as illegal.
2509
2510 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2511
2512         * config/rs6000/t-linux64: New.
2513         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2514         t-ppccomm.  Use t-rs6000 and t-linux64.
2515         (powerpc64-*-gnu* <tmake_file>): Likewise.
2516         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2517         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2518         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2519
2520 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2521
2522         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2523         flag_really_no_inline instead of optimize == 0.
2524
2525         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2526
2527         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2528
2529         * flags.h (flag_really_no_inline): New.
2530
2531         * c-common.c (c_common_post_options): Initialize
2532         flag_really_no_inline.
2533
2534         * toplev.c (flag_really_no_inline): New.
2535
2536 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2537
2538         * config/avr/avr.md (length): Fix length computation for
2539         conditional branches.
2540
2541 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2542
2543         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2544         sdbout.o, profile.o): Update.
2545         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2546         langhook.
2547         * c-common.h (gettags): Move here from tree.h.
2548         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2549         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2550         * dbxout.c (dbxout_init): Use getdecls langhook.
2551         * expr.c (expand_expr): Use insert_block langhook.
2552         * fold-const.c: Include langhooks.h.
2553         (fold_range_test, fold_binary_op_with_conditional_arg,
2554         fold): Use global_bindings_p langhook.
2555         * integrate.c (expand_inline_function): Use insert_block langhook.
2556         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2557         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2558         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2559         LANG_HOOKS_GETDECLS): New.
2560         (LANG_HOOKS_INITIALIZER): Update.
2561         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2562         langhook.
2563         * langhooks.h (struct lang_hooks_for_decls): New.
2564         (struct lang_hooks): Update.
2565         * profile.c: Include langhooks.h.
2566         (output_func_start_profiler): Use new langhooks.
2567         * sdbout.c: Include langhooks.h.
2568         (sdbout_init, sdbout_finish): Use getdecls langhook.
2569         * stmt.c: Include langhooks.h.
2570         (expand_fixup, fixup_gotos): Use new langhooks.
2571         * stor-layout.c: Include langhooks.h.
2572         (variable_size): Use global_bindings_p langhook.
2573         * toplev.c (compile_file): Use getdecls langhook.
2574         * tree-inline.c (remap_block): Use insert_block langhook.
2575         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2576         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2577
2578 2002-03-21  Richard Henderson  <rth@redhat.com>
2579
2580         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2581         constants in .data when -fpic.
2582
2583 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2584
2585         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2586         where appropriate.
2587
2588 2002-03-21  Tom Tromey  <tromey@redhat.com>
2589
2590         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2591
2592 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2593
2594         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2595
2596         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2597
2598 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2599             Richard Henderson  <rth@redhat.com>
2600
2601         PR c/5354
2602         * c-common.c (c_expand_expr): Preserve result of a statement
2603         expression if needed.
2604
2605 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2606
2607         PR bootstrap/4195
2608         * genrecog.c (maybe_both_true_mode): Remove.
2609         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2610         * machmode.def (Pmode): Likewise.
2611
2612 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2613
2614         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2615         (nonlocal_mentioned_p_1): New function.
2616         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2617         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2618         (mark_constant_function): Recognize pure functions.
2619         * rtl.h (global_reg_mentioned_p): New prototype.
2620         * rtlanal.c (global_reg_mentioned_p,
2621         global_reg_mentioned_p_1): New function.
2622
2623 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2624
2625         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2626         UNIX assert.h.
2627         * fixinc/fixincl.x: Regenerate.
2628
2629 2002-03-20  Jason Merrill  <jason@redhat.com>
2630
2631         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2632
2633 2002-03-20  Michael Meissner  <meissner@redhat.com>
2634
2635         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2636         -fstrict-aliasing.
2637
2638 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2639
2640         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2641         ".literal_position" directive before the constant pool.
2642
2643 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2644
2645         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2646         Add Craig Rodrigues.
2647         Add Brad Lucier to testers.
2648
2649 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2650
2651         PR target/4792
2652         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2653         to if_then_else.
2654         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2655         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2656         instead of insn_extract.
2657
2658 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2659
2660         PR bootstrap/4192
2661         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2662
2663         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2664         stmt if some case has been output.
2665
2666 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2667
2668         PR c/5972
2669         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2670         movsfcc_1, movdfcc_1): Add %O2.
2671         * config/i386/i386.c (print_operand): Handle %ON.
2672         Print . before float condition codes in Sun as cmov syntax.
2673         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2674         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2675         no longer true.
2676
2677 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2678
2679         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2680         return instruction if PC was popped.
2681
2682 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2683
2684         * config/xtensa/xtensa.md: Remove unused type attributes.
2685         (adddi_carry, subddi_carry): Change type attribute to "multi".
2686
2687 2002-03-19  Dale Johannesen  <dalej@apple.com>
2688
2689         PR optimization/5999, middle-end/5731
2690         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2691         multiplications by reciprocals.
2692
2693 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2694
2695         * Makefile.in: Update.
2696         * c-common.c: Include langhooks.h.
2697         (inline_forbidden_p): Use new hook.
2698         * diagnostic.c: Include langhooks.h.
2699         (format_with_decl, announce_function,
2700         default_print_error_function): Use new hook.
2701         * dwarf2out.c (dwarf2_name): Use new hook.
2702         * function.c: Include langhooks.h.
2703         (init_function_start): Use new hook.
2704         * langhooks-def.h (lhd_decl_printable_name): New.
2705         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2706         (LANGHOOKS_INITIALIZER): Update.
2707         * langhooks.c (lhd_decl_printable_name): New.
2708         * langhooks.h (struct lang_hooks): New hook.
2709         * toplev.c (decl_name, decl_printable_name): Remove.
2710         (open_dump_file): Use new hook.
2711         (process_options): Remove old hook.
2712         * tree.h (decl_printable_name): Remove.
2713 objc:
2714         * objc-act.c (objc_init): Remove old hook.
2715         (objc_printable_name): Export.
2716         * objc-act.h (objc_printable_name): New.
2717         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2718
2719 2002-03-19  Jim Blandy  <jimb@redhat.com>
2720
2721         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2722         the start_source_file debug hook, not the current line number.
2723
2724 2002-03-19  Richard Henderson  <rth@redhat.com>
2725
2726         * flow.c (EH_USES): Provide default.
2727         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2728         * doc/tm.texi (EH_USES): New.
2729
2730         * config/ia64/ia64.c (ia64_eh_uses): New.
2731         * config/ia64/ia64-protos.h: Update.
2732         * config/ia64/ia64.h (EH_USES): New.
2733
2734 2002-03-19  Richard Henderson  <rth@redhat.com>
2735
2736         * varasm.c (output_constant_def): Fix stupid typo.
2737
2738 2002-03-19  Richard Henderson  <rth@redhat.com>
2739
2740         PR 5879
2741         * except.c (current_function_has_exception_handlers): New.
2742         * except.h: Declare it.
2743         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2744         Combine tests that disable all sibcalls for the function.
2745
2746 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
2747
2748         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2749         for INTEGER_CST.
2750
2751 2002-03-19  Richard Henderson  <rth@redhat.com>
2752
2753         PR 5977, 5991
2754         * config/ia64/ia64.c: Revert 2002-03-01 patch.
2755         * config/ia64/ia64.h (INIT_EXPANDERS): New.
2756
2757 2002-03-19  Jim Blandy  <jimb@redhat.com>
2758
2759         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2760         name, even if the replacement list contains no tokens, as required
2761         by Dwarf.
2762
2763 2002-03-19  Jason Merrill  <jason@redhat.com>
2764
2765         * varasm.c (globalize_decl): Get the name from the RTL, not
2766         DECL_ASSEMBLER_NAME.
2767
2768         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2769
2770 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
2771
2772         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2773         subdi_carry): Define.
2774
2775 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2776
2777         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2778         about -fpic/-fPIC if extra_warnings set.
2779
2780 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2781
2782         * expr.c (expand_expr): Sign-extend CONST_INT generated from
2783         TREE_STRING_POINTER.
2784         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2785
2786 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2787
2788         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2789         in favor of SP if FRAME_POINTER_REQUIRED is false.
2790
2791 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
2792
2793         * emit-rtl.c (gen_int_mode): New function.
2794         * rtl.h: Prototype for it.
2795         * combine.c (make_extraction, simplify_comparison), expmed.c
2796         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2797         (convert_modes, store_field), optabs.c (expand_fix),
2798         simplify-rtx.c (neg_const_int, simplify_unary_real),
2799
2800         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2801         Use it instead of GEN_INT (trunc_int_for_mode (...)).
2802
2803 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
2804
2805         PR c/5656
2806         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2807         convert_parm_for_inlining.
2808         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2809         Define.
2810         * langhooks-def.h: Likewise.
2811         * objc/objc-lang.c: Likewise.
2812         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2813         function.
2814         * tree-inline.c (initialize_inlined_parameters):
2815         Call convert_parm_for_inlining lang hook if needed.
2816         * c-typeck.c (c_convert_parm_for_inlining): New function.
2817         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2818
2819 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
2820
2821         * calls.c (precompute_arguments): Do not assume that temporaries
2822         can be destroyed after expanding the argument.
2823         (expand_call): Likewise.
2824
2825 2002-03-15  Eric Christopher  <echristo@redhat.com>
2826
2827         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2828         Fix register preference on last change.
2829         * config/mips/mips.c (mips_return_in_memory): New function.
2830         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2831         * config/mips/mips-protos.h: Declare.
2832         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2833         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2834
2835 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2836
2837         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2838         a register too.
2839         (anddi3, iorsi3): Likewise.
2840
2841         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2842         use %gprel for symbols that are going to be placed in linkonce
2843         sections.
2844
2845         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2846         RETURN_ADDRESS_POINTER_REGNUM to $ra.
2847         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2848         not needed.  Disregard leaf_function_p().
2849         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2850         mips16 frame pointer.
2851         * config/mips/mips.md (store ra): Only to small SP offsets.
2852         2001-08-22  Graham Stott  <grahams@redhat.com>
2853         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2854         return a REG rtx for the return address register.
2855
2856 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
2857
2858         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2859         constant-pool addresses as "mode-dependent".
2860         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2861
2862 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
2863
2864         PR target/5740
2865         * expr.c (emit_group_load): Use extract_bit_field if
2866         needed for CONCAT arguments.
2867
2868 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
2869
2870         PR target/4863
2871         * arm.md (tablejump): Make this a define_expand.  For PIC add the
2872         offset to the base of the table.
2873         (thumb_tablejump): Matcher for Thumb tablejump insn.
2874         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2875         as the difference of two labels.
2876         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2877         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2878         tables in the code.
2879         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2880         * arm.c (get_jump_table_size): If the table is not in the text
2881         section, return zero.
2882
2883 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
2884
2885         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2886         of gen_rtx_SUBREG.
2887         (arm_reload_out_hi): Use gen_lowpart instead of
2888         gen_rtx_SUBREG to access QImode components.
2889         * config/arm/arm.md: Disable zero_extend split for QImode
2890         subregs in BIG_ENDIAN mode.
2891         (storehi_bigend): Match use of least significant byte.
2892         (storeinthi): Remove extraneous SUBREG.
2893         Add missing construction of operands[2].
2894         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2895         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2896         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2897
2898 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
2899
2900         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2901         any_operand.
2902
2903 2002-03-17  Richard Henderson  <rth@redhat.com>
2904
2905         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2906         explicitly.
2907
2908 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2909
2910         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2911         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2912
2913 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2914
2915         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2916
2917         * predict.c (estimate_bb_frequencies): Delete unused variables.
2918
2919 2002-03-17  Richard Henderson  <rth@redhat.com>
2920
2921         * config/ia64/ia64.c (ia64_attribute_table): Move before
2922         targetm definition.  Make static.
2923
2924 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2925
2926         * c-common.h (yyparse, c_common_parse_file): New.
2927         * c-lang.c: Include c-common.h.
2928         (LANG_HOOKS_PARSE_FILE): Redefine.
2929         * c-lex.c: Include c-common.h.
2930         (yyparse): Rename c_common_parse_file.  Call yyparse.
2931         * c-parse.in (yyparse): Remove macro.
2932         * c-tree.h (yyparse_1): Remove.
2933         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2934         (LANG_HOOKS_INITIALIZER): Update.
2935         * langhooks.h (struct lang_hoooks): New hook parse_file.
2936         * toplev.c (compile_file): Use parse_file hook.
2937         * tree.h (yyparse): Remove.
2938         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2939
2940 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2941
2942         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2943         float_truncate, not fix.
2944         ("*truncdfsf2_real"): Ditto.
2945         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2946
2947         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2948
2949 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
2950
2951         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2952         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
2953         where appropriate.  Make the second reference to
2954         leaf_function_p a function call, as intended.  Reindented.
2955
2956         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2957         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2958
2959         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2960         add register to non-constant into sp.
2961
2962         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2963         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2964         (mips16_gp_pseudo_rtx): Lose.
2965         (INIT_EXPANDERS): Deleted.
2966         * config/mips/mips.c (mips_init_machine_status): New.
2967         (mips_free_machine_status): New.
2968         (mips_mark_machine_status): New.
2969         (override_options): Set them.
2970         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2971         (struct machine_function): ... new.  Replaced all references.
2972         (mips_add_gc_roots): Don't mark them.
2973         (embedded_pic_fnaddr_reg): New, extracted from...
2974         (embedded_pic_offset): ... here.
2975         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2976         (movsi): Likewise.
2977
2978 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2979
2980         * cppinit.c: Revert -MD removal.
2981
2982 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2983
2984         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2985         soft registers by default for 68HC12.
2986         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2987         when compiling with -fomit-frame-pointer.
2988         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2989         (expand_epilogue): Likewise.
2990         (m68hc11_gen_rotate): Use exg when rotating by 8.
2991
2992 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2993
2994         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2995         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2996         (splits): Remove unused add splits.
2997         ("*addhi3_68hc12"): Tune constraints.
2998         ("addhi_sp"): Try to use X instead of Y in all cases and if the
2999         constant fits in 8-bits and D is dead use abx/aby instructions.
3000         ("*addhi3"): Remove extern declaration of ix_reg.
3001         ("*subsi3"): Optimize and provide new split.
3002         ("subhi3"): Cleanup.
3003         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3004         (arith splits): For 68hc12 save the address register on the stack
3005         and do the arithmetic operation with a pop.
3006
3007 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3008
3009         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3010         allocating QImode in address registers.
3011         ("*movqi_m68hc11"): Likewise.
3012
3013 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3014
3015         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3016
3017 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3018
3019         * cppinit.c (print_help): Display -MD and -MMD.
3020         Don't display usage string.  Update assertion syntax and
3021         typo.
3022         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3023         (cpp_handle_option): Update.
3024
3025 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3026
3027         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3028         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3029         and define it so that regardless of target CPU size,
3030         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3031         of "int" rather than "long."
3032
3033 2002-03-15  Richard Henderson  <rth@redhat.com>
3034
3035         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3036         size as a tree.
3037
3038 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3039
3040         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3041         ("tstqi" split): Avoid using memory for tstqi on address register.
3042         (splits): Remove constraints.
3043         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3044         ("cmpdf", "cmpsf"): Remove since not used.
3045         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3046         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3047
3048 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3049
3050         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3051         ("neghi2"): Tighten constraints.
3052         ("one_cmplsi2"): Optimize and simplify split.
3053         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3054
3055 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3056
3057         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3058         and split of AND operation to clear the upper bits.
3059         ("*logicalsi3_zextqi"): Likewise.
3060         ("*logicallhi3_zexthi_ashift8"): Likewise.
3061         ("*logicalsi3_silshr16"): Likewise.
3062         ("logicalsi3_silshl16"): Likewise.
3063         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3064
3065 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3066
3067         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3068         (m68hc11_indirect_p): New function.
3069         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3070         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3071         TARGET_M6812.
3072         (asm_print_register): Likewise.
3073         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3074         (m68hc11_indirect_p): Declare.
3075         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3076         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3077         (TARGET_SWITCHES): New option -mrelax.
3078         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3079         destination.
3080         ("iorsi3", "xorsi3"): Likewise.
3081         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3082         ("*andhi3_mem"): New to handle destination in memory with bclr
3083         and a scratch register.
3084         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3085         ("*andhi3_const"): New when operand2 is constant.
3086         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3087         ("*andhi3_gen"): Cleanup of the old "andhi3".
3088         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3089         ("xorqi3"): Update constraints.
3090
3091 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3092
3093         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3094         for reg_equiv_memory_loc when the operand is a register that does
3095         not get a hard register (stack location).
3096         (tst_operand): After reload, accept all memory operand.
3097         (symbolic_memory_operand): Fix detection of symbolic references.
3098         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3099         accept symbols and any constant.
3100
3101 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3102
3103         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3104         note on the insn that sets the soft frame register.
3105         (must_parenthesize): ix and iy are also reserved names.
3106         (print_operand_address): One more place where parenthesis are required
3107         to avoid confusion with register names.
3108         (m68hc11_gen_movhi): Allow push of stack pointer.
3109         (m68hc11_check_z_replacement): Fix handling of parallel with a
3110         clobber.
3111         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3112         the replacement register is.
3113         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3114         and D8_REGS classes.
3115         (MODES_TIEABLE_P): All modes are tieable except QImode.
3116
3117 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3118
3119         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3120         (___subdi3): Likewise.
3121         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3122         (__map_data_section): Optimize 68hc11 case.
3123
3124 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3125
3126         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3127         than a shift to avoid adding a register with itself.
3128         (m68hc11_memory_move_cost): Take into account NO_REGS.
3129         (m68hc11_register_move_cost): Update and use memory move cost
3130         for soft registers.
3131         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3132         it gives more opportunities to cse to optimize.
3133         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3134         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3135
3136 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3137
3138         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3139         * c-common.def (CLEANUP_STMT): New tree node.
3140         * c-common.h (CLEANUP_DECL): New macro.
3141         (CLEANUP_EXPR): Likewise.
3142         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3143         * expr.c (expand_expr): Tidy.
3144         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3145         * tree-inline.c (initialize_inlined_parameters): Clean up
3146         new local variables.
3147
3148 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3149
3150         PR bootstrap/4128
3151         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3152         before movrXX only, use reg_overlap_mentioned_p.
3153         Only special case NE if just one insn can be generated.
3154
3155 2002-03-15  Jason Merrill  <jason@redhat.com>
3156
3157         * varasm.c (assemble_variable): Call resolve_unique_section before
3158         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3159         of error_mark_node.
3160
3161 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3162
3163         PR target/5170
3164         * arm.md (split pattern for thumb shiftable immediates): Add comment
3165         explaining non-obvious test.
3166
3167 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3168
3169         PR target/5712
3170         * arm.md (movaddr, movaddr_insn): Delete.
3171
3172 2002-03-15  Jason Merrill  <jason@redhat.com>
3173
3174         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3175         -fkeep-static-consts doesn't apply to comdats.
3176
3177 2002-03-14  Richard Henderson  <rth@redhat.com>
3178
3179         * c-decl.c: Include c-pragma.h.
3180         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3181         (finish_function): Tidy.
3182         * c-pragma.c: Include c-common.h.
3183         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3184         (handle_pragma_weak): Use them.
3185         (init_pragma): Register pending_weaks.
3186         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3187         * print-tree.c (print_node): Print DECL_WEAK.
3188         * varasm.c (mark_weak_decls): Remove.
3189         (remove_from_pending_weak_list): Remove.
3190         (add_weak): Remove.
3191         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3192         (weak_decls): Make a tree_list.
3193         (declare_weak): Cons weak_decls directly.
3194         (globalize_decl): Remove weak_decls elements directly.
3195         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3196         symbols.  Don't pretend to handle aliases.
3197         (init_varasm_once): Update weak_decls registry.
3198         * Makefile.in: Update dependencies.
3199
3200 2002-03-14  Richard Henderson  <rth@redhat.com>
3201
3202         PR target/5312
3203         * config/ia64/ia64.c: Include tm_p.h last.
3204         (gen_nop_type): Remove duplicate definition.
3205         (cycle_end_fill_slots): Set sched_data for second L slot.
3206         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3207         (nop_cycles_until): Fix typos.
3208
3209 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3210
3211         PR optimization/5891
3212         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3213
3214 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3215
3216         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3217           descriptors correctly.
3218
3219 2002-03-14  Michael Meissner  <meissner@redhat.com>
3220
3221         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3222         100, allowing MAX_UNROLLED_INSNS to be overridden.
3223
3224         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3225         --param.
3226
3227         * unroll.c (params.h): Include.
3228         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3229
3230         * doc/invoke.texi (--param max-unroll-insns): Document.
3231
3232         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3233
3234 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3235
3236         * arm.md: Fix warnings about constraints in peepholes and splits.
3237
3238 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3239
3240         * cpphash.h (struct lexer_state): Remove line_extension member.
3241         * cpplib.c (dequote_string, do_linemarker): New functions.
3242         (linemarker_dir): New data object.
3243         (DIRECTIVE_TABLE): No longer need to interpret #line in
3244         preprocessed source.  Delete obsolete comment about return
3245         values of handlers.
3246         (end_directive, directive_diagnostics, _cpp_handle_directive):
3247         Don't muck with line_extension.
3248         (directive_diagnostics): No need to issue warnings for
3249         linemarkers here.
3250         (_cpp_handle_directive): Issue warnings for linemarkers here,
3251         when appropriate.  Dispatch linemarkers to do_linemarker, not
3252         do_line.
3253         (do_line): Code to handle linemarkers split out to do_linemarker.
3254         Convert escape sequences in filename argument, both places.
3255
3256         * cppmacro.c (quote_string): Rename cpp_quote_string and
3257         export.  All callers changed.
3258         * cpplib.h (cpp_quote_string): Prototype.
3259         * cppmain.c (print_line): Call cpp_quote_string on to_file
3260         before printing it.
3261
3262         * doc/cpp.texi: Document that escapes are now interpreted in
3263         #line and in linemarkers, and that non-printing characters are
3264         converted to octal escapes when linemarkers are generated.
3265
3266 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3267
3268         * emit-rtl.c (try_split): Use delete_insns.
3269         * recog.c (split_all_insns): Fix terminating condition.
3270
3271 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3272             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3273
3274         PR target/5828
3275         * arm.c (arm_output_epilogue): Fix floating-point register save
3276         adjustment when using a frame pointer.
3277
3278 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3279
3280         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3281         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3282         (save_restore_insns, mips_expand_epilogue): And here.
3283         (build_mips16_call_stub): And here.
3284         (mips_function_value): Use the new macros to decide whether a single
3285         or complex float can be returned in floating-point registers.  Return
3286         a parallel rtx in the complex case.
3287
3288 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3289
3290         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3291         call after liveness analysis.
3292
3293         * recog.c (split_insn): Use delete_insn_and_edges.
3294
3295         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3296         instructions to have branch prediction notes.
3297         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3298
3299 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3300
3301         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3302         that doesn't support it.
3303         * configure: Regenerate.
3304
3305 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3306
3307         PR target/5626
3308         * config/sparc/sparc.md (normal_branch, inverted_branch,
3309         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3310         inverted_fp_branch): Adjust calls to output_cbranch.
3311         Set length attribute.
3312         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3313         output_v9branch.  Set length attribute.
3314         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3315         predicates.
3316         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3317         (output_cbranch): Likewise.  Handle far branches.
3318         (output_v9branch): Handle far branches.
3319         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3320         Adjust prototypes.
3321         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3322         noov_compare64_op predicates.
3323
3324 2002-03-13  Jason Merrill  <jason@redhat.com>
3325
3326         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3327         into the function and constify it.
3328         * gthr-dce.h, gthr-solaris.h: Likewise.
3329
3330 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3331
3332         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3333         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3334         std_expand_builtin_va_arg if not ABI_V4.
3335
3336 2002-03-13  Jason Merrill  <jason@redhat.com>
3337
3338         * varasm.c (globalize_decl): New fn.
3339         (assemble_start_function): Use it.
3340         (asm_emit_uninitialized): Use it.
3341         (assemble_alias): Use it.
3342         (assemble_variable): Use it.
3343
3344 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3345
3346         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3347         2002-03-12 internal visibility change.
3348         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3349         visibility into SYMBOL_REF_FLAG.
3350
3351 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3352
3353         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3354         VOIDmode operand.  Add compile-time optimization for constant results.
3355
3356 2002-03-12  Jason Merrill  <jason@redhat.com>
3357
3358         * c-typeck.c (convert_for_assignment): Don't allow conversions
3359         between pointers and references.  Only allow lvalues to convert to
3360         reference.
3361
3362 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3363
3364         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3365         before prologue, to avoid scheduling problems.
3366
3367 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3368
3369         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3370         (ELIMINABLE_REGS): Add sfp->sp.
3371         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3372
3373 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3374
3375         PR optimization/5892
3376         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3377
3378 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3379
3380         * loop.c (basic_induction_var): Don't call convert_modes if mode
3381         classes are different.
3382
3383 2002-03-12  Richard Henderson  <rth@redhat.com>
3384
3385         PR optimization/5901
3386         * function.c (reposition_prologue_and_epilogue_notes): Position
3387         the markers after/before the last/first insn not deleted.
3388
3389 2002-03-12  Richard Henderson  <rth@redhat.com>
3390
3391         PR optimization/5878
3392         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3393         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3394         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3395
3396         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3397         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3398         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3399
3400         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3401         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3402         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3403         also.  Don't set it if not flag_pic.
3404         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3405         to be INVALID_REGNUM when not used.
3406
3407 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3408
3409         * expmed.c (store_bit_field): Reset alias set for memory.
3410         (extract_bit_field): Same.
3411
3412 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3413
3414         * c-common.c (c_tree_code_type, c_tree_code_length,
3415         c_tree_code_name, add_c_tree_codes): Delete.
3416         * c-common.h (add_c_tree_codes): Delete.
3417         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3418         Define.
3419         * c-objc-common.c (c_objc_common_init): Don't call
3420         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3421         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3422         objc_tree_code_name, add_objc_tree_codes): Delete.
3423         (objc_init): Don't call add_objc_tree_codes.
3424         * objc/objc-lang.c (tree_code_type, tree_code_length,
3425         tree_code_name): Define.
3426         * toplev.c (lang_independent_init): Don't set
3427         tree_code_length[IDENTIFIER_NODE].
3428         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3429         Delete definitions, moved to language front-ends.
3430         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3431         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3432         Const-ify.
3433         (tree_code_length): Change type to unsigned char.
3434
3435 2002-03-12  Richard Henderson  <rth@redhat.com>
3436
3437         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3438         internal visibility change.
3439
3440 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3441
3442         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3443         validize_mem() instead of change_address to avoid clobbering
3444         memory attributes.
3445
3446 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3447
3448         * c-lex.h (position_after_whitespace): Remove.
3449
3450 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3451
3452         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3453         (lex_string): Use unsigned char pointers.
3454
3455 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3456
3457         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3458         is not a valid memory_operand.
3459
3460 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3461
3462         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3463         * config/xtensa/lib1funcs.asm: Fix copyright to include
3464         special case for libgcc files.
3465         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3466         (__divsi3): Likewise.
3467         (__umodsi3): Likewise.
3468         (__modsi3): Likewise.
3469         * config/xtensa/lib2funcs.S: Fix copyright to include
3470         special case for libgcc files.
3471
3472 2002-03-12  Tom Rix  <trix@redhat.com>
3473
3474         * collect2.c (resolve_lib_name): Move outside of
3475         OBJECT_FORMAT_COFF ifdef.
3476         (ignore_library): Same.
3477
3478 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3479
3480         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3481
3482 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3483
3484         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3485         to function_section before writing out the constant pool.
3486
3487 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3488
3489         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3490         zero_constant.
3491         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3492
3493 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3494
3495         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3496         (adddi3): Likewise.
3497         (movdf): Likewise.
3498         (movdi): Likewise.
3499         (cmpsi splitter): Likewise.
3500         (modsi3): Fail if <= 0.
3501         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3502         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3503         (reg_or_sub_cint64_operand): Likewise.
3504         (num_insns_constant_wide): Optimize sign extension.
3505         (rs6000_legitimize_address): Likewise.
3506
3507 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3508
3509         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3510         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3511
3512 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3513
3514         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3515         address calculation.
3516
3517 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3518
3519         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3520         scratch register to DImode / TImode.
3521         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3522         register used does not overlap the target.
3523
3524 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3525
3526         * Makefile.in (debug.o): Depend on debug.h.
3527         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3528         * debug.c (do_nothing_debug_hooks): Likewise.
3529         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3530         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3531         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3532         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3533         * dwarfout.c (dwarf_debug_hooks): Likewise.
3534         * integrate.c (output_inline_function): Likewise.
3535         * objc/objc-act.c (synth_module_prologue): Likewise.
3536         * sdbout.c (sdb_debug_hooks): Likewise.
3537         * toplev.c (debug_hooks): Likewise.
3538         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3539
3540 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3541
3542         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3543         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3544         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3545         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3546         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3547         * defaults.h (POINTER_SIZE): Define.
3548         * doc/tm.texi (POINTER_SIZE): Document default.
3549
3550 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3551
3552         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3553
3554 2002-03-11  Richard Henderson  <rth@redhat.com>
3555
3556         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3557         if rebuild_label_notes_after_reload.
3558
3559 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3560
3561         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3562         emit pic register load if "internal" visibility.
3563         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3564         (cris_expand_builtin_va_arg): Do all computations on trees.
3565
3566 2002-03-11  Richard Henderson  <rth@redhat.com>
3567
3568         * rtlanal.c: Include recog.h.
3569         (keep_with_call_p): Fix thinko.
3570         * Makefile.in (rtlanal.o): Update dependencies.
3571
3572 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3573
3574         * genflags.c (gen_insn): Use IS_VSPACE.
3575         * genoutput.c (output_insn_data): Likewise.
3576         (process_template): Likewise.
3577
3578 2002-03-11  Richard Henderson  <rth@redhat.com>
3579
3580         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3581
3582 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3583
3584         * Makefile.in: Update.
3585         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3586         Update documentation.
3587         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3588         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3589
3590 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3591
3592         * Makefile.in: Give texi2pod its input file as a command line
3593         argument, not on stdin.
3594
3595 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3596             Daniel Berlin  <dan@dberlin.org>
3597
3598         C++ alias analysis improvement.
3599         * alias.c (record_component_aliases): Record aliases for base
3600         classes too.
3601
3602 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3603
3604         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3605
3606 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3607
3608         * toplev.c (vms_fopen): Remove, not needed.
3609
3610         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3611
3612         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3613
3614         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3615         for FP, already done later.
3616
3617         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3618         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3619
3620 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3621
3622         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3623         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3624         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3625         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3626         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3627         (ediv, emul, eldexp, esqrt): Likewise.
3628         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3629         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3630         (saturate): New function.
3631         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3632         (make_nan): Use a saturation value instead of a NaN if
3633         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3634         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3635         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3636         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3637         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3638         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3639         !ROUND_TOWARDS_ZERO.
3640         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3641         (ROUND_TOWARDS_ZERO): Document.
3642
3643 2002-03-11  Andreas Jaeger  <aj@suse.de>
3644
3645         * cfg.c (dump_flow_info): Remove unused variable.
3646
3647 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3648
3649         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3650         computations on trees.
3651
3652 2002-03-10  Richard Henderson  <rth@redhat.com>
3653
3654         PR 5693:
3655         * reload.c (copy_replacements_1): New.
3656         (copy_replacements): Use it to recurse through the rtx.
3657
3658 2002-03-10  Richard Henderson  <rth@redhat.com>
3659
3660         * loop.c (strength_reduce): Compute number of iterations as
3661         unsigned HOST_WIDE_INT.
3662
3663 2002-03-10  Richard Henderson  <rth@redhat.com>
3664
3665         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3666         to move away from the end of the block.
3667
3668 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3669
3670         PR preprocessor/5899
3671         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3672
3673 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3674
3675         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3676
3677         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3678
3679 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3680
3681         * config/mmix/mmix.c: Improve comments.
3682         (mmix_target_asm_function_prologue): Drop variable
3683         empty_stack_frame.  Don't allocate unused slot above fp.
3684         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3685         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3686         brace in first column.
3687         (enum reg_class): Ditto.
3688         (FIRST_PARM_OFFSET): Now 0.
3689         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3690
3691 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3692
3693         * combine.c (make_extraction): Fix error in last change.
3694
3695 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3696
3697         * c4x.c (c4x_fp_reglist): Const-ify.
3698         * cris.c (cris_print_operand): Likewise.
3699         * i386.c (ix86_va_arg): Likewise.
3700         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3701         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3702         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3703         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3704         * mcore.h (regno_reg_class): Likewise.
3705         * mips.c (gen_int_relational): Likewise.
3706         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3707         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3708         * pdp11.c (move_costs): Likewise.
3709         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3710         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3711         Likewise.
3712         * s390.h (regclass_map): Likewise.
3713         * sh.c (shift_amounts): Likewise.
3714         * sh.md (rotlsi3): Likewise.
3715
3716 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3717
3718         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3719         (ne0+5): Use new clobber to generate proper shift pattern.
3720         Patch by Michael Matz <matz@kde.org>.
3721
3722 2002-03-09  Andreas Schwab  <schwab@suse.de>
3723
3724         * gcc.c (validate_all_switches): Also handle `%W{...}'.
3725
3726 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3727
3728         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3729
3730 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3731
3732         PR middle-end/5877
3733         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3734         even for non-representable constants.
3735
3736 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3737
3738         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3739         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3740         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3741         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3742         (pop_function_context): Compute MAY_SHARE parameter for
3743         fixup_var_refs.
3744         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3745         (gen_mem_addressof): Call fixup_var_refs with new parm.
3746
3747         * combine.c (make_extraction): Don't make extension of CONST_INT.
3748
3749 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3750
3751         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3752         in o32 and o64 ABIs.
3753         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3754         but getting fixed-size structs passed in registers regardless of
3755         padding in o32 and o64 ABIs.
3756
3757         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3758         offset before loading address of argument passed by transparent
3759         reference.
3760
3761 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3762
3763         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3764
3765 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3766
3767         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3768         marker such that registers after it are saved.
3769
3770 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3771
3772         * sparc.c (arith_4096_operand): Fix error in last change.
3773
3774 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3775
3776         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3777         defaults for MEABI.
3778
3779 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3780
3781         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3782         vectors.
3783
3784 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3785
3786         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3787
3788 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
3789
3790         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3791         removed; fix return value.
3792         * combine.c (combine_instructions): Dirtify blocks where we failed to
3793         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3794         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3795
3796 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3797
3798         * gcse.c (insert_insn_end_bb): Fix typo in last change.
3799
3800 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
3801
3802         * recog.c (peephole2_optimize): Re-distribute EH edges.
3803
3804 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3805
3806         * expr.c (expand_expr): Use unsave lang hook.
3807         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3808         (LANG_HOOKS_INITIALIZER): Update.
3809         * langhooks.h (struct lang_hooks): New hook unsave.
3810         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3811         (unsave_expr_1): Remove unused lang_unsave_expr_now.
3812         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
3813         (unsave_expr_now): Remove.
3814         * tree.h (unsave_expr_now, lang_unsave,
3815         lang_unsave_expr_now): Remove.
3816         (lhd_unsave): New.
3817
3818 2002-03-08  Andreas Jaeger  <aj@suse.de>
3819
3820         * flow.c (propagate_block_delete_insn): Remove unused variable.
3821
3822 2002-03-08  Kazu Hirata  <kazu@hxi.com>
3823
3824         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3825         insn length for memory load/store.
3826
3827 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3828
3829         * doc/install.texi (--with-libiconv-prefix): Document.
3830
3831 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
3832
3833         * doc/sourcebuild.texi: Fix typo.
3834
3835 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
3836
3837         PR c/3711
3838         * builtins.c (std_expand_builtin_va_arg): Do all computations on
3839         trees.
3840
3841 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3842
3843         * rtl.c (copy_most_rtx): Move from here ...
3844         * emit-rtl.c (copy_most_rtx): ... to here.
3845
3846 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3847
3848         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3849         SUBTARGET_CPP_SIZE_SPEC.
3850         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3851
3852         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3853
3854 2002-03-07  Matt Hiller  <hiller@redhat.com>
3855
3856         * gensupport.c (first_dir_md_include): Renamed from include;
3857         change all references.
3858         (last_dir_md_include): Renamed from last_include; change all
3859         references.
3860         (init_md_reader): Unconditionally initialize base_dir whether or
3861         not filename is a relative path.
3862
3863 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
3864
3865         * config/fp-bit.c (_unord_f2): Compile it in even if
3866         US_SOFTWARE_GOFAST is enabled.
3867
3868         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3869         NULL_RTX.  Set all HFmode operations as NULL_RTX.
3870         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3871         NULL_RTX, try reversing the comparison and the operands.
3872
3873 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3874
3875         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3876         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3877         and MATCH_OP_DUP.
3878
3879 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
3880
3881         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3882
3883 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3884
3885         * basic-block.h (fixup_abnormal_edges): Declare.
3886         * reload1.c (fixup_abnormal_edges): New function.
3887         * reg-stack.c (convert_regs): Use it.
3888
3889         * gcse.c (insert_insn_end_bb): Handle trapping insns.
3890
3891         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3892
3893 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
3894
3895         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3896         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3897         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3898         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3899         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3900         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3901         unless x and y could be infinite.
3902         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3903         Check that the common type of both arguments is a real, even for
3904         targets without unordered comparisons.  Allow an integer argument
3905         to be compared against a real.
3906         (expand_tree_builtin): Use expand_unordered_cmp.
3907         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3908         * cse.c (fold_rtx): Likewise.  Fix indentation.
3909         * fold-const.c (fold_real_zero_addition_p): New.
3910         (fold): Use it, and the new HONOR_... macros.
3911         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3912         * jump.c (reversed_comparison_code_parts): After searching for
3913         the true comparison mode, use HONOR_NANS to decide whether it
3914         can be safely reversed.
3915         (reverse_condition_maybe_unordered): Remove IEEE check.
3916         * simplify-rtx.c (simplify_binary_operation): Use the new macros
3917         to decide which simplifications are valid.  Allow the following
3918         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3919         and (a - -b) to (a + b).
3920         (simplify_relational_operation): Use HONOR_NANS.
3921         * doc/tm.texi: Document the MODE_HAS_... macros.
3922
3923 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
3924
3925         * combine.c (simplify_comparison): If simplifying a logical shift
3926         right and compare with constant, force the comparison to unsigned.
3927
3928 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
3929
3930         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3931
3932         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3933         -mabi=no-altivec
3934         (alt_reg_names): Remove % for vrsave.
3935
3936 2002-03-06  Richard Henderson  <rth@redhat.com>
3937
3938         PR optimization/5844
3939         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
3940         if used indicates we've already emitted one copy of an operand.
3941         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3942         (gen_split): Supply a non-null used.
3943
3944 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3945
3946         * reload1.c (reload): Unshare all rtl after reload is done.
3947
3948         * simplify-rtx.c (simplify_plus_minus): Do not abort,
3949         but simply fail if the expression is too complex to simplify.
3950         (simplify_gen_binary): Handle simplify_plus_minus failures.
3951
3952 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3953
3954         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3955         consistently call delete_trivially_dead_insns after CSE and GCSE;
3956         fix DFI_life dumping; do jump threading after liveness; do crossjumping
3957         after liveness2; update comment in last crossjumping.
3958         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3959
3960 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
3961
3962         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3963         after completing fast dead code elimination.
3964
3965         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3966         COMPARE operator.
3967
3968 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
3969
3970         * version.c:  Fix misplaced leading blanks on first line.
3971
3972 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
3973
3974         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3975
3976 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
3977
3978         * cfgcleanup.c (mentions_nonequal_regs): New function.
3979         (thread_jump): Use it.
3980         * toplev.c (rest_of_compilation): Run jump threading after
3981         liveness.
3982
3983 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3984
3985         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3986         patch.
3987
3988 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
3989
3990         * predict.c (estimate_bb_frequencies): Do not reload the
3991         frequencies from notes.
3992
3993 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
3994
3995         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3996         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3997
3998         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3999         delete_noop_moves): Return indeger.
4000         * flow.c (ndead): New variable.
4001         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4002         BB argument; update callers.
4003         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4004         (life_analysis): Do not call purge_all_dead_edges.
4005         (update_life_info): Return number of deleted insns; print statistics.
4006         (update_life_info_in_dirty_blocks): likewise.
4007         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4008         return number of insns deleted.
4009
4010         * cse.c: Include timevar.h
4011         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4012         iterate until stabilizes; print statistics; return number of killed
4013         insns.
4014         * Makefile.in: (cse.o): Add timevar.h dependency
4015         * rtl.h (delete_trivially_dead_insns): New.
4016         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4017         * toplev.c (rest_of_compilation): Update callers.
4018
4019         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4020         (try_optimize_cfg): Do not update liveness.
4021         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4022         removal stabilizes; use delete_trivially_dead_insns.
4023
4024         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4025
4026 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4027
4028         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4029         callbacks when processing assembly language.
4030
4031 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4032
4033         * pa.h (ASM_FILE_END): Define.
4034         * som.h (ASM_FILE_END): Delete.
4035
4036         * pa.c (function_arg): Don't pass floats in general registers in
4037         indirect calls if TARGET_ELF32.
4038
4039 2002-03-05  Richard Henderson  <rth@redhat.com>
4040
4041         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4042
4043 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4044
4045         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4046
4047 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4048
4049         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4050         -r command line.  Don't hide any symbols if not building
4051         shared libgcc.
4052
4053 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4054
4055         * cfg.c (dump_flow_info): Warn about profile mismatches.
4056         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4057         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4058
4059 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4060
4061         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4062         wide volatile memory by parts.
4063
4064 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4065
4066         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4067         is NULL.
4068
4069 2002-03-05  Richard Henderson  <rth@redhat.com>
4070
4071         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4072
4073 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4074
4075         * toplev.c (documented_lang_options): Document more
4076         language-specific options.
4077         * doc/invoke.texi (Warning Options): Correct documentation for
4078         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4079         * c-decl.c (c_decode_option): Use a table to handle warning options.
4080
4081 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4082
4083         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4084         parameter to mmix_encode_section_info.
4085         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4086         relocatably.  Always produce ELF, not mmo if linking relocatably.
4087         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4088         first is non-zero, don't add symbol prefix.
4089         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4090         prototype accordingly.
4091
4092 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4093
4094         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4095
4096 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4097
4098         * configure.in: Increase required makeinfo version to 4.1.
4099         * configure: Regenerate.
4100
4101 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4102
4103         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4104         elsewhere now.
4105
4106 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4107
4108         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4109         * doc/invoke.texi: Fix @math uses.
4110
4111 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4112
4113         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4114         removal
4115
4116 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4117
4118         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4119         (powerpc-*-eabisimaltivec*): Same.
4120
4121         * config/rs6000/t-ppcendian: New.
4122
4123 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4124
4125         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4126         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4127         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4128
4129 2002-03-03  Richard Henderson  <rth@redhat.com>
4130
4131         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4132
4133 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4134
4135         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4136         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4137         tree.c, config/m68k/m68k.c:
4138         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4139         REAL_ARITHMETIC blocks unconditional.  Delete some further
4140         #ifdef blocks predicated on REAL_ARITHMETIC.
4141         * flags.h, toplev.c: Delete remaining references to
4142         flag_pretend_float.
4143
4144         * doc/invoke.texi: Remove documentation of -fpretend-float.
4145         * doc/tm.texi: Describe the various REAL_* macros as provided by
4146         real.h, not by the target configuration files.
4147
4148         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4149         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4150         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4151         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4152         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4153         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4154         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4155         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4156         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4157         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4158         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4159         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4160         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4161         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4162         config/xtensa/xtensa.h:
4163         Do not define, undefine, or mention in comments any of
4164         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4165         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4166         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4167         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4168         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4169         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4170         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4171         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4172         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4173
4174 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4175
4176         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4177         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4178         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4179         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4180         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4181         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4182         Delete.
4183         * defaults.h (BITS_PER_WORD): Define.
4184         * doc/tm.texi (BITS_PER_WORD): Document default value.
4185
4186         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4187         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4188         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4189
4190 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4191
4192         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4193         lieu of explicit sizeof/sizeof.
4194         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4195         ix86_expand_builtin): Likewise.
4196         * mips.c (mips_add_gc_roots): Likewise.
4197         * mmix.c (mmix_output_condition): Likewise.
4198         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4199         altivec_init_builtins): Likewise.
4200         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4201         * cppexp.c (Nsuff, parse_number): Likewise.
4202         * cppinit.c (builtin_array_end): Likewise.
4203         * gcc.c (n_default_compilers, process_command): Likewise.
4204         * genpreds.c (output_predicate_decls): Likewise.
4205         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4206         * lcm.c (N_ENTITIES): Likewise.
4207         * stor-layout.c (set_sizetype): Likewise.
4208
4209 2002-03-03  Richard Henderson  <rth@redhat.com>
4210
4211         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4212         for types or labels.
4213
4214 2002-03-03  Richard Henderson  <rth@redhat.com>
4215
4216         * c-decl.c (start_decl): Initialized variables are not common.
4217
4218 2002-03-02  Per Bothner  <per@bothner.com>
4219
4220         * gcc.c (option_map):  Suport new --bootclasspath option.
4221         --CLASSPATH is now just an alias for --classpath.
4222
4223 2002-03-02  Richard Henderson  <rth@redhat.com>
4224
4225         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4226         load if "internal" visibility.
4227         * doc/extend.texi: Document visibility meanings.
4228
4229 2002-03-02  Richard Henderson  <rth@redhat.com>
4230
4231         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4232         to functions as well.
4233
4234 2002-03-02  Richard Henderson  <rth@redhat.com>
4235
4236         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4237         (handle_visibility_attribute): Don't call assemble_visibility.
4238         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4239         without asmspec.  Invoke assemble_alias when needed.
4240         * varasm.c (maybe_assemble_visibility): New.
4241         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4242
4243 2002-03-02  Richard Henderson  <rth@redhat.com>
4244
4245         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4246         invoke ENCODE_SECTION_INFO with first call flag.
4247
4248         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4249         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4250         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4251         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4252         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4253         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4254         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4255         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4256         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4257         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4258         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4259         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4260         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4261         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4262         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4263         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4264         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4265         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4266         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4267         config/sh/sh.h, config/sparc/sparc.h,
4268         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4269         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4270         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4271         FIRST argument.  As needed, examine it and do nothing.
4272
4273         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4274         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4275         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4276
4277         * config/arm/t-pe (pe.o): Add dependencies.
4278
4279 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4280
4281         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4282         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4283         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4284         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4285         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4286         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4287         * defaults.h (BITS_PER_UNIT): Define.
4288         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4289
4290 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4291
4292         * config/h8300/h8300-protos.h: Add a prototype for
4293         compute_a_shift_length.
4294         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4295         (compute_a_shift_length): Likewise.
4296         (h8300_adjust_insn_length): Do not adjust insn length of shift
4297         insns.
4298         * config/h8300/h8300.md (anonymous shift patterns): Use
4299         compute_a_shift_length.
4300
4301 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4302
4303         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4304         trunc_int_for_mode.
4305
4306         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4307
4308 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4309
4310         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4311         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4312         * flags.h (flag_zero_initialized_in_bss): Declare.
4313         * toplev.c (flag_zero_initialized_in_bss): New flag.
4314         (lang_independent_options): Add flag_zero_initialized_in_bss.
4315         * tree.c (initializer_zerop): New function.
4316         * tree.h (initializer_zerop): Declare.
4317         * varasm.c (assemble_variable): If we can emit bss, put zero
4318         initializers in the bss section.
4319
4320 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4321
4322         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4323         like more than one symbol per .weak directive.
4324
4325 2002-03-01  Richard Henderson  <rth@redhat.com>
4326
4327         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4328         adjust argument_pointer by pretend_args_size.
4329         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4330
4331 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4332
4333         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4334
4335 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4336
4337         * toplev.c (rest_of_compilation): Delete dead jumptables before
4338         loop.
4339         * flow.c (delete_dead_jumptables): Make global.
4340         * rtl.h (delete_dead_jumptables): Declare.
4341
4342 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4343
4344         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4345         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4346         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4347
4348 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4349
4350         * config/h8300/h8300-protos.h: Fix formatting.
4351         * config/h8300/h8300.c: Likewise.
4352         * config/h8300/h8300.h: Likewise.
4353
4354 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4355
4356         * config/h8300/h8300.c (print_operand): Support 16-bit
4357         constant addresses.
4358         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4359
4360 2002-02-28  Richard Henderson  <rth@redhat.com>
4361
4362         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4363         pun complex values as integers; use gen_lowpart instead of
4364         gen_rtx_SUBREG.
4365         (extract_bit_field): Likewise.
4366
4367 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4368             David Edelsohn  <edelsohn@gnu.org>
4369
4370         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4371         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4372         (SUPPORTS_WEAK): Likewise.
4373         * output.h (add_weak): Add tree param.
4374         * varasm.c (add_weak): Likewise.  Save decl.
4375         (struct weak_syms): Add decl field.
4376         (mark_weak_decls): New function.
4377         (init_varasm_once): ggc_add_root mark_weak_decls.
4378         (assemble_start_function): Use ASM_WEAKEN_DECL.
4379         (assemble_variable): Likewise.
4380         (assemble_alias): Likewise.
4381         (declare_weak): Pass decl to add_weak.
4382         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4383         (remove_from_pending_weak_list): Declare and define for
4384         ASM_WEAKEN_DECL.
4385         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4386         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4387         * defaults.h (SUPPORTS_WEAK): Likewise.
4388         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4389         .weak for code sym.  Do emit .size for descriptor sym.
4390         (ASM_DECLARE_FUNCTION_SIZE): Define.
4391         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4392         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4393         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4394         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4395         .weak for code sym.
4396         (HANDLE_PRAGMA_WEAK): Remove.
4397         (ASM_WEAKEN_LABEL): Remove.
4398         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4399
4400 2002-03-01  Jason Merrill  <jason@redhat.com>
4401
4402         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4403         (TARGET_EXPR_CLEANUP): New macro.
4404
4405 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4406
4407         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4408         to take ptr_extend into account as third type of extension.
4409         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4410         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4411         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4412         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4413         * calls.c (precompute_arguments): Use new macro.
4414         (expand_call): Ditto.
4415         * combine.c (nonzero_bits): Ditto.
4416         (record_promoted_value): Ditto.
4417         * expr.c (store_expr): Ditto.
4418         (expand_expr): Ditto.
4419         * function.c (assign_parms): Ditto.
4420
4421 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4422
4423         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4424         override -shared and -shared-libgcc.
4425
4426 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4427
4428         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4429         of "ultrasparc".
4430         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4431         to be broken.
4432
4433 2002-02-28  Richard Henderson  <rth@redhat.com>
4434
4435         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4436         4 cycle latency from MM producers.
4437         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4438
4439 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4440
4441         * mklibgcc.in: Don't use GNU make extension.
4442
4443 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4444
4445         * c-parse.in (STATIC): New terminal.
4446         (scspec): New non-terminal.  Update productions accordingly.
4447         (program): Remove bogus ifc / end ifc.
4448         (array_declarator): Simplify production using STATIC.
4449
4450 2002-02-28  Jim Meyering  <meyering@lucent.com>
4451
4452         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4453         \a still means TARGET_BELL.
4454
4455 2002-02-28  Richard Henderson  <rth@redhat.com>
4456
4457         * haifa-sched.c (sched_emit_insn): New.
4458         (schedule_block): Use last_scheduled_insn to track last insn.
4459         * sched-int.h (sched_emit_insn): Prototype.
4460         * config/ia64/ia64.c (last_issued): Remove.
4461         (ia64_variable_issue): Don't set it.
4462         (nop_cycles_until): Use sched_emit_insn.
4463
4464 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4465
4466         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4467         extended constants.
4468
4469 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4470
4471         * config/h8300/h8300.c: Fix formatting.
4472         * config/h8300/h8300.h: Likewise.
4473
4474 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4475
4476         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4477         which may overwrite the high byte of the frame pointer.
4478
4479 2002-02-28  Bo Thorsen  <bo@suse.de>
4480
4481         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4482         (STARTFILE_SPEC): Add 64 bit files.
4483         (ENDFILE_SPEC): Likewise.
4484
4485 2002-02-28  Jason Merrill  <jason@redhat.com>
4486
4487         * c-decl.c (finish_function): Only warn about missing return
4488         statement with -Wreturn-type.
4489
4490 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4491
4492         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4493
4494         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4495         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4496
4497 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4498
4499         * basic-block.h (BB_REACHABLE): Renumber.
4500         (BB_DIRTY, BB_NEW): New flags.
4501         (clear_bb_flags): Declare.
4502         (update_life_info_in_dirty_blocks): Declare.
4503         * cfg.c (clear_bb_flags): New function.
4504         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4505         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4506         reorder_insns, emit_insn_after): Mark block as dirty.
4507         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4508         (update_life_info_in_dirty_blocks): New function.
4509         * recog.c (apply_change_group): Dirtify block.
4510
4511         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4512         cfg consistent.
4513         * gcse.c (delete_null_pointer_checks): Likewise.
4514
4515         * toplev.c (dump_file_index): Move cse2 after bp,
4516         add DFI_null
4517         (dump_file_info): Similary.
4518         (rest_of_compilation): Avoid most of CFG rebuilds;
4519         do first if converision after null pointer checks, do cse2
4520         after branch prediction; avoid full liveness rebuild after
4521         initializing subregs.
4522         * invoke.texi (-d options): Document -du, renumber.
4523
4524         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4525         (notice_new_block): Do not set BB_UPDATE_LIFE.
4526         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4527          merge_blocks_move_successor_nojumps, merge_blocks,
4528          try_crossjump_to_edge): Likewise.
4529         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4530         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4531         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4532         (merge_of_block): Do not use life_data_ok.
4533         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4534         (if_convert): Use BB_DIRTY mechanizm to update life.
4535         * lcm.c (optimize_mode_switching): Update
4536         update_life_info_in_dirty_blocks
4537
4538 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4539
4540         * Makefile.in (integrate.o): Update.
4541         * c-decl.c (copy_lang_decl): Rename.
4542         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4543         * integrate.c: Include langhooks.h.
4544         (copy_decl_for_inlining): Update to use langhook.
4545         * langhooks-def.h (lhd_do_nothing_t,
4546         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4547         (LANG_HOOKS_INITIALIZER): Update.
4548         * langhooks.c (lhd_do_nothing_t): New.
4549         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4550         * tree.h (copy_lang_decl): Remove.
4551 objc:
4552         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4553
4554 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4555
4556         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4557         POST_DEC, and POST_MODIFY.
4558
4559 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4560
4561         * c-typeck.c (digest_init): Remove unused parameter; all
4562         callers changed.
4563
4564 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4565
4566         * expmed.c (expand_shift): Correctly test for low part of a
4567         subreg.
4568
4569 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4570
4571         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4572         insn UIDs with insn addresses.
4573
4574 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4575
4576         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4577         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4578         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4579         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4580         gcc.c, toplev.c: Delete code implementing -traditional mode.
4581
4582         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4583         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4584         Document removal of -traditional mode for compilation, and
4585         remove documentation only relevant to that mode.
4586
4587         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4588         config/convex/convex.h, config/d30v/d30v.h,
4589         config/i386/dgux.h, config/i386/osf1elf.h,
4590         config/i386/osfelf.h, config/i386/osfrose.h,
4591         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4592         config/m68k/hp310.h, config/m88k/dgux.h,
4593         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4594         config/m88k/m88k.h, config/m88k/openbsd.h,
4595         config/mips/abi64.h, config/mips/osfrose.h,
4596         config/mips/svr4-5.h, config/mips/svr4-t.h,
4597         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4598         config/stormy16/stormy16.h: Remove all references to
4599         -traditional from target specs.  Delete all mention of the
4600         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4601         delete a couple of commented-out definitions of
4602         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4603         to -traditional.
4604
4605         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4606         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4607
4608 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4609
4610         * mklibgcc.in: Don't use \n in a line subject to
4611         interpretation by echo.
4612
4613 2002-02-27  Graham Stott  <grahams@redhat.com>
4614
4615         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4616         Constify NAME.
4617
4618         * loop.c (prescan_loop): Handle PARALLEL.
4619
4620         * unroll.c (loop_iterations): Return 0 if the add_val for
4621         a BIV is REG.
4622
4623         * final.c (output_operand_lossage): Constify PFX_STR.
4624
4625         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4626
4627 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4628
4629         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4630         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4631
4632 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4633
4634         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4635
4636 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4637
4638         * cpplex.c (_cpp_lex_token): Handle directives in macro
4639         arguments.
4640         * cpplib.c (_cpp_handle_directive): Save and restore state
4641         if parsing macro args when entering a directive.
4642         * cppmacro.c (collect_args): No need to handle directives
4643         in macro arguments.
4644         (enter_macro_context, replace_args): Use the original macro
4645         definition in case it was redefined whilst collecting arguments.
4646 doc:
4647         * cpp.texi: Update.
4648
4649 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4650
4651         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4652         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4653         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4654         method on AIX.
4655         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4656         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4657         (load_toc_v4_PIC_2): Same.
4658
4659 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4660
4661         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4662
4663 2002-02-26  Richard Henderson  <rth@redhat.com>
4664
4665         * config/alpha/alpha.md (ashldi_se): Re-enable.
4666
4667 2002-02-26  Richard Henderson  <rth@redhat.com>
4668
4669         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4670         MODULE_LOCAL_P; improve commentary.
4671
4672 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4673
4674         * doc/cpp.texi: Clarify documentation of relationship between
4675         #line and #include.
4676
4677 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4678
4679         * config/h8300/h8300-protos.h: Update the prototype for
4680         compute_logical_op_length.  Add the prototype for
4681         compute_logical_op_cc.
4682         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4683         code from operands.
4684         (compute_logical_op_cc): New.
4685         * config/h8300/h8300.md: Combine all the logical op patterns
4686         in HImode and SImode.  Use compute_logical_op_cc.
4687
4688 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4689
4690         * config/i386/i386.c (print_operand): Don't append ATT-style
4691         length suffixs to x87 opcodes when in Intel mode.
4692
4693 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4694
4695         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4696         (init_emit_once): Update calls.
4697         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4698         (init_syntax_once): Prototype.
4699
4700 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4701
4702         * pa-linux.h (LIB_SPEC): Update definition.
4703         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4704
4705 2002-02-26  Richard Henderson  <rth@redhat.com>
4706
4707         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4708         if we emitted a stop bit.
4709
4710 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4711
4712         * configure.in (libgcc_visibility): Substitute.
4713         * configure: Rebuilt.
4714         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4715         defined symbols .hidden.
4716
4717 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4718
4719         * attribs.c (c_common_attribute_table): Add visibility.
4720         (handle_visibility_attribute): New function.
4721         * varasm.c (assemble_visibility): New function.
4722         * output.h (assemble_visibility): Add prototype.
4723         * tree.h (MODULE_LOCAL_P): Define.
4724         * crtstuff.c (__dso_handle): Use visibility attribute.
4725         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4726         for MODULE_LOCAL_P symbols too.
4727         * config/ia64/ia64.c (ia64_encode_section_info): Handle
4728         MODULE_LOCAL_P symbols the same way as local symbols.
4729         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4730         into .sdata/.sbss by the user.
4731         * doc/extend.texi (Function Attributes): Document visibility
4732         attribute.
4733
4734 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4735
4736         PR debug/5770
4737         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4738         STRING_CST initializer spanning the whole variable without
4739         embedded zeros.
4740         If expand_expr returned MEM, don't use it.
4741
4742 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
4743
4744         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4745         generate a die for the lexical block.
4746
4747 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4748
4749         * config/h8300/h8300-protos.h: Add a prototype for
4750         compute_logical_op_length.
4751         * config/h8300/h8300.c (compute_logical_op_length): New.
4752         * config/h8300/h8300.md (anonymous logical patterns): Use
4753         compute_logical_op_length for length.
4754
4755 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4756
4757         * dwarf2out.c (modified_type_die): Do not call type_main_variant
4758         for vectors.
4759         (gen_type_die): Same.
4760
4761         * attribs.c (handle_vector_size_attribute): Set debug information.
4762
4763 2002-02-26  Daniel Egger  <degger@fhm.edu>
4764
4765         * config/rs6000/rs6000.md: Swap define_insn attributes to
4766         fix incorrect generation of merge high instructions instead
4767         of merge low.
4768
4769 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4770
4771         * c-typeck.c (really_start_incremental_init): Use
4772         bitsize_zero_node for vectors.
4773
4774 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4775
4776         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4777         ("*set_vrsave_internal"): Same.
4778
4779 2002-02-25  Richard Henderson  <rth@redhat.com>
4780
4781         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4782         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
4783
4784 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
4785
4786         PR target/5755
4787         * config/i386/i386.c (ix86_return_pops_args): Only pop
4788         fake structure return argument if it was passed on the stack.
4789
4790 2002-02-25  Jason Merrill  <jason@redhat.com>
4791
4792         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4793         RESULT_DECL.
4794
4795 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4796
4797         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4798         link with shared_name only.
4799         * doc/invoke.texi (Link Options): Document new behavior.
4800
4801 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4802
4803         * c-typeck.c (push_init_level): Handle vectors.
4804
4805 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4806
4807         * config/sparc/sparc.c (const64_high_operand): Zero-extend
4808         operands of SPARC_SETHI_P.
4809         (input_operand): Likewise.
4810         (sparc_emit_set_const32): Likewise.
4811         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4812         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4813         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
4814         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4815         (movdi_insn_sp64_vis): Likewise.
4816         (movdi split, movdf split): Use SETHI32.
4817         * doc/md.texi: Document SPARC constraints L, M and N.
4818
4819 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4820
4821         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4822         ("*set_vrsave_internal"): use mfspr for Darwin.
4823
4824         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4825         gen_get_vrsave_internal.
4826
4827 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4828
4829         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4830
4831 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4832
4833         * cpplex.c (cpp_interpret_charconst): Get signedness or
4834         otherwise of wide character constants correct.
4835         * cppexp.c (lex): Get signedness of wide charconsts correct.
4836
4837 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4838
4839         * optabs.c (widen_operand): Only call convert_modes for
4840         promoted SUBREG if signedness matches.
4841         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4842
4843 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4844
4845         * cpplib.c (glue_header_name): Use local buffer to build up
4846         header name.
4847
4848 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4849
4850         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4851
4852 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4853
4854         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4855         H8/300[HS] separately.
4856         * config/h8300/h8300.md: Remove the early clobber constraint
4857         from bit field patterns.
4858
4859 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4860
4861         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4862         register_operand.
4863         (mulhisi3): Likewise.
4864         (umulqisi3): Likewise.
4865         (umulhisi3): Likewise.
4866
4867 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4868
4869         * cppinit.c (output_deps): Correct test for stdout output.
4870         (init_dependency_output): Cure warning.
4871
4872 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4873
4874         * expr.c (store_expr): When converting expression to promoted
4875         equivalent type, allow using SUBREG_REG of TARGET as the target
4876         of the expansion of EXP.
4877         * loop.c (basic_induction_var, case SUBREG): Always look inside.
4878         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4879         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4880         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4881         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4882
4883 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4884
4885         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4886         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4887         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4888
4889 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
4890
4891         PR optimization/5747
4892         * loop.c (scan_loop): Update reg info if move_movables created new
4893         pseudos.
4894
4895 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4896
4897         * gcc.c (init_gcc_spec): Revert last change.
4898
4899 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4900
4901         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4902         gpc_reg_operand constraint.
4903
4904 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
4905
4906         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4907         Simplify comparison of `low'.
4908         (add_operand): Fix formatting.
4909         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4910         (mask_operand): Disallow mask to wrap in 64-bit mode.
4911         (rs6000_stack_info): Remove redundant test setting push_p.
4912         (output_toc): Fix formatting.
4913         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4914         cc_reg_not_cr0_operand constraint.
4915         (booldi3, boolcdi3 splitters): Same.
4916
4917 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
4918
4919         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4920
4921 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
4922
4923         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4924         gcc invoked with -shared-libgcc.
4925
4926 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
4927
4928         PR c++/5748
4929         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4930         decl if any of elements was TREE_USED.
4931
4932 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
4933
4934         * config/sparc/sol2.h: Don't include sys/mman.h.
4935         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4936         (arith_4096_operand): Don't throw high bits away.
4937         (const64_operand): Take sign extension of CONST_INTs into account.
4938         (const64_high_operand, sparc_emit_set_const32): Likewise.
4939         (GEN_HIGHINT64): Likewise.
4940         (sparc_emit_set_const64_quick1): Likewise.
4941         (const64_is_2insns): Likewise.
4942         (print_operand): Use trunc_int_for_mode for sign extension.
4943         * config/sparc/sparc.h (SMALL_INT32): Likewise.
4944         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4945         chars.  Assume CONST_INT is already properly sign-extended.
4946         (movdi split): Sign-extend each SImode part.
4947         (andsi3 split): Don't mask high bits off, so that result
4948         remains properly sign-extend.
4949         (iorsi3 split): Likewise.
4950         (xorsi3 split): Likewise.
4951
4952 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
4953
4954         * fold-const.c (fold): Fix typo in comments.
4955
4956 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
4957
4958         * Makefile.in (langhooks.o): Update dependencies.
4959
4960 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
4961
4962         * langhooks.c: Include flags.h.
4963
4964 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
4965
4966         * testsuite/gcc.dg/attr-alwaysinline.c: New.
4967
4968         * c-common.c (c_common_post_options): Set inline trees by
4969         default.
4970
4971         * doc/extend.texi (Function Attributes): Document always_inline
4972         attribute.
4973         Update documentation about inlining when not optimizing.
4974
4975         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4976
4977         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4978         unless DECL_ALWAYS_INLINE.
4979
4980         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4981         unless DECL_ALWAYS_INLINE.
4982         (c_disregard_inline_limits): Disregard if always_inline set.
4983
4984         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4985         Disregard if always_inline set.
4986         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4987         unless DECL_ALWAYS_INLINE.
4988
4989         * attribs.c (handle_always_inline_attribute): New.
4990         (c_common_attribute_table): Add always_inline.
4991
4992         * config/rs6000/altivec.h: Add prototypes for builtins
4993         requiring the always_inline attribute.
4994
4995 2002-02-21  Eric Christopher  <echristo@redhat.com>
4996
4997         * expmed.c (store_bit_field): Try to simplify the subreg
4998         before generating a new one when when the mode size of
4999         value is less than maxmode.
5000
5001 2002-02-21  Richard Henderson  <rth@redhat.com>
5002
5003         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5004         than gen_rtx_PLUS to form the sum.
5005         * explow.c (force_reg): Rearrange to not allocate new pseudo
5006         when force_operand returns a register.
5007         * expr.c (expand_assignment): Allow offset_rtx expansion to
5008         return a sum.  Do not force addresses into registers.
5009         (expand_expr): Likewise.
5010         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5011         to canonicalize arithmetic that didn't simpify.
5012         (simplify_plus_minus): New argument force; update
5013         all callers.  Don't split CONST unless we can do something with it,
5014         and wouldn't lose the constness of the operands.
5015
5016         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5017         that we generated earlier.
5018
5019 2002-02-21  Tom Tromey  <tromey@redhat.com>
5020
5021         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5022         (output_line_info): Use constant `1', with a long explanatory
5023         comment.
5024         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5025
5026 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5027
5028         * jump.c (redirect_jump): If old label has no UID, don't try to
5029         delete it.
5030
5031 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5032
5033         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5034         If input is constant, do shifts at compile time.
5035
5036 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5037
5038         * doc/extend.texi: Fix some more overfull hboxes.
5039
5040 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5041
5042         PR optimization/4994
5043         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5044         register moves.
5045
5046 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5047
5048         PR c++/4574
5049         * expr.h (expand_and): Add mode argument.
5050         * expmed.c (expand_and): Add mode argument.
5051         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5052         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5053         * except.c (expand_builtin_extract_return_addr): Likewise.
5054         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5055         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5056         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5057         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5058         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5059         gen_rtx (CONST_INT, VOIDmode, x).
5060
5061 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5062
5063         PR c/4697:
5064         * stmt.c (warn_if_unused_value): Move side effects test once more.
5065
5066 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5067
5068         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5069         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5070
5071 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5072
5073         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5074         SUBREG or ZERO_EXTEND.
5075
5076 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5077
5078         * sh.h (current_function_anonymous_args): Remove.
5079         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5080         of current_function_varargs and current_function_stdarg is set.
5081         * sh.c (sh_expand_prologue): Check current_function_varargs /
5082         current_function_stdarg / TARGET_SH5 instead of
5083         current_function_anonymous_args.
5084
5085         * sh64.h (TARGET_VERSION): Define.
5086
5087 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5088
5089         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5090         VRSAVE_REGNO on TARGET_ALTIVEC.
5091
5092 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5093
5094         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5095         bits of SImode const_int.
5096         (includes_rshift_p): Likewise.
5097         (print_operand): Call mask_operand and mask64_operand with correct
5098         mode.
5099         (rs6000_output_function_epilogue): Pad traceback table to word.
5100         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5101         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5102         mask64_operand with correct mode.
5103         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5104
5105 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5106
5107         PR debug/4461
5108         * varasm.c (get_pool_constant_mark): New.
5109         * rtl.h (get_pool_constant_mark): Add prototype.
5110         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5111         be represented if it has not been output.
5112
5113 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5114
5115         * combine.c (do_SUBST): Sanity check substitutions of
5116         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5117         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5118         CONST_INT into its operand.
5119         (known_cond): Likewise, for ZERO_EXTEND.
5120         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5121         allow for simplification of wide modes.  Reject CONST_INTs in
5122         ZERO_EXTEND when their actual mode is not given.
5123
5124 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5125
5126         * c-decl.c (pushdecl): If no global declaration is found for an
5127         extern declaration in block scope, try a limbo one.
5128
5129 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5130
5131         PR c++/4401
5132         * c-common.c (pointer_int_sum): Moved from...
5133         * c-typeck.c (pointer_int_sum): ...here.
5134         * c-common.h (pointer_int_sum): Add prototype.
5135
5136 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5137
5138         PR c++/5713
5139         * c-decl.c (duplicate_decls): Return 0 if issued error about
5140         redeclaration.
5141
5142 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5143             Jakub Jelinek  <jakub@redhat.com>
5144
5145         PR c/4389
5146         * tree.c (host_integerp): Ensure that the constant integer is
5147         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5148         when pos is zero or non-zero respectively.  Clarify comment.
5149         * c-format.c (check_format_info_recurse): Fix host_integerp
5150         usage; the pos argument should be zero when assigning to a
5151         signed HOST_WIDE_INT.
5152
5153 2002-02-20  Richard Henderson  <rth@redhat.com>
5154
5155         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5156         of the operand, rather than assuming TImode.
5157         (ix86_expand_binop_builtin): Cope with commutative patterns
5158         using nonimmediate_operand for both operands.
5159         (ix86_expand_timode_binop_builtin): Likewise.
5160         (ix86_expand_store_builtin): Validate operand 1.
5161         (ix86_expand_unop1_builtin): Likewise.
5162
5163 2002-02-20  Philip Blundell  <philb@gnu.org>
5164
5165         PR 5705
5166         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5167
5168 2002-02-20  Richard Henderson  <rth@redhat.com>
5169
5170         PR c/5615
5171         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5172
5173 2002-02-20  Tom Tromey  <tromey@redhat.com>
5174
5175         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5176         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5177         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5178         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5179         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5180         unconditionally.
5181
5182 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5183
5184         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5185           for (const_int 0) in X not just INTVAL.
5186
5187 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5188
5189         * doc/extend.texi: Avoid or reduce overfull hboxes.
5190
5191 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5192
5193         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5194         operations if the field does not start at a mode boundary.
5195
5196 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5197
5198         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5199         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5200         Also done for -Acpu and -Amachine.
5201
5202 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5203
5204         * cppinit.c (init_dependency_output): Take deps output file
5205         from -o if none given with -MF.  Suppress normal output.
5206         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5207         * doc/cpp.texi, doc/invoke.texi: Update.
5208
5209 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5210
5211         * toplev.c (output_quoted_string): Write unprintable
5212         characters with octal escapes.
5213
5214 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5215
5216         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5217         really_call_used[VRSAVE_REGNO] if not Altivec.
5218
5219 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5220
5221         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5222         MODE_MASK.
5223         (constant_pool_expr_1): Fix formatting.
5224         (rs6000_legitimize_reload_address): Likewise.
5225
5226 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5227
5228         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5229         now that we have one.
5230
5231 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5232
5233         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5234         end of first block of bitfields (which was only seven bits);
5235         rename dummy to unused_1; remove comment which is no longer true.
5236
5237 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5238
5239         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5240
5241 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5242
5243         PR 5399
5244         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5245         if generating PIC.
5246
5247         PR 5054
5248         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5249         arm_is_longcall_p rather than inspecting call-type cookie
5250         directly.
5251         (call_value_insn) [TARGET_THUMB]: Likewise.
5252
5253 2002-02-19  Graham Stott  <grahams@redhat.com>
5254
5255         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5256
5257 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5258
5259         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5260         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5261         (FP_SAVE_INLINE): Delete.
5262
5263         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5264         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5265         * config/rs6000/t-ppccomm: Build crtsavres.o.
5266         * config/rs6000/crtsavres.asm: New file.
5267
5268 2002-02-19  Philip Blundell  <philb@gnu.org>
5269
5270         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5271         functions.
5272         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5273         (output_return_instruction): Allow interrupt functions to return with
5274         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5275         (arm_expand_prologue): Subtract 4 before stacking LR in an
5276         interrupt function.
5277
5278 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5279
5280         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5281         decl, not just FUNCTION_DECL.
5282         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5283         (arm_assemble_integer): Likewise.
5284         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5285         marked local.
5286
5287 2002-02-19  matthew green  <mrg@eterna.com.au>
5288
5289         * config.gcc (sparc-*-netbsdelf*): Enable target.
5290         (sparc64-*-netbsd*): New target.
5291         * config/sparc/netbsd-elf.h: New file.
5292         * config/sparc/t-netbsd64: New file.
5293
5294 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5295
5296         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5297
5298 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5299
5300         * doc/invoke.texi: explicitly list the style guidelines that
5301         -Weffc++ checks for.
5302
5303 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5304
5305         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5306
5307 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5308
5309         PR other/5718
5310         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5311         only if not -E.  If -E, pass -o through to the preprocessor.
5312
5313 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5314
5315         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5316         register number with an appropriate macro.
5317
5318 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5319
5320         * doc/rtl.texi (Constants): Close @code tag.
5321
5322 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5323
5324         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5325         ("mmx_uavgv4hi3"): Same.
5326         ("pmulhrwv4hi3"): Same.
5327
5328         * tree-inline.c (walk_tree): Handle vectors.
5329
5330         * c-common.c (constant_expression_warning): Handle vectors.
5331         (overflow_warning): Same.
5332
5333         * sched-deps.c (sched_analyze_2): Handle vectors.
5334
5335         * rtlanal.c (rtx_unstable_p): Handle vectors.
5336         (rtx_varies_p): Same.
5337         (count_occurrences): Same.
5338         (regs_set_between_p): Same.
5339         (modified_between_p): Same.
5340         (modified_in_p): Same.
5341         (volatile_insn_p): Same.
5342         (volatile_refs_p): Same.
5343         (side_effects_p): Same.
5344         (may_trap_p): Same.
5345         (inequality_comparisons_p): Same.
5346         (replace_regs): Same.
5347         (computed_jump_p_1): Same.
5348
5349         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5350         argument.
5351         (inner_mode_array): New.
5352         (copy_rtx): Handle vectors.
5353         (copy_most_rtx): Same.
5354         (rtx_equal_p): Same.
5355         (get_mode_alignment): Adjust for vectors.
5356
5357         * resource.c (mark_referenced_resources): Handle vectors.
5358         (mark_set_resources): Same.
5359
5360         * reload1.c (eliminate_regs): Handle vectors.
5361         (elimination_effects): Same.
5362         (scan_paradoxical_subregs): Same.
5363
5364         * reload.c (subst_reg_equivs): Handle vectors.
5365
5366         * regrename.c (scan_rtx): Handle vectors.
5367
5368         * regclass.c (reg_scan_mark_refs): Handle vectors.
5369
5370         * recog.c (find_single_use_1): Handle vectors.
5371
5372         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5373         (contains_replace_regs): Same.
5374         (memref_referenced_p): Same.
5375
5376         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5377         (subst_constants): Same.
5378
5379         * genattrtab.c (attr_copy_rtx): Handle vectors.
5380         (encode_units_mask): Same.
5381         (clear_struct_flag): Same.
5382         (count_sub_rtxs): Same.
5383
5384         * gcse.c (want_to_gcse_p): Handle vectors.
5385         (oprs_unchanged_p): Same.
5386         (hash_expr_1): Same.
5387         (oprs_not_set_p): Same.
5388         (expr_killed_p): Same.
5389         (compute_transp): Same.
5390         (store_ops_ok): Same.
5391
5392         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5393         of vectors.
5394         (fixup_var_refs_1): Same.
5395         (instantiate_virtual_regs_1): Same.
5396
5397         * fold-const.c (operand_equal_p): Handle vectors.
5398         (fold): Same.
5399         (rtl_expr_nonnegative_p): Same.
5400
5401         * flow.c (mark_used_regs): Handle vectors.
5402
5403         * df.c (df_uses_record): Handle vectors.
5404
5405         * cselib.c (cselib_subst_to_values): Handle vectors.
5406         (cselib_mem_conflict_p): Same.
5407         (hash_rtx): Same.
5408
5409         * cse.c (canon_reg): Handle vectors.
5410         (fold_rt): Same.
5411         (cse_process_notes): Same.
5412         (count_reg_usage): Same.
5413         (canon_hash): Same.
5414
5415         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5416
5417         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5418
5419         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5420         (gen_rtx): Handle CONST_VECTOR.
5421         (gen_const_vector_0): New.
5422         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5423         (reset_used_flags): Same.
5424         (copy_insn_1): Same.
5425         (initializer_constant_valid_p): Handle VECTOR_CST.
5426
5427         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5428
5429         * doc/rtl.texi (Constants): Document const_vector.
5430         (CONST0_RTX): Update for vectors.
5431         (RTL sharing): Same.
5432
5433         * print-tree.c (print_node): Add case for VECTOR_CST.
5434
5435         * tree.h (TREE_VECTOR_CST_ELTS): New.
5436         (struct tree_vector): New.
5437         (union tree_node): Add vector node.
5438         (build_vector): Add prototype.
5439
5440         * tree.def (VECTOR_CST): New.
5441
5442         * tree.c (build_vector): New.
5443
5444         * expmed.c (make_tree): Handle CONST_VECTOR.
5445
5446         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5447         (CONST_VECTOR_ELT): New.
5448         (CONST_VECTOR_NUNITS): New.
5449
5450         * machmode.h (GET_MODE_INNER): New.
5451         (DEF_MACHMODE): Accept 8th arg.
5452
5453         * machmode.def: Add 8th argument for vector inner mode.
5454         Add inner vector modes for vectors.
5455
5456         * rtl.def (VEC_CONST): Remove.
5457         (CONST_VECTOR): New.
5458
5459         * expr.c (clear_storage): Allow vectors.
5460         (is_zeros_p): Handle VECTOR_CST.
5461
5462         * varasm.c (output_constant_pool): Handle vectors.
5463         (rtx_const): Add veclo and vechi fields.
5464         (kind): Add RTX_VECTOR.
5465         (decode_rtx_const): Add case for vector.
5466
5467         * config/rs6000/rs6000-protos.h: Add zero_constant.
5468
5469         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5470         constants.  Force easy vector constants into memory.
5471         (easy_vector_constant): New.
5472         (emit_easy_vector_constant): New.
5473         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5474         darwin.
5475
5476         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5477         instruction does.
5478         ("altivec_lvxl"): Same.
5479         (altivec_lvebx): Same.
5480         (altivec_lvehx): Same.
5481         (altivec_lvewx): Same.
5482         ("*movv4si_const0"): New.
5483         ("*movv4sf_const0"): New.
5484         ("*movv8hi_const0"): New.
5485         ("*movv16qi_const0"): New.
5486
5487 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5488
5489         * config/h8300/h8300.c (notice_update_cc): Use
5490         cc_status.value2.
5491
5492 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5493
5494         * config/h8300/h8300.md (divmod patterns): Change the
5495         constraints for operands[1] to register_operand.
5496
5497 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5498
5499         * config/h8300/h8300-protos.h: Remove the prototype for
5500         p_operand.
5501         * config/h8300/h8300.c (p_operand): Remove.
5502         * config/h8300/h8300.md: Replace p_operand with
5503         const_int_operand.
5504
5505 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5506
5507         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5508         comment.
5509         (output_return_instruction): Allow use of LDR to unstack
5510         return addresss even for interrupt handlers or when
5511         interworking.  If compiling for ARMv5, use interworking-safe
5512         return instructions by default.  Remove duplicated code and
5513         lengthy "strcat" sequences.
5514
5515 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5516
5517         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5518         (LINK_EH_SPEC): Define.
5519         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5520
5521 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5522
5523         * config/s390/s390.c (s390_emit_prologue): Do not set the
5524         frame_related flag for call-clobbered registers.
5525
5526 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5527
5528         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5529         (construct_container): Fix handling of SSE operands.
5530         (ix86_expand_builtin): Fix handling of 64bit pointers.
5531         (mmx_maskmovq_rex): New pattern.
5532
5533 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5534
5535         * regrename.c (kill_set_value): Handle subregs properly.
5536
5537 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5538
5539         * objc/objc-act.c (handle_impent): Remove leading '*'
5540         from objc_class_name.
5541
5542 2002-02-17  Richard Henderson  <rth@redhat.com>
5543
5544         * config/alpha/alpha.c (some_small_symbolic_operand,
5545         some_small_symbolic_operand_1, split_small_symbolic_operand,
5546         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5547         Handle small SYMBOL_REFs anywhere, not just inside memories.
5548         * config/alpha/alpha-protos.h: Update.
5549         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5550         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5551
5552 2002-02-17  Roland McGrath  <roland@frob.com>
5553
5554         * config.gcc (powerpc-*-gnu-gnualtivec*,
5555         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5556         * config/rs6000/gnu.h: New file.
5557         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5558         Grok "gnu" in rs6000_abi_name.
5559         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5560         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5561         Grok -mcall-gnu analogous to -mcall-linux et al.
5562         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5563         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5564         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5565
5566 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5567
5568         PR c/3444:
5569         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5570         shortening.
5571
5572 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5573
5574         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5575         ENDFILE_SPEC before (re)defining them.
5576
5577 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5578
5579         * config/h8300/h8300.c: Fix formatting.
5580         * config/h8300/h8300.h: Likewise.
5581
5582 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5583
5584         * doc/tm.texi: Explain why empty strings should not be
5585         marked for translation.
5586
5587 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5588
5589         * final.c (output_operand_lossage): Changed to accept
5590         printf style arguments. Change calls where necessary.
5591         * output.h (output_operand_lossage): Change declaration
5592         accordingly. Update copyright.
5593         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5594         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5595         Update copyright date where necessary.
5596
5597         * config/i386/i386.c (print_operand): Likewise. Remove use of
5598         sprintf.
5599
5600         * config/cris/cris.c (cris_operand_lossage): Likewise.
5601         Rename parameter so that exgettext recognizes it as
5602         translatable message.
5603         (LOSE_AND_RETURN): Rename parameter to msgid.
5604
5605 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5606
5607         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5608         hard coded register number with an appropriate macro.
5609         (HARD_REGNO_MODE_OK): Likewise.
5610         (ARG_POINTER_REGNUM): Likewise.
5611         (STATIC_CHAIN_REGNUM): Likewise.
5612         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5613         * config/h8300/h8300.md (define_constants): Define more
5614         register numbers.
5615
5616 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5617
5618         * config/i386/i386.h: Don't mark empty strings for translation.
5619
5620 2002-02-16  H.J. Lu <hjl@gnu.org>
5621
5622         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5623
5624 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5625
5626         * cppinit.c (merge_include_chains): Check for brack being
5627         NULL before attempting to merge it with qtail.
5628
5629 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5630
5631         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5632         DBX_DEBUG.
5633
5634 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5635
5636         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5637
5638 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5639
5640         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5641         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5642         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5643
5644 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5645
5646         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5647         now only if !TARGET_FIX.
5648         (*movsi_nt_vms_fix): New pattern.
5649
5650 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5651
5652         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5653         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5654         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5655         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5656         (alpha_start_function, alpha_expand_epilogue): Likewise.
5657         (unicosmk_gen_dsib): Likewise.
5658
5659 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5660
5661         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5662
5663 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5664
5665         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5666         check_and_change_labels, s390_final_chunkify): Delete.
5667         (s390_split_branches, s390_chunkify_pool): New functions.
5668         (s390_function_prologue): Call them.
5669
5670         * config/s390/s390.h (S390_REL_MAX): Delete.
5671         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5672
5673         * config/s390/s390.md (cjump, icjump, jump): Fix length
5674         attribute calculation.
5675
5676
5677 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5678
5679         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5680         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5681
5682 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5683
5684         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5685         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5686         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5687
5688 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5689
5690         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5691
5692 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5693
5694         * reload.c (find_dummy_reload): Check that an output register
5695         is valid for its mode.
5696
5697 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5698
5699         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5700         to simplify it.
5701
5702         * function.c (assign_parms): Demote promoted argument passed by
5703         transparent reference.
5704
5705 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5706
5707         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5708         -Acpu() and -Amachine() to eliminate warnings.
5709
5710 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5711
5712         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5713
5714 2002-02-14  Kazu Hirata  <kazu@hxi.com>
5715
5716         * config/h8300/h8300-protos.h: Update the prototype for
5717         const_costs.
5718         * config/h8300/h8300.c (const_costs): Treat SET as a little
5719         more expensive operation.
5720         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5721         reference to const_costs.
5722
5723 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
5724
5725         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5726
5727 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
5728
5729         PR c/5503:
5730         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5731         use arguments from newtype.
5732
5733 2002-02-13  Eric Christopher  <echristo@redhat.com>
5734
5735         * config/mips/mips.c (override_options): Add check for march/mipsX
5736         on the same command line. Fix error message in cpu processing.
5737         Remove architecture and ISA checks.
5738
5739 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5740
5741         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5742
5743         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5744
5745 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5746
5747         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5748         alternatives.
5749         ("*movv8hi_internal1"): Same.
5750         ("*movv16qi_internal1"): Same.
5751         ("*movv4sf_internal1"): Same.
5752
5753         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5754         not push_reload for altivec modes.
5755
5756 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
5757
5758         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5759         all RTEMS targets including removal of #includes from config/*/rtems*.h
5760         file and adding them to tm_file setting. Added xm_defines=POSIX to
5761         many targets.
5762         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5763         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5764         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5765         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5766         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5767         config/m68k/rtemself.h: Ditto.
5768         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5769         config/mips/rtems64.h: Ditto.
5770         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5771         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5772         Ditto.
5773         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5774         config/sparc/rtemself.h: Ditto.
5775         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5776         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5777         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5778         more like arm-elf.
5779         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5780         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5781         target made more similar to i386-elf.
5782         * config/i386/t-rtems-i386: Added soft float support and multilibs.
5783         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5784         be similar to config/m68k/t-m68kelf.
5785         * gthr-rtems.h: Encapsulate with extern "C" for C++.
5786
5787 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
5788
5789         * regmove.c (kill_value): Handle subregs.
5790
5791 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5792
5793         * i386.md (mul patterns): Allow memory operand to be first;
5794         add expanders where needed; fix constraints.
5795         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5796         Allow memory operand to be the first.
5797
5798         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5799         operands.
5800
5801 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5802
5803         PR c/5681:
5804         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5805         GET_MODE (x).
5806
5807 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5808
5809         PR optimization/5547:
5810         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5811         all valid IA-32 address modes involving non-scaled %ebx and
5812         GOT/GOTOFF as displacement.
5813
5814 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5815
5816         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5817         after emitting ltorg insns.
5818
5819         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5820         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5821         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5822         *abssf2): Fix "op_type" attribute.
5823
5824 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
5825
5826         * mkconfig.sh: Avoid using a subshell redirect.
5827         ($output.T): Change to $(output)T.
5828         (ENABLE_NLS): Remove unneeded undef.
5829
5830         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5831         * config/alpha/x-vms (libsubdir): Define.
5832
5833         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5834         register frame procedures. Optimize retrieving context.
5835
5836         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5837         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5838         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5839
5840 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5841
5842         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5843         Make same change as for find_base_value.
5844
5845 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5846
5847         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5848         of QImode and SImode.
5849
5850 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5851
5852         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5853         length computation of movsi.
5854         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5855
5856 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5857
5858         * config/h8300/h8300.md (subqi3): Tighten the predicate for
5859         operands[2] to register_operand.
5860
5861 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
5862
5863         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5864
5865 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
5866
5867         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5868         for altivec_lvx* and altivec_stvx*.
5869         ("*movv4si_internal"): Add constraint for loading from GPRs.
5870         ("*movv8hi_internal1"): Same.
5871         ("*movv16qi_internal1"): Same.
5872         ("*movv4sf_internal1"): Same.
5873
5874         * config/rs6000/rs6000.c (altivec_register_operand): New.
5875
5876         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5877         altivec_register_operand.
5878
5879 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
5880
5881         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5882         handle SYMBOL_REF.
5883
5884 2002-02-13  Stan Shebs  <shebs@apple.com>
5885
5886         * c-typeck.c (digest_init): Handle vectors.
5887         (really_start_incremental_init): Same.
5888         (pop_init_level): Same.
5889         (process_init_element): Same.
5890
5891         * varasm.c (output_constant): Same.
5892
5893         * expr.c (clear_storage): Same.
5894         (store_constructor): Same.
5895
5896 2002-02-12  Eric Christopher  <echristo@redhat.com>
5897
5898         * explow.c (hard_function_value): Add comment explaining
5899         signed/unsigned comparison.
5900
5901 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
5902
5903         * jump.c (never_reached_warning): Add finish argument.
5904         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5905         real insn after end.
5906         * rtl.h (never_reached_warning): Adjust prototype.
5907         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5908         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5909         never_reached_warning.
5910
5911 2002-02-12  Graham Stott  <grahams@redhat.com>
5912
5913         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5914
5915 2002-02-12  Kazu Hirata  <kazu@hxi.com>
5916
5917         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5918         logical shifts on H8/300.
5919         (shift_alg_si): Improve several shifts on H8/300.
5920         (get_shift_alg): Likewise.
5921
5922 2002-02-12  Graham Stott  <grahams@redhat.com>
5923
5924         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5925
5926 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5927
5928         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5929         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5930
5931 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
5932
5933         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5934         non-CONST_INT through default_assemble_integer.
5935         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5936         <case 8>: Abort for CONST_DOUBLE.
5937
5938 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5939
5940         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5941         is specified.
5942         * config/pa/pa-linux.h (LIB_SPEC): Delete.
5943         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5944
5945 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
5946
5947         * config/stormy16/stormy16.md (zero_extendqihi2): New.
5948
5949 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
5950
5951         * regrename.c (regrename_optimize): Don't accept a
5952         part-clobbered register if the replaced register is not part
5953         clobbered.
5954
5955         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5956         take padding into account when computing the argument value.
5957
5958         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5959
5960         * combine.c (try_combine): Apply substitutions in
5961         CALL_INSN_FUNCTION_USAGE too.
5962
5963 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
5964
5965         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5966         __builtin_altivec_abs*.
5967         (bdesc_abs): New.
5968
5969         * config/rs6000/rs6000.h (rs6000_builtins): Add
5970         ALTIVEC_BUILTIN_ABS*.
5971
5972         * config/rs6000/altivec.h: Use const char for builtins expecting
5973         literals.
5974         (vec_abs): New versions for C and C++.
5975         (vec_abss): Same.
5976
5977 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5978
5979         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5980         using Pmode.
5981
5982 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5983
5984         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5985         constant definition from h8300.md.
5986         (FRAME_POINTER_REGNUM): Likewise.
5987         * config/h8300/h8300.md (define_constants): Add FP_REG.
5988
5989 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5990
5991         * config/h8300/h8300.c (print_operand): Remove redundant code.
5992
5993 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5994
5995         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5996         * config/h8300/h8300.c (byte_reg): Make it static.
5997
5998 2002-02-10  Richard Henderson  <rth@redhat.com>
5999
6000         PR c/5623
6001         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6002
6003 2002-02-10  Richard Henderson  <rth@redhat.com>
6004
6005         PR c++/5624
6006         * tree.c (append_random_chars): Don't abort if main_input_filename
6007         does not exist.
6008
6009 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6010
6011         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6012
6013 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6014
6015         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6016         (pushhi1): Likewise.
6017
6018 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6019
6020         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6021         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6022
6023 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6024
6025         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6026         remove MASK_VIS.
6027         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6028
6029 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6030
6031         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6032         a half of an SImode register on H8/300.
6033
6034 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6035
6036         * i386.md (movdi_2): Add missing '!'.
6037
6038 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6039
6040         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6041         definitions.
6042
6043 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6044
6045         * config/h8300/h8300.md (length): Correct the distance valid
6046         for the short branch.
6047
6048 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6049
6050         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6051
6052 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6053
6054         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6055         registers in SImode.
6056         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6057         part-clobbered.
6058
6059         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6060         patch.
6061
6062         Contribute sh64-elf.
6063         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6064         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6065         (sh_cannot_modify_jumps_p): New function.
6066         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6067         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6068         (sh_ms_bitfield_layout_p): New function.
6069         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6070                     Zack Weinberg  <zack@codesourcery.com>
6071         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6072         expand_simple_binop instead of expand_binop.
6073         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6074         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6075         use of .quad and .uaquad.
6076         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6077         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6078         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6079         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6080         movdi_const_16bit): Make sure all CONSTs have modes.
6081         (sym2PIC): Ditto, but by adjusting all callers.
6082         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6083         if the prologue calls the SHmedia argument decoder or register
6084         saver.
6085         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6086         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6087         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6088         (sh_expand_epilogue): Don't emit USE of return target register.
6089         (prepare_move_operands): Legitimize DImode PIC addresses.
6090         (sh_media_register_for_return): Skip tr0, used to initialize the
6091         PIC register.
6092         (sh_expand_prologue): Remove explicit USE of return register.
6093         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6094         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6095         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6096         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6097         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6098         EXTRA_CONSTRAINT_T.
6099         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6100         (MOVI_SHORI_BASE_OPERAND_P): New.
6101         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6102         (EXTRA_CONSTRAINT_T): Define in terms of them.
6103         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6104         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6105         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6106         alternatives supporting TARGET_REGS.
6107         (UNSPEC_GOTPLT): New constant.
6108         (movdi split): Move incrementing of LABEL_NUSES...
6109         (movdi_const, movdi_const_32bit): Here.  Use
6110         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6111         (movdi_const_16bit): New.
6112         (call, call_value) [flag_pic]: Use GOTPLT.
6113         (call_pop, call_value_pop): New expands.
6114         (call_pop_compact, call_pop_rettramp): New insns.
6115         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6116         (sibcall) [flag_pic]: Use GOT.
6117         (builtint_setjmp_receiver): Remove bogus, unused expand.
6118         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6119         (*pt, *ptb, ptrel): New insns.
6120         (sym2GOT): Handle DImode GOT.
6121         (sym2GOTPLT, symGOTPLT2reg): New expands.
6122         (sym2PIC): New expand.
6123         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6124         (shcompact_return_tramp_i): Use return register explicitly.
6125         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6126         disable flag_reorder_blocks.
6127         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6128         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6129         clobbers, for clarity.
6130         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6131         restoring of r0 in macl as MAYBE_DEAD.
6132         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6133         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6134         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6135         alter_subreg all over.
6136         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6137         reload, instead of emitting instructions that would require
6138         reloading.
6139         (casesi_load_media): Add missing modes.
6140         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6141         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6142         as used if the argument decoder is called.
6143         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6144         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6145         Pmode, then extend it to DImode if necessary.
6146         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6147         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6148         constants in FPU-enabled SHmedia, let them be loaded from memory.
6149         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6150         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6151         Adjust whitespace in assembly output templates.
6152         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6153         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6154         mode of if_then_else.
6155         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6156         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6157         sh.h.
6158         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6159                     Joern Rennecke <amylaar@redhat.com>
6160         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6161         (SUBTARGET_CPP_PTR_SPEC): New.
6162         (SUBTARGET_CPP_SPEC): Remove.
6163         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6164         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6165         Fix typo in previous checkin.
6166         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6167         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6168         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6169                     Alexandre Oliva  <aoliva@redhat.com>
6170         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6171         what single FP register can hold for SHmedia target.
6172         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6173                     Alexandre Oliva  <aoliva@redhat.com>
6174         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6175         Do not split into SUBREG.
6176         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6177         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6178         and added new functions as specified in SH5 ABI r9.
6179         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6180         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6181         8-byte boundary.
6182         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6183         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6184         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6185         and consttable_window_ends.
6186         2001-06-03  Graham Stott  <grahams@redhat,com>
6187         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6188         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6189         * config/sh/sh.c (print_operand): Handle floating-point pair,
6190         vector and matrix registers.
6191         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6192         vector modes into account.
6193         * config/sh/sh.md (movv2sf): Split move between registers into
6194         movdf.
6195         (movv4sf, movv16sf): Introduce insns that get split only after
6196         reload.
6197         * config/sh/shmedia.h: Fix Copyright dates.
6198         * config/sh/ushmedia.h: Likewise.  Move loop counter
6199         declarations into conditionals that uses them.
6200         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6201         loop boundary.
6202         * config/sh/sshmedia.h: Fix Copyright dates.
6203         (sh_media_PUTCFG): Fix constraints.
6204         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6205         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6206         ptrmemfunc_vbit_in_delta for SH5.
6207         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6208         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6209         * invoke.texi: Likewise.
6210         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6211         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6212         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6213         GCC_pop_shmedia_regs_nofpu): New global symbols.
6214         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6215         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6216         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6217         compact function with nonlocal labels.
6218         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6219         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6220         (initial_elimination_offset): Account for their stack space.
6221         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6222         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6223         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6224         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6225         least one of the operands to be a register.
6226         (movv2sf): Likewise.  Renamed to movv2sf_i.
6227         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6228         prepare_move_operands() before emitting SHmedia insns.
6229         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6230         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6231         Don't save nor initialize r12.  Don't mis-align the stack.
6232         Pad the code with a nop.
6233         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6234         stack.
6235         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6236         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6237         [__SHMEDIA__]: Implement.
6238         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6239         * config/sh/sh.md: Set latency of `pt' closer to reality.
6240         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6241         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6242         Set move, load and store type attributes.
6243         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6244         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6245         profiling.
6246         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6247         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6248         * config/sh/sh.c (sh_media_register_for_return): New function.
6249         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6250         branch-target register.
6251         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6252         * config/sh/sh.md (return_media_i): Use any call-clobbered
6253         branch-target register.
6254         (return_media): If r18 wasn't copied in the prologue, copy it
6255         here.
6256         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6257         Clear class FP0_REGS.
6258         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6259         from elf.h.
6260         2001-03-08  DJ Delorie  <dj@redhat.com>
6261         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6262         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6263         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6264         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6265         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6266         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6267         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6268         return value correctly for call_cookie.
6269         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6270         * config/sh/crt1.asm (start): Modified so as to call
6271         ___setup_argv_and_call_main.
6272         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6273         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6274         SHmedia mode.
6275         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6276         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6277         (STRIP_NAME_ENCODING): Use it.
6278         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6279         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6280         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6281         prepare_scc_operands().
6282         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6283         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6284         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6285         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6286         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6287         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6288         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6289         used in shcompact_incoming_args.
6290         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6291         change.
6292         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6293         mode.
6294         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6295         Adjust accordingly.
6296         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6297         Simplify.  Adjust.  Add sanity check.
6298         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6299         FPU_SINGLE_BIT.
6300         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6301         TARGET_SHCOMPACT.
6302         (udivsi3, divsi3): Use them.
6303         (force_mode_for_call): New insn.
6304         (call, call_value, sibcall_value): Emit it before SHcompact
6305         calls.
6306         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6307         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6308         call cookie is non-NULL before taking its value.
6309         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6310         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6311         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6312         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6313         block.
6314         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6315         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6316         temporary for stack adjusts.  Use MACL and MACH to pass
6317         arguments to shcompact_incoming_args.
6318         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6319         clobber r1.
6320         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6321         (nested_trampoline): Load static chain address into r1.
6322         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6323         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6324         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6325         fp_arith_reg_operand().
6326         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6327         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6328         and use signed compares for them.
6329         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6330         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6331         ones properly aligned.
6332         (find_barrier): Account for extra alignment needed for 8-byte wide
6333         constants.
6334         (machine_dependent_reorg): Require a label for the second 4-byte
6335         constant after an 8-byte one.
6336         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6337         change.
6338         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6339         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6340         last_float when switching float modes.
6341         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6342         auto-increment for general-purpose registers.
6343         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6344         result.
6345         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6346         for stack adjust.
6347         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6348         registers for varargs.
6349         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6350         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6351         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6352         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6353         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6354         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6355         call_cookie accordingly.
6356         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6357         (SHCOMPACT_BYREF): Likewise.
6358         (SHCOMPACT_FORCE_ON_STACK): New macro.
6359         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6360         (sh_builtin_saveregs): Likewise.
6361         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6362         shcompact_incoming_args): Use new shift values.  Support
6363         sequences of consecutive and non-consecutive pushes/pops.
6364         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6365         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6366         * config/sh/sh.h (TEXT_SECTION): Define.
6367         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6368         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6369         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6370         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6371         return values on FPU-enabled SHmedia.
6372         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6373         FPU-enabled SHmedia.
6374         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6375         value is returned in a non-FP reg and is not returned by
6376         reference.
6377         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6378         jump_ind.
6379         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6380         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6381         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6382         quad-aligned to be passed by callee-copy reference.
6383         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6384         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6385         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6386         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6387         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6388         copying low-numbered FP regs to r7 and r8.
6389         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6390         FP regs to general-purpose regs only if the copy was passed on the
6391         stack.
6392         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6393         copying FP reg to r9.
6394         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6395         copy FP regs to general-purpose regs only in outgoing calls.
6396         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6397         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6398         HOST_WIDE_INT.
6399         * config/sh/sh.h (struct sh_args): Document all fields.
6400         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6401         passed partially on the stack should not consider making
6402         sibcalls.
6403         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6404         stack_regs only for incoming calls.  When passing FP args,
6405         make sure there are FP regs available before modifying
6406         call_cookie.
6407         (SHCOMPACT_BYREF): Pass double args in general-purpose
6408         registers by reference.
6409         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6410         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6411         attempt to generate sibcalls if the caller got any arguments
6412         by reference.
6413         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6414         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6415         to 8-byte boundaries.
6416         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6417         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6418         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6419         stored in the stack.
6420         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6421         for the offsets to have the ISA bit set.
6422         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6423         invocation.  Use beq instead of bgt to mark end of sequence of
6424         loads.
6425         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6426         bgt to mark end of sequence of stores.
6427         * config/sh/sh.c (arith_operand): Don't check whether
6428         CONST_OK_FOR_J for now.
6429         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6430         instead of long for conversion.
6431         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6432         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6433         before passing it to fprintf.
6434         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6435         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6436         Call set_fpscr before reading/writing SR.
6437         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6438         Call set_fpscr.
6439         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6440         SHmedia code.
6441         (FMOVD_WORKS): Define on SH5 with FPU.
6442         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6443         setting.
6444         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6445         _fpscr_values.
6446         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6447         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6448         address.
6449         (ia_main_table): Ditto.
6450         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6451         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6452         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6453         the definitions from sh.h.
6454         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6455         TARGET_SH5.
6456         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6457         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6458         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6459         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6460         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6461         Increment LABEL_NUSES.
6462
6463         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6464         TARGET_SH5.
6465         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6466         defined.
6467         * config/sh/elf.h (SIZE_TYPE): Likewise.
6468         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6469         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6470         shcompact_incoming_args): Load switch table addresses using
6471         datalabel.
6472         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6473         (NO_BUILTIN_SIZE_TYPE): Define.
6474         (SIZE_TYPE): Don't define.
6475         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6476         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6477         definition of __SH5__=32 for -m5-compact-nofpu.
6478         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6479         ADDR_DIFF_VEC.
6480         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6481         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6482         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6483         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6484         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6485         (INSN_LENGTH_ALIGNMENT): Likewise.
6486         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6487         * config/sh/sh.md (call, call_value, sibcall): Simplify
6488         copying of non-branch-target register.
6489         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6490         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6491         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6492         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6493         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6494         floating-point values as structs.
6495         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6496         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6497         general-purpose register.
6498         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6499         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6500         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6501         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6502         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6503         (ENCODE_SECTION_INFO): Enclose variables and constants in
6504         DATALABEL unspecs.
6505         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6506         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6507         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6508         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6509         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6510         SH_DATALABEL_ENCODING to the symbol name.
6511         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6512         convert_mode().
6513         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6514         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6515         UNSPEC_DATALABEL.
6516         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6517         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6518         (DATALABEL_REF_P): Don't require CONST.
6519         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6520         REL label.
6521         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6522         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6523         right.
6524         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6525         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6526         Use shallow_copy_rtx and PUT_MODE to change the mode of
6527         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6528         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6529         on SHmedia using GENERAL_REGs.
6530         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6531         bltu_media_i): Fix reversion of conditions.
6532         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6533         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6534         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6535         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6536         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6537         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6538         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6539         (GCC_nested_trampoline): Likewise.
6540         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6541         * config/sh/sh.c (gen_datalabel_ref): Define.
6542         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6543         (INITIALIZE_TRAMPOLINE): Likewise.
6544         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6545         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6546         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6547         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6548         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6549         (ic_invalidate): Adjust for SH5.
6550         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6551         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6552         _nested_trampoline.
6553         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6554         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6555         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6556         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6557         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6558         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6559         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6560         * config/sh/sh.c (target_reg_operand): Match only target-branch
6561         registers and pseudos that aren't virtual registers.
6562         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6563         Copy operands that don't match target_reg_operand to pseudos.
6564         (call_media, call_value_media, sibcall_media): Use
6565         target_reg_operand instead of target_operand.
6566         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6567         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6568         * config/sh/sh.c (target_reg_operand): Match hardware registers
6569         other than branch-target registers.
6570         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6571         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6572         (fpscr_values) [SH5 == 32]: Define.
6573         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6574         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6575         Handle function addresses coming in SUBREGs.
6576         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6577         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6578         shcompact_return_trampoline): Use datalabel where appropriate.
6579         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6580         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6581         general-purpose register to copy one branch-target register to
6582         another.
6583         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6584         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6585         SYMBOL_REFs with VOIDmode.
6586         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6587         bltu_media_i): New insns.
6588         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6589         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6590         (INIT_CUMULATIVE_ARGS): Likewise.
6591         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6592         * machmode.def (V16SFmode): New mode.
6593         * c-common.c (type_for_mode): Support V2SF and V16SF.
6594         * tree.c (build_common_tree_nodes_2): Likewise.
6595         * tree.h (tree_index): Likewise.
6596         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6597         callers.  Introduce CALL_POPS_ARGS.
6598         * tm.texi (CALL_POPS_ARGS): Document.
6599         * config/sh/crt1.asm: Implement in SHmedia mode.
6600         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6601         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6602         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6603         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6604         Implement divsi and udivsi in SHmedia mode.  Introduce
6605         SHcompact trampolines.
6606         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6607         only in SHmedia64.
6608         (regno_reg_class): Rewrite.
6609         (fp_reg_names): Remove.
6610         (sh_register_names, sh_additional_register_names): New.
6611         (print_operand): Added `u'.  Support SUBREGs in addresses.
6612         Add parentheses around shifted CONSTs.
6613         (output_file_start): Output .mode and .abi directives.
6614         (shiftcosts, addsubcosts, multcosts): Adjust.
6615         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6616         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6617         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6618         bytes, not registers.  Take into account the need for the
6619         SHcompact incoming args trampoline.  Adjust all callers.
6620         (sh_expand_prologue): Take stack_regs into account.  Call
6621         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6622         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6623         stack aligned as per SH5 ABI.
6624         (sh_builtin_saveregs): Support SH5 ABI.
6625         (sh_build_va_list, sh_va_start): Likewise.
6626         (initial_elimination_offset): Take alignment into account.
6627         Compute location of PR according to the SH5 stack frame.
6628         (arith_reg_operand): Reject branch-target registers.
6629         (shmedia_6bit_operand): New.
6630         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6631         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6632         (target_operand): New.
6633         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6634         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6635         SIBCALL_REGS for SHmedia.
6636         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6637         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6638         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6639         (TARGET_SWITCHES): New SH5 flags.
6640         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6641         VALID_REGISTER_P to disable unsupported registers.
6642         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6643         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6644         (FUNCTION_ARG_PADDING): Define.
6645         (FASTEST_ALIGNMENT): Adjust.
6646         (SH_REGISTER_NAMES_INITIALIZER): New.
6647         (sh_register_names): Declare.
6648         (DEBUG_REGISTER_NAMES): Define.
6649         (REGISTER_NAMES): Define based on sh_register_names.
6650         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6651         (sh_additional_register_names): Declare.
6652         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6653         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6654         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6655         (REGISTER_NATURAL_MODE): Define.
6656         (FIRST_PSEUDO_REGISTER): Adjust.
6657         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6658         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6659         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6660         (VECTOR_MODE_SUPPORTED_P): Define.
6661         (REG_CLASS_CONTENTS): Adjust.
6662         (SMALL_REGISTER_CLASSES): Adjust.
6663         (REG_ALLOC_ORDER): Adjust.
6664         (INDEX_REG_CLASS): Adjust.
6665         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6666         (CONST_OK_FOR_LETTER_P): Adjust.
6667         (PREFERRED_RELOAD_CLASS): Adjust.
6668         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6669         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6670         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6671         (FIRST_FP_PARM_REG): Adjust.
6672         (CALL_POPS_ARGS): Define.
6673         (FUNCTION_ARG_REGNO_P): Adjust.
6674         (struct sh_args): New fields.
6675         (GET_SH_ARG_CLASS): Adjust.
6676         (INIT_CUMULATIVE_ARGS): Adjust.
6677         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6678         (FUNCTION_ARG_ADVANCE): Adjust.
6679         (FUNCTION_ARG): Adjust.
6680         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6681         (FUNCTION_ARG_CALLEE_COPIES): Define.
6682         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6683         (STRICT_ARGUMENT_NAMING): Define.
6684         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6685         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6686         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6687         (SETUP_INCOMING_VARARGS): Adjust.
6688         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6689         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6690         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6691         (SUBREG_OK_FOR_INDEX_P): Adjust.
6692         (EXTRA_CONSTRAINT_S): Update.
6693         (EXTRA_CONSTRAINT_T): New.
6694         (EXTRA_CONSTRAINT): Adjust.
6695         (GO_IF_LEGITIMATE_INDEX): Adjust.
6696         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6697         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6698         (MOVE_MAX): Adjust.
6699         (MAX_MOVE_MAX): Define.
6700         (Pmode): Adjust.
6701         (CONST_COSTS): Adjust.
6702         (REGISTER_MOVE_COST): Adjust.
6703         (BRANCH_COST): Adjust.
6704         (TEXT_SECTION_ASM_OP): Adjust.
6705         (DBX_REGISTER_NUMBER): Adjust.
6706         (ASM_OUTPUT_DOUBLE_INT): New.
6707         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6708         (PREDICATE_CODES): Adjust.
6709         (PROMOTE_MODE): Adjust.
6710         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6711         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6712         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6713         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6714         (DR0_REG, DR2_REG, DR4_REG): Renumber.
6715         (TR0_REG, TR1_REG, TR2_REG): New.
6716         (XD0_REG): Renumber.
6717         (UNSPEC_COMPACT_ARGS): New.
6718         (type): Added pt and ptabs.
6719         (length): Default to 4 on SHmedia.  Default pt length to 12
6720         and     20 on SHmedia32 and SHmedia64, respectively.
6721         (pt): New function unit.
6722         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
6723         Add whitespace between operands of SHmedia instructions.
6724         (movdicc): Fix.
6725         (adddi3_media, addsi3_media): Adjust constraints.
6726         (subsi3) [SHmedia]: Force operand 1 into a register.
6727         (udivsi3_i1_media, udivsi3_i4_media): New.
6728         (udivsi3): Support SHmedia.
6729         (divsi3_i1_media, divsi3_i4_media): New.
6730         (divsi3): Support SHmedia.
6731         (anddi3, iordi3, xordi3): Adjust constraints.
6732         (zero_extendhidi2, zero_extendqidi2): New.
6733         (extendsidi2, extendhidi2, extendqidi2): New.
6734         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6735         (pop_e, pop_fpul, pop_4): Likewise.
6736         (movsi_media): Support FP and BT registers.
6737         (movsi_media_nofpu): New.  Adjust splits to DImode.
6738         (lduw, ldub): Renamed to zero_extend* above.
6739         (movqi_media): Fix typo.
6740         (movdi_media): Support FP and BT registers.
6741         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
6742         (movdi_const_32bit): New.
6743         (shori_media): Require immediate operand.  Use `u' for output.
6744         (movdf_media, movsf_media): Simplified.
6745         (movdf_media_nofpu, movsf_media_nofpu): New.
6746         (movdf, movsf): Adjust
6747         (movv2sf, movv2sf, movv16sf): New.
6748         (beq_media, beq_media_i): Adjust constraints.  Don't use
6749         scratch BT register.
6750         (bne_media, bne_media_i): Likewise.
6751         (bgt_media, bgt_media_i): Likewise.
6752         (bge_media, bge_media_i): Likewise.
6753         (bgtu_media, bgtu_media_i): Likewise.
6754         (bgeu_media, bgeu_media_i): Likewise.
6755         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6756         bunordered): Emit jump insn.  Force operands to registers when
6757         needed.
6758         (jump_media, jump): Simplify.
6759         (call_compact, call_compact_rettramp): New.
6760         (call_value_compact, call_value_compact_rettramp): New.
6761         (call_media, call_value_media): Simplify.
6762         (sibcall_compact, sibcall_media): New.
6763         (call, call_value): Adjust for SHmedia and SHcompact.
6764         (sibcall, sibcall_value, untyped_call): Likewise.
6765         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6766         (indirect_jump): Adjust for SHmedia.
6767         (casesi_jump_media): New.
6768         (nop): Re-enable for SHmedia.
6769         (call_site): Restrict to SH1.
6770         (casesi): Adjust for SHmedia.
6771         (casesi_shift_media, casesi_load_media): New.
6772         (return): Explicitly use PR register.  Call return trampoline
6773         on SHcompact.
6774         (return_i): Explicitly use PR register.
6775         (shcompact_return_tramp, shcompact_return_tramp_i): New.
6776         (return_media): Adjust.
6777         (shcompact_incoming_args): New.
6778         (epilogue): Adjust.
6779         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6780         (movstrsi): Disable on SH5.
6781         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6782         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6783         (subsf3, subsf3_media): Likewise.
6784         (mulsf3, mulsf3_media, mac_media): Likewise.
6785         (divsf3, divsf3_media): Likewise.
6786         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
6787         (floatsisf2, fux_truncsfsi2): Likewise.
6788         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
6789         constraints.
6790         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6791         (cmpunsf_media, cmpsf): Likewise.
6792         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6793         (abssf2, abssf2_media): Likewise.
6794         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6795         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6796         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
6797         (floatsidf2, fix_truncdfsi2): Likewise.
6798         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
6799         constraints.
6800         (cmpeqdf_media, cmpgtdf_media): Likewise.
6801         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6802         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6803         (absdf2, absdf2_media): Likewise.
6804         (extendsfdf2, extendsfdf2_media): Likewise.
6805         (truncsfdf2, truncsfdf2_media): Likewise.
6806         * config/sh/sh64.h: New file.
6807         * config/sh/t-sh64: New file.
6808         * config/sh/shmedia.h: New file.
6809         * config/sh/ushmedia.h: New file.
6810         * config/sh/sshmedia.h: New file.
6811         * configure.in: Added sh64-*-elf.
6812         * configure: Rebuilt.
6813         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
6814         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6815         (reg_class_from_letter): Use `b' for TARGET_REGS.
6816         (print_operand): Support `%M', `%m', `AND' and
6817         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
6818         (andcosts): Adjust for SHmedia.
6819         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6820         Likewise.
6821         (target_reg_operand): New function.
6822         * config/sh/sh-protos.h (target_reg_operand): Declare.
6823         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6824         FP registers on SH5.
6825         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6826         on SH4.
6827         (TARGET_REGISTER_P): New macro.
6828         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6829         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6830         (EXTRA_CONSTRAINT_S): New macro.
6831         (EXTRA_CONSTRAINT): Adjust.
6832         (FLOAT_TYPE_SIZE): Define to 32.
6833         (Pmode): DImode on SHmedia.
6834         (CONST_COSTS): Adjust for SHmedia literals.
6835         (PREDICATE_CODES): Added target_reg_operand.
6836         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6837         * config/sh/sh.md: Remove all attrs from SHmedia insns.
6838         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6839         (cmpdi): Accept SHmedia.
6840         (movdicc_false, movdicc_true): New insns.
6841         (movdicc): New expand.
6842         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6843         no_new_pseudos.
6844         (addsi3_media): Match `S' constraint.
6845         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6846         (negdi2): Expand for SHmedia.
6847         (one_cmpldi2): New expand.
6848         (zero_extendsidi2): Change from expand to insn.
6849         (extendsidi2): Add constraints.
6850         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
6851         LD/ST address.  Fix SI immediate loading split.
6852         (movhi_media, movqi_media, lduw, ldub): New insns.
6853         (movhi, movqi): Accept SHmedia.
6854         (shori_media, movdi_media): Relax input constraints.  Split
6855         symbolic constants.
6856         (movdf_media, movsf_media): New insn.  New split to movdi.
6857         (movdf, movsf): Match on SHmedia.
6858         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6859         bgeu_media): New insns and splits.  New insns with `_i' suffix.
6860         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6861         (bunordered): New expand.
6862         (jump_compact): Renamed from `jump'.
6863         (jump_media): New insn.
6864         (jump): New expand.
6865         (call_media, call_value_media): New insns.
6866         (call, call_value): Adjust.
6867         (indirect_jump_compact): Renamed from `indirect_jump'.
6868         (indirect_jump_media): New insn.
6869         (indirect_jump): New expand.
6870         (untyped_call, return): Accept SHmedia.
6871         (return_media): New insn.
6872         (prologue, epilogue, blockage): Accept SHmedia.
6873         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6874         (sunordered): New expand.
6875         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6876         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6877         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6878         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6879         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6880         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6881         abssf2_media): New insns.
6882         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6883         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6884         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6885         floatdidf2, floatsidf2_media, fix_truncdfdi2,
6886         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6887         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6888         absdf2_media): New insns.
6889         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6890         (extendsfdf2_media, truncdfsf2_media): New insns.
6891         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
6892         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6893         * config/sh/sh.h (CONST_OK_FOR_J): Document.
6894         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6895         * config/sh/sh.md (adddi3): New expand.
6896         (adddi3_media, adddi3z_media): New insns.
6897         (adddi3_compact): Renamed from adddi3.
6898         (addsi3_media): Use add.l r63 to add constant zero.
6899         (subdi3): New expand.
6900         (subdi3_media): New insn.
6901         (subdi3_compact): Renamed from subdi3.
6902         (mulsidi3): New expand.
6903         (mulsidi3_media): New insn.
6904         (mulsidi3_compact): Renamed from mulsidi3.
6905         (umulsidi3): New expand.
6906         (umulsidi3_media): New insn.
6907         (umulsidi3_compact): Renamed from umulsidi3.
6908         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6909         (ashlsi3, ashrsi3, lshrsi3): Use them.
6910         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6911         (ashldi3, ashrdi3, lshrdi3): Use them.
6912         (zero_extendsidi2): New expand.
6913         (extendsidi2): New insn.
6914         (movsi_media): New insn.  Split to movdi to load constants.
6915         (movsi): Enable for shmedia.
6916         (movdi_media): New insn.  Use shori_media to load wide constants.
6917         (short_media): New insn.
6918         (movdi): Enable for shmedia.
6919         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
6920         * config/sh/sh.h (CPP_SPEC): Added `m5'.
6921         (SUBTARGET_CPP_SPEC): Added `!m5'.
6922         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6923         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
6924         to all other SH variants.
6925         (TARGET_DEFAULT): Set to SH1_BIT.
6926         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6927         (BITS_PER_WORD): Raise to 64 on shmedia.
6928         (MAX_BITS_PER_WORD): Change to 64.
6929         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6930         (INT_TYPE_SIZE): Keep as 32.
6931         (UNITS_PER_WORD): Raise to 8 on shmedia.
6932         (MIN_UNITS_PER_WORD): Keep as 4.
6933         (POINTER_SIZE): Raise to 64 on shmedia.
6934         (CONST_OK_FOR_J): New macro.
6935         (CONST_OK_FOR_LETTER_P): Use it.
6936         (processor_type): Add PROCESSOR_SH5.
6937         * config/sh/sh.md: Conditionalize all expands, insns and
6938         splits to TARGET_SH1.
6939         (cpu): Added sh5.
6940         (addsi3_compact): Renamed from...
6941         (addsi3): Now an expand.
6942         (addsi3_media, subsi3_media): New insns.
6943         (subsi3): Don't negate constants with SHmedia.
6944
6945         * hooks.c: New file.
6946         * hooks.h: New file.
6947         * Makefile.in (HOOKS_H): New.
6948         (TARGET_DEF_H): Added $(HOOKS_H).
6949         (OBJS): Added hooks.o.
6950         (cfgcleanup.o, bb-reorder.o): Added target.h.
6951         (hooks.o): Added dependencies.
6952         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6953         (TARGET_INITIALIZER): this.
6954         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6955         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6956         * bb-reorder.c: Include target.h.
6957         (reorder_basic_blocks): Skip if cannot modify jumps.
6958         * cfgcleanup.c: Include target.h.
6959         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6960
6961 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6962
6963         * config/mips/mips.md (casesi_internal, casesi_internal_di):
6964         Protect jump delay slot instructions with .set noreorder and
6965         .set nomacro.
6966
6967 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6968
6969         * config/mips/mips.md (casesi_internal_di): Calculate
6970         the index into the target offset table correctly.
6971
6972 2002-02-08  Richard Henderson  <rth@redhat.com>
6973
6974         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6975         * final.c (output_addr_const): Accept and discard SUBREG.
6976         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6977         mark them unknown instead.
6978         (simplify_subtraction): Handle RTX_UNKNOWN.
6979         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6980
6981 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
6982
6983         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6984
6985 2002-02-08  Richard Henderson  <rth@redhat.com>
6986
6987         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6988
6989 2002-02-08  Andreas Jaeger  <aj@suse.de>
6990
6991         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6992         * config/i386/t-linux64: New file.
6993
6994 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
6995
6996         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6997         * c-parse.in (compstmt): Clear last_expr_type.
6998
6999 2002-02-07  Richard Henderson  <rth@redhat.com>
7000
7001         * loop.c (strength_reduce): Sink final_value when not
7002         eliminating a biv.
7003
7004 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7005
7006         * config/sparc/freebsd.h: Fix mismatched spec {.
7007
7008 2002-02-07  Richard Henderson  <rth@redhat.com>
7009
7010         * cfgrtl.c: Include recog.h and insn-config.h.
7011         (keep_with_call_p): Fix general_operand invocation.
7012         * Makefile.in (cfgrtl.o): Update dependencies.
7013
7014 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7015
7016         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7017         comment.  Accept HImode only if TARGET_H8300.
7018
7019 2002-02-07  Eric Christopher  <echristo@redhat.com>
7020
7021         * config/mips/crtn.asm: Cleanup #ifdefs.
7022
7023 2002-02-07  Eric Christopher  <echristo@redhat.com>
7024
7025         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7026         register 7 as RA instead of $31.
7027         * config/mips/crtn.asm: Ditto.
7028         * config/mips/mips.c (mips_move_2words): Add case for
7029         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7030         (compute_frame_size): Fix typo.
7031         (save_restore_insns): Ditto.  Make documentation about using
7032         register $7 as return register more precise.
7033         (mips_expand_epilogue): Fix comment. Add code to work around not
7034         being able to add to the stack pointer directly.
7035         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7036         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7037         epilogue.
7038
7039 2002-02-07  Tom Rix  <trix@redhat.com>
7040
7041         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7042         immediates in ldu and stdu DS opcode field.
7043         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7044         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7045         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7046
7047 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7048
7049         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7050         offset for stack bias.
7051
7052 2002-02-07  H.J. Lu <hjl@gnu.org>
7053
7054         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7055
7056 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7057
7058         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7059
7060 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7061
7062         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7063         * i386.c (x86_order_regs_for_local_alloc): New global function.
7064         * i386.h (REG_ALLOC_ORDER): CLeanup.
7065         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7066
7067 2002-02-07  Richard Henderson  <rth@redhat.com>
7068
7069         PR optimization/2463
7070         * alias.c (find_base_value): Recall base values for fixed hard regs.
7071         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7072
7073 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7074
7075         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7076         length.
7077
7078 2002-02-06  Richard Henderson  <rth@redhat.com>
7079
7080         PR c/5609
7081         * stmt.c (resolve_operand_name_1): Take more care with mixed
7082         named and unnamed operands.
7083
7084 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7085             Jan Hubicka  <jh@suse.cz>
7086
7087         * loop.c (remove_constant_addition): Avoid clobbering a shared
7088         CONST expression.
7089
7090 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7091
7092         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7093         * config/s390/t-linux64: New file.
7094         * config/s390/libgcc-glibc.ver: New file.
7095
7096 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7097
7098         * config/s390/linux64.h: Delete file.
7099         * config/s390/s390x.h: New file.
7100         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7101         as target header file.
7102         * config/s390/linux.h (TARGET_VERSION): Define depending on
7103         DEFAULT_TARGET_64BIT.
7104         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7105         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7106         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7107         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7108         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7109         (EXTRA_SPEC): New define.
7110         * config/s390/s390.h (TARGET_VERSION): Define depending on
7111         DEFAULT_TARGET_64BIT.
7112         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7113
7114 2002-02-06  Jason Merrill  <jason@redhat.com>
7115
7116         * c-decl.c (finish_function): Warn about a non-void function with
7117         no return statement and no abnormal exit.
7118         (current_function_returns_abnormally): New variable.
7119         (start_function): Clear it.
7120         (struct c_language_function): Add returns_abnormally.
7121         (push_c_function_context): Save it.
7122         (pop_c_function_context): Restore it.
7123         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7124         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7125         an explicit return type.
7126         * c-tree.h: Declare current_function_returns_abnormally.
7127         (C_FUNCTION_IMPLICIT_INT): New macro.
7128         * c-typeck.c (build_function_call): Set it.
7129         (c_expand_return): Set current_function_returns_value even if the
7130         value is erroneous.
7131
7132 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7133
7134         PR c/5420:
7135         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7136         unsafe for reevaluation.
7137
7138 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7139
7140         PR c/5482:
7141         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7142         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7143
7144 2002-02-06  Richard Henderson  <rth@redhat.com>
7145
7146         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7147         be a general_operand.  Dest for function value must be a pseudo.
7148
7149 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7150
7151         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7152         as SYMBOL_REFs from the constant pool.
7153
7154 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7155
7156         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7157         passed by invisible reference.
7158
7159 2002-02-05  Richard Henderson  <rth@redhat.com>
7160
7161         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7162
7163 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7164
7165         Implement using "base addresses" in insn operands as default.
7166         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7167         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7168         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7169         used to read the rtx value.
7170         (mmix_target_asm_function_epilogue): Fix spacing.
7171         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7172         (mmix_legitimate_address): Ditto.
7173         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7174         should be loaded with a GETA insn.  Don't allocate needless extra
7175         char for nul termination and fix misleading comment.
7176         (mmix_print_operand_address): Handle constants if
7177         TARGET_BASE_ADDRESSES.
7178         (mmix_output_register_setting): Use base addressing if
7179         TARGET_BASE_ADDRESSES and the number of insns is 3.
7180         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7181         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7182         to use R as constraint, add LDA to match s.
7183         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7184         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7185         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7186         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7187         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7188         order with other fixed registers.
7189         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7190         other parameter/call-clobbered registers.
7191         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7192         -mbase-addresses, -mno-base-addresses.
7193         (MMIX Options): Ditto.
7194
7195 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7196
7197         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7198
7199 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7200
7201         * config/rs6000/altivec.h: Change elem to _S_elem.
7202
7203 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7204
7205         * config/netbsd.h (WCHAR_TYPE): Define.
7206         (WCHAR_TYPE_SIZE): Ditto.
7207         (WINT_TYPE): Ditto.
7208         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7209         (WCHAR_UNSIGNED): Ditto.
7210         (WCHAR_TYPE_SIZE): Ditto.
7211         (WINT_TYPE): Ditto.
7212         * config/arm/netbsd.h: Likewise.
7213         * config/i386/netbsd-elf.h: Likewise.
7214         * config/i386/netbsd.h: Likewise.
7215         * config/m68k/netbsd-elf.h: Likewise.
7216         * config/m68k/netbsd.h: Likewise.
7217         * config/ns32k/netbsd.h: Likewise.
7218         * config/sparc/netbsd.h: Likewise.
7219         * config/vax/netbsd.: Likewise.
7220
7221 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7222
7223         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7224         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7225         (TARGET_INITIALIZER): this.
7226         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7227         (BITFIELD_NBYTES_LIMITED): Markup fix.
7228         * tree.h (default_ms_bitfield_layout_p): Declare.
7229         (record_layout_info): Added prev_field.
7230         * tree.c (default_ms_bitfield_layout_p): New fn.
7231         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7232         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7233         * stor-layout.c: Include target.h.
7234         (start_record_layout): Initialize prev_field.
7235         (place_field): Handle MS bit-field layout, and disregard
7236         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7237         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7238         * Makefile.in (stor-layout.o): Adjust dependencies.
7239
7240 2002-02-05  Jason Merrill  <jason@redhat.com>
7241
7242         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7243
7244 2002-02-05  Andreas Jaeger  <aj@suse.de>
7245
7246         * crtstuff.c: Fix comments.
7247
7248 2002-02-05  Richard Henderson  <rth@redhat.com>
7249
7250         PR fortran/3393
7251         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7252         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7253
7254         PR fortran/3392
7255         * config/mips/mips.c (function_arg): Handle TImode.
7256         (function_arg_advance): Likewise.
7257
7258 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7259
7260         * config/rs6000/altivec.h (vec_step_help): Rename to
7261         __vec_step_help.
7262
7263 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7264
7265         * config/rs6000/altivec.h: Fix typos.
7266
7267 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7268
7269         * config/arm/netbsd.h: Correct a comment.
7270
7271 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7272
7273         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7274         building void typed builtins.
7275
7276         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7277         (vec_step): Implement for C++.
7278
7279 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7280
7281         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7282
7283 2002-02-04  Richard Henderson  <rth@redhat.com>
7284
7285         * combine.c (nonzero_bits): Re-introduce special case for
7286         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7287
7288 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7289
7290         * doc/extend.texi: Warn about unsupported usage of altivec
7291         builtins.
7292
7293         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7294         (altivec_predicate_*): New.
7295
7296         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7297         Add C++ version of vec_*() functions.
7298
7299         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7300         (bdesc_2arg): Remove altivec predicates.
7301         (altivec_expand_builtin): Handle predicates.
7302         (altivec_init_builtins): Handle predicates.
7303         (altivec_expand_predicate_builtin): New.
7304
7305 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7306
7307         * pa.c (DO_FRAME_NOTES): Move forward.
7308         (store_reg): Revise handling of frame notes.
7309         (load_reg): Likewise.
7310         (set_reg_plus_d): Likewise.
7311         (hppa_expand_prologue): Likewise.
7312         (hppa_expand_epilogue): Likewise.
7313
7314 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7315
7316         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7317
7318 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7319
7320         PR c/4475, c++/3780:
7321         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7322         * c-common.h (SWITCH_TYPE): Define.
7323         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7324         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7325         Rename spareness variable to sparseness.
7326         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7327         if non-NULL instead of TREE_TYPE (orig_index).
7328         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7329         (expand_end_case): Define using expand_end_case_type.
7330         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7331         to expand_end_case_type.
7332         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7333
7334 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7335
7336         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7337         (BIGGEST_ALIGNMENT): Change to 128.
7338
7339 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7340
7341         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7342
7343 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7344
7345         * pa.md (call_internal_reg_64bit): Remove unused variable.
7346
7347 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7348
7349         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7350         field.
7351         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7352         * config/arm/arm.c (current_function_anonymous_args): Delete,
7353         replace uses with cfun->machine->uses_anonymous_args.
7354         (arm_reorg): Do not reset uses_anonymous_args.
7355
7356         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7357         any geenral register.
7358
7359 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7360
7361         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7362         the entry block.
7363
7364 2002-02-04  Richard Henderson  <rth@redhat.com>
7365
7366         * combine.c (force_to_mode): Remove STACK_BIAS code.
7367         (nonzero_bits): Likewise.  Replace sp/fp special case with
7368         REGNO_POINTER_ALIGN.
7369
7370         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7371         (HARD_FRAME_POINTER_REGNUM): New.
7372         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7373         (FIXED_REGS, CALL_USED_REGS): Update.
7374         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7375         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7376         (HARD_REGNO_NREGS): Update for SFP.
7377         (STACK_POINTER_OFFSET): Include bias here ...
7378         (FIRST_PARM_OFFSET): ... not here.
7379         (STACK_BIAS): Remove.
7380         (INIT_EXPANDERS): New.
7381         (STARTING_FRAME_OFFSET): Do not include bias.
7382         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7383         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7384         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7385         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7386         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7387         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7388         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7389         (MUST_SAVE_REGISTER): Likewise.
7390         (sparc_flat_function_prologue): Likewise.
7391         (sparc_flat_function_epilogue): Likewise.
7392         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7393         (sparc_init_modes): SFP is GENERAL_REGS.
7394         (sparc_builtin_saveregs): SFP does not have bias applied.
7395
7396 2002-02-04  Richard Henderson  <rth@redhat.com>
7397
7398         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7399         current_function_is_thunk.
7400         (alpha_sa_mask): Distinguish between current_function_is_thunk
7401         called from ASM_OUTPUT_MI_THUNK and not.
7402         (alpha_does_function_need_gp): Thunks always need gp.
7403         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7404         (alpha_output_mi_thunk_osf): New.
7405         * config/alpha/alpha-protos.h: Update.
7406         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7407
7408 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7409
7410         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7411         function types, not when they're taken away.
7412
7413 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7414
7415         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7416         CODE_LABEL and jump table when replacing a table jump with a
7417         simple jump.
7418
7419 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7420
7421         * config/s390/s390-protos.h (legitimize_la_operand,
7422         s390_secondary_input_reload_class, s390_plus_operand,
7423         s390_expand_plus_operand): Add prototypes.
7424
7425         config/s390/s390.c (s390_secondary_input_reload_class,
7426         s390_plus_operand, s390_expand_plus_operand): New functions.
7427
7428         (struct s390_address): New member 'pointer'.
7429         (s390_decompose_address): Compute it.
7430         (legitimate_la_operand_p): Use it.
7431         (legitimize_la_operand): New function.
7432         (movti, movdi, movdf splitters): Call it.
7433
7434         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7435         (PREDICATE_CODES): Add s390_plus_operand.
7436
7437         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7438         (la_ccclobber): Allow GENERAL_REGS as output operand.
7439
7440         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7441         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7442         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7443
7444 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7445
7446         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7447         register names for regular asm () construct.
7448
7449 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7450
7451         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7452         registers.
7453
7454 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7455
7456         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7457         pat for recog.
7458
7459 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7460
7461         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7462         constant pool to be identical by string address and index.
7463
7464 2002-02-04  Anthony Green  <green@redhat.com>
7465
7466         * output.h (SECTION_OVERRIDE): Define.
7467         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7468
7469 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7470
7471         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7472         by existing arm*-*-netbsd* (a.out) target.
7473         (ns32k-*-netbsdelf*): Likewise.
7474         (sparc-*-netbsdelf*): Likewise.
7475         (vax-*-netbsdelf*): Likewise.
7476
7477 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7478
7479         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7480         headers and libobjc headers.
7481
7482 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7483
7484         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7485         (_mingw.h): Remove duplicate include.
7486
7487 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7488
7489         * config.gcc: Set cpu_type to m68k for 68010, as well.
7490         (m68010-*-netbsdelf*): New...
7491         (m68k*-*-netbsdelf*): ...targets.
7492         * config/m68k/netbsd-elf.h: New file.
7493
7494 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7495
7496         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7497
7498 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7499
7500         * config/h8300/h8300.c (h8_push_ops): Move inside
7501         h8300_init_once.
7502         (h8_pop_ops): Likewise.
7503         (h8_move_ops): Likewise.
7504
7505 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7506
7507         * config/h8300/h8300.c (os_task): Make it static.
7508         (monitor): Likewise.
7509         (pragma_saveall): Likewise.
7510
7511 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7512
7513         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7514         constant is a valid sign-extension for Pmode.
7515
7516 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7517
7518         * config/h8300/h8300.c: Fix formatting.
7519
7520 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7521
7522         * config/h8300/h8300.md: Fix formatting.
7523
7524 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7525
7526         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7527         predicates of operands[1].  Split the patterns for each
7528         processor variant.
7529
7530 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7531
7532         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7533         of operands[1] to register_operand.
7534
7535 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7536
7537         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7538         * cpphash.c (_cpp_init_hashtable): Similarly.
7539         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7540         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7541         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7542         (cpp_handle_option): Handle the new options.
7543         * cpplex.c (cpp_interpret_charconst): Use new flag.
7544         * cpplib.h (struct cpp_options): New member signed_char.
7545         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7546         (cpp_options): Handle -fsigned-char and -funsigned-char.
7547         (static_specs): Remove signed_char_spec.
7548         (do_spec1): Don't handle %c.
7549         * system.h: Poison SIGNED_CHAR_SPEC.
7550         * tradcif.y (yylex): Use flag_signed_char.
7551         * tradcpp.h (flag_signed_char): New.
7552         * tradcpp.c (flag_signed_char): New.
7553         (main): Handle new command-line options.
7554         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7555 config:
7556         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7557         * avr/avr.h: Remove old comments.
7558         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7559         (CC1_SPEC): Pass -fsigned-char if -mic*.
7560         (SIGNED_CHAR_SPEC): Remove.
7561 doc:
7562         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7563
7564 2002-02-01  Eric Christopher  <echristo@redhat.com>
7565
7566         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7567         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7568         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7569         (ASM_OUTPUT_REG_POP): Ditto.
7570
7571 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7572
7573         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7574         patch.
7575
7576 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7577
7578         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7579
7580 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7581
7582         PR c/5304:
7583         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7584         unconditionally.
7585
7586 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7587
7588         * cfganal.c: Include tm_p.h.
7589         (keep_with_call_p): Fix the test that determines if a register holds
7590         the return value of a call.
7591
7592 2002-02-01  DJ Delorie  <dj@redhat.com>
7593
7594         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7595         we are given conflicting registers, switch to the other one we
7596         had allocated for us.
7597         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7598         as TImode so we know when the "other" register is available.
7599
7600 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7601
7602         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7603         sparc/sparc_bi.h.
7604
7605 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7606
7607         * cfganal.c (keep_with_call_p): New function.
7608         (flow_call_edges_add): Prevent splitting a block between a call and
7609         a single-set instruction that should be kept in the same block.
7610
7611 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7612
7613         * doc/install.texi (avr): Update outdated URL.
7614
7615 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7616
7617         * config/stormy16/stormy16.md (pushqi): New.
7618         (popqi): New.
7619         (pushhi): New.
7620         (pophi): New.
7621         (movhi): Remove stack operands.
7622         (movqi): Likewise.
7623         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7624         nonimmediate_nonstack_operand.
7625         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7626         New.
7627         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7628         New.
7629
7630 2002-01-31  Jason Merrill  <jason@redhat.com>
7631
7632         * Makefile.in (c-parse.c): Handle .output file.
7633         * objc/Make-lang.in (objc-parse.c): Likewise.
7634
7635 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7636
7637         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7638         the -me[lb] option is given.  Don't output the default flag
7639         twice.
7640
7641 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7642
7643         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7644         the primary source file; this has not been done yet.
7645         * c-decl.c (c_expand_body): Reset input_filename from
7646         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7647
7648 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7649
7650         * rtlanal.c (subreg_regno_offset): Do not use
7651         SUBREG_REGNO_OFFSET.
7652         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7653         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7654
7655 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7656
7657         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7658         version rather than GNATS version in --version output.
7659
7660 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7661
7662         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7663         when copying back from a temporary.
7664
7665 2002-01-30  Richard Henderson  <rth@redhat.com>
7666
7667         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7668         and new_dest are the same.
7669
7670 2002-01-30  Richard Henderson  <rth@redhat.com>
7671
7672         PR opt/5076
7673         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7674         * rtl.c (note_insn_name): Update.
7675         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7676         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7677         to perform loop rotation.
7678         (expand_exit_loop_top_cond): New.
7679         * tree.h (expand_exit_loop_top_cond): Declare it.
7680         * c-semantics.c (genrtl_while_stmt): Use it.
7681         (genrtl_for_stmt): Likewise.
7682
7683 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7684
7685         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7686         arguments to 64-bit boundaries on 64-bit ABIs.
7687
7688 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7689
7690         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7691
7692 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7693
7694         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7695         invalid type.
7696
7697 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7698
7699         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7700         * config/sparc/sparc_bi.h: Remove file.
7701         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7702
7703 2002-01-30  Richard Henderson  <rth@redhat.com>
7704
7705         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7706
7707 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7708
7709         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7710
7711 2002-01-30  Jason Merrill  <jason@redhat.com>
7712
7713         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7714         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7715         (reg_save): Use DW_CFA_offset_extended_sf instead.
7716
7717         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7718
7719 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7720
7721         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7722         in cselib_lookup.
7723
7724 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
7725
7726         * rs6000.md ("*call_value_local32"): Remove constraints.
7727         ("*call_value_local64"): Same.
7728         ("*call_value_indirect_nonlocal_aix32"): Same.
7729         ("*call_value_nonlocal_aix32"): Same.
7730         ("*call_value_indirect_nonlocal_aix64"): Same.
7731         ("*call_value_nonlocal_aix64"): Same.
7732         ("*call_value_nonlocal_sysv"): Same.
7733
7734 2002-01-29  Richard Henderson  <rth@redhat.com>
7735
7736         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7737
7738 2002-01-29  Richard Henderson  <rth@redhat.com>
7739
7740         * expr.c (force_operand): Ignore flag_pic for detecting pic
7741         address loads.
7742         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7743         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7744         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7745         instead of open-coded loop.
7746         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7747         be fixed when in use.
7748
7749 2002-01-29  Richard Henderson  <rth@redhat.com>
7750
7751         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7752         * sched-rgn.c (propagate_deps): Update them.
7753         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
7754         clobbers list when either gets too long.
7755
7756 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7757
7758         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7759         and INDEX_REGS the same as GENERAL_REGS.
7760         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7761
7762 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7763
7764         * tree.c (build_nonstandard_integer_type): Correct prototype.
7765
7766 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
7767
7768         * config/s390/s390.md (movstrsico, movstrdix_64,
7769         movstrsix_31): Remove, replace by ...
7770         (movstrdi_short, movstrsi_short, movstrdi_long,
7771         movstrsi_long): ... these.  New.
7772         (movstrdi, movstrsi): Adapt.
7773
7774         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7775         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7776         Remove unnecessary CC clobber.
7777         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7778         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7779
7780         (divmoddi4): Don't partially initialize TImode register.
7781
7782 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
7783
7784         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7785
7786 2002-01-29  Richard Henderson  <rth@redhat.com>
7787
7788         * flow.c (print_rtl_and_abort): Remove.
7789         (print_rtl_and_abort_fcn): Remove.
7790         (verify_local_live_at_start): Use dump_bb instead.
7791         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7792         (verify_wide_reg_1): Return 2 on mode test failure.
7793
7794 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7795
7796         PR c/3325, c/3326, c/2511, c/3347
7797         * c-decl.c (enum_decl_context): Remove BITFIELD.
7798         (grokdeclarator): Take bitfield width as an input.
7799         Ensure bitfields are given the correct type.  Perform
7800         bitfield width validation with build_bitfield_integer_type
7801         rather than waiting for finish_struct.
7802         (grok_typename, grok_typename_in_parm_context, start_decl,
7803         push_parmdecl, grokfield, start_function): Update calls to
7804         grokdeclarator.
7805         (build_bitfield_integer_type): New function.
7806         (finish_struct): Move bitfield validation to grokdeclarator
7807         and build_bitfield_integer_type.
7808         * tree.c (build_nonstandard_integer_type): New function.
7809         * tree.h (build_nonstandard_integer_type): New prototype.
7810 objc:
7811         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7812
7813 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7814
7815         PR other/1502:
7816         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7817         don't ignore unrecognized -W* options.
7818         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7819         * cpplib.h (cpp_handle_option): Adjust prototype.
7820         * c-decl.c (c_decode_options): Pass 0 as last argument to
7821         cpp_handle_option.
7822
7823         PR c/2896:
7824         * gcc.c (cpp_unique_options): Split from cpp_options.
7825         (cpp_options): Source cpp_unique_options.
7826         (default_compilers): Use cpp_unique_options instead of cpp_options
7827         when used together with cc1_options.
7828         (static_specs): Add cpp_unique_options.
7829         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7830         when used together with cc1_options.
7831
7832 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7833
7834         * config/h8300/h8300-protos.h: Update the prototype of
7835         output_a_shift.
7836         * config/h8300/h8300.c (output_a_shift): Remove an unused
7837         argument 'insn'.  Remove redundant code.
7838         * config/h8300/h8300.md: Adust to the new prototype of
7839         output_a_shift.
7840
7841 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7842
7843         * config/h8300/h8300-protos.h: Update the prototypes of
7844         emit_a_rotate and expand_a_rotate.
7845         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7846         first argument to 'enum rtx_code'.
7847         (expand_a_rotate): Likewise.
7848
7849 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7850
7851         * config/h8300/h8300-protos.h: Update the prototype of
7852         output_simode_bld.
7853         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7854         'log2'.
7855         * config/h8300/h8300.md: Adjust to the new prototype.
7856
7857 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7858
7859         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7860         redundant code.
7861
7862 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7863
7864         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7865         is a fixed register before returning pic_offset_table_rtx.
7866         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7867         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7868
7869 2002-01-28  Jason Merrill  <jason@redhat.com>
7870
7871         * dwarf2.h: Sync with src version.
7872
7873 2002-01-28  Paul Koning  <pkoning@equallogic.com>
7874
7875         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7876         BT_FN_VOID_PTR_VAR.
7877         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7878         * doc/extend.texi (__builtin_prefetch): Update documentation:
7879         first argument is now const void ptr.
7880
7881 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7882
7883         * config/h8300/h8300-protos.h: Remove an unused prototype.
7884
7885 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
7886
7887         * toplev.c (lang_independent_init): Round up identifier size.
7888
7889 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7890
7891         * config.gcc: Revert previous change.
7892
7893 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
7894
7895         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7896
7897 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7898
7899         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7900         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
7901         other non-elf netbsd config frags.
7902         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7903         collect2 will does that.
7904         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7905         shared-lib frobbing will work.
7906
7907 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7908
7909         * config/h8300/h8300.h: Fix formatting.
7910         * config/h8300/h8300.md: Likewise.
7911
7912 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
7913
7914         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7915         the old, removed AAA_standards fix.
7916         * fixinc/fixincl.x: Rebuilt.
7917
7918 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
7919
7920         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7921         atexit call in crtbegin, hooked in after call to frame_dummy;
7922         register EH before registering __fini__start.
7923
7924 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
7925
7926         * config/rs6000/altivec.h: Remove spurious semicolons.
7927
7928 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7929
7930         * config/h8300/h8300.md: Replace dead bit extraction patterns
7931         with ones that work.
7932
7933 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7934
7935         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7936         if not STRICT_ALIGNMENT.
7937         * rtl.h (MEM_ALIGN): Likewise.
7938
7939 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7940
7941         * doc/invoke.texi (-fdump-translation-unit): Revert this
7942         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7943
7944 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7945
7946         * config/h8300/h8300.md (define_constants): New.
7947         (anonymous patterns) Use defined constants appropriately.
7948
7949 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7950
7951         * config/h8300/h8300.c (function_arg): Remove redundant code.
7952
7953 2002-01-26  Richard Henderson  <rth@redhat.com>
7954
7955         * sched-deps.c (reg_pending_uses_head): New.
7956         (reg_pending_barrier): Rename from reg_pending_sets_all.
7957         (find_insn_list): Don't mark inline.
7958         (find_insn_mem_list): Remove.
7959         (add_dependence_list, add_dependence_list_and_free): New.
7960         (flush_pending_lists): Replace only_write param with separate
7961         for_read and for_write parameters.  Update all callers.  Use
7962         add_dependence_list_and_free.
7963         (sched_analyze_1): Do not add reg dependencies here; just set
7964         the pending bits.  Use add_dependence_list.
7965         (sched_analyze_2): Likewise.
7966         (sched_analyze_insn): Replace schedule_barrier_found with
7967         reg_pending_barrier.  Add all dependencies for pending reg
7968         uses, sets, and clobbers.
7969         (sched_analyze): Don't add reg dependencies for calls, just
7970         set pending bits.  Use regs_invalidated_by_call.  Treat
7971         sched_before_next_call as a normal list, not a fake insn.
7972         (init_deps): No funny init for sched_before_next_call.
7973         (free_deps): Free pending mems lists.  Don't zero reg_last.
7974         (init_deps_global): Init reg_pending_uses.
7975         (finish_deps_global): Free it.
7976         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
7977         (find_insn_mem_list): Remove.
7978         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7979         (propagate_deps): Use them.  Zero temp mem lists.
7980
7981 2002-01-26  Richard Henderson  <rth@redhat.com>
7982
7983         * Makefile.in (CRTSTUFF_CFLAGS): New.
7984         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7985         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7986         crtstuff.c instead of alpha assembly version.
7987         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7988         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
7989         not FORCE_{INIT,FINI}_SECTION_ALIGN.
7990         (__do_global_dtors_aux): Mark used.
7991         (frame_dummy, __do_global_ctors_aux): Mark used.
7992         (fini_dummy, init_dummy): Remove.
7993
7994         * config/alpha/crtbegin.asm: Remove file.
7995         * config/alpha/crtend.asm: Remove file.
7996         * config/alpha/t-crtbe: Remove file.
7997         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7998         (LINK_EH_SPEC): New.
7999
8000         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8001         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8002         calling constructors.
8003         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8004
8005         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8006         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8007         CRT_END_INIT_DUMMY hack.
8008         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8009         FORCE_{INIT,FINI}_SECTION_ALIGN.
8010
8011         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8012         FORCE_{INIT,FINI}_SECTION_ALIGN.
8013
8014         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8015         invocation sequence.
8016         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8017
8018         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8019         (FORCE_CODE_SECTION_ALIGN): New.
8020
8021 2002-01-26  Richard Henderson  <rth@redhat.com>
8022
8023         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8024
8025 2002-01-26  Richard Henderson  <rth@redhat.com>
8026
8027         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8028         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8029
8030 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8031
8032         * config/h8300/h8300.md: Remove bit extraction patterns that
8033         cannot be triggered.
8034         Restrict each bit extraction pattern to a variant on which the
8035         pattern is tested.
8036
8037 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8038
8039         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8040
8041 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8042
8043         * config/h8300/h8300.md: Remove bit test patterns that cannot
8044         be triggered.
8045         Restrict each bit test pattern to a variant on which the
8046         pattern is tested.
8047
8048 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8049
8050         * builtins.c (expand_builtin_strncat): Remove redundant check for
8051         INTEGER_CST.
8052
8053 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8054
8055         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8056         default setting.
8057         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8058         existing setting.
8059
8060 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8061
8062         * dbxout.c (dbxout_init): Use assemble_name rather than just
8063         stripping off the first character.
8064         (dbxout_source_file): Likewise.
8065
8066 2002-01-25  DJ Delorie  <dj@redhat.com>
8067
8068         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8069         using rtx_equal_p, not by comparing pointers.
8070
8071 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8072
8073         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8074         for PIC_OFFSET_TABLE_REGNUM.
8075         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8076
8077 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8078
8079         * config.gcc (x86_64-*-freebsd*): New target.
8080         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8081         value.
8082         (i[34567]86-*-freebsd*): Don't include svr4.h.
8083         * config/i386/freebsd64.h: New file.
8084
8085 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8086
8087         * config/alpha/x-vms (version): Make static.
8088
8089         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8090         in previous checkin.
8091
8092         * Makefile.in (install-headers-cp): New target.
8093         * config.gcc (alpha-dec-*vms*): Install headers with
8094         install-headers-cp
8095
8096 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8097
8098         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8099         avoid it's copies.
8100
8101 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8102
8103         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8104         of compare_tree_int.
8105         (expand_builtin_strncat): Likewise.
8106         * c-decl.c (finish_struct): Use tree_low_cst.
8107         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8108         * tree.c (compare_tree_int): Likewise.
8109
8110 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8111
8112         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8113         adjustments even if they are implemented by more than two insns.
8114
8115 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8116
8117         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8118         * df.h (struct ref): Kill B.
8119         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8120
8121         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8122         * flow.c (propagate_one_insn): Use it.
8123         (mark_used_regs): Handle NIL.
8124
8125 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8126
8127         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8128         to help folding.
8129
8130 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8131
8132         * rs6000.md (prefetch): Make address V4SI mode so that the address
8133         is restricted to legitimate form for instruction.
8134
8135 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8136
8137         * doc/install.texi (xtensa-*-elf): New target.
8138         (xtensa-*-linux*): New target.
8139         * doc/contrib.texi: Add myself.
8140
8141 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8142
8143         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8144         purpose register to hold an SImode (or smaller) value.
8145
8146 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8147
8148         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8149         registry only.
8150         * crtstuff.c: Likewise.
8151
8152 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8153
8154         * config/h8300/h8300.md (negation patterns): Tighten
8155         predicates to register_operand.
8156
8157 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8158
8159         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8160         mode, not Pmode.
8161
8162         * builtins.c (expand_builtin_prefetch): Same.
8163
8164 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8165
8166         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8167         modes.
8168
8169 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8170
8171         * config/h8300/h8300.c (print_operand): Remove support for
8172         operand character 'A'.
8173         * config/h8300/h8300.md (three anonymous patterns): Replace
8174         operand character 'A' with either 'T' or 'S'.
8175
8176 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8177
8178         * config/h8300/h8300.c (print_operand): Remove support for
8179         operand character 'U'.
8180
8181 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8182
8183         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8184
8185 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8186
8187         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8188         values to be assigned to the stack pointer.
8189
8190 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8191
8192         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8193         to const_double needs to be done right for big-endian systems.
8194
8195 2002-01-24  Jason Merrill  <jason@redhat.com>
8196
8197         PR c++/2432
8198         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8199         to can_throw_internal.
8200
8201 2002-01-23  Richard Henderson  <rth@redhat.com>
8202
8203         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8204         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8205
8206 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8207
8208         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8209         (symGOT2reg): Use them, then set as GOT value as unchanging.
8210         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8211         as a temporary, if possible.
8212         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8213         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8214
8215 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8216
8217         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8218         accept to accept 0x80 as operands[2].
8219
8220 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8221
8222         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8223
8224 2002-01-23  Richard Henderson  <rth@redhat.com>
8225
8226         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8227
8228 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8229
8230         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8231         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8232         an attribute.
8233
8234 2002-01-23  Richard Henderson  <rth@redhat.com>
8235
8236         * expr.c (move_by_pieces_1): Extend size before negation.
8237
8238         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8239         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8240         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8241         * config/m68k/t-m68kelf: Likewise.
8242
8243 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8244
8245         * config/xtensa/elf.h: New file.
8246         * config/xtensa/lib1funcs.asm: New file.
8247         * config/xtensa/lib2funcs.S: New file.
8248         * config/xtensa/linux.h: New file.
8249         * config/xtensa/t-xtensa: New file.
8250         * config/xtensa/xtensa-config.h: New file.
8251         * config/xtensa/xtensa-protos.h: New file.
8252         * config/xtensa/xtensa.c: New file.
8253         * config/xtensa/xtensa.h: New file.
8254         * config/xtensa/xtensa.md: New file.
8255         * config.gcc (xtensa-*-elf*): New target.
8256         (xtensa-*-linux*): New target.
8257         * cse.c (canon_hash): Compare rtx pointers instead of register
8258         numbers.  This is required for the Xtensa port.
8259         * integrate.c (copy_insn_list): Handle case where the static
8260         chain is in memory and the memory address has to be copied to
8261         a register.
8262         * doc/invoke.texi (Option Summary): Add Xtensa options.
8263         (Xtensa Options): New node.
8264         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8265
8266 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8267
8268         * diagnostic.c (internal_error): Do ICE suppression only
8269         when ENABLE_CHECKING is not defined.
8270
8271         * c-typeck.c (require_complete_type): Return error_mark_node
8272         if type is error_mark_node.
8273
8274 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8275
8276         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8277         -Os and issue a warning.
8278
8279 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8280
8281         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8282         current (lack of) need for host configuration by hand.
8283
8284         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8285         references.  Documentation of some target macros moved from
8286         hostconfig.texi to tm.texi.
8287
8288 2002-01-23  Will Cohen  <wcohen@redhat.com>
8289
8290         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8291         defined.
8292
8293 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8294
8295         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8296         operand[3].
8297
8298 2002-01-23  Jason Merrill  <jason@redhat.com>
8299
8300         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8301
8302         * function.c (assign_parms): Don't put args of inline functions
8303         into registers when not optimizing.
8304
8305 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8306
8307         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8308         (prologue_use): New pattern.
8309         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8310         preference to gen_rtx_USE.
8311         (thumb_expand_prologue): Use gen_prologue_use in preference to
8312         gen_rtx_USE.
8313         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8314         gen_rtx_USE.
8315
8316 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8317
8318         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8319
8320 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8321
8322         PR c/3504
8323         * doc/extend.texi: Correct documentation of __alignof__.
8324
8325 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8326
8327         * params.h: Rename arguments of DEFPARAM so that it will be
8328         recognized as a translation keyword.
8329
8330 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8331
8332         * extend.texi: Document altivec functions.
8333         Fix N-bit adjectives in X86 builtin documentation.
8334
8335 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8336
8337         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8338         auto_inc_dec values.
8339
8340 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8341
8342         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8343         after backslash.
8344         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8345
8346 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8347
8348         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8349
8350 2002-01-22  Richard Henderson  <rth@redhat.com>
8351
8352         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8353         copy_insn not copy_rtx.
8354
8355 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8356
8357         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8358         "nonzero" as that might add "1" bits.  Ensure "constop" is
8359         properly sign extened.
8360         (force_to_mode): Tweak for sign extended constop.
8361
8362 2002-01-22  Richard Henderson  <rth@redhat.com>
8363
8364         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8365         for_each_rtx instead of assuming we're already looking at the MEM.
8366         (split_small_symbolic_mem_operand): Likewise.
8367         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8368         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8369
8370 2002-01-22  Richard Henderson  <rth@redhat.com>
8371
8372         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8373         sequence number for the literal.
8374         (divmoddi_internal_er): Likewise.
8375
8376 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8377
8378         PR java/4972
8379         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8380         in LIBICONV variable.
8381         * configure: Regenerated.
8382
8383 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8384
8385         * dependence.c (build_def_use): Remove array_idx.
8386
8387         * dwarfout.c (last_filename): Remove.
8388         (output_compile_unit_die): Remove last_filename.
8389
8390 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8391             Richard Henderson  <rth@redhat.com>
8392
8393         PR opt/3640
8394         * fold-const.c (fold): Optimize unsigned comparisons against
8395         UINT_MAX (and similar unsigned constants).
8396
8397 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8398
8399         * Makefile.in (loop.o): Depend on OPTABS_H.
8400         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8401         against the predicate.
8402
8403         PR target/5379
8404         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8405         for the address operand.
8406
8407 2002-01-22  Richard Henderson  <rth@redhat.com>
8408
8409         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8410
8411 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8412
8413         PR other/5450
8414         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8415         preprocessor flags.
8416
8417 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8418
8419         * config.gcc (x86_64-*-netbsd*): New target.
8420         * config/i386/netbsd64.h: New file.
8421
8422 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8423
8424         * regrename.c (kill_value): Fix typo.
8425
8426 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8427
8428         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8429
8430         * config/rs6000/rs6000.h: Same.
8431
8432         * function.c (instantiate_virtual_regs): Remove
8433         STARTING_FRAME_PHASE.
8434         (assign_stack_local_1): Same.
8435         Calculate frame phase.
8436
8437 2002-01-22  Nick Clifton  <nickc@redhat.com>
8438
8439         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8440         variable declaration to outer scope in order to simplify
8441         future extensions.
8442         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8443         arm_hard_regno_mode_ok.
8444         * config/arm/arm-protos.h: Add a prototype for
8445         arm_hard_regno_mode_ok.
8446         * config/arm/arm.c (soft_df_operand): Remove now redundant
8447         check for DImode values using IP_REGNUM.
8448         (nonimmediate_soft_df_operand): Remove now redundant check for
8449         DImode values using IP_REGNUM.
8450         (arm_hard_regno_mode_ok): New function. New check: make sure
8451         that DImode values are not stored in IP_REGNUM.
8452
8453         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8454         note with a USE.
8455         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8456
8457 2002-01-22  Jason Merrill  <jason@redhat.com>
8458
8459         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8460         consistency if this COMPOUND_STMT is scoped.
8461
8462 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8463
8464         * predict.c: Fix formatting.
8465         * print-tree.c: Likewise.
8466         * protoize.c: Likewise.
8467         * real.h: Likewise.
8468         * rtl.h: Likewise.
8469         * sbitmap.h: Likewise.
8470         * scan.c: Likewise.
8471         * sched-deps.c: Likewise.
8472         * sched-vis.c: Likewise.
8473         * sdbout.c: Likewise.
8474         * sibcall.c: Likewise.
8475         * ssa.c: Likewise.
8476         * ssa-ccp.c: Likewise.
8477         * ssa-dce.c: Likewise.
8478         * stmt.c: Likewise.
8479         * stor-layout.c: Likewise.
8480         * system.h: Likewise.
8481
8482 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8483
8484         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8485         if fits in bounds of base type.
8486
8487         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8488         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8489         (add_bound_info, default): If can't find a context, make a
8490         SAVE_EXPR.
8491         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8492
8493 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8494
8495         * c-typeck.c (parser_build_binary_op): If result from
8496         build_binary_op is ERROR_MARK just return error_mark_node without
8497         further processing.
8498
8499 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8500
8501         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8502         Split a.out-specific bits into...
8503         * config/netbsd-aout.h: ...this.
8504         * config/netbsd-elf.h: New file.
8505         * config/alpha/netbsd-elf.h: Remove.
8506         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8507         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8508         (STARTFILE_SPEC): Remove redundant definition.
8509         (ENDFILE_SPEC): Likewise.
8510         (LINK_SPEC): Likewise.
8511         (CPP_SPEC): Likewise.
8512         (ASM_SPEC): Likewise.
8513         (LIB_SPEC): Likewise.
8514         (SWITCH_TAKES_ARG): Likewise.
8515         (TARGET_MEM_FUNCTIONS): Likewise.
8516         (CPP_PREDEFINES): Redefine.
8517         (ASM_FINAL_SPEC): Remove redefinition.
8518         (ASM_COMMENT_START): Redefine.
8519         (FUNCTION_PROFILER): Define.
8520         (TARGET_VERSION): Redefine.
8521         Comment and formatting cleanup.
8522         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8523         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8524         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8525         big- or little-endian.
8526         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8527         * config.gcc (*-*-netbsd*): Add definitions common to all
8528         NetBSD configs.
8529         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8530         gnu_ld definitions.  Add netbsd-elf.h to and remove
8531         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8532         tmake_file, and don't lose previous tmake_file contents.
8533         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8534         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8535         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8536         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8537         (mipsel-*-netbsd*): Rename this to...
8538         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8539         mips/little.h to tm_file for mips*el-*.
8540         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8541         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8542         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8543
8544 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8545
8546         * pa-protos.h (reg_before_reload_operand): New function prototype.
8547         * pa.c (reg_before_reload_operand): New function implementation.
8548         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8549         contraints to "*m".
8550
8551 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8552
8553         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8554
8555 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8556
8557         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8558         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8559         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8560         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8561         (ENDFILE_SPEC): Undefine.
8562         (STARTFILE_SPEC): Redefine for PA.
8563
8564 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8565
8566         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8567
8568 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8569
8570         * config.gcc: Add entries to supported PowerPC --with-cpu
8571         types.
8572
8573 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8574
8575         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8576         true for 64-bit mode only SSE registers in 32-bit mode.
8577
8578 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8579
8580         * unwind-dw2.c: Fix formatting.
8581         * unwind-dw2-fde.c: Likewise.
8582         * unwind-dw2-fde.h: Likewise.
8583         * unwind-pe.h: Likewise.
8584         * varasm.c: Likewise.
8585         * varray.h: Likewise.
8586
8587 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8588
8589         Remove workaround for register stack overwrite bug in mmix.
8590         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8591         support for TARGET_REG_STACK_FILL_BUG.
8592         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8593         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8594         Delete.
8595         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8596         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8597         -mno-reg-stack-fill-bug-workaround.
8598         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8599         machine member has_call_without_parameters.
8600         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8601         -mreg-stack-fill-bug-workaround and
8602         -mno-reg-stack-fill-bug-workaround.
8603         (MMIX Options): Ditto.
8604
8605 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8606
8607         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8608         as appropriate.
8609         Remove redundant code.
8610
8611 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8612
8613         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8614         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8615         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8616         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8617         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8618         out target macro definitions and non-target-specific comments
8619         mostly taken from old versions of the manual.
8620
8621 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8622
8623         * config/h8300/h8300.h: Fix comment formatting.
8624         * config/ia64/aix.h: Likewise.
8625         * config/ia64/ia64-protos.h: Likewise.
8626         * config/ia64/ia64.c: Likewise.
8627         * config/ia64/ia64.h: Likewise.
8628         * config/ia64/ia64intrin.h: Likewise.
8629         * config/ia64/linux.h: Likewise.
8630         * config/ia64/unwind-aix.c: Likewise.
8631         * config/ia64/unwind-ia64.c: Likewise.
8632
8633 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8634
8635         * config/h8300/h8300.c: Revise comments about shift code.
8636
8637 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8638
8639         * config/h8300/h8300.c (function_arg): Update a comment.
8640
8641 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8642
8643         * config/h8300/h8300.md: Update the comments at the beginning
8644         of the file.
8645
8646 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8647
8648         * config/i370/i370.c: Fix comment formatting.
8649         * config/i370/i370.h: Likewise.
8650         * config/i370/i370.md: Likewise.
8651         * config/i370/linux.h: Likewise.
8652
8653 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8654
8655         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8656
8657         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8658         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8659         in incomplete case.
8660
8661 2002-01-20  Graham Stott  <grahams@redhat.com>
8662
8663         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8664
8665 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8666
8667         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8668
8669 2002-01-19  Tom Rix  <trix@redhat.com>
8670
8671         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8672
8673 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8674
8675         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8676
8677         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8678         STARTING_FRAME_PHASE.
8679         (STARTING_FRAME_PHASE): New.
8680         (instantiate_virtual_regs): Check saneness of
8681         STARTING_FRAME_PHASE.
8682
8683         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8684
8685 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8686
8687         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8688
8689 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8690
8691         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8692         be used for bootstrapping GCC 3.0.
8693
8694 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8695
8696         * config/h8300/h8300.md: Fix an insn length.
8697
8698 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8699
8700         * bitmap.h: Fix comment formatting.
8701         * combine.c: Likewise.
8702         * cppfiles.c: Likewise.
8703         * c-pragma.h: Likewise.
8704         * c-typeck.c: Likewise.
8705         * df.c: Likewise.
8706         * dwarf2out.c: Likewise.
8707         * function.c: Likewise.
8708         * gcc.c: Likewise.
8709         * genattrtab.c: Likewise.
8710         * gthr-win32.h: Likewise.
8711         * haifa-sched.c: Likewise.
8712         * predict.c: Likewise.
8713         * rtlanal.c: Likewise.
8714         * rtl.h: Likewise.
8715         * unwind-dw2-fde.h: Likewise.
8716         * unwind-pe.h: Likewise.
8717         * vmsdbgout.c: Likewise.
8718
8719 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8720
8721         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8722         if type_required and passed decl.
8723
8724 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
8725
8726         * config.gcc (cpu_type): Include altivec.h in powerpc
8727         extra_headers.
8728         Same for darwin.
8729
8730         * config/rs6000/altivec.h: New.
8731
8732 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
8733
8734         * doc/install.texi (*-ibm-aix*): Update assembler and exception
8735         handling information.
8736         * doc/trouble.texi (Interoperation): Add libstdc++ information
8737         for AIX.
8738         (Misunderstandings): Add template instantiation and static template
8739         member information for AIX.
8740
8741 2002-01-17  Jason Merrill  <jason@redhat.com>
8742
8743         * dbxout.c (dbxout_type): Support const and volatile.
8744
8745         * except.c (add_partial_entry): Remove backwards compatibility code.
8746         (end_protect_partials): Likewise.
8747
8748 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
8749
8750         * config/ia64/ia64.md (prologue_use): New.
8751         * config/ia64/ia64.c (ia64_expand_prologue): Use
8752         gen_prologue_use instead of gen_rtx_USE.
8753         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8754         as CODE_FOR_pred_rel_mutex.
8755         (ia64_sched_reorder2): Likewise.
8756
8757 2002-01-16  Eric Christopher  <echristo@redhat.com>
8758
8759         * config/mips/r3900.h: Reformat.
8760         (SUBTARGET_CPP_SIZE_SPEC): Remove.
8761         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8762         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8763         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8764         * config/mips/t-elf: Remove mips3 multilib.
8765
8766 2002-01-16  H.J. Lu <hjl@gnu.org>
8767
8768         * config/mips/linux.h: Include "mips/abi64.h".
8769
8770 2002-01-16  H.J. Lu <hjl@gnu.org>
8771
8772         * config/mips/t-linux: New.
8773
8774         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8775
8776         * config/mips/linux.h: Don't include "gofast.h".
8777         (INIT_SUBTARGET_OPTABS): Removed.
8778
8779 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8780
8781         * config/h8300/h8300-protos.h: Replace emit_a_shift with
8782         output_a_shift.
8783         * config/h8300/h8300.c: Likewise.
8784         * config/h8300/h8300.md: Likewise.
8785
8786 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8787
8788         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8789         spaces after an opcode name.
8790         (pushqi1_h8300hs): Likewise.
8791         (pushhi1_h8300hs): Likewise.
8792
8793 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8794
8795         * doc/extend.texi: Replace "option" with "attribute"
8796         appropriately.
8797
8798 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8799
8800         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8801         (and:DI () (const_int -8)).
8802         (split_small_symbolic_mem_operand): Split
8803         (mem (and:DI () (const_int -8)).
8804
8805 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8806
8807         PR target/5309:
8808         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8809         same way as TYPE_IMUL.
8810         (ultrasparc_sched_reorder): Likewise.
8811         * config/sparc/sparc.md (type): Add comment to update
8812         ultrasparc_sched_reorder when making changes.
8813
8814 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8815
8816         * doc/invoke.texi: Change the dump file name of block
8817         reordering pass from 28.bbro to 29.bbro.
8818         Mention -dk option.
8819
8820 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
8821
8822         * i386.md (minsf splitter): Fix pasto.
8823
8824 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8825
8826         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8827         to frame pointer initialisation instruction.
8828         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8829         initialisation instruction.
8830         (soft_df_operand): Do not accept the IP register.
8831         (nonimmediate_soft_df_operand): Do not accept the IP register.
8832
8833 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8834
8835         PR target/5357:
8836         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8837         MASK_V8 being both set.
8838
8839 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
8840
8841         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8842         insn for GOT register; add REG_MAYBE_DEAD notes instead.
8843         config/s390/s390.md (call, call_value): Add GOT register to
8844         CALL_INSN_FUNCTION_USAGE where needed.
8845         (call_exp, call_value_exp): New.
8846
8847 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8848
8849         * config/arm/arm.c: General formatting tidy up.
8850
8851 2002-01-16  Graham Stott  <grahams@redhat.com>
8852
8853         * calls.c (try_to_integrate): Use "(size_t)" intermediate
8854         cast and when casting an integer literal to "rtx" pointer.
8855         (expand_call): Likewise.
8856         * flow.c (try_pre_increment): Likewise.
8857         (find_use_as_address): Likewise.
8858         * integrate.c (expand_iline_function): Likewise.
8859         * regmove.c (try_auto_increment): Likewise.
8860
8861 2002-01-16  Graham Stott  <grahams@redhat.com>
8862
8863         * sched-rgn.c (passed): Use sbitmap_free.
8864         (header): Likewise.
8865         (inner): Likewise.
8866         (in_queue): Likewise.
8867         (in_stack): Likewise.
8868
8869 2002-01-15  Eric Christopher  <echristo@redhat.com>
8870
8871         * flow.c (propagate_one_insn): Change to use fatal_insn.
8872
8873 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8874
8875         * expmed.c (extract_fixed_bit_field): Remove unused code.
8876         * system.h: Poison SLOW_ZERO_EXTEND.
8877         * doc/tm.texi: Remove.
8878         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8879         * config/arm/arm.h: Likewise.
8880         * config/avr/avr.h: Likewise.
8881         * config/clipper/clipper.h: Likewise.
8882         * config/convex/convex.h: Likewise.
8883         * config/d30v/d30v.h: Likewise.
8884         * config/dsp16xx/dsp16xx.h: Likewise.
8885         * config/elxsi/elxsi.h: Likewise.
8886         * config/fr30/fr30.h: Likewise.
8887         * config/h8300/h8300.h: Likewise.
8888         * config/i370/i370.h: Likewise.
8889         * config/i386/i386.h: Likewise.
8890         * config/m68k/m68k.h: Likewise.
8891         * config/mips/mips.h: Likewise.
8892         * config/ns32k/ns32k.h: Likewise.
8893         * config/pdp11/pdp11.h: Likewise.
8894         * config/pj/pj.h: Likewise.
8895         * config/s390/s390.h: Likewise.
8896         * config/sh/sh.h: Likewise.
8897         * config/stormy16/stormy16.h: Likewise.
8898         * config/v850/v850.h: Likewise.
8899         * config/vax/vax.h: Likewise.
8900         * config/we32k/we32k.h: Likewise.
8901
8902 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8903
8904         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8905         (altivec_lvsl): Change constraint to b.
8906         (altivec_lvsr): Same.
8907         (altivec_lvebx): Same.
8908         (altivec_lvehx): Same.
8909         (altivec_lvewx): Same.
8910         (altivec_lvxl): Same.
8911         (altivec_lvx): Same.
8912         (altivec_stvx): Add parallel.
8913         (altivec_stvxl): Same.
8914         (altivec_stvehx): Same.
8915         (altivec_stvebx): Same.
8916         (altivec_stvebx): Same.
8917
8918 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8919
8920         * config.gcc: Change altivec.h to altivec-defs.h.
8921
8922         * config/rs6000/altivec.h: Delete.
8923
8924         * config/rs6000/altivec-defs.h: Add.
8925
8926 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8927
8928         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8929         and UMOD modes.
8930
8931         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8932         less than or equal to eight bytes.
8933
8934         * vax.md (andsi3): Remove constraints and change SET destination
8935         operand type to nonimmediate_operand.
8936         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
8937         when it is a CONST_INT.
8938
8939 2002-01-15  Jason Merrill  <jason@redhat.com>
8940
8941         * c-common.def (FILE_STMT): New code.
8942         * c-common.c (statement_code_p): It's a statement.
8943         * c-common.h (stmt_tree_s): Add x_last_filename.
8944         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8945         (last_expr_filename): New macro.
8946         * c-semantics.c (begin_stmt_tree): Initialize it.
8947         (add_stmt): If the filename changed, also insert a
8948         FILE_STMT.
8949         (expand_stmt): Handle seeing one.
8950
8951 2002-01-15  Eric Christopher  <echristo@redhat.com>
8952
8953         * flow.c (propagate_one_insn): Add error message and print out
8954         insn for debugging.
8955
8956 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8957
8958         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8959         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8960         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8961         TRAMPOLINE_ALIGNMENT.
8962         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
8963         to be in bits.
8964         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8965         PCC_BITFIELD_TYPE_MATTERS.
8966         * config/interix.h (STDC_VALUE): Remove.  Use
8967         STDC_0_IN_SYSTEM_HEADERS.
8968         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8969         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8970         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8971
8972 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8973
8974         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8975         not work on this platform currently.
8976
8977 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8978
8979         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8980         readonly_warning in _().
8981
8982 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
8983
8984         * gcc.c (delete_if_ordinary): Backout previous change.
8985
8986 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8987
8988         * config/h8300/h8300.c (print_operand): Remove support for
8989         unused operand characters.
8990
8991         * read-rtl.c: Fix formatting.
8992         * real.c: Likewise.
8993         * recog.c: Likewise.
8994         * regclass.c: Likewise.
8995         * regmove.c: Likewise.
8996         * reg-stack.c: Likewise.
8997         * reload1.c: Likewise.
8998         * rtlanal.c: Likewise.
8999
9000 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9001
9002         * config/i386/i386.c: Fix formatting.
9003
9004 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9005
9006         * c-typeck.c (process_init_element): Don't save_expr
9007         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9008
9009 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9010
9011         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9012         emit optional traceback table if optimize_size or TARGET_ELF.
9013         * config/rs6000/rs6000.md (prefetch): New.
9014
9015 2002-01-15  Andreas Jaeger  <aj@suse.de>
9016
9017         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9018
9019 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9020
9021         * mips-tfile.c: Fix formatting.
9022
9023 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9024
9025         * unroll.c (final_reg_note_copy): Fix previous commit.
9026
9027 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9028
9029         * config/h8300/h8300-protos.h: Remove the prototype for
9030         eq_operator.
9031         * config/h8300/h8300.c (eq_operator): Remove.
9032
9033 2002-01-14  Richard Henderson  <rth@redhat.com>
9034
9035         * config/i386/i386.md (prefetch): Tidy.
9036         (prefetch_3dnow): Fix locality operand.
9037
9038 2002-01-14  Richard Henderson  <rth@redhat.com>
9039
9040         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9041         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9042
9043 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9044
9045         * reload1.c (reload_combine): Pass reg_sum replacement through
9046         copy_rtx in loop performing multiple changes.
9047
9048 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9049
9050         * except.c (remove_unreachable_regions): New.
9051         (free_eh_status): Clear exception_handler_labels.
9052         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9053         (find_exception_handler_labels): Don't add the same label more than
9054         once.
9055         (remove_exception_handler_label): Don't die if
9056         find_exception_handler_labels hasn't been called for the current
9057         function yet.
9058
9059 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9060
9061         * toplev.c (rest_of_compilation): Rebuild jump labels after
9062         gcse.
9063
9064 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9065
9066         * doc/extend.texi: Move documentation of X86 built-in functions
9067         here.
9068         * doc/invoke.texi: From here.
9069         * doc/sourcebuild.texi: Document location of documentation for
9070         machine built-in functions.
9071
9072 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9073
9074         * cppfiles.c (TEST_THRESHOLD): New macro.
9075         (SHOULD_MMAP): Ditto.
9076         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9077         be used.
9078
9079 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9080
9081         * unroll.c (final_reg_note_copy): Properly handle
9082         REG_LABEL
9083         (unroll_loops): Fix LOOP_CONDITION heuristics.
9084
9085 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9086
9087         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9088         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9089
9090 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9091
9092         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9093         threaded loop.
9094
9095 2002-01-14  Tom Rix  <trix@redhat.com>
9096
9097         * config/rs6000/rs6000.md: Fix typo with sradi.
9098
9099 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9100
9101         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9102         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9103         (clrstrdi, clrstrsi): Adapt callers.
9104
9105         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9106
9107         (movti splitter): Never use register 0 as base register.
9108
9109 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9110
9111         * combine.c (simplify_shift_const): Always generate new rtx
9112         for shift expression instead of reusing given expression.
9113
9114 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9115
9116         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9117         alpha_legitimize_address unless mode is Pmode.
9118
9119 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9120
9121         * doc/md.texi (Modifiers): Document the '*' constraint for the
9122         user.
9123
9124         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9125         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9126         for xstormy16 too.
9127
9128 2002-01-13  Richard Henderson  <rth@redhat.com>
9129
9130         * reload.c (find_reloads): Use a hard reg destination as reload reg
9131         for an input reload of the source.
9132
9133 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9134
9135         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9136         more generic.
9137
9138 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9139
9140         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9141         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9142
9143         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9144
9145 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9146
9147         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9148
9149 2002-01-12  Tom Rix  <trix@redhat.com>
9150
9151         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9152         TARGET_POWERPC64.
9153
9154 2002-01-12  Richard Henderson  <rth@redhat.com>
9155
9156         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9157
9158         * doc/invoke.texi: Update Alpha options.
9159
9160         * doc/invoke.texi: Update i386 built-in function lists.
9161
9162 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9163
9164         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9165         referencing outside.
9166
9167 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9168
9169         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9170         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9171         offsets, and change line folding.
9172         * optabs.c (expand_binop): Remove warnings.
9173         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9174
9175 2002-01-12  Graham Stott <grahams@redhat.com>
9176
9177         * attribs.c (handle_deprecated_attribute): constify WHAT.
9178         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9179         dangling else warning and constify WHAT.
9180         * except.h (struct function, struct inline_remap): Move
9181         struct tag forward defs before all prototypes.
9182         (duplicate_eh_regions): Whitespace.
9183
9184 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9185
9186         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9187         MODE_BASE_REG_CLASS.
9188         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9189
9190 2002-01-12  Richard Henderson  <rth@redhat.com>
9191
9192         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9193         (ix86_expand_vector_move): New.
9194         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9195         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9196         Remove old prefetch builtins.  Special case the logicals removed above.
9197         (ix86_expand_builtin): Likewise.
9198         (safe_vector_operand): Use V4SFmode, not TImode.
9199         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9200         (ix86_expand_timode_binop_builtin): New.
9201         * config/i386/i386-protos.h: Update.
9202         * config/i386/i386.h (enum ix86_builtins): Update.
9203         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9204         Use ix86_expand_vector_move in vector move expanders.
9205         (movti_internal, movti_rex64): Add xorps alternative.
9206         (sse_clrv4sf): Rename and adjust from sse_clrti.
9207         (prefetch): Don't work so hard.
9208         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9209         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9210         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9211
9212 2002-01-11  Richard Henderson  <rth@redhat.com>
9213
9214         * config/i386/mmintrin.h: New file.
9215         * config/i386/xmmintrin.h: New file.
9216         * config.gcc (i?86-*-*): Add extra_headers.
9217         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9218         truncation codes.
9219         (simplify_binary_operation): Handle saturating arithmetic codes.
9220         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9221         not the lowpart subreg.
9222         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9223         on error.
9224         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9225
9226 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9227
9228         * conflict.c (conflict_graph_compute): Free regsets when finished.
9229         * ssa.c (compute_coalesced_reg_partition): Likewise.
9230
9231 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9232
9233         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9234         every where we allocate a register.
9235
9236 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9237
9238         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9239         * lcm.c (compute_earliest, compute_farthest): Likewise.
9240
9241 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9242
9243         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9244
9245 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9246
9247         * doc/rtl.texi (Insns): Fix 2 typos.
9248
9249 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9250
9251         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9252         options.  Use @table @gcctabopt for MMIX options.  Add index
9253         entries for MMIX options.  Start new paragraph with first
9254         heading of the machine-dependent options.
9255
9256 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9257
9258         PR other/5299
9259         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9260         * combine.c (force_to_mode): Same.
9261         * reload1.c (clear_reload_reg_in_use): Same.
9262
9263 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9264
9265         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9266         and 'subtargets'.
9267
9268 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9269             Brad Lucier <lucier@math.purdue.edu>
9270
9271         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9272         mcpu.
9273
9274 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9275
9276         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9277         Protect with IN_LIBGCC.
9278         (LINK_EH_SPEC): Add required trailing space.
9279
9280 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9281
9282         * c-tree.h: Move function declarations so that they are listed
9283         under the filename which contains them.
9284         (check_identifier, finish_decl_top_level,
9285         lookup_name_current_level_global, shadow_record_fields): Remove.
9286
9287 2002-01-11  Andreas Jaeger  <aj@suse.de>
9288
9289         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9290         march.
9291
9292 2002-01-10  Richard Henderson  <rth@redhat.com>
9293
9294         * config/alpha/alpha.c (print_operand): Add 'J'.
9295         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9296         new operand with the sequence number for the lituse.  When splitting
9297         the insns, use gen_movdi_er_high_g and generate a sequence number.
9298         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9299
9300 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9301
9302         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9303         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9304         stvxl.
9305         (altivec_expand_builtin): Same.
9306         (altivec_expand_stv_builtin): New.
9307
9308         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9309
9310         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9311         ("altivec_lvehx"): New.
9312         ("altivec_lvewx"): New.
9313         ("altivec_lvxl"): New.
9314         ("altivec_lvx"): New.
9315         ("altivec_stvx"): New.
9316         ("altivec_stvebx"): New.
9317         ("altivec_stvehx"): New.
9318         ("altivec_stvewx"): New.
9319         ("altivec_stvxl"): New.
9320
9321 2002-01-10  Richard Henderson  <rth@redhat.com>
9322
9323         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9324         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9325         care not to delete instructions twice.
9326
9327 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9328
9329         * toplev.c: Don't declare environ (it's not used anywhere).
9330         * configure.in: Don't check for declaration of environ.
9331         * config/i386/xm-mingw32.h: Don't #define environ.
9332         * config.in, configure: Regenerate.
9333
9334 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9335
9336         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9337         * configure: Regenerate.
9338
9339         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9340         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9341         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9342         alpha/xm-vms.h.
9343         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9344         LIMITS_H_TEST here, not in m68k/x-next.
9345         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9346         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9347
9348         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9349         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9350         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9351
9352         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9353         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9354         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9355         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9356         replacement of quadlib.asm with quadlib.c.
9357
9358         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9359         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9360         config/rs6000/xm-beos.h: Delete file.
9361
9362         * config.gcc: Update to match above changes.
9363
9364 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9365
9366         * config/h8300/h8300.h: Fix comment typos.
9367         * config/h8300/h8300.md: Likewise.
9368         * config/h8300/lib1funcs.asm: Likewise.
9369
9370 2002-01-10  Dale Johannesen  <dalej@apple.com>
9371
9372         PR optimization/5269
9373         * unroll.c (precondition_loop_p): Make *increment be the correct
9374         sign when n_iterations known, to avoid confusing caller.
9375
9376 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9377
9378         * doc/extend.texi (deprecated): Fix a typo.
9379
9380 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9381
9382         * basic-block.h (update_br_prob_note): Declare.
9383         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9384         (try_forward_edges): Care negative frequencies and update note.
9385         (outgoing_edges_match): Tweek conditional merging heuristics.
9386         (try_crossjump_to_edge): use update_br_prob_note.
9387         * cfglayout.c (fixup_reorder_chain): Likewise.
9388         * cfrtl.c (update_br_prob_note): New.
9389         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9390
9391         * i386.c (ix86_decompose_address): Return -1 if address contains
9392         shift.
9393         (legitimate_address_p): Require ix86_decompose_address to return 1.
9394
9395         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9396         (cprop_insn): Likewise.
9397
9398 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9399
9400         * toplev.c: Fix formatting.
9401         * tree.c: Likewise.
9402         * tree-dump.c: Likewise.
9403         * unroll.c: Likewise.
9404         * unwind-dw2.c: Likewise.
9405         * unwind-dw2-fde.c: Likewise.
9406         * unwind-dw2-fde-glibc.c: Likewise.
9407         * unwind-sjlj.c: Likewise.
9408
9409 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9410
9411         * doc/invoke.texi: Document PDP-11 options.
9412
9413 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9414
9415         * config/h8300/h8300.h: Fix formatting.
9416
9417 2002-01-10  Ira Ruben   <ira@apple.com>
9418
9419         Add __attribute__ ((deprecated)).
9420         * extend.texi: Document __attribute__ ((deprecated)).
9421         * invoke.texi: Document -Wno-deprecated-declarations.
9422         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9423         * testsuite/gcc.dg/deprecated.c: New C test.
9424         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9425         (c_common_attribute_table): Add "deprecated" entry.
9426         (handle_deprecated_attribute): New function.
9427         * c-decl.c (deprecated_states): New enum.
9428         deprecated_state: State of "deprecated" handling.
9429         (start_decl): Set deprecated_state based on attributes.
9430         (grokdeclarator): Test for deprecated uses, propagate attribute.
9431         * c-typeck.c (build_component_ref): Test for deprecated fields.
9432         (build_external_ref): Test for deprecated primaries.
9433         * diagnostic.c (warn_deprecated_use) New function to issue
9434         warnings about __attribute__ ((depricated)) references.
9435         * flags.h (warn_deprecated_decl): Extern declared for
9436         -W[no-]deprecated-declarations option.
9437         * print-tree.c (print_node): Show deprecated flag status.
9438         * toplev.c (warn_deprecated_decl): Defined.
9439         (W_options): Added "deprecated-declaration".
9440         * toplev.h (warn_deprecated_use): Extern declared.
9441         * tree.h (struct tree_common): Define deprecated_flag.
9442         (TREE_DEPRECATED): New macro to access flag.
9443         * cp/call.c (build_call): Test for deprecated calls.
9444         * cp/class.c (add_implicitly_declared_members): Set global
9445         flag to tell grokdeclarator to not issue deprecated warnings.
9446         * cp/cp-tree.h: Add extern for adding_implicit_members.
9447         * cp/decl.c (deprecated_states): New enum.
9448         (start_decl): Set deprecated_state based on attributes.
9449         (grokdeclarator): Test for deprecated uses, propagate attribute.
9450         * cp/lex.c (do_identifier): Test for deprecated primaries.
9451         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9452
9453 2002-01-10  Ira Ruben   <ira@apple.com>
9454
9455         Fix to assign attributes to inline member functions.
9456         * cp/decl.c (start_method): Handle attrlist.
9457
9458 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9459
9460         * combine.c (expand_field_assignment): Use subreg_lsb().
9461
9462 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9463
9464         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9465         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9466         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9467         Recurse for any operand of AND as long as constant is non-zero.
9468
9469 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9470
9471         * config/h8300/h8300.md: Remove constraints from expanders.
9472
9473 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9474
9475         * varasm.c: Fix formatting.
9476         * varray.c: Likewise.
9477         * vmsdbgout.c: Likewise.
9478         * xcoffout.c: Likewise.
9479
9480 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9481
9482         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9483         update edge probabilities to match.
9484
9485 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9486
9487         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9488         dependencies.
9489         * doc/languages.texi, doc/sourcebuild.texi: New files.
9490         * doc/configfiles.texi: Make a subsubsection.  Update.
9491         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9492         instructions for building GCC.
9493         * doc/makefile.texi: Make a subsection.
9494         * doc/gccint.texi: Update.
9495
9496 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9497
9498         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9499
9500 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9501
9502         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9503
9504 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9505
9506         * optabs.c (expand_fix): Look for wider integer modes first.
9507
9508         * i386.md (mov?f): Avoid the fake const double trick for medium
9509         memory model.
9510         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9511         (fop_df_4): Disable for SSE compilation.
9512
9513 2002-01-10  Graham Stott  <grahams@redhat.com>
9514
9515         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9516         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9517
9518 2002-01-10  Richard Henderson  <rth@redhat.com>
9519
9520         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9521
9522 2002-01-10  Richard Henderson  <rth@redhat.com>
9523
9524         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9525         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9526
9527 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9528
9529         * combine.c (can_combine_p): Fix a comment typo.
9530
9531 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9532
9533         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9534         empty list correctly.  Change loop index $t to $f for
9535         consistency with rest of Makefile.
9536
9537 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9538
9539         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9540         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9541
9542         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9543         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9544         (altivec_init_builtins): Same.
9545         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9546         (altivec_expand_binop_builtin): Same.
9547         (altivec_expand_ternop_builtin): Same.
9548         (bdesc_dst): New.
9549
9550         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9551         ("altivec_vctuxs"): Fix typo.
9552         ("altivec_vnmsubfp"): Same.
9553         ("altivec_dssall"): New.
9554         ("altivec_mfvscr"): New.
9555         ("altivec_dss"): New.
9556         ("altivec_lvsl"): New.
9557         ("altivec_lvsr"): New.
9558         ("altivec_dstt"): New.
9559         ("altivec_dstst"): New.
9560         ("altivec_dststt"): New.
9561         ("altivec_dst"): New.
9562
9563         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9564         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9565
9566 2002-01-09  Richard Henderson  <rth@redhat.com>
9567
9568         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9569
9570 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9571
9572         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9573         function.
9574         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9575         prototype.
9576         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9577
9578 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9579
9580         * read-rtl.c: Fix formatting.
9581         * real.c: Likewise.
9582         * regclass.c: Likewise.
9583         * regrename.c: Likewise.
9584         * reg-stack.c: Likewise.
9585         * reload1.c: Likewise.
9586         * reload.c: Likewise.
9587         * rtl.c: Likewise.
9588
9589 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9590
9591         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9592         to extract items in the expr_list chain.
9593
9594 2002-01-09  Richard Henderson  <rth@redhat.com>
9595
9596         * config/vax/vax.c (vax_rtx_cost): Never abort.
9597
9598         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9599
9600 2002-01-09  Jan Hubicka  <jh@suse.cz>
9601
9602         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9603
9604 2002-01-09  Richard Henderson  <rth@redhat.com>
9605
9606         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9607         Unify code from various alternatives.
9608
9609 2002-01-09  Richard Henderson  <rth@redhat.com>
9610
9611         * regrename.c (copy_value): Ignore the copy if the source register
9612         is present in the value chain with a narrower mode.
9613
9614 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9615
9616         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9617         for the c4x target. Also improve layout.
9618
9619 2002-01-09  Richard Henderson  <rth@redhat.com>
9620
9621         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9622         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9623         to match insn patterns.
9624
9625 2002-01-09  Richard Henderson  <rth@redhat.com>
9626
9627         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9628         (copyprop_hardreg_forward_1): Likewise.
9629
9630 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9631
9632         * pa.md (decrement_and_branch_until_zero): Change predicate for
9633         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9634
9635 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9636
9637         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9638         gets undefined. For Darwin.
9639
9640 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9641
9642         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9643
9644 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9645
9646         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9647
9648 2002-01-08  Richard Henderson  <rth@redhat.com>
9649
9650         * regrename.c (copy_value): Ignore overlapping copies.
9651
9652 2002-01-08  Richard Henderson  <rth@redhat.com>
9653
9654         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9655         as needed to avoid shared structure.
9656
9657 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9658
9659         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9660         H8/300H and H8/S.
9661
9662 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9663
9664         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9665         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9666         documentation of obsolete macros.
9667         * system.h: Poison these macros.
9668         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9669         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9670         config/c4x/c4x.h, config/clipper/clipper.h,
9671         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9672         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9673         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9674         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9675         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9676         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9677         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9678         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9679         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9680         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9681         config/sparc/sparc.h, config/stormy16/stormy16.h,
9682         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9683         definitions and commented out definitions of obsolete macros.
9684         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9685         of MAX_INT_TYPE_SIZE.
9686
9687 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9688
9689         * config/s390/s390.c (s390_preferred_reload_class): Never
9690         return ADDR_REGS if it isn't a subset of the given class.
9691         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9692         FP_REGS, but all superclasses as well.
9693
9694         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9695
9696         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9697         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9698         must not be a const_int.
9699
9700 2002-01-08  Richard Henderson  <rth@redhat.com>
9701
9702         * Makefile.in (toplev.o): Depend on options.h.
9703         (gcc.o): Depend on specs.h.
9704
9705 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9706
9707         * expr.c (store_expr): Convert VOIDmode constants back to target's
9708         mode.
9709
9710 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9711
9712         * doc/invoke.texi: Markup gcc as @command.  Refer to
9713         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9714         of http://gcc.gnu.org/thanks.html.
9715
9716 2002-01-08  Dale Johannesen  <dalej@apple.com>
9717
9718         * config/rs6000/rs6000.md: Add missing int register
9719         target case to movdf_low.
9720
9721 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
9722
9723         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9724         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
9725         (cppinit.o): Depend on except.h.
9726         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9727         s-specs): New rules.
9728
9729         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9730         Don't create specs.h/options.h/gencheck.h here.  Remove
9731         unnecessary variable settings from last argument of AC_OUTPUT.
9732         * config.in, configure: Regenerate.
9733         * intl.c: Hardcode package name as "gcc".
9734
9735         * cppinit.c: Include except.h.
9736         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9737         appropriate.
9738         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9739         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9740         (!)USING_SJLJ_EXCEPTIONS.
9741         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9742
9743 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9744
9745         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9746         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9747         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9748         documentation of obsolete macros.
9749         * system.h: Poison these macros.
9750         * config/d30v/d30v.h, config/ns32k/encore.h,
9751         config/stormy16/stormy16.h: Remove definitions and commented out
9752         definitions of obsolete macros.
9753
9754 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
9755
9756         * objc/objc-act.c (handle_class_ref): Mark the declaration of
9757         %sobjc_class_ref_%s as used - to prevent unwanted compiler
9758         warnings.
9759
9760 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9761
9762         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9763         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9764         to insn adjusting stack/frame pointer.
9765         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9766         accept operands that cause the insn to be non-splittable.
9767
9768 2002-01-08  Graham Stott  <grahams@redhat.com>
9769
9770         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9771         (C_TYPE_FIELDS_VOLATILE): Likewise.
9772         (C_TYPE_BEING_DEFINED): Likewise.
9773         (C_IS_RESERVED_WORD): Likewise.
9774         (C_TYPE_VARIABLE_SIZE): Likewise.
9775         (C_DECL_VARIABLE_SIZE): Likewise.
9776         (C_MISSING_PROTOTYPE_WARNED): Likewise.
9777         (C_SET_EXP_ORIGINAL_CODE): Likewise.
9778         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9779         parenthesis.
9780         (C_DECL_ANTICIPATED): Likewise.
9781         (c_build_type_variant): Add parenthesis.
9782
9783 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9784
9785         * gcc.c (option_map): Remove --version.
9786         (process_command): Handle -fversion following the GNU Coding
9787         Standards.  Partially addresses PR other/704.
9788
9789 2002-01-08  Graham Stott  <grahams@redhat.com>
9790
9791         * combine.c (combine_instructions): Fix typo.
9792
9793 2002-01-08  Graham Stott  <grahams@redhat.com>
9794
9795         * debug.h: Use "tree" and "rtx" throughout.
9796
9797         * debug.c: Likewise.
9798
9799 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
9800
9801         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9802         constant pool, use the pool's version of the symbol instead.
9803
9804 2002-01-07  Richard Henderson  <rth@redhat.com>
9805
9806         * regrename.c (find_oldest_value_reg): Ignore the value chain if
9807         the original register was copied in a mode with a fewer number of
9808         hard registers than the desired mode.
9809         (copyprop_hardreg_forward_1): Likewise.
9810         (debug_value_data): Fix loop test.
9811         * toplev.c (parse_options_and_default_flags): Reenable
9812         -fcprop-registers at -O1.
9813
9814 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9815
9816         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9817         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9818
9819         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9820         predicates.
9821
9822         * config/rs6000/rs6000.md: Add altivec predicate patterns.
9823
9824 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9825
9826         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9827         (pa_output_function_prologue): Output local label at the beginning of
9828         the prologue when profiling.
9829         (hppa_profile_hook): Use the local label rather than the function label.
9830         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9831
9832 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9833
9834         * config/rs6000/rs6000.c (print_operand): Remove extra space.
9835         (altivec_expand_unop_builtin): Fix thinko.
9836         (altivec_expand_binop_builtin): Same.
9837         (altivec_expand_ternop_builtin): Same.
9838         (altivec_expand_builtin): Same.
9839
9840 2002-01-07  Richard Henderson  <rth@redhat.com>
9841
9842         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9843
9844 2002-01-07  Jason Merrill  <jason@redhat.com>
9845
9846         * unwind-dw2.c (execute_cfa_program): Use < again.
9847
9848 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9849
9850         * predict.c (combine_predictions_for_insn): Avoid division by zero.
9851
9852 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9853
9854         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9855         Don't allow -1 - x -> ~x simplifications in the first pass.
9856
9857 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9858
9859         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9860         arguments.
9861         (altivec_expand_binop_builtin): Same.
9862         (altivec_expand_unop_builtin): Same.
9863         (print_operand): Fix typo.
9864         (bdesc_1arg): Add vupk* variants.
9865
9866         * rs6000.h (rs6000_builtins): Add vupk* enums.
9867
9868         * rs6000.md: Add altivec_vupk* variants.
9869
9870 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9871
9872         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9873         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9874         and last update dates.
9875
9876 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
9877
9878         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9879
9880 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9881
9882         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9883         * config/avr/avr.h (CPP_SPEC): Likewise.
9884         (LINK_SPEC): Likewise.
9885         (CRT_BINUTILS_SPECS): Likewise.
9886         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9887         * doc/invoke.texi (AVR Options): Document them.
9888
9889 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9890
9891         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9892         LABEL_NUSES.
9893
9894 2002-01-07  Graham Stott  <grahams@redhat.com>
9895
9896         * config/i386/i386.h: Update copyright date.
9897         (HALF_PIC_PTR): Add parenthesis.
9898         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9899         (CONSTANT_ALIGNMENT): Add parenthesis.
9900         (DATA_ALIGNMENT): Likewise.
9901         (LOCAL_ALIGNMENT): Likewise.
9902         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9903         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9904         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9905         (HARD_REGNO_NREGS): Add paranethesis.
9906         (VALID_SSE_REG_MODE): Whitespace.
9907         (VALID_MMX_REG_MODE): Whitespace.
9908         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9909         (ix86_hard_regno_mode_ok): Add parenthesis.
9910         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9911         (RETURN_IN_MEMORY): Whitespace.
9912         (N_REG_CLASSES): Add parenthesis.
9913         (INTEGER_CLASS_P): Add parenthesis and wrap.
9914         (FLOAT_CLASS_P): Likewise.
9915         (SSE_CLASS_P): Likewise.
9916         (MMX_CLASS_P): Likewise.
9917         (MAYBE_INTEGER_CLASS_P): Likewise.
9918         (MAYBE_FLOAT_CLASS_P): Likewise.
9919         (MAYBE_SSE_CLASS_P): Likewise.
9920         (MAYBE_MMX_CLASS_P): Likewise.
9921         (Q_CLASS_P): Likewise.
9922         (GENERAL_REGNO_P): Uppercase macro parameter.
9923         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9924         (FP_REGNO_P): Likewise.
9925         (ANY_FP_REGNO_P): Uppercase macro parameter.
9926         (SSE_REGNO_P): Likewise.
9927         (SSE_REGNO): Likewise.
9928         (SSE_REG_P): Likewise.
9929         (SSE_FLOAT_MODE_P): Likewise.
9930         (MMX_REGNO_P): Likewise.
9931         (MMX_REG_P):Likewise.
9932         (STACK_REG_P): Likewise.
9933         (NON_STACK_REG_P): Likewise.
9934         (STACK_TOP_P): Likewise.
9935         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9936         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9937         (SECONDARY_MEMORY_NEEDED): Likewise.
9938         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9939         (MD_ASM_CLOBBERS): Whitespace and wrap.
9940         (MUST_PASS_IN_STACK): Whitespace and wrap.
9941         (RETURN_POPS_ARGS): Add parenthesis.
9942         (INIT_CUMULATIVE_ARGS): Likewise.
9943         (FUNCTION_ARG): Likewise.
9944         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9945         (SETUP_INCOMING_VARARGS): Likewise.
9946         (BUILD_VA_LIST_TYPE):  Add parenthesis.
9947         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9948         parenthsis.
9949         (EXPAND_BUILTIN_VA_ARG): Likewise.
9950         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9951         (INITIALIZE_TRAMPOLINE): Add parenthesis.
9952         (INITIAL_ELIMINATION_OFFSET): Likewise.
9953         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9954         (REGNO_OK_FOR_BASE_P): Likewise.
9955         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9956         (REGNO_OK_FOR_DIREG_P): Likewise.
9957         (REG_OK_FOR_INDEX_P): Whitespace.
9958         (REG_OK_FOR_BASE_P): Whitespace.
9959         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9960         parenthesis.
9961         (FIND_BASE_TERM): Fix typo.
9962         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
9963         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9964         (SYMBOLIC_CONST; Whitespace.
9965         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
9966         (ENCODE_SECTION_INFO): Whitespace.
9967         (FINALIZE_PIC): Remove do { ... } while (0).
9968         (PROMOTE_MODE): Wrap in do { ... } while (0).
9969         (CONST_COSTS): Whitespace.
9970         (RTX_COSTS): Add paramethesis, whitespace and wrap.
9971         (REGISTER_MOVE_COST): Add parenthesis.
9972         (MEMORY_MOVE_COST): Likewise.
9973         (EXTRA_CC_MODES): Whitespace.
9974         (SELECT_CC_MODE): Add parenthesis and whitespace.
9975         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9976         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9977         (ASM_OUTPUT_LABEL): Add paramethesis.
9978         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9979         (ASM_OUTPUT_REG_POP): Likewise.
9980         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9981         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9982
9983         * config/i386/i386.c: Update copyright.
9984         (CHECK_STACK_LIMIT): Add parenthesis.
9985         (AT_BP): Uppercase macro parameter.
9986         (x86_64_int_parameter_registers): Constify.
9987         (x86_64_int_return_registers): Likewise.
9988         (ix86_compare_op0): Use rtx.
9989         (construct_container): Constify INTREG parameter.
9990         (function_arg): Use rtx.
9991
9992         * diagnostic.h: Update copyright date.
9993         (output_buffer_state): Add parenthesis.
9994         (output_buffer_format_args): Likewise.
9995
9996         * combine.c (combine_instructions): Replace XEXP (links, 0)
9997         with link.
9998
9999 2002-01-06  H.J. Lu <hjl@gnu.org>
10000
10001         * cfgcleanup.c (thread_jump): Fix 2 typos.
10002
10003 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10004
10005         * config.gcc: Add support for --enable-altivec.
10006
10007 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10008
10009         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10010
10011 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10012
10013         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10014         __objc_class_name_*.
10015
10016 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10017
10018         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10019
10020 2002-01-06  Richard Henderson  <rth@redhat.com>
10021
10022         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10023         nop them out.  Increment label reference count for REG_LABEL.
10024         (fill_slots_from_thread): Frob label reference count around
10025         delete_related_insns.
10026
10027 2002-01-05  Richard Henderson  <rth@redhat.com>
10028
10029         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10030         jump threading.
10031
10032 2002-01-05  Richard Henderson  <rth@redhat.com>
10033
10034         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10035         * integrate.c (output_inline_function): Likewise.
10036         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10037         to remove_unnecessary_notes after emitting abstract instance.
10038         Force an emitted nested function to have its parent emited as well.
10039         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10040         for null.
10041         (rtl_for_decl_location): Do not look at reload data structures
10042         before reload has run.
10043
10044 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10045
10046         * cse.c: Fix formatting.
10047         * dwarf2asm.c: Likewise.
10048         * dwarf2out.c: Likewise.
10049         * explow.c: Likewise.
10050         * expmed.c: Likewise.
10051         * function.c: Likewise.
10052         * gcov.c: Likewise.
10053         * gencheck.c: Likewise.
10054         * genrecog.c: Likewise.
10055         * ggc-common.c: Likewise.
10056         * ggc-page.c: Likewise.
10057         * global.c: Likewise.
10058
10059 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10060
10061         * combine.c: Fix formatting.
10062
10063 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10064
10065         PR middle-end/1557
10066         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10067
10068 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10069
10070         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10071         as 1 for __powerpc64__ as well.
10072
10073         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10074
10075         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10076         return it.
10077
10078 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10079
10080         * lcm.c: Revert change, due to performance regression it causes on
10081         SPEC because it's slightly more conservative (sigh, I hate
10082         edge-based LCM).
10083
10084 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10085
10086         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10087
10088 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10089
10090         * doc/cppinternals.texi: Update.
10091
10092 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10093
10094         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10095         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10096         negatives.
10097         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10098         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10099         kludge for pre-october-14th mmix versions to handle new-found bug
10100         with PUSHJ/PUSHGO and the register stack.
10101         * config/mmix/mmix.h (struct machine_function): Rename member
10102         has_call_value_without_parameters to has_call_without_parameters.
10103         All referers changed.
10104         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10105         TARGET_MASK_BRANCH_PREDICT): New macros.
10106         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10107         -mno-reg-stack-fill-bug-workaround.
10108         * config/mmix/mmix.md ("call"): Set struct machine member
10109         has_call_without_parameters.
10110
10111 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10112
10113         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10114
10115 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10116
10117         * cfgcleanup.c: Include tm_p.h
10118         (mark_effect): Fix handling of hard register; fix handling of SET
10119
10120 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10121
10122         * config/h8300/h8300.md (anonymous patterns): Check that
10123         operands are registers before using REGNO on them.
10124
10125 2002-01-03  Roland McGrath  <roland@frob.com>
10126
10127         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10128
10129 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10130
10131         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10132         * c-common.h (genrtl_expr_stmt_value): Likewise.
10133         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10134         (expand_expr_stmt_value): Add maybe_last argument.
10135         Don't warn about statement with no effect if it is the last statement
10136         in expression statement.
10137         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10138         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10139         expand_expr_stmt_value.
10140         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10141         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10142         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10143         as maybe_last to expand_expr_stmt_value.
10144
10145 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10146
10147         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10148         be passed in, do not build it.
10149         (c_begin_if_stmt): New function.
10150         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10151         * c-common.h (c_expand_start_cond): Update prototype.
10152         (c_begin_if_stmt): Prototype new function.
10153         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10154         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10155         c_begin_while_stmt and c_finish_while_stmt_cond.
10156
10157 2002-01-04  William Cohen  <wcohen@redhat.com>
10158
10159         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10160         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10161         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10162         * config/pa/som.h (ASM_FILE_START): Likewise.
10163
10164 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10165
10166         * lcm.c: Include df.h.
10167         Add available_transfer_function prototype.
10168         (compute_available): Rework to use iterative dataflow framework.
10169         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10170         with bb_info in df.h
10171         (available_transfer_function): New function.
10172
10173         * Makefile.in (lcm.o): add df.h to dependencies.
10174
10175 2002-01-04  Richard Henderson  <rth@redhat.com>
10176
10177         * config/alpha/alpha.c (some_operand): Accept HIGH.
10178         (input_operand): Likewise; accept simple references to globals.
10179         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10180         (alpha_const_double_ok_for_letter_p): Likewise.
10181         (alpha_extra_constraint): Likewise.
10182         (alpha_preferred_reload_class): Likewise.  Do not force
10183         symbolic constants to memory.
10184         (alpha_legitimate_address_p): Accept simple references
10185         to small_symbolic_operand.
10186         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10187         called when no_new_pseudos.  Emit simple symbolic references.
10188         Split integers into low, high, and rest.
10189         (alpha_expand_mov): Use alpha_legitimize_address.
10190         (some_small_symbolic_mem_operand): New.
10191         (split_small_symbolic_mem_operand): New.
10192         * config/alpha/alpha-protos.h: Update.
10193         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10194         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10195         (EXTRA_CONSTRAINT): Likewise.
10196         (PREFERRED_RELOAD_CLASS): Likewise.
10197         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10198         (PREDICATE_CODES): Update.
10199         * config/alpha/alpha.md: New post-reload splitters to convert
10200         simplfied symbolic operands to the form that references $29.
10201         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10202         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10203
10204 2002-01-03  Richard Henderson  <rth@redhat.com>
10205
10206         * local-alloc.c (function_invariant_p): Update commentary.
10207
10208 2002-01-04  H.J. Lu <hjl@gnu.org>
10209
10210         * toplev.c (rest_of_compilation): Fix a typo when calling
10211         cleanup_cfg.
10212
10213 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10214
10215         * c-common.c: Fix formatting.
10216         * diagnostic.c: Likewise.
10217         * doloop.c: Likewise.
10218         * dwarf2out.c: Likewise.
10219
10220 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10221
10222         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10223         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10224
10225 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10226
10227         * cpperror.c: Update comments and copyright.
10228         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10229         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10230
10231 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10232
10233         * collect2.c (main): Use strcmp when testing for "-shared".
10234
10235 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10236
10237         * cppmacro.c: Don't include intl.h.  Update comments.
10238         (new_number_token): Allocate enough buffer for 64-bit unsigned
10239         integers; update prototype.
10240         * cppmain.c: Update comments.
10241
10242 2002-01-03  William Cohen  <wcohen@redhat.com>
10243
10244         * function.h (struct function): Add profile.
10245         (current_function_profile): New.
10246         doc/extend.texi: Update documentation.
10247         * final.c (final_start_function): Use current_function_profile
10248         instead of profile_flag.
10249         (profile_after_prologue): Likewise.
10250         * function.c (expand_function_start): Likewise.
10251         (expand_function_start): Likewise.
10252         * config/alpha/alpha.c (direct_call_operand):
10253         (alpha_does_function_need_gp): Likewise.
10254         (alpha_expand_prologue): Likewise.
10255         * config/arm/arm.c (arm_expand_prologue): Likewise.
10256         thumb_expand_prologue: Likewise.
10257         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10258         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10259         (fr30_expand_prologue): Likewise.
10260         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10261         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10262         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10263         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10264         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10265         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10266         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10267         (m32r_expand_prologue): Likewise.
10268         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10269         (m88k_expand_prologue): Likewise.
10270         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10271         * config/mips/mips.c (compute_frame_size): Likewise.
10272         (mips_expand_prologue): Likewise.
10273         (mips_can_use_return_insn): Likewise.
10274         * config/pa/elf.h (ASM_FILE_START): Likewise.
10275         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10276         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10277         * config/pa/som.h (ASM_FILE_START): Likewise.
10278         * config/romp/romp.c (romp_using_r14): Likewise.
10279         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10280         (rs6000_stack_info): Likewise.
10281         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10282         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10283         * config/v850/v850.c (compute_register_save_size): Likewise.
10284
10285 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10286
10287         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10288         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10289
10290 2002-01-03  Turly O'Connor  <turly@apple.com>
10291
10292         * darwin.c (machopic_output_possible_stub_label): Don't generate
10293         stub routines for pseudo-stubs which we've just defined.
10294
10295 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10296
10297         * builtins.c: Fix formatting.
10298         * c-typeck.c: Likewise.
10299         * combine.c: Likewise.
10300         * expr.c: Likewise.
10301         * loop.c: Likewise.
10302
10303 2002-01-03  Andreas Schwab  <schwab@suse.de>
10304
10305         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10306         and return true if _cpp_push_next_buffer pushed a new include
10307         file.
10308         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10309         _cpp_pop_file_buffer did not push a new file.
10310         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10311
10312 2002-01-02  Eric Christopher  <echristo@redhat.com>
10313
10314         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10315         FIND_REG_INC_NOTE call. Update copyright.
10316         * loop.c (canonicalize_condition): Ditto.
10317         * reorg.c (delete_scheduled_jump): Ditto.
10318
10319 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10320
10321         * gcse.c: Fix formatting.
10322
10323 2002-01-03  Graham Stott  <grahams@redhat.com>
10324
10325         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10326         forward defs for struct tags rtx_def, union_tree, rtvec_def
10327         also output corresponding typedefs for rtx, tree, and rtvec.
10328
10329         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10330         rtvec_def along with corresponding typedefs for rtx, tree, and
10331         rtvec to config.h, hconfig.h, tconfig.h.
10332
10333 2002-01-03  Graham Stott  <grahams@redhat.com>
10334
10335         * tree.h: Update copyright date.
10336         (IS_EXPR_CODE_CLASS): Add parenthesis.
10337         (TREE_SET_CODE): Add whitespace.
10338         (TREE_CHECK): Add parenthesis.
10339         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10340         (CST_OR_CONSTRUCTOR_CHECK):
10341         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10342         (TREE_SYMBOL_REFERENCED): Whitespace.
10343         (INT_CST_LT): Likewise.
10344         (INT_CST_LT_UNSIGNED): Likewise.
10345         (tree_real_cst): Unwrap comment.
10346         (tree_string): Likewise.
10347         (tree_complex): Likewise.
10348         (IDENTIFIER_POINTER): correct cast.
10349         (SAVE_EXPR_CONTEXT): Whitespace.
10350         (EXPR_WFL_FILENAME_NODE): Likewise.
10351         (EXPR_WFL_FILENAME): Remove parenthesis.
10352         (DECL_ORIGIN): Add parenthesis.
10353         (DECL_FROM_INLINE): Use NULL_TREE.
10354         (build_int_2): Whitespace.
10355         (build_type_variant): Add parenthesis.
10356
10357         * gcc/jcf-parse.c: Update copyright date.
10358         (yyparse): Constify resource_filename.
10359
10360 2002-01-03  Graham Stott  <grahams@redhat.com>
10361
10362         * rtl.h: Update copyright date.
10363         (RTL_CHECK1): Wrap long line.
10364         (RTL_CHECK2): Likewise.
10365         (RTL_CHECKC1): Wrap long line and whitespace.
10366         (RTL_CHECKC2): Likewise.
10367         (XWINT): Whitespace.
10368         (XINT): Likewise.
10369         (XSTR): Likewise.
10370         (XEXP): Likewise.
10371         (XVEC): Likewise.
10372         (XMODE): Likewise.
10373         (XBITMAP): Likewise.
10374         (XTREE): Likewise.
10375         (XBBDEF): Likewise.
10376         (XTMPL): Likewise.
10377         (X0WINT): Likewise.
10378         (X0INT):Likewise.
10379         (X0UINT): Likewise.
10380         (X0STR): Likewise.
10381         (X0EXP): Likewise.
10382         (X0VEC): Likewise.
10383         (X0MODE): Likewise.
10384         (X0BITMAP): Likewise.
10385         (X0TREE): Likewise.
10386         (X0BBDEF): Likewise.
10387         (X0ADVFLAGS): Likewise.
10388         (X0CSELIB): Likewise.
10389         (X0MEMATTR): Likewise.
10390         (XCWINT): Likewise.
10391         (XCINT): Likewise.
10392         (XCUINT): Likewise.
10393         (XCSTR): Likewise.
10394         (XCEXP): Likewise.
10395         (XCVEC): Likewise.
10396         (XCMODE): Likewise.
10397         (XCBITMAP): Likewise.
10398         (XCTREE): Likewise.
10399         (XCBBDEF): Likewise.
10400         (XCADVFLAGS): Likewise.
10401         (XCCSELIB): Likewise.
10402         (XC2EXP): Likewise.
10403         (INSN_UID): Likewise.
10404         (PREV_INSN): Likewise.
10405         (PATTERN): Likewise.
10406         (INSN_CODE): Likewise.
10407         (PUT_REG_NOTE_KIND): Likewise.
10408         (CODE_LABEL_NUMBER): Likewise.
10409         (NOTE_SOURCE_FILE): Likewise.
10410         (NOTE_BLOCK): Likewise.
10411         (NOTE_EH_HANDLER): Likewise.
10412         (NOTE_RANGE_INFO): Likewise.
10413         (NOTE_LIVE_INFO): Likewise.
10414         (NOTE_BASIC_BLOCK): Likewise.
10415         (NOTE_EXPECTED_VALUE): Likewise.
10416         (NOTE_LINE_NUMBER): Likewise.
10417         (LABEL_NAME): Likewise.
10418         (LABEL_NUSES): Likewise.
10419         (LABEL_ALTERNATE_NAME): Likewise.
10420         (ADDRESSOF_DECL): Likewise.
10421         (JUMP_LABEL): Likewise.
10422         (LABEL_NEXTREF): Likewise.
10423         (REGNO): Likewise.
10424         (ORIGINAL_REGNO: Likewise.
10425         (HARD_REGISTER_NUM_P): Add parenthesis.
10426         (SUBREG_REG): Whitespace.
10427         (SUBREG_BYTE): Likewise.
10428         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10429         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10430         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10431         (ASM_OPERANDS_INPUT_VEC): Likewise.
10432         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10433         (ASM_OPERANDS_INPUT): Likewise.
10434         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10435         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10436         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10437         (ASM_OPERANDS_INPUT_MODE): Likewise.
10438         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10439         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10440         (MEM_SET_IN_STRUCT_P): Minor reformat.
10441         (TRAP_CONDITION): Whitespace.
10442         (TRAP_CODE): Likewise.
10443         (COND_EXEC_TEST): Likewise.
10444         (COND_EXEC_CODE): Likewise.
10445         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10446         (PHI_NODE_P): Add parenthesis.
10447         (plus_constant): Whitespace and add parenthesis.
10448
10449 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10450
10451         * config/avr/avr.c: Fix comment typos.
10452         * config/c4x/c4x.md: Likewise.
10453         * config/dsp16xx/dsp16xx.h: Likewise.
10454         * config/dsp16xx/dsp16xx.md: Likewise.
10455         * config/i386/i386.md: Likewise.
10456         * config/ia64/ia64.c: Likewise.
10457         * config/m32r/m32r.h: Likewise.
10458         * config/m68hc11/m68hc11.md: Likewise.
10459         * config/mmix/mmix.c: Likewise.
10460         * config/mn10200/mn10200.c: Likewise.
10461         * config/romp/romp.c: Likewise.
10462         * config/sh/sh.c: Likewise.
10463         * config/stormy16/stormy16.c: Likewise.
10464         * config/stormy16/stormy16.h: Likewise.
10465         * config/stormy16/stormy16.md: Likewise.
10466
10467 2002-01-03  Graham Stott  <grahams@redhat.com>
10468
10469         * loop.h: Update copyright date.
10470         (LOOP_MOVABLES): Fix typo.
10471         (LOOP_REGS): Likewise.
10472         (LOOP_IVS): Likewise.
10473
10474 2002-01-03  Graham Stott  <grahams@redhat.com>
10475
10476         * cppinit.c: Update copyright date.
10477         Don't include output.h
10478         * Makefile.in: Update copyright date.
10479         Update dependency.
10480
10481 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10482
10483         PR c/5226
10484         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10485         (-pthread) Add to RS/6000 options.
10486
10487 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10488
10489         * except.c: Fix comment typos.
10490         * loop.c: Likewise.
10491         * varasm.c: Likewise.
10492         * doc/tm.texi: Fix a typo.
10493
10494 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10495
10496         * c-typeck.c (output_init_element): Allow initializing static storage
10497         duration objects with compound literals.
10498
10499 2002-01-02  Richard Henderson  <rth@redhat.com>
10500
10501         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10502         after abusing it.
10503
10504 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10505
10506         * gcc.c (default_compilers): Const-ify.
10507         * mips-tdump.c (stab_names): Likewise.
10508         * mips-tfile.c (map_coff_types, map_coff_storage,
10509         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10510         pseudo_ops_t, pseudo_ops): Likewise.
10511         * protoize.c (default_include): Likewise
10512
10513         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10514         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10515         Add array size in declaration.
10516         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10517         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10518         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10519         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10520         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10521         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10522         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10523         emtens, make_nan): Const-ify.
10524         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10525         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10526
10527 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10528
10529         * config.gcc (ia64-*-*): Set extra_headers.
10530         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10531         * config/alpha/t-osf: Remove.
10532         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10533
10534 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10535
10536         * config/rs6000/t-aix43: Revert previous change.
10537
10538 2002-01-02  Jason Merrill  <jason@redhat.com>
10539
10540         * c-decl.c (c_expand_body): Call outlining_inline_function when
10541         emitting an inline function out of line.
10542
10543 2002-01-02  Richard Henderson  <rth@redhat.com>
10544
10545         * dwarf2out.c (limbo_die_node): Add created_for member.
10546         (new_die): New argument created_for.  Update all callers.
10547         (mark_limbo_die_list): New.
10548         (dwarf2out_init): Register limbo_die_list as a root.
10549         (dwarf2out_finish): Force insert limbo dies into their function
10550         context.
10551
10552 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10553
10554         PR c++/5089
10555         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10556
10557 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10558
10559         * config/h8300/fixunssfsi.c: Update copyright.
10560         Fix comment typos.
10561         Fix formatting.
10562         * config/h8300/h8300.c: Update copyright.
10563         Eliminate warnings.
10564
10565 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10566
10567         * config/romp/romp.c: Fix comment formatting.
10568         * config/romp/romp.h: Likewise.
10569         * config/romp/romp.md: Likewise.
10570         * config/s390/s390.c: Likewise.
10571         * config/stormy16/stormy16.c: Likewise.
10572         * config/stormy16/stormy16.h: Likewise.
10573
10574 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10575
10576         * c-common.h (genrtl_expr_stmt_value): Declare.
10577         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10578         (genrtl_goto_stmt_value): ... this new function.  Pass new
10579         argument down to expand_expr_stmt_value, taking
10580         TREE_ADDRESSABLE into account.
10581         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10582         STMT_EXPR as addressable, i.e., one whose result we want.
10583         * expr.c (expand_expr): Don't save expression statement value
10584         of labeled_blocks or loop_exprs.
10585         * stmt.c (expand_expr_stmt): Redirect to...
10586         (expand_expr_stmt_value): ... this new function.  Use new
10587         argument to tell whether to save expression value.
10588         (expand_end_stmt_expr): Reset last_expr_type and
10589         last_expr_value if we don't have either.
10590         * tree-inline.c (declare_return_variable): Mark its use
10591         statement as addressable.
10592         * tree.h: Document new use of TREE_ADDRESSABLE.
10593         (expand_expr_stmt_value): Declare.
10594
10595 2002-01-01  Tom Rix  <trix@redhat.com>
10596
10597         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10598         rs6000_emit_allocate_stack.
10599
10600 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10601
10602         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10603         ${srcdir}/ginclude/ to every entry in extra_headers.
10604         * configure: Regenerate.
10605         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10606         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10607         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10608         * ginclude/proto.h: Rename to config/convex/proto.h.
10609
10610 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10611
10612         * attribs.c (handle_vector_size_attribute): Use host_integerp
10613         and tree_int_cst; remove warnings.
10614         * caller-save.c (insert_restore): Add cast to get rid of warning.
10615         (insert_save): Likewise.
10616         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10617         * regmove.c (find_matches): Add temporary var to kill a warning.
10618
10619 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10620
10621         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10622         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10623         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10624         (vms-dwarf2eh.o): Add Makefile rule.
10625         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10626         * config/alpha/vms-dwarf2eh.asm: New file.
10627
10628         * gcc.c (delete_if_ordinary): Delete all versions.
10629
10630 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10631
10632         * config/mmix/mmix.md: Update FIXME to not mention
10633         define_constants.
10634         (MMIX_rJ_REGNUM): New define_constants constant.
10635         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10636         "*movdicc_real"): Adjust contraints formatting.
10637         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10638         for branch prediction.
10639         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10640         output template.
10641         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10642         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10643         number.  Delete related FIXMEs.
10644         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10645         from number to MMIX_rJ_REGNUM.
10646         (TARGET_MASK_BRANCH_PREDICT): New.
10647         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10648         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10649         value.  Add -mbranch-predict and -mno-branch-predict.
10650         (TARGET_VERSION): Drop date.
10651         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10652         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10653         for finding out global symbols.
10654         (mmix_asm_output_labelref): Revert condition for global symbol.
10655         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10656         (mmix_print_operand_punct_valid_p): A '+' is valid.
10657
10658 See ChangeLog.6 for earlier changes.