OSDN Git Service

PR middle-end/6205
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2
3         PR middle-end/6205
4         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5         otherwise xorps.
6
7 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
8
9         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10
11 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
12
13         * gcc.c (read_specs): Detect and fail if an attempt is made to
14         rename a spec string to an already existing string.
15
16 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
17
18         * config/s390/s390.c (legitimize_pic_address): Do not generate
19         illegal address constant without CONST.
20
21 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22
23         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
24         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25
26 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
27
28         PR optimization/6305
29         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
30         to make sure previous reloads are taken into account.  Generate
31         better code if one operand is an in-range immediate constant.
32
33 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
34
35         * doc/install.texi (Building): libgcj requires GNU make.
36
37 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
38
39         PR bootstrap/6315
40         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
41         even if hard quad and register is not floating.
42         (movtf reg<-mem split): Disallow splitting if hard quad and
43         register is floating.
44         (movtf mem<-reg split): Likewise.
45         * config/sparc/sparc.c (fp_register_operand): New predicate.
46         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
47
48 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
49
50         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
51         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
52         (unprotoize.o): Ditto.  Build from protoize.c.  Define
53         UNPROTOIZE on command line.
54         * protoize.c: Include cppdefault.h.  Delete include_defaults.
55         (in_system_include_dir): Use cpp_include_defaults (defined in
56         cppdefault.o).
57         * unprotoize.c: Delete file.
58
59 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
60
61         * config/rs6000/altivec.h (vec_ld): Add array variants.
62         (vec_lde): Same.
63         (vec_ldl): Same.
64
65 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
66             Aldy Hernandez <aldyh@redhat.com>
67
68         * config/rs6000/altivec.h: Define __ALTIVEC__.
69         (bool): New.
70         (__pixel): New.
71         (pixel): New.
72         (vec_cfux): New.
73         (vec_vmaddfp): New.
74         (vec_vsldoi): New.
75         Add parentheses to all macro arguments.
76
77 2002-04-16  Richard Henderson  <rth@redhat.com>
78
79         PR c++/6320
80         * except.c (remove_eh_handler): Insert inner regions at beginning
81         of sibling chain.  Refactor expressions.
82
83 2002-04-16  Richard Henderson  <rth@redhat.com>
84
85         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
86         * config/sparc/sol2-gas-bi.h: New file.
87         * config.gcc (sparc*-solaris): Add it as needed.
88         * configure.in (AS_SPARC64_FLAG): Remove check.
89         * config.in, configure: Regenerate.
90
91         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
92
93 2002-04-16  Richard Henderson  <rth@redhat.com>
94
95         * config/mips/mips.c (override_options): Don't override N32 for
96         a 64-bit ISA.
97
98         PR 6202
99         * config/mips/mips.md (can_delay): Split out of existing define_delays.
100         (HILO_delay): Set can_delay false.
101
102 2002-04-16  Dale Johannesen <dalej@apple.com>
103
104         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
105         instruction addresses.
106         (rs6000_output_function_epilogue): Likewise.
107
108 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
109
110         * c-parse.in (poplevel, compstmt_start,
111         compstmt_primary_start): Add ending ';', in accordance
112         with POSIX.
113
114 2002-04-16  Richard Henderson  <rth@redhat.com>
115
116         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
117         Adjust tm_file order to get TARGET_DEFAULT set properly.
118         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
119         * doc/install.texi (sparc-solaris): Update.
120
121 2002-04-16  Dale Johannesen <dalej@apple.com>
122
123         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
124         comparison operands do not match each other or if modes of
125         conditions do not match result.
126
127 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
128
129         PR target/6305
130         * config/s390/s390.md (mulsidi3): Set both subregs of the
131         multiword register. 
132
133 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
134
135         * config/rs6000/altivec.h (vec_addc): Type check.
136
137 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
138
139         PR middle-end/6279
140         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
141
142         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
143
144 2002-04-15  Richard Henderson  <rth@redhat.com>
145
146         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
147         call_really_used_regs too.
148
149 2002-04-15  Richard Henderson  <rth@redhat.com>
150
151         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
152
153 2002-04-15  David S. Miller  <davem@redhat.com>
154
155         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
156         as being CLOBBERed.
157
158 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
159
160         PR c/6290
161         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
162         CONST_VECTOR is { 0, ... 0 }.
163
164 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
165
166         * doc/install.texi (Installing GCC: Configuration): Clarify
167         the only supported ways to configure gcc.
168
169 2002-04-15  Roland McGrath  <roland@frob.com>
170  
171         * config.gcc (alpha*-*-gnu*): New target configuration.
172         * config/alpha/gnu.h: New file for it.
173         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
174
175 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
176
177         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
178         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
179         * tree.h (expand_start_stmt_expr): Update prototype.
180         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
181         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
182         on the STMT_EXPR created for the inline function.
183         
184 2002-04-15  Richard Henderson  <rth@redhat.com>
185
186         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
187         config/i386/linux-aout.h, config/i386/linux-oldld.h,
188         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
189         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
190         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
191         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
192         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
193         Define __gnu_linux__, not gnu_linux.
194         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
195
196 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
197
198         Remove Chill front end.
199         * gcc.c (default_compilers): Remove Chill entries.
200         * ch: Remove directory.
201         * doc/frontends.texi: Remove information about Chill.
202         * doc/sourcebuild.texi: Likewise.
203         * doc/standards.texi: Likewise.
204
205 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
206
207         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
208         (LONGLONG_STANDALONE): Define.
209
210 2002-04-15  David S. Miller  <davem@redhat.com>
211
212         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
213         Call emit_library_call with LCT_NORMAL.
214         (sparc_initialize_trampoline): Use LCT_foo instead of
215         magic constant in emit_library_call invocations.
216         (sparc64_initialize_trampoline): Likewise.
217         (sparc_profile_hook): Likewise.
218         * config/sparc/sparc.md: Likewise.
219
220         * config/sparc/sparc.c (sparc_extra_constraint_check):
221         Fix type of argument 'c'.
222         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
223         Likewise.
224
225 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
226
227         * diagnostic.h (output_buffer_state): Redefine.
228         (output_format_decoder): New macro.
229         (output_prefixing_rule): Likewise.
230         (output_line_cutoff): Likewise.
231         (diagnostic_format_decoder): Adjust.
232         (diagnostic_prefixing_rule): Likewise.
233         (diagnostic_line_cutoff): Likewise.
234         (diagnostic_state): Likewise.
235         (diagnostic_kind_count): Likewise.
236         (diagnostic_buffer): Now a macro.
237
238         * diagnostic.c (diagnostic_buffer): Remove definition.
239         (output_is_line_wrapping): Adjust.
240         (set_real_maximum_length): Likewise.
241         (output_set_maximum_length): Likewise.
242         (init_output_buffer): Likewise.
243         (lhd_print_error_function): Likewise.
244         (output_do_verbatim): Likewise.
245
246 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
247
248         * cpperror.c (print_location): Don't print include chain
249         if line == 0.
250         (cpp_begin_message): Update to use DL_ macros.
251         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
252         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
253         cpp_notice, cpp_notice_from_errno): Remove.
254         (cpp_error, cpp_error_with_line): Update to take a diagnostic
255         level.
256         (cpp_errno): New.
257         * cppexp.c (CPP_ICE): Remove.
258         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
259         lex, integer_overflow, _cpp_parse_expr): Update.
260         * cppfiles.c (read_include_file, find_include_file,
261         handle_missing_header, _cpp_read_file, remap_filename): Update.
262         * cpphash.h (enum error_type): Remove.
263         (_cpp_begin_message): Update.
264         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
265         cpp_handle_option, cpp_post_options): Update.
266         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
267         skip_whitespace, parse_identifier, parse_slow, parse_string,
268         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
269         cpp_interpret_charconst): Update.
270         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
271         lex_macro_node, do_undef, glue_header_name, parse_include,
272         do_include_common, read_flag, do_line, do_linemarker, do_ident,
273         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
274         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
275         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
276         _cpp_pop_buffer, do_diagnostic): Update.
277         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
278         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
279         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
280         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
281         cpp_notice, cpp_notice_from_errno): Remove.
282         (cpp_error, cpp_error_with_line): Update to take a diagnostic
283         level.
284         (cpp_errno): New.
285         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
286         collect_args, enter_macro_context, save_parameter, parse_params,
287         _cpp_create_definition, check_trad_stringification,
288         cpp_macro_definition): Update.
289         * cppmain.c (cpp_preprocess_file): Update.
290         * fix-header.c (read_scan_file): Update.
291
292 2002-04-14  Andreas Schwab  <schwab@suse.de>
293
294         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
295
296 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
297
298         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
299
300 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
301
302         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
303         not gnu_hurd.
304
305 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
306
307         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
308
309 2002-04-13      Joel Sherrill <joel@OARcorp.com>
310
311         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
312         sparc-elf and sparc-rtems targets.
313
314 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
315
316         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
317         defined, and __gnu_hurd__ wherever __GNU__ is defined.
318         * arm/linux-elf.h: Likewise.
319         * cris/aout.h: Likewise.
320         * cris/linux.h: Likewise.
321         * i370/linux.h: Likewise.
322         * i386/gnu.h: Likewise.
323         * i386/linux-aout.h: Likewise.
324         * i386/linux-oldld.h: Likewise.
325         * i386/linux.h: Likewise.
326         * i386/linux64.h: Likewise.
327         * ia64/linux.h: Likewise.
328         * m68k/linux-aout.h: Likewise.
329         * m68k/linux.h: Likewise.
330         * mips/linux.h: Likewise.
331         * pa/pa-linux.h: Likewise.
332         * pj/linux.h: Likewise.
333         * rs6000/sysv4.h: Likewise.
334         * s390/linux.h: Likewise.
335         * sh/linux.h: Likewise.
336         * sparc/linux-aout.h: Likewise.
337         * sparc/linux.h: Likewise.
338         * sparc/linux64.h: Likewise.
339         * xtensa/linux.h: Likewise.
340
341 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
342
343         * stmt.c (check_unique_operand_names): Expect operand names to
344         be strings rather than identifiers.  Use simple_cst_equal to
345         compare them.
346         (resolve_operand_name_1): Make same identifier to string change here.
347         * c-parse.in (asm_operand): Convert a named operand into a string.
348         * cp/parse.y (asm_operand): Likewise.
349
350 2002-04-13  Andreas Schwab  <schwab@suse.de>
351
352         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
353
354 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
355
356         Revert these changes:
357
358         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
359
360         PR c++/5571
361         * stor-layout.c (layout_decl): Reset the RTL for the decl.
362
363 2002-04-12  Richard Henderson  <rth@redhat.com>
364
365         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
366         (sparc*-*-solaris): Clean up header files.
367         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
368         and plan on generating 64-bit code.
369         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
370         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
371         * config/sparc/sol2-sld-64.h: Rename ...
372         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
373         for AS_SPARC64_FLAG not defined.
374         * config/sparc/sol2-gld-bi.h: New.
375         * config/sparc/sol2-sld.h: Remove.
376         * config/sparc/sol26-sld.h: New.
377         * config/sparc/sol2.h: Tidy comments.
378         * doc/install.texi: Document sparc-solaris configury changes.
379
380 2002-04-12  Richard Henderson  <rth@redhat.com>
381
382         * recog.c (offsettable_address_p): Match the logic in adjust_address.
383
384         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
385         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
386
387 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
388
389         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
390
391 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
392
393         * pa.c (pa_can_combine_p): Call extract_insn before calling
394         constrain_operands.
395
396 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
397
398         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
399         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
400         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
401         (CPP_PREDEFINES): Handle __declspec.
402         * config/i386/t-interix (USER_H): Remove.
403
404 2002-04-12  DJ Delorie  <dj@redhat.com>
405
406         * integrate.c (compare_blocks): Make comparisons safe for when
407         sizeof(int) < sizeof(char *).
408         (find_block): Likewise.
409
410 2002-04-12  Jan Hubicka  <jh@suse.cz>
411             David Edelsohn  <edelsohn@gnu.org>
412
413         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
414         registers.
415         (symbol_ref_operand): New.
416         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
417         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
418
419 2002-04-12  Andreas Schwab  <schwab@suse.de>
420
421         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
422         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
423         overrides the definition in config/svr4.h.
424         
425 2002-04-12      Eric Norum <eric.norum@usask.ca>
426
427         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
428         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
429         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
430         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
431         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
432         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
433         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
434         definitions to config/rtems.h and make the targets more similar.
435
436 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
437
438         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
439         POINTERS_EXTEND_UNSIGNED.
440         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
441         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
442
443         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
444         not specified.
445
446 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
447
448         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
449         depends on TARGET_SHMEDIA, not TARGET_SH5.
450
451 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
452
453         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
454         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
455
456 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
457
458         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
459         no r0 clobber.
460
461 2002-04-12  Andreas Schwab  <schwab@suse.de>
462
463         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
464
465 2002-04-12  Richard Henderson  <rth@redhat.com>
466
467         PR bootstrap/4191
468         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
469
470         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
471         modes spanning multiple hard regs.
472     
473         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
474
475 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
476
477         * pa.c (pa_output_function_prologue): Don't accumulate the total
478         number of code bytes when using TARGET_64BIT, or gas, SOM and not
479         the portable runtime.
480         (output_deferred_plabels): Handle 64bit plabels.
481         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
482         generating pic code using the GAS assembler for object formats that
483         are not SOM (ie., ELF32 and ELF64).
484         (output_millicode_call): Check attribute type if attribute length is 28.
485         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
486         dbr_sequence_length once.
487         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
488         dbr_sequence_length once.
489         * pa.h (TARGET_SOM): Define if not defined.
490         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
491         with GAS and not SOM.
492         (jump, call_internal_reg, call_value_internal_reg): Likewise.
493         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
494
495 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
496
497         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
498         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
499         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
500         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
501         elfos.h and dbxelf.h values are fine now.
502         * config/i386/freebsd.h, config/alpha/freebsd.h
503         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
504
505 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
506
507         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
508         or set Acpu or Amachine.  Reformat.
509         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
510         define.
511         (LINK_SPEC): Do not need to undef.
512         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
513         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
514         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
515         define.
516         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
517         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
518         (LINK_SPEC): Do not need to undef.
519         (DONT_USE_BUILTIN_SETJMP): Do not define.
520         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
521         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
522         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
523         Remove trailing spaces.
524         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
525         __ELF__, or set Acpu or Amachine.  Reformat.
526         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
527         define.
528
529 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
530
531         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
532         all other *-*-freebsd* targets.
533
534 2002-04-11  Richard Henderson  <rth@redhat.com>
535
536         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
537
538 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
539
540         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
541         Include {cpu}/{cpu}.h thru tm_file.
542         (alpha*-*-linux*ecoff): Remove target.
543         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
544         (LINK_SPEC): Remove, is not OS independent.
545         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
546         (LINK_SPEC): Do not need to #undef any longer.
547         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
548         any longer.
549         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
550         __ELF__.
551         (LINK_SPEC): Moved here from alpha/elf.h.
552         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
553         SUB_CPP_PREDEFINES.
554         * config/alpha/linux-ecoff.h: Remove.
555         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
556         (CPP_SPEC): Define _POSIX_SOURCE as needed.
557         (CPP_SUBTARGET_SPEC): Do not define.
558         (LINK_SPEC): Do not need to #undef any longer.
559         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
560         * config/alpha/vms.h: Likewise.
561
562 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
563
564         * doc/extend.texi: Remove old claim that typedefs cannot have
565         an alignment attribute.
566
567 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
568
569         PR optimization/6177
570         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
571         bitpos is 0 and bitsize CONCAT size.
572
573 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
574
575         PR c/6223
576         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
577
578 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
579
580         * config/alpha/freebsd.h: Minor reformatting.
581         (CPP_SPEC): Define ELF and add cpp_subtarget.
582         (ASM_SPEC): No longer needed.
583
584 2002-04-11  Richard Henderson  <rth@redhat.com>
585
586         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
587         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
588         (dimode mem/zero splitter): New.
589
590 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
591
592         * config/cris/cris.c (cris_override_options): Tweak error message
593         for PIC not implemented.
594
595         * config/cris/cris.h: Tweak comments related to parameter-passing.
596
597         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
598
599 2002-04-10  Richard Henderson  <rth@redhat.com>
600
601         * except.c (add_ehl_entry): Allow duplicates after landing pad
602         creation.
603
604 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
605
606         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
607
608 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
609
610         * c-decl.c (c_init_decl_processing): Move generation of
611         decls for g77_integer_type_node and friends from here ...
612         * c-common.c (c_common_nodes_and_builtins): ... to here.
613
614 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
615
616         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
617         is only used as frame pointer when frame_pointer_needed is true.
618
619 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
620
621         PR target/817
622         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
623         for the fact that the pool entry uses two words.
624         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
625         1k bytes.
626         (movdf_soft_insn): Similarly.
627         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
628         for the fact that the pool entry uses three words.
629
630 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
631
632         * config/mips/mips.c (mips_va_arg): When using the struct version
633         of the EABI va_list, allow arguments in the register save area to
634         take up less room than a stack argument.
635
636 2002-04-10  Richard Henderson  <rth@redhat.com>
637
638         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
639         if EXPAND_INITIALIZER.
640
641 2002-04-09  Richard Henderson  <rth@redhat.com>
642
643         * config/alpha/alpha.md (movdi_er_maybe_g): New.
644         * config/alpha/alpha.c (alpha_expand_mov): Use it.
645
646 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
647
648         PR optimization/6233
649         * rtlanal.c (pure_call_p): New function.
650         * rtl.h (pure_call_p): Declare.
651         * loop.c (prescan_loop): Use it to set has_nonconst_call.
652         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
653
654 2002-04-09  Eric Christopher  <echristo@redhat.com>
655
656         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
657         information to .comm directive.
658
659 2002-04-09  Richard Henderson  <rth@redhat.com>
660
661         PR c/5078
662         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
663
664 2002-04-09  Richard Henderson  <rth@redhat.com>
665
666         * basic-block.h (flow_delete_block_noexpunge): Declare.
667         (expunge_block_nocompact): Declare.
668         * cfg.c (expunge_block_nocompact): Split out from ...
669         (expunge_block): ... here.
670         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
671         (flow_delete_block_noexpunge): Split out from ...
672         (flow_delete_block): ... here.
673         * cfgcleanup.c (delete_unreachable_blocks): Compact while
674         removing dead blocks.
675         * except.c (exception_handler_labels): Remove.
676         (exception_handler_label_map): New.
677         (struct eh_region): Add aka member.
678         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
679         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
680         (for_each_eh_label, for_each_eh_label_1): New.
681         (init_eh): Register exception_handler_label_map.
682         (free_eh_status): Use free_region.
683         (find_exception_handler_labels): Use the map, not the list.
684         (remove_exception_handler_label): Likewise.
685         (maybe_remove_eh_handler): Likewise.
686         (remove_eh_handler): Use the region aka bitmap.
687         * except.h (exception_handler_labels): Remove.
688         (for_each_eh_label): Declare.
689         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
690         * loop.c (invalidate_loops_containing_label): New.
691         (find_and_verify_loops): Use it.  Use for_each_eh_label.
692         * sched-rgn.c (is_cfg_nonregular): Use
693         current_function_has_exception_handlers.
694
695 2002-04-09  Richard Henderson  <rth@redhat.com>
696
697         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
698         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
699         Do not return changed status.
700         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
701         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
702         New functions that do return changed status.
703         * sbitmap.h: Update decls.
704         * gcse.c, lcm.c: Use _cg functions as needed.
705
706 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
707
708         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
709         (sh64-*-elf*, sh-*-rtemself*): Likewise.
710         * config/sh/embed_bb.c: New file.
711         * config/sh/embed-elf.h: New file.
712         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
713         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
714         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
715         __PTRDIFF_TYPE__ .
716         (SUBTARGET_CPP_PTR_SPEC): Don't define.
717         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
718         Add subtarget_asm_endian_spec.
719         (ASM_SPEC): Use subtarget_asm_endian_spec.
720         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
721         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
722         (WCHAR_UNSIGNED): Define.
723         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
724         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
725         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
726         Fix value.
727         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
728         (sh_adjust_cost): Likewise.
729         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
730         __PTRDIFF_TYPE__ .
731         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
732         (WCHAR_TYPE_SIZE): Likewise.
733         (ASM_SPEC): Use subtarget_asm_endian_spec.
734         (SH_ELF_WCHAR_TYPE): #undef/ #define.
735         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
736         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
737         (MAX_WCHAR_TYPE_SIZE): Don't #define .
738         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
739         (USER_LABEL_PREFIX): Don't #undef /#define .
740         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
741         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
742         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
743         (ASM_SPEC): Likewise.
744         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
745         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
746         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
747         (LIB2FUNCS_EXTRA): Define.
748         * t-sh64 (LIB2FUNCS_EXTRA): Define.
749         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
750         (LIB1ASMFUNCS_CACHE): Define.
751         (LIB2FUNCS_EXTRA): Redefine empty.
752
753 2002-04-08  Richard Henderson  <rth@redhat.com>
754
755         * reorg.c (get_branch_condition): Use reversed_comparison_code.
756
757 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
758
759         * config/m68hc11/larith.asm (__map_data_section): Fix condition
760         and optimize for size.
761         (__do_global_ctors): Fix pointer comparison.
762         (__do_global_dtors): Likewise.
763
764 2002-04-09  David S. Miller  <davem@redhat.com>
765
766         * config/sparc/sparc.c (sparc_extra_constraint_check): New
767         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
768         allow reloading pseudos.
769         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
770         * config/sparc/sparc-protos.h: Declare it.
771
772         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
773         unsigned comparison warning.
774         (output_restore_regs): Mark leaf_function as unused.
775
776 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
777
778         * expr.c (is_aligning_offset): New function.
779         (expand_expr, case COMPONENT_EXPR): Call it.
780
781 2002-04-08  David S. Miller  <davem@redhat.com>
782
783         PR target/6082
784         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
785
786         Make init_priority work on Sparc when using GNU ld.
787         * config/sparc/linux.h, config/sparc/linux64.h,
788         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
789         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
790         * config/sparc/sol2-gld.h: New file to do the same.
791         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
792         sparc/sol2-gld.h to tm_file.
793
794         PR optimization/4328
795         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
796         * doc/md.texi: Document it.
797         * config/sparc/sparc.md (movdi_insn_sp64_novis,
798         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
799         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
800         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
801         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
802
803 2002-04-08  Andreas Jaeger  <aj@suse.de>
804
805         * stmt.c (expand_asm_operands): Revert last patch from Richard
806         Henderson.
807
808 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
809
810         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
811         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
812
813 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
814
815         * doc/contrib.texi (Contributors): Add David O'Brien.
816
817 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
818
819         * configure.in (auto-build.h): Use target_alias and build_alias
820         when running configure.
821         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
822         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
823         * configure: Regenerate.
824
825 2002-04-07  David S. Miller  <davem@redhat.com>
826
827         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
828
829 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
830
831         PR 5933
832         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
833         generating 32-bit pic code.
834
835 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
836
837         * cppinit.c (cpp_create_reader): Initialize
838         discard_comments_in_macro_exp.
839         (COMMAND_LINE_OPTIONS): Add "-CC" option.
840         (cpp_handle_option): Handle "-CC" option.
841         * cpplex.c (save_comment): If saving a C++ comment in
842         a directive, convert it to a C comment.
843         (_cpp_lex_direct): Pass second comment start character to
844         save_comment to indicate comment type.
845         * cpplib.c (_cpp_handle_directive): If processing
846         a "#define" directive and discard_comments_in_macro_exp
847         is false,  re-enable saving of comments.
848         (lex_macro_node): If discard_comments_in_macro_exp is false,
849         discard any comments before the macro identifier.
850         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
851         member.
852         * cppmacro.c (cpp_get_token): If expanding a macro while
853         processing a directive, discard any comments we might encounter.
854         (parse_params): If discard_comments_in_macro_exp is false,
855         ignore comments in the macro parameter list.
856         * gcc.c (cpp_unique_options): Add "-CC" option.
857         (option_map): Map "--comments-in-macros" to "-CC".
858         * doc/cppopts.texi: Document "-CC" option.
859         * f/lang-specs.h: Add "-CC" option.
860         * testsuite/gcc.dg/cpp/maccom1.c: New test.
861         * testsuite/gcc.dg/cpp/maccom2.c: New test.
862         * testsuite/gcc.dg/cpp/maccom3.c: New test.
863         * testsuite/gcc.dg/cpp/maccom4.c: New test.
864         * testsuite/gcc.dg/cpp/maccom5.c: New test.
865         * testsuite/gcc.dg/cpp/maccom6.c: New test.
866
867 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
868
869         PR middle-end/6180
870         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
871
872 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
873
874         PR c++/5571
875         * stor-layout.c (layout_decl): Reset the RTL for the decl.
876
877         PR opt/5120
878         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
879         RTX_UNCHANGING_P for the functions arguments when a tail call
880         is made.
881
882 2002-04-06  Jason Merrill  <jason@redhat.com>
883
884         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
885         (parse_options_and_default_flags): Set them appropriately.
886         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
887
888 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
889
890         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
891         here.
892
893         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
894         semicolon.
895
896         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
897         types come in by-reference.  Fix typo in comment.
898
899 2002-04-05  David S. Miller  <davem@redhat.com>
900
901         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
902         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
903         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
904         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
905
906 2002-04-05  David S. Miller  <davem@redhat.com>
907
908         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
909         are not going to emit return instructions, emit at least a nop
910         for the sake of sane backtraces.
911
912 2002-04-05  Richard Henderson  <rth@redhat.com>
913
914         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
915
916 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
917
918         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
919
920 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
921
922         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
923         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
924         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
925
926 2002-04-05  Andreas Schwab  <schwab@suse.de>
927
928         * c-convert.c: Include c-common.h.
929         * Makefile.in (c-convert.o): Updated.
930
931 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
932
933         * mklibgcc.in: Use separate libgcc.map for each multilib.
934         * Makefile.in (distclean): Don't remove libgcc.map here.
935
936 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
937
938         * Makefile.in (s-mlib): Handle --disable-multilib by separate
939         genmultilib invocation.
940
941 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
942
943         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
944         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
945         to num_gprs for symmetry.
946         * config/mips/mips.c: Adjust accordingly.
947
948 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
949
950         * c-common.c (truthvalue_conversion): Rename, update.
951         * c-common.h (c_common_truthvalue_conversion): New.
952         * c-convert.c (convert): Update.
953         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
954         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
955         * c-typeck.c (build_binary_op, build_unary_op,
956         build_conditional_expr): Update.
957         * fold-const.c (constant_boolean_node, fold): Use langhook.
958         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
959         * langhooks.h (struct lang_hooks): New hook.
960         * stmt.c (expand_decl_cleanup): Use langhook.
961         * tree.h (truthvalue_conversion): Remove.
962 objc:
963         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
964
965 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
966
967         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
968         Add rules to make null object file.
969
970 2002-04-04  Jim Blandy  <jimb@redhat.com>
971
972         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
973         macro formal parameter names.
974
975 2002-04-04  David S. Miller  <davem@redhat.com>
976
977         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
978
979 2002-04-04  Richard Henderson  <rth@redhat.com>
980
981         PR middle-end/5099
982         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
983         Support copies into and out of memory.  Don't accept allows_reg
984         and allows_mem as gospel.
985
986 2002-04-04  Richard Henderson  <rth@redhat.com>
987
988         PR opt/6165
989         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
990         (write_dependence_p): Likewise.
991
992 2002-04-04  Richard Henderson  <rth@redhat.com>
993
994         * predict.c (estimate_bb_frequencies): Do frequency calculation
995         with a volatile temporary.
996
997 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
998
999         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1000
1001 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1002
1003         PR c++/6119
1004         * final.c (final_start_function): Don't bump profile_label_no here...
1005         (final_end_function): ...but here.
1006
1007 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1008
1009         * config/sparc/sparc.md (pic): New attribute.
1010         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1011         into stack slots.
1012         (split after do_builtin_setjmp_setup): New.
1013
1014 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1015
1016         PR fortran/6106
1017         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1018         change.
1019
1020 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1021
1022         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1023         UNITS_PER_WORD for zero sized aggregates.
1024
1025 2002-04-03  David S. Miller  <davem@redhat.com>
1026
1027         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1028         one-character spec for this, just use %(link_gcc_c_sequence).
1029
1030 2002-04-03  David S. Miller  <davem@redhat.com>
1031
1032         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1033         handling.
1034
1035 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1036
1037         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1038         (DWARF_FRAME_RETURN_COLUMN): Move.
1039         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1040         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1041         * pa.c (except.h, predict.h): Include.
1042         (FRP): Delete.
1043         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1044         (output_ascii): Add cast.
1045         (store_reg_modify): Revise to add frame notes.
1046         (set_reg_plus_d): Likewise.
1047         (compute_frame_size): Include space for eh data registers in frame if
1048         the current function calls eh_return.
1049         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1050         function calls eh_return.  Save eh data registers if the current
1051         function calls eh_return.  Fix code to add frame notes.  Emit
1052         blockage to prevent insns with frame notes being scheduled in the
1053         delay slot of calls.
1054         (hppa_expand_epilogue): Restore eh data registers and do final stack
1055         adjustment if the current function calls eh_return.  Don't add frame
1056         notes.
1057         (output_call): Revise for change in length of call insn.  Don't do
1058         return pointer adjustment for an unconditional jump in the delay slot
1059         of a call when using frame notes.
1060         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1061         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1062         (ARG_POINTER_CFA_OFFSET): Define.
1063         * pa.md (return_external_pic): New pattern.
1064         (prologue): Correct formatting.  Use return_external_pic if current
1065         function calls eh_return.
1066         (call_internal_symref, call_value_internal_symref,
1067         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1068         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1069         respectively.
1070         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1071
1072         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1073         list of targets to check using "nop" insn.
1074         * configure: Rebuilt.
1075
1076 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1077
1078         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1079
1080 2002-04-03  David S. Miller  <davem@redhat.com>
1081
1082         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1083         library sequence passed to the linker.
1084         (LINK_COMMAND_SPEC): Use it.
1085         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1086         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1087         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1088
1089 2002-04-03  Jason Merrill  <jason@redhat.com>
1090
1091         * except.c (struct eh_status): Remove protect_list.
1092         (begin_protect_partials, end_protect_partials): Remove.
1093         (add_partial_entry): Remove.
1094         * except.h: Remove prototypes.
1095
1096         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1097         expand_decl_cleanup_eh.
1098
1099         PR c++/5636
1100         * tree.h (CLEANUP_EH_ONLY): New macro.
1101         * stmt.c (expand_decl_cleanup_eh): New fn.
1102         (expand_cleanups): Check CLEANUP_EH_ONLY.
1103         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1104         Use expand_decl_cleanup_eh.
1105         (expand_stmt): Adjust.
1106         * c-common.h: Adjust prototype.
1107
1108 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1109
1110         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1111         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1112         (cris_target_asm_function_epilogue): Ditto.
1113         (cris_initial_frame_pointer_offset): Ditto.
1114         (cris_simple_epilogue): Ditto.
1115         (cris_expand_builtin_va_arg): Variable-size types come in
1116         by-reference.
1117
1118 2002-04-03  David S. Miller  <davem@redhat.com>
1119
1120         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1121         little-endian.
1122         (set_fast_math): Correct 'fsr' type.
1123
1124 2002-04-03  Richard Henderson  <rth@redhat.com>
1125
1126         PR opt/3569
1127         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1128         * toplev.c (check_global_declarations): Use it.
1129         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1130         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1131         (LANG_HOOKS_DECLS): Add it.
1132         * langhooks.c (lhd_warn_unused_global_decl): New.
1133         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1134         * c-objc-common.c (c_warn_unused_global_decl): New.
1135         * c-tree.h (c_warn_unused_global_decl): Declare.
1136         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1137
1138 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1139
1140         * langhooks-def.h (lhd_set_decl_assembler_name,
1141         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1142         (LANG_HOOKS_INITIALIZER): Update.
1143         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1144         * langhooks.h (struct lang_hooks): New hook.
1145         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1146         (lang_set_decl_assembler_name): Remove.
1147         (init_obstacks): Don't set hook.
1148         (decl_assembler_name): New function.
1149         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1150         (decl_assembler_name): New.
1151         (lang_set_decl_assembler_name): Remove.
1152
1153 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1154
1155         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1156         works properly with .hidden symbols.
1157         * configure: Rebuilt.
1158         * config.in: Rebuilt.
1159         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1160         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1161         properly with .hidden symbols.
1162
1163 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1164
1165         PR middle-end/6102
1166         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1167         USE argument.
1168
1169 2002-04-03  Richard Henderson  <rth@redhat.com>
1170
1171         PR opt/4120
1172         * sched-rgn.c (sets_likely_spilled): New.
1173         (sets_likely_spilled_1): New.
1174         (add_branch_dependences): Use it.
1175
1176 2002-04-02  Richard Henderson  <rth@redhat.com>
1177
1178         PR opt/4311
1179         * loop.h (LOOP_FIRST_PASS): New.
1180         * loop.c (strength_reduce): Mind it when deciding to unroll.
1181         * toplev.c (rest_of_compilation): Set it.
1182
1183 2002-04-02  David S. Miller  <davem@redhat.com>
1184
1185         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1186         mems_ok_for_ldd_peep when the order of the loads being examined
1187         is reversed.
1188         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1189         existing comment to increase comprehension of this situation.
1190
1191 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1192
1193         * config/sh/sh.md: Don't use union real_extract.
1194
1195 2002-04-02  Richard Henderson  <rth@redhat.com>
1196
1197         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1198
1199 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1200
1201         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1202         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1203         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1204         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1205         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1206         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1207         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1208         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1209         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1210         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1211         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1212         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1213         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1214         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1215         Include as many configury headers via tm_file as possible.  This
1216         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1217         * config/openbsd-oldgas.h: New file.
1218         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1219         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1220         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1221         config/i386/i386-coff.h, config/i386/i386-interix.h,
1222         config/i386/iscdbx.h, config/i386/linux-aout.h,
1223         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1224         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1225         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1226         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1227         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1228         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1229         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1230         config/i386/vxi386.h: Do not directly include configury headers.
1231         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1232         Directly include configury headers that are no longer automatically
1233         included by the above headers.
1234         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1235         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1236         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1237         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1238         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1239         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1240         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1241         (TARGET_VERSION): Define.
1242         * config/i386/beos-elf.h, config/i386/freebsd.h,
1243         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1244         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1245         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1246         config/i386/sco5.h, config/i386/sysv4.h
1247         (TARGET_VERSION): Do not need to protect.
1248         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1249         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1250         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1251         config/i386/i386-interix.h, config/i386/linux-aout.h,
1252         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1253         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1254         (YES_UNDERSCORES): Do not define - not needed.
1255         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1256         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1257         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1258         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1259         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1260         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1261         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1262         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1263
1264 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1265             Richard Henderson  <rth@redhat.com>
1266
1267         PR c/5484
1268         * function.c (assign_temp): Accept either type or decl argument.
1269         Detect variables whose size is too large to fit into an integer.
1270         * stmt.c (expand_decl): Pass the decl, not the type.
1271
1272 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1273
1274         * protoize.c: Match include directory usage with cppdefault.c.
1275
1276 2002-04-03  Jeffrey A Law  (law@redhat.com)
1277             Hans-Peter Nilsson  <hp@bitrange.com>
1278
1279         * combine.c (simplify_comparison): Avoid narrowing a comparison
1280         with a paradoxical subreg when doing so would drop signficant bits.
1281
1282 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1283
1284         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1285         if POINTERS_EXTEND_UNSIGNED is defined.
1286
1287 2002-04-02  Richard Henderson  <rth@redhat.com>
1288
1289         PR opt/3967
1290         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1291         replace regs.
1292
1293 2002-04-02  Richard Henderson  <rth@redhat.com>
1294
1295         * doc/standards.texi: Document required freestanding libc entry points.
1296
1297 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1298
1299         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1300         associated splitter.  Remove MQ constraint.
1301         (ctrdi_internal4): Correct CCmode clobber.
1302
1303 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1304
1305         * milli64.S ($$dyncall): New function.
1306         * t-linux (LIB1ASMFUNCS): Revise module list.
1307         (LIB1ASMSRC): Use pa/milli64.S.
1308
1309 2002-04-02  Richard Henderson  <rth@redhat.com>
1310
1311         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1312         rename solaris_sys_varargs_h.
1313
1314 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1315
1316         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1317         the same mode as its component.
1318
1319 2002-04-02  Richard Henderson  <rth@redhat.com>
1320
1321         PR opt/190
1322         * final.c (this_is_asm_operands): Export.
1323         * output.h (this_is_asm_operands): Declare.
1324         * config/i386/i386.c (print_operand): Error odd asm operands.
1325
1326 2002-04-02  Richard Henderson  <rth@redhat.com>
1327
1328         PR opt/420
1329         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1330
1331 2002-04-01  Richard Henderson  <rth@redhat.com>
1332
1333         PR target/1538
1334         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1335         * fixinc/fixincl.x: Rebuild.
1336
1337 2002-04-01  Richard Henderson  <rth@redhat.com>
1338
1339         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1340         (atomic_alloc, atomic_free): New.
1341         (SIZE, MASK_FOR, PTR_IN): New.
1342         (emergency_reg_state, emergency_reg_state_free): New.
1343         (emergency_labeled_state, emergency_labeled_state_free): New.
1344         (reg_state_alloced, labeled_state_alloced): New.
1345         (alloc_reg_state, free_reg_state): New.
1346         (alloc_label_state, free_label_state, free_label_states): New.
1347         (push, pop, dup_state_stack, free_state_stack): Use them.
1348         (desc_label_state): Likewise.
1349         (uw_frame_state_for): Free label states and state stack.
1350         (uw_update_reg_address): Eliminate warnings.
1351
1352 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1353
1354         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1355         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1356
1357 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1358
1359         * c-decl.c (grokdeclarator): Update.
1360         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1361         * c-tree.h (c_mark_addressable): New.
1362         * c-typeck.c (default_function_array_conversion, build_unary_op,
1363         build_array_ref, convert_for_assignment): Update.
1364         (mark_addressable): Rename.
1365         * calls.c (try_to_integrate, expand_call): Use langhook.
1366         * expr.c (expand_expr): Use langhook.
1367         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1368         * langhooks.h (struct lang_hooks): New hook.
1369         * stmt.c (expand_asm_operands): Use langhook.
1370         * tree.h (mark_addressable): Remove.
1371 objc:
1372         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1373
1374 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1375
1376         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1377         in previous change.
1378
1379 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1380
1381         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1382         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1383
1384 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1385
1386         * c-common.c (unsigned_conversion_warning, convert_and_check,
1387         unsigned_type, signed_type, shorten_compare,
1388         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1389         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1390         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1391         New.
1392         * c-decl.c (grokdeclarator): Update.
1393         * c-format.c (check_format_types): Update.
1394         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1395         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1396         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1397         * convert.c (convert_to_integer): Use new hooks.
1398         * expmed.c (make_tree): Use new hooks.
1399         * expr.c (store_expr): Use new hooks.
1400         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1401         all_ones_mask_p, unextend, fold): Use new hooks.
1402         * langhooks.h (struct lang_hooks_for_types): New hooks.
1403         * tree.h (signed_or_unsigned_type, signed_type,
1404         unsigned_type): Remove.
1405 objc:
1406         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1407         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1408
1409 2002-03-31  Richard Henderson  <rth@redhat.com>
1410
1411         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1412         (desc_frgr_mem): Fix reference to f16-f31.
1413
1414 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1415
1416         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1417         RTVEC_ELT): Const-ify.
1418         * varray.h (VARRAY_CHECK): Const-ify.
1419         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1420         ggc_mark_rtvec, ggc_mark): Const-ify.
1421
1422 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1423
1424         * diagnostic.c: Include langhooks-def.h.
1425         * Makefile.in (diagnostic.o): Update.
1426
1427 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1428
1429         * c-common.c (c_unsafe_for_reeval): Rename.
1430         * c-common.h (c_unsafe_for_reeval): Rename.
1431         * c-decl.c (finish_incomplete_decl): Rename.
1432         (c_init_decl_processing): Don't set langhook.
1433         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1434         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1435         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1436         * c-tree.h (finish_incomplete_decl): Rename.
1437         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1438         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1439         (LANG_HOOKS_INITIALIZER): Update.
1440         * langhooks.c (lhd_unsafe_For_reeval): New.
1441         * langhooks.h (struct langhooks): New hooks.
1442         * toplev.c (incomplete_decl_finalize_hook): Remove.
1443         (wrapup_global_declarations): Update.
1444         * tree.c (lang_unsafe_for_reeval): Remove.
1445         (unsafe_for_reeval): Update.
1446         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1447         Remove.
1448 objc:
1449         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1450         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1451
1452 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1453
1454         * diagnostic.c (print_error_function): Remove.
1455         (default_print_error_function): Rename.
1456         (report_error_function): Update.
1457         * diagnostic.h (print_error_function): Remove.
1458         (default_print_error_function): Remove.
1459         * langhooks-def.h (struct diagnostic_context): Predeclare.
1460         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1461         (LANG_HOOKS_INITIALIZER): Update.
1462         * langhooks.h (struct diagnostic context): Predeclare.
1463         (struct lang_hooks): New hook.
1464
1465 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1466
1467         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1468         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1469         !flag_pic.
1470         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1471         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1472         of PIC_OFFSET_TABLE_REGNUM thruout.
1473         * config/rs6000/rs6000.md: Likewise.
1474         * config/rs6000/darwin.h: Likewise.
1475
1476 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1477
1478         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1479         unsigned HOST_WIDE_INT, not unsigned int.
1480
1481 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1482
1483         PR middle-end/6096, middle-end/6098, middle-end/6099
1484         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1485         CODE_LABELs.
1486         (fill_slots_from_thread): Likewise.
1487
1488 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1489
1490         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1491         floating fields in float regs.
1492         (function_arg_record_value_2): Likewise.
1493
1494 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1495
1496         * config/mmix/mmix.md (define_constants): Remove misleading
1497         FIXME.  Add MMIX_fp_rO_OFFSET.
1498         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1499         saved rO as part of the pattern.  Remove FIXME.
1500         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1501         here, at output-time.
1502
1503 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1504
1505         PR middle-end/6100
1506         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1507         REG_BR_PRED.
1508         (output_v9branch): Likewise.
1509
1510 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1511
1512         * gcc.c: Revert previous patch for now.
1513         * config/i386/djgpp.h: Likewise.
1514
1515 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1516
1517         * config/mmix/crti.asm (_init): Register _fini with atexit.
1518         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1519
1520 2002-03-31  Richard Henderson  <rth@redhat.com>
1521
1522         PR target/3997
1523         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1524         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1525
1526 2002-03-31  Richard Henderson  <rth@redhat.com>
1527
1528         * libgcc2.c (__bb_exit_func): Make static.
1529
1530         * config/alpha/alpha.md (trap): New.
1531
1532 2002-03-31  Richard Henderson  <rth@redhat.com>
1533
1534         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1535         promoted argument types; build trap.
1536         (expand_builtin_trap): New.
1537         (expand_builtin): Use it.
1538         * stmt.c (expand_nl_goto_receivers): Likewise.
1539         * expr.h (expand_builtin_trap): Declare.
1540         * libfuncs.h (LTI_abort, abort_libfunc): New.
1541         * optabs.c (init_optabs): Init abort_libfunc.
1542
1543 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1544
1545         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1546         (LINK_COMMAND_SPEC): ... from here.
1547         (init_gcc_specs): Duplicate it here too, omitting
1548         shared_name in the second copy.
1549         (init_spec): Test for duplicate
1550         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1551
1552 2002-03-30  David S. Miller  <davem@redhat.com>
1553
1554         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1555         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1556
1557 2002-03-30  Roger Sayle <roger@eyesopen.com>
1558             Richard Henderson  <rth@redhat.com>
1559
1560         * regmove.c (combine_stack_adjustments_for_block): Avoid
1561         emitting a stack adjustment of zero bytes.  Let delete_insn
1562         update bb->head.
1563
1564 2002-03-30  Richard Henderson  <rth@redhat.com>
1565
1566         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1567         (sparc_emitting_epilogue): New.
1568         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1569         * config/sparc/sparc-protos.h: Update.
1570         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1571         (TARGET_SWITCHES): Update.
1572         * config/sparc/sparc.md (return): Remove.
1573         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1574         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1575         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1576         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1577         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1578         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1579         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1580         Remove MASK_EPILOGUE.
1581         * doc/invoke.texi: Update.
1582
1583 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1584
1585         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1586         CPP will start the file for us.
1587
1588 2002-03-30  Richard Henderson  <rth@redhat.com>
1589
1590         PR target/5446
1591         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1592         prologue_allocate_stack.
1593         (ia64_single_set): Use insn codes for recognition of special
1594         cases, not rtl matching.
1595         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1596
1597 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1598
1599         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1600
1601 2002-03-30  Richard Henderson  <rth@redhat.com>
1602
1603         PR target/6032
1604         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1605         or -fomit-frame-pointer with profiling.
1606         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1607         (FUNCTION_PROFILER): Do nothing.
1608         (PROFILE_HOOK): New.
1609         * config/sparc/sparc.c (sparc_override_options): Don't check
1610         code models for profiling.
1611         (sparc_function_profiler): Remove.
1612         (sparc_profile_hook): New.
1613         * config/sparc/sparc-protos.h: Update.
1614
1615 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1616
1617         PR optimization/6086
1618         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1619         of SUBREG of volatile MEM or because the MEM was mode dependent,
1620         return CLOBBER instead of unmodified SUBREG.
1621
1622 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1623
1624         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1625         when not optimizing.
1626
1627         * toplev.c (rest_of_compilation): Cann mark_constant_function
1628         only when optimizing.
1629
1630         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1631         are NULL.
1632
1633         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1634         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1635         (try_optimize_cfg): clear all AUX fields.
1636
1637         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1638         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1639         (ix86_address_cost): Be prepared for SUBREGed registers.
1640         (legitimate_address_p): Accept SUBREGed registers.
1641
1642 2002-03-29  Richard Henderson  <rth@redhat.com>
1643
1644         PR target/5672
1645         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1646
1647 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1648
1649         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1650         for aggregate and TFmode types.
1651
1652 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1653
1654         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1655
1656 2002-03-29  Richard Henderson  <rth@redhat.com>
1657
1658         PR target/5886
1659         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1660         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1661
1662 2002-03-29  Richard Henderson  <rth@redhat.com>
1663
1664         PR target/6041
1665         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1666         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1667         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1668         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1669         conditional.
1670         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1671
1672 2002-03-29  Dale Johannesen <dalej@apple.com>
1673
1674         * loop.c (combine_movables): Do allow combination of pseudos.
1675
1676 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1677
1678         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1679         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1680         No functional change except ...
1681         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1682         * doc/install.texi (*-*-freebsd*): Document port configuration.
1683
1684 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1685
1686         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1687         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1688         Use new hooks.
1689         * builtin-types.def (BT_PTRMODE): Update.
1690         * c-common.c (type_for_size): Rename c_common_type_for_size.
1691         (type_for_mode): Similarly.
1692         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1693         Use new hook.
1694         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1695         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1696         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1697         Redefine.
1698         * c-typeck.c (common_type, comptypes, default_conversion):
1699         Use new hooks.
1700         * calls.c: Include langhooks.h.
1701         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1702         calls.
1703         * convert.c: Include langhooks.h
1704         (convert_to_pointer, convert_to_integer): Use new hooks.
1705         * except.c (init_eh): Similarly.
1706         * expmed.c: Include langhooks.h.
1707         (expand_mult_add): Use new hooks.
1708         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1709         try_casesi): Similarly.
1710         * fold-const.c (optimize_bit_field_compare, make_range,
1711         decode_field_reference, fold_truthop, fold): Similarly.
1712         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1713         put_var_into_stack): Similarly.
1714         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1715         LANG_HOOKS_TYPE_FOR_SIZE): New.
1716         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1717         * langhooks.h (lang_hooks_for_types): New hooks.
1718         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1719         * tree.c (get_unwidened, get_narrower): Similarly.
1720         * tree.h (type_for_mode, type_for_size): Remove.
1721         * varasm.c (force_const_mem): Use new hooks.
1722         * utils2.c (nonbinary_modular_operation): Update.
1723 objc:
1724         * objc-act.c (handle_impent): Update.
1725         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1726         Redefine.
1727
1728 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1729
1730         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1731         * config/ia64/ia64.c (basereg_operand): New.
1732         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1733         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1734
1735 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1736
1737         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1738         unwind information when frame_pointer_needed.
1739         (mmix_assemble_integer): Tweak wording in comment.
1740
1741 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1742
1743         * Makefile.in (except.o): Update.
1744         * except.c: Include langhooks.h.
1745         (init_eh): Use langhook.
1746         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1747         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1748         (LANG_HOOKS_INITIALIZER): Update.
1749         * langhooks.h (lang_hooks_for_types): New.
1750         (struct lang_hooks): Add it.
1751         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1752         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1753 config:
1754         * alpha/alpha.c: Include langhooks.h.
1755         (alpha_build_va_list): Use langhook.
1756         * d30v/d30v.c: Include langhooks.h.
1757         (d30v_build_va_list): Use langhook.
1758         * i386/i386.c: Include langhooks.h.
1759         (ix86_build_va_list): Use langhook.
1760         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1761         * s390/s390.c: Include langhooks.h.
1762         (s390_build_va_list): Use langhook.
1763         * stormy16/stormy16.c: Include langhooks.h.
1764         (stormy16_build_va_list): Use langhook.
1765
1766 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1767
1768         PR c++/5964
1769         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1770         attributes.
1771         (length): Compute variable length for branches/calls/jumps here.
1772         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1773         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1774         define branch_type attribute.
1775         (divsi3_sp32): Maximum length is 6 not 7.
1776         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1777         call_address_untyped_struct_value_sp32,
1778         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1779         * config/sparc/sparc.c (empty_delay_slot): New function.
1780         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1781         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1782
1783 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1784
1785         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1786         nonzero_bits if not needed.
1787         (nonzero_bits) [XOR]: Likewise.
1788         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1789         reg_last_set_mode and mode are both MODE_INT, but not equal.
1790         (record_value_for_reg): Compute reg_last_set_nonzero_bits
1791         in nonzero_bits_mode for MODE_INT modes.
1792
1793 2002-03-28  Richard Henderson  <rth@redhat.com>
1794
1795         PR target/5715
1796         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1797         to GAS.  Correct drift between alternatives.
1798
1799 2002-03-28  Richard Henderson  <rth@redhat.com>
1800
1801         PR target/6087
1802         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1803
1804 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
1805
1806         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1807         emulation to the linker.
1808
1809 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
1810
1811         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1812         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1813
1814 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
1815
1816         * combine.c (simplify_and_const_int): Make sure to apply mask
1817         when force_to_mode returns a constant integer.  PR3311.
1818
1819 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1820
1821         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1822
1823 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1824
1825         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1826         and Objective-C Dialect Options.
1827
1828 2002-03-28  Richard Henderson  <rth@redhat.com>
1829
1830         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1831         comparison should be done vs !=0 not >0 return code.  Tidy cases.
1832
1833 2002-03-28  Richard Henderson  <rth@redhat.com>
1834
1835         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
1836         on to c_expand_body.
1837         * c-tree.h (finish_function): Update decl.
1838         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1839
1840 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1841
1842         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1843
1844 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
1845
1846         * rtlanal.c: Include flags.h
1847         (may_trap_p): Do not mark FP operations if trapping
1848         if !flag_trapping_math
1849         * Makefile.in (rtlanal.o): Add dependency on flag.h
1850         * ifcvt.c (noce_operand_ok): Avoid the lameness.
1851
1852 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
1853
1854         * mips.md: Use dconst1, not 1.0, as first argument of
1855         REAL_VALUE_LDEXP.  Don't use union real_extract.
1856
1857 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1858
1859         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1860         rather than $target.  Heed program_prefix and
1861         program_transform_name.  Search for gas in cross-compiler case too.
1862         "test -x" rather than "test -f".
1863         (gcc_cv_ld): Likewise.
1864         (gcc_cv_nm): Heed program_prefix and program_transform_name.
1865         (gcc_cv_objdump): Likewise.
1866         * configure: Regenerate.
1867
1868 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1869
1870         * Makefile.in (attribs.o): Update.
1871         * attribs.c: Include langhooks.h.
1872         (decl_attributes): Use langhook.
1873         * c-decl.c (insert_default_attributes): Rename.
1874         * c-tree.h (c_insert_default_attributes): New.
1875         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1876         (LANG_HOOKS_INITIALIZER): Update.
1877         * langhooks.h (struct lang_hooks): New hook.
1878         * tree.h (insert_default_attributes): Remove.
1879 objc:
1880         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1881
1882 2002-03-27  Andreas Schwab  <schwab@suse.de>
1883
1884         * config/i386/i386.c (classify_argument): Also check for
1885         QUAL_UNION_TYPE.
1886
1887 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1888
1889         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1890         any more.
1891
1892 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1893
1894         * i960.md (ret): Set PC.
1895         (nonlocal_goto): Fix expander.
1896         * builtins.c (epxand_builin_longjmp): Check that we've emitted
1897         some jump or call.
1898
1899 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1900
1901         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1902         of libcall regions.
1903
1904 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1905
1906         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1907         assigning to BLOCK_FOR_INSN directly.
1908
1909 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
1910
1911         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1912
1913 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1914
1915         * c-common.c (c_expand_expr): Fix prototype.
1916         * c-common.h (c_expand_expr): Always declare, update.
1917         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1918         * c-objc-common.c (c_objc_common_init): No global hook.
1919         * expr.c (expand_expr): Use langhook.
1920         * expr.h (enum expand_modifier): Conditionally declare.
1921         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1922         (LANG_HOOKS_INITIALIZER): Update.
1923         * langhooks.c (lhd_expand_expr): New.
1924         * langhooks.h (struct lang_hooks): New hook.
1925         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1926         (lang_independent_init): Don't default hook.
1927 objc:
1928         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1929
1930 2002-03-27  Richard Henderson  <rth@redhat.com>
1931
1932         PR target/6054
1933         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1934         TARGET_CONST_GP.  Simplify conditions.
1935
1936 2002-03-27  Richard Henderson  <rth@redhat.com>
1937
1938         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1939         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1940         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1941
1942 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
1943
1944         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1945         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1946         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1947         Remove unnecessary masks.
1948         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1949         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1950         -mwindows, -mdll switches and their negations.
1951
1952 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1953
1954         * gcc-common.c (lang_mark_false_label_stack): Remove.
1955         * ggc.h (lang_mark_false_label_stack): Similarly.
1956
1957 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
1958
1959         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1960
1961         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1962         or __rtems_ is defined.
1963
1964 2002-03-26  Richard Henderson  <rth@redhat.com>
1965
1966         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1967         if a non-trivial load was emitted.
1968         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
1969         in high+extra+low case.
1970
1971 2002-03-26  Richard Henderson  <rth@redhat.com>
1972
1973         * config.gcc (sparc*-solaris): Use float_format=sparc.
1974
1975 2002-03-26  Richard Henderson  <rth@redhat.com>
1976
1977         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1978         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1979         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1980         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1981         (WINT_TYPE_SIZE): Fix at 32.
1982
1983 2002-03-26  Richard Henderson  <rth@redhat.com>
1984
1985         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1986         until after eh landing pad generation.
1987         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1988         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1989
1990 2002-03-26  Richard Henderson  <rth@redhat.com>
1991
1992         * expr.h (ADD_PARM_SIZE): One more convert for INC.
1993
1994 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
1995
1996         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
1997         and warning switches.
1998         (cc1_options):  Likewise.
1999
2000 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2001
2002         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2003         Restore more of the signal context.  Set no_reg_stack_frame.
2004         * config/ia64/unwind-ia64.c (unw_state_record):
2005         Add no_reg_stack_frame, comments.
2006         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2007         (uw_update_context): Adjust bsp when unwinding from leaf,
2008         but not signal frame.
2009
2010 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2011
2012         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2013
2014 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2015
2016         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2017
2018 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2019
2020         PR target/5621
2021         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2022         "Add a pool_range attribute", which was lost during the ARM/Thumb
2023         merge.
2024
2025 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2026
2027         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2028         a register into the MAC16 accumulator.
2029
2030 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2031
2032         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2033         (Warning Options): Document -Wswitch-enum.
2034         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2035         -Wswitch.
2036         (warn_switch_enum): Define variables.
2037         * flags.h (warn_switch_enum): Declare variables.
2038         * stmt.c (expand_end_case_type): When warn_switch_enum /
2039         -Wswitch-enum, perform switch checks.
2040         Fix PR c/5044.
2041
2042 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2043
2044         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2045         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2046         (reload_muladdsi_compare0_scratch): Delete.
2047
2048 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2049
2050         * doc/install.texi (*-*-freebsd*): Update.
2051
2052 2002-03-26  Richard Henderson  <rth@redhat.com>
2053
2054         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2055         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2056
2057         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2058         types from the normal argument frame.
2059
2060         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2061         variable sized objects by reference.
2062         (sparc_va_arg): Receive them by reference too.
2063
2064 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2065
2066         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2067         code to not restoring global registers.
2068
2069 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2070
2071         * Makefile.in (ggc-common.o): Update.
2072         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2073         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2074         * c-tree.h (c_mark_tree): New.
2075         * ggc-common.c: Include langhooks.h.
2076         (gcc_mark_trees): Use new langhook.
2077         * ggc-callbacks.c: Delete file.
2078         * ggc.h (lang_mark_tree): Remove.
2079         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2080         (LANG_HOOKS_INITIALIZER): Update.
2081         * langhooks.h (struct lang_hooks): New hook.
2082 objc:
2083         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2084
2085 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2086
2087         * doc/cpp.texi: Exclude entire Top node from printed manual.
2088         Move option index after directive index.  Insert page breaks
2089         before GFDL and concept index.  Index environment variables
2090         with command line options.
2091         * doc/cppenv.texi: Use @vtable for environment variable list.
2092         Add paragraph explaining semantics of empty elements in path
2093         variables.  Exclude a cross-reference to Fishkill from the
2094         manpage.  Remove an unnecessary cross-reference of the entry
2095         right above the referer.  Don't use @anchor in text that goes
2096         into manpage.
2097         * doc/cppopts.texi: Cross-reference the environment variables
2098         section, not the specific environment variable, for consistency.
2099
2100 2002-03-25  Richard Henderson  <rth@redhat.com>
2101
2102         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2103         anywhere in the block.  Don't refer to insns that have been
2104         removed from the chain.  Iterate backward through the new insns.
2105         Don't refer to edges that have been removed.
2106
2107 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2108
2109         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2110         test for overflow of constant.
2111
2112 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2113
2114         PR target/2623
2115         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2116         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2117         these patterns on arm_archv4.
2118
2119 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2120
2121         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2122         int".
2123
2124 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2125
2126         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2127         float_handled, float_handler, float_signal, set_float_handler,
2128         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2129         * toplev.h: Don't prototype do_float_handler.
2130
2131         * c-lex.c: Fold parse_float into lex_number.  Make warning
2132         about portability of hex float constants more informative, and
2133         don't issue it on top of a syntax error.
2134         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2135         their callers.
2136         * real.h: Define REAL_VALUE_ABS here...
2137         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2138         simplify_unary_real, simplify_binary_real, and
2139         simplify_binary_is2orm1 into their callers.
2140         * tree.c: Fold build_real_from_int_cst_1 into caller.
2141
2142         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2143
2144         * tsystem.h: Include float.h here...
2145         * libgcc2.c: ... not here.
2146
2147 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2148
2149         Fixes for: PR bootstrap/3591, target/5676
2150         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2151         defined.  Do not disable exceptions or rtti.
2152         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2153         mcore.h.  Disable exceptions and rtti, since they are not
2154         supported by EPOC.
2155
2156 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2157
2158         * c-decl.c (maybe_build_cleanup): Remove.
2159         * expr.c (expand_expr): Use langhook.
2160         * langhooks-def.h (lhd_return_null_tree,
2161         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2162         (LANGHOOKS_INITIALIZER): Update.
2163         * langhooks.c (lhd_return_null_tree): New.
2164         * langhooks.h (struct lang_hooks): New hook.
2165         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2166         * tree.h (maybe_build_cleanup): Remove.
2167
2168 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2169
2170         * regrename.c (build_def_use): Move recog_memoized
2171         before extract_insn.
2172
2173 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2174
2175         PR target/6043
2176         * expr.c (emit_group_store): Handle storing into CONCAT.
2177
2178 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2179
2180         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2181         corresponding MATCH_DUP.
2182
2183 2002-03-24  Richard Henderson  <rth@redhat.com>
2184
2185         * unroll.c (unroll_loop): Zero label_map.
2186
2187         * gcse.c: Include except.h.
2188         * Makefile.in (gcse.o): Update.
2189
2190 2002-03-24  Richard Henderson  <rth@redhat.com>
2191
2192         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2193         Do resolve_unique_section before shared data clause.
2194
2195 2002-03-24  Richard Henderson  <rth@redhat.com>
2196
2197         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2198
2199 2002-03-24  Richard Henderson  <rth@redhat.com>
2200
2201         * recog.c (peephole2_optimize): Split blocks when EH insns are
2202         generated in the middle of a block.  Do global life update if
2203         zapped EH edges.
2204
2205 2002-03-24  Richard Henderson  <rth@redhat.com>
2206
2207         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2208
2209 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2210
2211         preprocessor/3951
2212         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2213         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2214         (init_dependency_output): Don't make no_output decision here.
2215
2216 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2217
2218         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2219         warn_switch.  Update description.
2220         (expand_end_case_type): Call check_for_full_enumeration_handling
2221         when warn_switch.
2222
2223 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2224
2225         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2226         (m68hc11_split_move): Call it to see if the source and destination
2227         operands use the same direction auto inc/dec mode, otherwise make the
2228         source an offsetable memory operand and generate an add.
2229
2230 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2231
2232         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2233         register for operand 2.
2234         ("*subsi3_zero_extendqi"): Likewise.
2235         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2236         bits so that it is compatible with a pop.
2237         ("*andhi3_gen"): Likewise.
2238         ("xorhi3"): Likewise.
2239
2240 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2241
2242         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2243         -pedantic here...
2244         (cpp_post_options): ... not here.
2245
2246 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2247             Aldy Hernandez  <aldyh@redhat.com>
2248
2249         Removal of separate preprocessor cpp0.
2250
2251         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2252         cpp0, install-common): Update.
2253         * c-common.c (flag_preprocess_only): New.
2254         (c_common_init): Preprocess for -E.
2255         * c-common.h (flag_preprocess_only): New.
2256         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2257         * c-objc-common.c (c_init_decl_processing): Exit quickly
2258         for NULL return from c_common_init.
2259         * cpplib.h (cpp_preprocess_file): New.
2260         * cppmain.c (main, general_init, pfile, progname): Remove.
2261         (do_preprocessing): Rename cpp_preprocess_file, don't call
2262         cpp_finish.  Don't close stdout here.
2263         (setup_callbacks): Update prototype.
2264         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2265         Update.
2266         * tradcpp.c (main): Ignore -quiet.
2267 objc:
2268         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2269
2270 2002-03-24  Richard Henderson  <rth@redhat.com>
2271
2272         PR optimization/5742
2273         * machmode.def: Add inner mode field to complex modes.
2274         * config/mips/mips.c (mips_function_value): Always define.  Add
2275         new argument to handle libcalls.
2276         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2277         (FUNCTION_VALUE): Likewise.
2278         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2279         * config/mips/mips-protos.h: Update.
2280
2281 2002-03-23  Richard Henderson  <rth@redhat.com>
2282
2283         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2284         * config/sparc/sparc-protos.h: Update.
2285         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2286
2287 2002-03-23  Richard Henderson  <rth@redhat.com>
2288
2289         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2290         _start or _init begins the text segment.
2291
2292 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2293
2294         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2295         not HOST_WIDEST_INT.
2296         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2297
2298 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2299
2300         PR java/5489
2301         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2302         operand argument to output_return_instruction.
2303         * arm.c (arm_print_operand, case 'd'): If the operand is
2304         const_true_rtx then just return.
2305         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2306         then abort.
2307
2308 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2309
2310         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2311         (Warning Options): Document -Wswitch-default.
2312         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2313         -Wswitch.
2314         (warn_switch_default): Define variable.
2315         (warn_switch): Update comment.
2316         * flags.h (warn_switch_default): Declare variable.
2317         (warn_switch): Update comment.
2318         * stmt.c (expand_end_case): Check for and, when
2319         warn_switch_no_default, warn of a missing default case.
2320
2321 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2322
2323         * real.h (N): Special case 128 bit doubles.
2324
2325         * combine.c (simplify_comparison): When widening modes, ignore
2326         sign extension on CONST_INTs.
2327
2328 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2329
2330         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2331         passed to adjust_address.  Fix comment formatting.
2332
2333
2334 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2335
2336         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2337         Always make REAL_VALUE_TYPE a struct containing an array of
2338         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2339         big it is.  Don't declare or use union real_extract.
2340
2341         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2342         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2343         (print_operand), config/arm/arm.c (output_move_double),
2344         config/arm/arm.md (consttable_4, consttable_8),
2345         config/romp/romp.c (output_fpops), config/s390/s390.h
2346         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2347         (xtensa_output_literal): Don't use union real_extract.
2348
2349         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2350         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2351         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2352         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2353         (PRINT_OPERAND): Don't use local version of union
2354         real_extract.
2355
2356         * config/convex/convex.c (check_float_value), config/vax/vax.c
2357         (vax_float_literal), config/m88k/m88k.md (divdf3),
2358         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2359         config/pdp11/pdp11.c (output_move_quad): Don't do host
2360         arithmetic on target floating point quantities.
2361
2362         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2363         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2364
2365         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2366         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2367
2368         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2369         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2370         INFINITY.
2371         * print-rtl.c (print_rtx): Disable code which needs
2372         floating-point emulator.
2373         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2374         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2375         depending on HOST_FLOAT_FORMAT to be defined properly.
2376
2377         * config/1750a/1750a.c (get_double, float_label): Delete.
2378         (print_operand): Delete huge commented-out chunk.  Use
2379         REAL_VALUE_TO_DECIMAL.
2380         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2381         functions.
2382         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2383         IEEE_FLOAT_FORMAT.
2384         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2385         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2386         * config/m88k/m88k.c (real_power_of_2_operand,
2387         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2388         real_extract out of the union; run the input through
2389         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2390         from that into the union.
2391         * config/pdp11/pdp11.c (output_move_double): Rearrange
2392         parentheses to make automatic indenter happy.
2393
2394         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2395         Point" and rewrite to describe current situation.  Also adjust
2396         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2397         match code.
2398         * doc/rtl.texi: Adjust cross reference.
2399
2400 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2401
2402         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2403         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2404         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2405         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2406         prevent use of sp as a reload register.
2407         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2408         non_acc_reg_operand.
2409         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2410         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2411         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2412         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2413
2414 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2415
2416         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2417         * cpplex.c (unterminated): Delete.
2418         (parse_string): No string literal may extend over multiple
2419         lines.  Suppress the error when preprocessing assembly.
2420         * cppmain.c (scan_translation_unit): Strings are single-line.
2421
2422         * doc/cpp.texi: Update to match.
2423
2424 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2425
2426         PR optimization/5854
2427         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2428         Shut up warnings.
2429         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2430         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2431         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2432         const0 if scratch register was not allocated.
2433         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2434         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2435         with GEN_INT (...).
2436         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2437         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2438         with GEN_INT (...) everywhere.  Remove constraints in define_split
2439         patterns.
2440         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2441         require scratch register for setting 0 into regs/non-pushable memory.
2442
2443 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2444
2445         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2446         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2447
2448 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2449
2450         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2451         * cppinit.c (cpp_create_reader):  On by default.
2452         (cpp_handle_option):  Handle -W[no-]endif-labels.
2453         (cpp_post_options):  Also enable if -pedantic.
2454         * cpplib.c (do_else):  Use it.
2455         (do_endif):  Likewise.
2456         * doc/cppopts.texi:  Document new option.
2457         * doc/invoke.texi:  Document new option.
2458
2459 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2460
2461         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2462         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2463
2464 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2465
2466         * flow.c (calculate_global_regs_live): Clear aux fields of
2467         ENTRY and EXIT.
2468
2469 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2470
2471         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2472         REG or MEM subregs, pass rtx * instead of rtx to it.
2473         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2474         rtx * instead of rtx to alter_subreg.
2475         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2476         * config/pj/pj.c (pj_output_rval): Likewise.
2477
2478 2002-03-22  Richard Henderson  <rth@redhat.com>
2479
2480         PR target/3177
2481         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2482         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2483         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2484         (ia64_expand_prologue): Look at int_regs, not words, for number
2485         of incomming int regs.
2486
2487 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2488
2489         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2490
2491 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2492
2493         * toplev.c (flag_loop_optimize, flag_crossjumping):
2494         New static variables.
2495         (rest_of_compilation): Conditionalize crossjumping and
2496         loop optimizer.
2497         (parse_options_and_default_flags): Default loop_optimize and
2498         crossjumping.
2499         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2500         * invoke.texi (crossjumping, loop-optimize): Document.
2501
2502 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2503
2504         * real.c (eiisneg): Move outside #ifdef NANS.
2505
2506 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2507
2508         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2509         frequencies match; avoid match on different loop depths.
2510         (try_crossjump_to_bb): Kill tests that no longer brings time
2511         savings.
2512         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2513         updating code.
2514         (split_edge): Likewise.
2515
2516         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2517         variable.
2518
2519         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2520         * cfgrtl.c: Include insn-config.h
2521         (split_block) Dirtify block in presence of conditional execution
2522
2523 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2524
2525         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2526         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2527         (function_arg): Constify CUMULATIVE_ARGS.
2528         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2529         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2530         (UNITS_PER_DOUBLE): New macro.
2531         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2532         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2533         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2534         fp_regs and stack_words.
2535         (EABI_FLOAT_VARARGS_P): New macro.
2536         * config/mips/mips.c (struct mips_arg_info): New.
2537         (mips_arg_info): New function.
2538         (function_arg_advance): Use it.  Add adjustment instructions here
2539         rather than in function_arg.
2540         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2541         for VOIDmode at the beginning of the function.
2542         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2543         (function_arg_pass_by_reference): Likewise.
2544         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2545         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2546         (mips_va_start): Likewise.  Use the new stack_words field of
2547         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2548         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2549         doubles and other types, aligning the overflow pointer for non-doubles
2550         too.  Remove some code duplication.  Replace hard-coded constants.
2551
2552 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2553
2554         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2555         (CLASS_UNITS): Undefine.
2556         (CLASS_MAX_NREGS): Use FP_INC.
2557         * config/mips/mips.c (compute_frame_size): Likewise.
2558         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2559
2560 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2561
2562         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2563         prototype, and handle lexing numbers and identifiers.
2564         (parse_identifier): Update to new form of parse_slow.
2565         (parse_number): Fast path only, use parse_slow otherwise.
2566         (_cpp_lex_direct): Update calls to parse_number.
2567
2568 2002-03-21  DJ Delorie  <dj@redhat.com>
2569
2570         * bb-reorder.c (make_reorder_chain_1): Protect against
2571         when redundant edges are omitted.
2572         * predict.c (dump_prediction): Likewise.
2573
2574 2002-03-21  Richard Henderson  <rth@redhat.com>
2575
2576         PR target/5996
2577         * fixinc/inclhack.def (solaris_stdio_tag): New.
2578         * fixinc/fixincl.x: Regenerate.
2579
2580 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2581
2582         PR c/5597
2583         * c-typeck.c (process_init_element): Flag non-static
2584         initialization of a flexible array member as illegal.
2585
2586 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2587
2588         * config/rs6000/t-linux64: New.
2589         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2590         t-ppccomm.  Use t-rs6000 and t-linux64.
2591         (powerpc64-*-gnu* <tmake_file>): Likewise.
2592         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2593         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2594         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2595
2596 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2597
2598         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2599         flag_really_no_inline instead of optimize == 0.
2600
2601         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2602
2603         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2604
2605         * flags.h (flag_really_no_inline): New.
2606
2607         * c-common.c (c_common_post_options): Initialize
2608         flag_really_no_inline.
2609
2610         * toplev.c (flag_really_no_inline): New.
2611
2612 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2613
2614         * config/avr/avr.md (length): Fix length computation for
2615         conditional branches.
2616
2617 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2618
2619         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2620         sdbout.o, profile.o): Update.
2621         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2622         langhook.
2623         * c-common.h (gettags): Move here from tree.h.
2624         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2625         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2626         * dbxout.c (dbxout_init): Use getdecls langhook.
2627         * expr.c (expand_expr): Use insert_block langhook.
2628         * fold-const.c: Include langhooks.h.
2629         (fold_range_test, fold_binary_op_with_conditional_arg,
2630         fold): Use global_bindings_p langhook.
2631         * integrate.c (expand_inline_function): Use insert_block langhook.
2632         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2633         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2634         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2635         LANG_HOOKS_GETDECLS): New.
2636         (LANG_HOOKS_INITIALIZER): Update.
2637         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2638         langhook.
2639         * langhooks.h (struct lang_hooks_for_decls): New.
2640         (struct lang_hooks): Update.
2641         * profile.c: Include langhooks.h.
2642         (output_func_start_profiler): Use new langhooks.
2643         * sdbout.c: Include langhooks.h.
2644         (sdbout_init, sdbout_finish): Use getdecls langhook.
2645         * stmt.c: Include langhooks.h.
2646         (expand_fixup, fixup_gotos): Use new langhooks.
2647         * stor-layout.c: Include langhooks.h.
2648         (variable_size): Use global_bindings_p langhook.
2649         * toplev.c (compile_file): Use getdecls langhook.
2650         * tree-inline.c (remap_block): Use insert_block langhook.
2651         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2652         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2653
2654 2002-03-21  Richard Henderson  <rth@redhat.com>
2655
2656         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2657         constants in .data when -fpic.
2658
2659 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2660
2661         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2662         where appropriate.
2663
2664 2002-03-21  Tom Tromey  <tromey@redhat.com>
2665
2666         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2667
2668 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2669
2670         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2671
2672         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2673
2674 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2675             Richard Henderson  <rth@redhat.com>
2676
2677         PR c/5354
2678         * c-common.c (c_expand_expr): Preserve result of a statement
2679         expression if needed.
2680
2681 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2682
2683         PR bootstrap/4195
2684         * genrecog.c (maybe_both_true_mode): Remove.
2685         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2686         * machmode.def (Pmode): Likewise.
2687
2688 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2689
2690         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2691         (nonlocal_mentioned_p_1): New function.
2692         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2693         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2694         (mark_constant_function): Recognize pure functions.
2695         * rtl.h (global_reg_mentioned_p): New prototype.
2696         * rtlanal.c (global_reg_mentioned_p,
2697         global_reg_mentioned_p_1): New function.
2698
2699 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2700
2701         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2702         UNIX assert.h.
2703         * fixinc/fixincl.x: Regenerate.
2704
2705 2002-03-20  Jason Merrill  <jason@redhat.com>
2706
2707         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2708
2709 2002-03-20  Michael Meissner  <meissner@redhat.com>
2710
2711         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2712         -fstrict-aliasing.
2713
2714 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2715
2716         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2717         ".literal_position" directive before the constant pool.
2718
2719 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2720
2721         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2722         Add Craig Rodrigues.
2723         Add Brad Lucier to testers.
2724
2725 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2726
2727         PR target/4792
2728         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2729         to if_then_else.
2730         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2731         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2732         instead of insn_extract.
2733
2734 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2735
2736         PR bootstrap/4192
2737         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2738
2739         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2740         stmt if some case has been output.
2741
2742 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2743
2744         PR c/5972
2745         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2746         movsfcc_1, movdfcc_1): Add %O2.
2747         * config/i386/i386.c (print_operand): Handle %ON.
2748         Print . before float condition codes in Sun as cmov syntax.
2749         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2750         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2751         no longer true.
2752
2753 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2754
2755         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2756         return instruction if PC was popped.
2757
2758 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2759
2760         * config/xtensa/xtensa.md: Remove unused type attributes.
2761         (adddi_carry, subddi_carry): Change type attribute to "multi".
2762
2763 2002-03-19  Dale Johannesen  <dalej@apple.com>
2764
2765         PR optimization/5999, middle-end/5731
2766         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2767         multiplications by reciprocals.
2768
2769 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2770
2771         * Makefile.in: Update.
2772         * c-common.c: Include langhooks.h.
2773         (inline_forbidden_p): Use new hook.
2774         * diagnostic.c: Include langhooks.h.
2775         (format_with_decl, announce_function,
2776         default_print_error_function): Use new hook.
2777         * dwarf2out.c (dwarf2_name): Use new hook.
2778         * function.c: Include langhooks.h.
2779         (init_function_start): Use new hook.
2780         * langhooks-def.h (lhd_decl_printable_name): New.
2781         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2782         (LANGHOOKS_INITIALIZER): Update.
2783         * langhooks.c (lhd_decl_printable_name): New.
2784         * langhooks.h (struct lang_hooks): New hook.
2785         * toplev.c (decl_name, decl_printable_name): Remove.
2786         (open_dump_file): Use new hook.
2787         (process_options): Remove old hook.
2788         * tree.h (decl_printable_name): Remove.
2789 objc:
2790         * objc-act.c (objc_init): Remove old hook.
2791         (objc_printable_name): Export.
2792         * objc-act.h (objc_printable_name): New.
2793         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2794
2795 2002-03-19  Jim Blandy  <jimb@redhat.com>
2796
2797         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2798         the start_source_file debug hook, not the current line number.
2799
2800 2002-03-19  Richard Henderson  <rth@redhat.com>
2801
2802         * flow.c (EH_USES): Provide default.
2803         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2804         * doc/tm.texi (EH_USES): New.
2805
2806         * config/ia64/ia64.c (ia64_eh_uses): New.
2807         * config/ia64/ia64-protos.h: Update.
2808         * config/ia64/ia64.h (EH_USES): New.
2809
2810 2002-03-19  Richard Henderson  <rth@redhat.com>
2811
2812         * varasm.c (output_constant_def): Fix stupid typo.
2813
2814 2002-03-19  Richard Henderson  <rth@redhat.com>
2815
2816         PR 5879
2817         * except.c (current_function_has_exception_handlers): New.
2818         * except.h: Declare it.
2819         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2820         Combine tests that disable all sibcalls for the function.
2821
2822 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
2823
2824         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2825         for INTEGER_CST.
2826
2827 2002-03-19  Richard Henderson  <rth@redhat.com>
2828
2829         PR 5977, 5991
2830         * config/ia64/ia64.c: Revert 2002-03-01 patch.
2831         * config/ia64/ia64.h (INIT_EXPANDERS): New.
2832
2833 2002-03-19  Jim Blandy  <jimb@redhat.com>
2834
2835         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2836         name, even if the replacement list contains no tokens, as required
2837         by Dwarf.
2838
2839 2002-03-19  Jason Merrill  <jason@redhat.com>
2840
2841         * varasm.c (globalize_decl): Get the name from the RTL, not
2842         DECL_ASSEMBLER_NAME.
2843
2844         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2845
2846 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
2847
2848         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2849         subdi_carry): Define.
2850
2851 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2852
2853         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2854         about -fpic/-fPIC if extra_warnings set.
2855
2856 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2857
2858         * expr.c (expand_expr): Sign-extend CONST_INT generated from
2859         TREE_STRING_POINTER.
2860         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2861
2862 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2863
2864         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2865         in favor of SP if FRAME_POINTER_REQUIRED is false.
2866
2867 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
2868
2869         * emit-rtl.c (gen_int_mode): New function.
2870         * rtl.h: Prototype for it.
2871         * combine.c (make_extraction, simplify_comparison), expmed.c
2872         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2873         (convert_modes, store_field), optabs.c (expand_fix),
2874         simplify-rtx.c (neg_const_int, simplify_unary_real),
2875
2876         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2877         Use it instead of GEN_INT (trunc_int_for_mode (...)).
2878
2879 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
2880
2881         PR c/5656
2882         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2883         convert_parm_for_inlining.
2884         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2885         Define.
2886         * langhooks-def.h: Likewise.
2887         * objc/objc-lang.c: Likewise.
2888         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2889         function.
2890         * tree-inline.c (initialize_inlined_parameters):
2891         Call convert_parm_for_inlining lang hook if needed.
2892         * c-typeck.c (c_convert_parm_for_inlining): New function.
2893         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2894
2895 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
2896
2897         * calls.c (precompute_arguments): Do not assume that temporaries
2898         can be destroyed after expanding the argument.
2899         (expand_call): Likewise.
2900
2901 2002-03-15  Eric Christopher  <echristo@redhat.com>
2902
2903         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2904         Fix register preference on last change.
2905         * config/mips/mips.c (mips_return_in_memory): New function.
2906         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2907         * config/mips/mips-protos.h: Declare.
2908         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2909         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2910
2911 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2912
2913         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2914         a register too.
2915         (anddi3, iorsi3): Likewise.
2916
2917         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2918         use %gprel for symbols that are going to be placed in linkonce
2919         sections.
2920
2921         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2922         RETURN_ADDRESS_POINTER_REGNUM to $ra.
2923         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2924         not needed.  Disregard leaf_function_p().
2925         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2926         mips16 frame pointer.
2927         * config/mips/mips.md (store ra): Only to small SP offsets.
2928         2001-08-22  Graham Stott  <grahams@redhat.com>
2929         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2930         return a REG rtx for the return address register.
2931
2932 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
2933
2934         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2935         constant-pool addresses as "mode-dependent".
2936         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2937
2938 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
2939
2940         PR target/5740
2941         * expr.c (emit_group_load): Use extract_bit_field if
2942         needed for CONCAT arguments.
2943
2944 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
2945
2946         PR target/4863
2947         * arm.md (tablejump): Make this a define_expand.  For PIC add the
2948         offset to the base of the table.
2949         (thumb_tablejump): Matcher for Thumb tablejump insn.
2950         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2951         as the difference of two labels.
2952         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2953         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2954         tables in the code.
2955         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2956         * arm.c (get_jump_table_size): If the table is not in the text
2957         section, return zero.
2958
2959 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
2960
2961         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2962         of gen_rtx_SUBREG.
2963         (arm_reload_out_hi): Use gen_lowpart instead of
2964         gen_rtx_SUBREG to access QImode components.
2965         * config/arm/arm.md: Disable zero_extend split for QImode
2966         subregs in BIG_ENDIAN mode.
2967         (storehi_bigend): Match use of least significant byte.
2968         (storeinthi): Remove extraneous SUBREG.
2969         Add missing construction of operands[2].
2970         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2971         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2972         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2973
2974 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
2975
2976         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2977         any_operand.
2978
2979 2002-03-17  Richard Henderson  <rth@redhat.com>
2980
2981         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2982         explicitly.
2983
2984 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2985
2986         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2987         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2988
2989 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2990
2991         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2992
2993         * predict.c (estimate_bb_frequencies): Delete unused variables.
2994
2995 2002-03-17  Richard Henderson  <rth@redhat.com>
2996
2997         * config/ia64/ia64.c (ia64_attribute_table): Move before
2998         targetm definition.  Make static.
2999
3000 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3001
3002         * c-common.h (yyparse, c_common_parse_file): New.
3003         * c-lang.c: Include c-common.h.
3004         (LANG_HOOKS_PARSE_FILE): Redefine.
3005         * c-lex.c: Include c-common.h.
3006         (yyparse): Rename c_common_parse_file.  Call yyparse.
3007         * c-parse.in (yyparse): Remove macro.
3008         * c-tree.h (yyparse_1): Remove.
3009         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3010         (LANG_HOOKS_INITIALIZER): Update.
3011         * langhooks.h (struct lang_hoooks): New hook parse_file.
3012         * toplev.c (compile_file): Use parse_file hook.
3013         * tree.h (yyparse): Remove.
3014         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3015
3016 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3017
3018         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3019         float_truncate, not fix.
3020         ("*truncdfsf2_real"): Ditto.
3021         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3022
3023         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3024
3025 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3026
3027         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3028         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3029         where appropriate.  Make the second reference to
3030         leaf_function_p a function call, as intended.  Reindented.
3031
3032         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3033         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3034
3035         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3036         add register to non-constant into sp.
3037
3038         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3039         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3040         (mips16_gp_pseudo_rtx): Lose.
3041         (INIT_EXPANDERS): Deleted.
3042         * config/mips/mips.c (mips_init_machine_status): New.
3043         (mips_free_machine_status): New.
3044         (mips_mark_machine_status): New.
3045         (override_options): Set them.
3046         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3047         (struct machine_function): ... new.  Replaced all references.
3048         (mips_add_gc_roots): Don't mark them.
3049         (embedded_pic_fnaddr_reg): New, extracted from...
3050         (embedded_pic_offset): ... here.
3051         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3052         (movsi): Likewise.
3053
3054 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3055
3056         * cppinit.c: Revert -MD removal.
3057
3058 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3059
3060         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3061         soft registers by default for 68HC12.
3062         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3063         when compiling with -fomit-frame-pointer.
3064         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3065         (expand_epilogue): Likewise.
3066         (m68hc11_gen_rotate): Use exg when rotating by 8.
3067
3068 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3069
3070         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3071         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3072         (splits): Remove unused add splits.
3073         ("*addhi3_68hc12"): Tune constraints.
3074         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3075         constant fits in 8-bits and D is dead use abx/aby instructions.
3076         ("*addhi3"): Remove extern declaration of ix_reg.
3077         ("*subsi3"): Optimize and provide new split.
3078         ("subhi3"): Cleanup.
3079         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3080         (arith splits): For 68hc12 save the address register on the stack
3081         and do the arithmetic operation with a pop.
3082
3083 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3084
3085         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3086         allocating QImode in address registers.
3087         ("*movqi_m68hc11"): Likewise.
3088
3089 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3090
3091         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3092
3093 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3094
3095         * cppinit.c (print_help): Display -MD and -MMD.
3096         Don't display usage string.  Update assertion syntax and
3097         typo.
3098         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3099         (cpp_handle_option): Update.
3100
3101 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3102
3103         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3104         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3105         and define it so that regardless of target CPU size,
3106         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3107         of "int" rather than "long."
3108
3109 2002-03-15  Richard Henderson  <rth@redhat.com>
3110
3111         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3112         size as a tree.
3113
3114 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3115
3116         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3117         ("tstqi" split): Avoid using memory for tstqi on address register.
3118         (splits): Remove constraints.
3119         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3120         ("cmpdf", "cmpsf"): Remove since not used.
3121         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3122         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3123
3124 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3125
3126         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3127         ("neghi2"): Tighten constraints.
3128         ("one_cmplsi2"): Optimize and simplify split.
3129         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3130
3131 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3132
3133         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3134         and split of AND operation to clear the upper bits.
3135         ("*logicalsi3_zextqi"): Likewise.
3136         ("*logicallhi3_zexthi_ashift8"): Likewise.
3137         ("*logicalsi3_silshr16"): Likewise.
3138         ("logicalsi3_silshl16"): Likewise.
3139         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3140
3141 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3142
3143         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3144         (m68hc11_indirect_p): New function.
3145         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3146         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3147         TARGET_M6812.
3148         (asm_print_register): Likewise.
3149         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3150         (m68hc11_indirect_p): Declare.
3151         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3152         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3153         (TARGET_SWITCHES): New option -mrelax.
3154         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3155         destination.
3156         ("iorsi3", "xorsi3"): Likewise.
3157         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3158         ("*andhi3_mem"): New to handle destination in memory with bclr
3159         and a scratch register.
3160         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3161         ("*andhi3_const"): New when operand2 is constant.
3162         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3163         ("*andhi3_gen"): Cleanup of the old "andhi3".
3164         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3165         ("xorqi3"): Update constraints.
3166
3167 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3168
3169         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3170         for reg_equiv_memory_loc when the operand is a register that does
3171         not get a hard register (stack location).
3172         (tst_operand): After reload, accept all memory operand.
3173         (symbolic_memory_operand): Fix detection of symbolic references.
3174         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3175         accept symbols and any constant.
3176
3177 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3178
3179         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3180         note on the insn that sets the soft frame register.
3181         (must_parenthesize): ix and iy are also reserved names.
3182         (print_operand_address): One more place where parenthesis are required
3183         to avoid confusion with register names.
3184         (m68hc11_gen_movhi): Allow push of stack pointer.
3185         (m68hc11_check_z_replacement): Fix handling of parallel with a
3186         clobber.
3187         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3188         the replacement register is.
3189         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3190         and D8_REGS classes.
3191         (MODES_TIEABLE_P): All modes are tieable except QImode.
3192
3193 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3194
3195         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3196         (___subdi3): Likewise.
3197         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3198         (__map_data_section): Optimize 68hc11 case.
3199
3200 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3201
3202         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3203         than a shift to avoid adding a register with itself.
3204         (m68hc11_memory_move_cost): Take into account NO_REGS.
3205         (m68hc11_register_move_cost): Update and use memory move cost
3206         for soft registers.
3207         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3208         it gives more opportunities to cse to optimize.
3209         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3210         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3211
3212 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3213
3214         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3215         * c-common.def (CLEANUP_STMT): New tree node.
3216         * c-common.h (CLEANUP_DECL): New macro.
3217         (CLEANUP_EXPR): Likewise.
3218         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3219         * expr.c (expand_expr): Tidy.
3220         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3221         * tree-inline.c (initialize_inlined_parameters): Clean up
3222         new local variables.
3223
3224 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3225
3226         PR bootstrap/4128
3227         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3228         before movrXX only, use reg_overlap_mentioned_p.
3229         Only special case NE if just one insn can be generated.
3230
3231 2002-03-15  Jason Merrill  <jason@redhat.com>
3232
3233         * varasm.c (assemble_variable): Call resolve_unique_section before
3234         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3235         of error_mark_node.
3236
3237 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3238
3239         PR target/5170
3240         * arm.md (split pattern for thumb shiftable immediates): Add comment
3241         explaining non-obvious test.
3242
3243 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3244
3245         PR target/5712
3246         * arm.md (movaddr, movaddr_insn): Delete.
3247
3248 2002-03-15  Jason Merrill  <jason@redhat.com>
3249
3250         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3251         -fkeep-static-consts doesn't apply to comdats.
3252
3253 2002-03-14  Richard Henderson  <rth@redhat.com>
3254
3255         * c-decl.c: Include c-pragma.h.
3256         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3257         (finish_function): Tidy.
3258         * c-pragma.c: Include c-common.h.
3259         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3260         (handle_pragma_weak): Use them.
3261         (init_pragma): Register pending_weaks.
3262         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3263         * print-tree.c (print_node): Print DECL_WEAK.
3264         * varasm.c (mark_weak_decls): Remove.
3265         (remove_from_pending_weak_list): Remove.
3266         (add_weak): Remove.
3267         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3268         (weak_decls): Make a tree_list.
3269         (declare_weak): Cons weak_decls directly.
3270         (globalize_decl): Remove weak_decls elements directly.
3271         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3272         symbols.  Don't pretend to handle aliases.
3273         (init_varasm_once): Update weak_decls registry.
3274         * Makefile.in: Update dependencies.
3275
3276 2002-03-14  Richard Henderson  <rth@redhat.com>
3277
3278         PR target/5312
3279         * config/ia64/ia64.c: Include tm_p.h last.
3280         (gen_nop_type): Remove duplicate definition.
3281         (cycle_end_fill_slots): Set sched_data for second L slot.
3282         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3283         (nop_cycles_until): Fix typos.
3284
3285 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3286
3287         PR optimization/5891
3288         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3289
3290 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3291
3292         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3293           descriptors correctly.
3294
3295 2002-03-14  Michael Meissner  <meissner@redhat.com>
3296
3297         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3298         100, allowing MAX_UNROLLED_INSNS to be overridden.
3299
3300         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3301         --param.
3302
3303         * unroll.c (params.h): Include.
3304         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3305
3306         * doc/invoke.texi (--param max-unroll-insns): Document.
3307
3308         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3309
3310 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3311
3312         * arm.md: Fix warnings about constraints in peepholes and splits.
3313
3314 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3315
3316         * cpphash.h (struct lexer_state): Remove line_extension member.
3317         * cpplib.c (dequote_string, do_linemarker): New functions.
3318         (linemarker_dir): New data object.
3319         (DIRECTIVE_TABLE): No longer need to interpret #line in
3320         preprocessed source.  Delete obsolete comment about return
3321         values of handlers.
3322         (end_directive, directive_diagnostics, _cpp_handle_directive):
3323         Don't muck with line_extension.
3324         (directive_diagnostics): No need to issue warnings for
3325         linemarkers here.
3326         (_cpp_handle_directive): Issue warnings for linemarkers here,
3327         when appropriate.  Dispatch linemarkers to do_linemarker, not
3328         do_line.
3329         (do_line): Code to handle linemarkers split out to do_linemarker.
3330         Convert escape sequences in filename argument, both places.
3331
3332         * cppmacro.c (quote_string): Rename cpp_quote_string and
3333         export.  All callers changed.
3334         * cpplib.h (cpp_quote_string): Prototype.
3335         * cppmain.c (print_line): Call cpp_quote_string on to_file
3336         before printing it.
3337
3338         * doc/cpp.texi: Document that escapes are now interpreted in
3339         #line and in linemarkers, and that non-printing characters are
3340         converted to octal escapes when linemarkers are generated.
3341
3342 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3343
3344         * emit-rtl.c (try_split): Use delete_insns.
3345         * recog.c (split_all_insns): Fix terminating condition.
3346
3347 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3348             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3349
3350         PR target/5828
3351         * arm.c (arm_output_epilogue): Fix floating-point register save
3352         adjustment when using a frame pointer.
3353
3354 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3355
3356         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3357         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3358         (save_restore_insns, mips_expand_epilogue): And here.
3359         (build_mips16_call_stub): And here.
3360         (mips_function_value): Use the new macros to decide whether a single
3361         or complex float can be returned in floating-point registers.  Return
3362         a parallel rtx in the complex case.
3363
3364 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3365
3366         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3367         call after liveness analysis.
3368
3369         * recog.c (split_insn): Use delete_insn_and_edges.
3370
3371         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3372         instructions to have branch prediction notes.
3373         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3374
3375 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3376
3377         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3378         that doesn't support it.
3379         * configure: Regenerate.
3380
3381 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3382
3383         PR target/5626
3384         * config/sparc/sparc.md (normal_branch, inverted_branch,
3385         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3386         inverted_fp_branch): Adjust calls to output_cbranch.
3387         Set length attribute.
3388         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3389         output_v9branch.  Set length attribute.
3390         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3391         predicates.
3392         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3393         (output_cbranch): Likewise.  Handle far branches.
3394         (output_v9branch): Handle far branches.
3395         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3396         Adjust prototypes.
3397         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3398         noov_compare64_op predicates.
3399
3400 2002-03-13  Jason Merrill  <jason@redhat.com>
3401
3402         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3403         into the function and constify it.
3404         * gthr-dce.h, gthr-solaris.h: Likewise.
3405
3406 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3407
3408         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3409         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3410         std_expand_builtin_va_arg if not ABI_V4.
3411
3412 2002-03-13  Jason Merrill  <jason@redhat.com>
3413
3414         * varasm.c (globalize_decl): New fn.
3415         (assemble_start_function): Use it.
3416         (asm_emit_uninitialized): Use it.
3417         (assemble_alias): Use it.
3418         (assemble_variable): Use it.
3419
3420 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3421
3422         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3423         2002-03-12 internal visibility change.
3424         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3425         visibility into SYMBOL_REF_FLAG.
3426
3427 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3428
3429         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3430         VOIDmode operand.  Add compile-time optimization for constant results.
3431
3432 2002-03-12  Jason Merrill  <jason@redhat.com>
3433
3434         * c-typeck.c (convert_for_assignment): Don't allow conversions
3435         between pointers and references.  Only allow lvalues to convert to
3436         reference.
3437
3438 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3439
3440         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3441         before prologue, to avoid scheduling problems.
3442
3443 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3444
3445         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3446         (ELIMINABLE_REGS): Add sfp->sp.
3447         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3448
3449 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3450
3451         PR optimization/5892
3452         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3453
3454 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3455
3456         * loop.c (basic_induction_var): Don't call convert_modes if mode
3457         classes are different.
3458
3459 2002-03-12  Richard Henderson  <rth@redhat.com>
3460
3461         PR optimization/5901
3462         * function.c (reposition_prologue_and_epilogue_notes): Position
3463         the markers after/before the last/first insn not deleted.
3464
3465 2002-03-12  Richard Henderson  <rth@redhat.com>
3466
3467         PR optimization/5878
3468         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3469         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3470         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3471
3472         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3473         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3474         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3475
3476         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3477         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3478         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3479         also.  Don't set it if not flag_pic.
3480         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3481         to be INVALID_REGNUM when not used.
3482
3483 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3484
3485         * expmed.c (store_bit_field): Reset alias set for memory.
3486         (extract_bit_field): Same.
3487
3488 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3489
3490         * c-common.c (c_tree_code_type, c_tree_code_length,
3491         c_tree_code_name, add_c_tree_codes): Delete.
3492         * c-common.h (add_c_tree_codes): Delete.
3493         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3494         Define.
3495         * c-objc-common.c (c_objc_common_init): Don't call
3496         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3497         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3498         objc_tree_code_name, add_objc_tree_codes): Delete.
3499         (objc_init): Don't call add_objc_tree_codes.
3500         * objc/objc-lang.c (tree_code_type, tree_code_length,
3501         tree_code_name): Define.
3502         * toplev.c (lang_independent_init): Don't set
3503         tree_code_length[IDENTIFIER_NODE].
3504         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3505         Delete definitions, moved to language front-ends.
3506         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3507         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3508         Const-ify.
3509         (tree_code_length): Change type to unsigned char.
3510
3511 2002-03-12  Richard Henderson  <rth@redhat.com>
3512
3513         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3514         internal visibility change.
3515
3516 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3517
3518         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3519         validize_mem() instead of change_address to avoid clobbering
3520         memory attributes.
3521
3522 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3523
3524         * c-lex.h (position_after_whitespace): Remove.
3525
3526 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3527
3528         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3529         (lex_string): Use unsigned char pointers.
3530
3531 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3532
3533         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3534         is not a valid memory_operand.
3535
3536 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3537
3538         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3539         * config/xtensa/lib1funcs.asm: Fix copyright to include
3540         special case for libgcc files.
3541         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3542         (__divsi3): Likewise.
3543         (__umodsi3): Likewise.
3544         (__modsi3): Likewise.
3545         * config/xtensa/lib2funcs.S: Fix copyright to include
3546         special case for libgcc files.
3547
3548 2002-03-12  Tom Rix  <trix@redhat.com>
3549
3550         * collect2.c (resolve_lib_name): Move outside of
3551         OBJECT_FORMAT_COFF ifdef.
3552         (ignore_library): Same.
3553
3554 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3555
3556         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3557
3558 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3559
3560         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3561         to function_section before writing out the constant pool.
3562
3563 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3564
3565         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3566         zero_constant.
3567         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3568
3569 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3570
3571         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3572         (adddi3): Likewise.
3573         (movdf): Likewise.
3574         (movdi): Likewise.
3575         (cmpsi splitter): Likewise.
3576         (modsi3): Fail if <= 0.
3577         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3578         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3579         (reg_or_sub_cint64_operand): Likewise.
3580         (num_insns_constant_wide): Optimize sign extension.
3581         (rs6000_legitimize_address): Likewise.
3582
3583 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3584
3585         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3586         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3587
3588 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3589
3590         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3591         address calculation.
3592
3593 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3594
3595         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3596         scratch register to DImode / TImode.
3597         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3598         register used does not overlap the target.
3599
3600 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3601
3602         * Makefile.in (debug.o): Depend on debug.h.
3603         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3604         * debug.c (do_nothing_debug_hooks): Likewise.
3605         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3606         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3607         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3608         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3609         * dwarfout.c (dwarf_debug_hooks): Likewise.
3610         * integrate.c (output_inline_function): Likewise.
3611         * objc/objc-act.c (synth_module_prologue): Likewise.
3612         * sdbout.c (sdb_debug_hooks): Likewise.
3613         * toplev.c (debug_hooks): Likewise.
3614         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3615
3616 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3617
3618         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3619         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3620         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3621         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3622         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3623         * defaults.h (POINTER_SIZE): Define.
3624         * doc/tm.texi (POINTER_SIZE): Document default.
3625
3626 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3627
3628         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3629
3630 2002-03-11  Richard Henderson  <rth@redhat.com>
3631
3632         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3633         if rebuild_label_notes_after_reload.
3634
3635 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3636
3637         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3638         emit pic register load if "internal" visibility.
3639         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3640         (cris_expand_builtin_va_arg): Do all computations on trees.
3641
3642 2002-03-11  Richard Henderson  <rth@redhat.com>
3643
3644         * rtlanal.c: Include recog.h.
3645         (keep_with_call_p): Fix thinko.
3646         * Makefile.in (rtlanal.o): Update dependencies.
3647
3648 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3649
3650         * genflags.c (gen_insn): Use IS_VSPACE.
3651         * genoutput.c (output_insn_data): Likewise.
3652         (process_template): Likewise.
3653
3654 2002-03-11  Richard Henderson  <rth@redhat.com>
3655
3656         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3657
3658 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3659
3660         * Makefile.in: Update.
3661         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3662         Update documentation.
3663         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3664         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3665
3666 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3667
3668         * Makefile.in: Give texi2pod its input file as a command line
3669         argument, not on stdin.
3670
3671 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3672             Daniel Berlin  <dan@dberlin.org>
3673
3674         C++ alias analysis improvement.
3675         * alias.c (record_component_aliases): Record aliases for base
3676         classes too.
3677
3678 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3679
3680         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3681
3682 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3683
3684         * toplev.c (vms_fopen): Remove, not needed.
3685
3686         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3687
3688         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3689
3690         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3691         for FP, already done later.
3692
3693         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3694         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3695
3696 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3697
3698         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3699         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3700         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3701         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3702         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3703         (ediv, emul, eldexp, esqrt): Likewise.
3704         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3705         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3706         (saturate): New function.
3707         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3708         (make_nan): Use a saturation value instead of a NaN if
3709         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3710         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3711         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3712         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3713         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3714         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3715         !ROUND_TOWARDS_ZERO.
3716         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3717         (ROUND_TOWARDS_ZERO): Document.
3718
3719 2002-03-11  Andreas Jaeger  <aj@suse.de>
3720
3721         * cfg.c (dump_flow_info): Remove unused variable.
3722
3723 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3724
3725         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3726         computations on trees.
3727
3728 2002-03-10  Richard Henderson  <rth@redhat.com>
3729
3730         PR 5693:
3731         * reload.c (copy_replacements_1): New.
3732         (copy_replacements): Use it to recurse through the rtx.
3733
3734 2002-03-10  Richard Henderson  <rth@redhat.com>
3735
3736         * loop.c (strength_reduce): Compute number of iterations as
3737         unsigned HOST_WIDE_INT.
3738
3739 2002-03-10  Richard Henderson  <rth@redhat.com>
3740
3741         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3742         to move away from the end of the block.
3743
3744 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3745
3746         PR preprocessor/5899
3747         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3748
3749 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3750
3751         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3752
3753         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3754
3755 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3756
3757         * config/mmix/mmix.c: Improve comments.
3758         (mmix_target_asm_function_prologue): Drop variable
3759         empty_stack_frame.  Don't allocate unused slot above fp.
3760         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3761         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3762         brace in first column.
3763         (enum reg_class): Ditto.
3764         (FIRST_PARM_OFFSET): Now 0.
3765         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3766
3767 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3768
3769         * combine.c (make_extraction): Fix error in last change.
3770
3771 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3772
3773         * c4x.c (c4x_fp_reglist): Const-ify.
3774         * cris.c (cris_print_operand): Likewise.
3775         * i386.c (ix86_va_arg): Likewise.
3776         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3777         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3778         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3779         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3780         * mcore.h (regno_reg_class): Likewise.
3781         * mips.c (gen_int_relational): Likewise.
3782         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3783         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3784         * pdp11.c (move_costs): Likewise.
3785         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3786         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3787         Likewise.
3788         * s390.h (regclass_map): Likewise.
3789         * sh.c (shift_amounts): Likewise.
3790         * sh.md (rotlsi3): Likewise.
3791
3792 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3793
3794         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3795         (ne0+5): Use new clobber to generate proper shift pattern.
3796         Patch by Michael Matz <matz@kde.org>.
3797
3798 2002-03-09  Andreas Schwab  <schwab@suse.de>
3799
3800         * gcc.c (validate_all_switches): Also handle `%W{...}'.
3801
3802 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3803
3804         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3805
3806 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3807
3808         PR middle-end/5877
3809         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3810         even for non-representable constants.
3811
3812 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3813
3814         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3815         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3816         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3817         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3818         (pop_function_context): Compute MAY_SHARE parameter for
3819         fixup_var_refs.
3820         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3821         (gen_mem_addressof): Call fixup_var_refs with new parm.
3822
3823         * combine.c (make_extraction): Don't make extension of CONST_INT.
3824
3825 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3826
3827         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3828         in o32 and o64 ABIs.
3829         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3830         but getting fixed-size structs passed in registers regardless of
3831         padding in o32 and o64 ABIs.
3832
3833         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3834         offset before loading address of argument passed by transparent
3835         reference.
3836
3837 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3838
3839         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3840
3841 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3842
3843         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3844         marker such that registers after it are saved.
3845
3846 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3847
3848         * sparc.c (arith_4096_operand): Fix error in last change.
3849
3850 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3851
3852         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3853         defaults for MEABI.
3854
3855 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3856
3857         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3858         vectors.
3859
3860 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3861
3862         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3863
3864 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
3865
3866         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3867         removed; fix return value.
3868         * combine.c (combine_instructions): Dirtify blocks where we failed to
3869         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3870         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3871
3872 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3873
3874         * gcse.c (insert_insn_end_bb): Fix typo in last change.
3875
3876 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
3877
3878         * recog.c (peephole2_optimize): Re-distribute EH edges.
3879
3880 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3881
3882         * expr.c (expand_expr): Use unsave lang hook.
3883         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3884         (LANG_HOOKS_INITIALIZER): Update.
3885         * langhooks.h (struct lang_hooks): New hook unsave.
3886         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3887         (unsave_expr_1): Remove unused lang_unsave_expr_now.
3888         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
3889         (unsave_expr_now): Remove.
3890         * tree.h (unsave_expr_now, lang_unsave,
3891         lang_unsave_expr_now): Remove.
3892         (lhd_unsave): New.
3893
3894 2002-03-08  Andreas Jaeger  <aj@suse.de>
3895
3896         * flow.c (propagate_block_delete_insn): Remove unused variable.
3897
3898 2002-03-08  Kazu Hirata  <kazu@hxi.com>
3899
3900         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3901         insn length for memory load/store.
3902
3903 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3904
3905         * doc/install.texi (--with-libiconv-prefix): Document.
3906
3907 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
3908
3909         * doc/sourcebuild.texi: Fix typo.
3910
3911 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
3912
3913         PR c/3711
3914         * builtins.c (std_expand_builtin_va_arg): Do all computations on
3915         trees.
3916
3917 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3918
3919         * rtl.c (copy_most_rtx): Move from here ...
3920         * emit-rtl.c (copy_most_rtx): ... to here.
3921
3922 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3923
3924         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3925         SUBTARGET_CPP_SIZE_SPEC.
3926         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3927
3928         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3929
3930 2002-03-07  Matt Hiller  <hiller@redhat.com>
3931
3932         * gensupport.c (first_dir_md_include): Renamed from include;
3933         change all references.
3934         (last_dir_md_include): Renamed from last_include; change all
3935         references.
3936         (init_md_reader): Unconditionally initialize base_dir whether or
3937         not filename is a relative path.
3938
3939 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
3940
3941         * config/fp-bit.c (_unord_f2): Compile it in even if
3942         US_SOFTWARE_GOFAST is enabled.
3943
3944         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3945         NULL_RTX.  Set all HFmode operations as NULL_RTX.
3946         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3947         NULL_RTX, try reversing the comparison and the operands.
3948
3949 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3950
3951         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3952         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3953         and MATCH_OP_DUP.
3954
3955 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
3956
3957         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3958
3959 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3960
3961         * basic-block.h (fixup_abnormal_edges): Declare.
3962         * reload1.c (fixup_abnormal_edges): New function.
3963         * reg-stack.c (convert_regs): Use it.
3964
3965         * gcse.c (insert_insn_end_bb): Handle trapping insns.
3966
3967         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3968
3969 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
3970
3971         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3972         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3973         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3974         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3975         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3976         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3977         unless x and y could be infinite.
3978         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3979         Check that the common type of both arguments is a real, even for
3980         targets without unordered comparisons.  Allow an integer argument
3981         to be compared against a real.
3982         (expand_tree_builtin): Use expand_unordered_cmp.
3983         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3984         * cse.c (fold_rtx): Likewise.  Fix indentation.
3985         * fold-const.c (fold_real_zero_addition_p): New.
3986         (fold): Use it, and the new HONOR_... macros.
3987         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3988         * jump.c (reversed_comparison_code_parts): After searching for
3989         the true comparison mode, use HONOR_NANS to decide whether it
3990         can be safely reversed.
3991         (reverse_condition_maybe_unordered): Remove IEEE check.
3992         * simplify-rtx.c (simplify_binary_operation): Use the new macros
3993         to decide which simplifications are valid.  Allow the following
3994         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3995         and (a - -b) to (a + b).
3996         (simplify_relational_operation): Use HONOR_NANS.
3997         * doc/tm.texi: Document the MODE_HAS_... macros.
3998
3999 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4000
4001         * combine.c (simplify_comparison): If simplifying a logical shift
4002         right and compare with constant, force the comparison to unsigned.
4003
4004 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4005
4006         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4007
4008         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4009         -mabi=no-altivec
4010         (alt_reg_names): Remove % for vrsave.
4011
4012 2002-03-06  Richard Henderson  <rth@redhat.com>
4013
4014         PR optimization/5844
4015         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4016         if used indicates we've already emitted one copy of an operand.
4017         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4018         (gen_split): Supply a non-null used.
4019
4020 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4021
4022         * reload1.c (reload): Unshare all rtl after reload is done.
4023
4024         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4025         but simply fail if the expression is too complex to simplify.
4026         (simplify_gen_binary): Handle simplify_plus_minus failures.
4027
4028 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4029
4030         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4031         consistently call delete_trivially_dead_insns after CSE and GCSE;
4032         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4033         after liveness2; update comment in last crossjumping.
4034         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4035
4036 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4037
4038         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4039         after completing fast dead code elimination.
4040
4041         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4042         COMPARE operator.
4043
4044 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4045
4046         * version.c:  Fix misplaced leading blanks on first line.
4047
4048 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4049
4050         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4051
4052 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4053
4054         * cfgcleanup.c (mentions_nonequal_regs): New function.
4055         (thread_jump): Use it.
4056         * toplev.c (rest_of_compilation): Run jump threading after
4057         liveness.
4058
4059 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4060
4061         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4062         patch.
4063
4064 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4065
4066         * predict.c (estimate_bb_frequencies): Do not reload the
4067         frequencies from notes.
4068
4069 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4070
4071         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4072         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4073
4074         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4075         delete_noop_moves): Return indeger.
4076         * flow.c (ndead): New variable.
4077         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4078         BB argument; update callers.
4079         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4080         (life_analysis): Do not call purge_all_dead_edges.
4081         (update_life_info): Return number of deleted insns; print statistics.
4082         (update_life_info_in_dirty_blocks): likewise.
4083         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4084         return number of insns deleted.
4085
4086         * cse.c: Include timevar.h
4087         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4088         iterate until stabilizes; print statistics; return number of killed
4089         insns.
4090         * Makefile.in: (cse.o): Add timevar.h dependency
4091         * rtl.h (delete_trivially_dead_insns): New.
4092         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4093         * toplev.c (rest_of_compilation): Update callers.
4094
4095         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4096         (try_optimize_cfg): Do not update liveness.
4097         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4098         removal stabilizes; use delete_trivially_dead_insns.
4099
4100         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4101
4102 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4103
4104         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4105         callbacks when processing assembly language.
4106
4107 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4108
4109         * pa.h (ASM_FILE_END): Define.
4110         * som.h (ASM_FILE_END): Delete.
4111
4112         * pa.c (function_arg): Don't pass floats in general registers in
4113         indirect calls if TARGET_ELF32.
4114
4115 2002-03-05  Richard Henderson  <rth@redhat.com>
4116
4117         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4118
4119 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4120
4121         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4122
4123 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4124
4125         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4126         -r command line.  Don't hide any symbols if not building
4127         shared libgcc.
4128
4129 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4130
4131         * cfg.c (dump_flow_info): Warn about profile mismatches.
4132         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4133         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4134
4135 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4136
4137         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4138         wide volatile memory by parts.
4139
4140 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4141
4142         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4143         is NULL.
4144
4145 2002-03-05  Richard Henderson  <rth@redhat.com>
4146
4147         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4148
4149 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4150
4151         * toplev.c (documented_lang_options): Document more
4152         language-specific options.
4153         * doc/invoke.texi (Warning Options): Correct documentation for
4154         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4155         * c-decl.c (c_decode_option): Use a table to handle warning options.
4156
4157 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4158
4159         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4160         parameter to mmix_encode_section_info.
4161         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4162         relocatably.  Always produce ELF, not mmo if linking relocatably.
4163         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4164         first is non-zero, don't add symbol prefix.
4165         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4166         prototype accordingly.
4167
4168 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4169
4170         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4171
4172 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4173
4174         * configure.in: Increase required makeinfo version to 4.1.
4175         * configure: Regenerate.
4176
4177 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4178
4179         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4180         elsewhere now.
4181
4182 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4183
4184         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4185         * doc/invoke.texi: Fix @math uses.
4186
4187 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4188
4189         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4190         removal
4191
4192 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4193
4194         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4195         (powerpc-*-eabisimaltivec*): Same.
4196
4197         * config/rs6000/t-ppcendian: New.
4198
4199 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4200
4201         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4202         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4203         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4204
4205 2002-03-03  Richard Henderson  <rth@redhat.com>
4206
4207         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4208
4209 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4210
4211         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4212         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4213         tree.c, config/m68k/m68k.c:
4214         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4215         REAL_ARITHMETIC blocks unconditional.  Delete some further
4216         #ifdef blocks predicated on REAL_ARITHMETIC.
4217         * flags.h, toplev.c: Delete remaining references to
4218         flag_pretend_float.
4219
4220         * doc/invoke.texi: Remove documentation of -fpretend-float.
4221         * doc/tm.texi: Describe the various REAL_* macros as provided by
4222         real.h, not by the target configuration files.
4223
4224         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4225         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4226         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4227         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4228         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4229         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4230         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4231         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4232         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4233         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4234         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4235         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4236         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4237         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4238         config/xtensa/xtensa.h:
4239         Do not define, undefine, or mention in comments any of
4240         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4241         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4242         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4243         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4244         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4245         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4246         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4247         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4248         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4249
4250 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4251
4252         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4253         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4254         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4255         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4256         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4257         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4258         Delete.
4259         * defaults.h (BITS_PER_WORD): Define.
4260         * doc/tm.texi (BITS_PER_WORD): Document default value.
4261
4262         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4263         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4264         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4265
4266 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4267
4268         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4269         lieu of explicit sizeof/sizeof.
4270         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4271         ix86_expand_builtin): Likewise.
4272         * mips.c (mips_add_gc_roots): Likewise.
4273         * mmix.c (mmix_output_condition): Likewise.
4274         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4275         altivec_init_builtins): Likewise.
4276         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4277         * cppexp.c (Nsuff, parse_number): Likewise.
4278         * cppinit.c (builtin_array_end): Likewise.
4279         * gcc.c (n_default_compilers, process_command): Likewise.
4280         * genpreds.c (output_predicate_decls): Likewise.
4281         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4282         * lcm.c (N_ENTITIES): Likewise.
4283         * stor-layout.c (set_sizetype): Likewise.
4284
4285 2002-03-03  Richard Henderson  <rth@redhat.com>
4286
4287         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4288         for types or labels.
4289
4290 2002-03-03  Richard Henderson  <rth@redhat.com>
4291
4292         * c-decl.c (start_decl): Initialized variables are not common.
4293
4294 2002-03-02  Per Bothner  <per@bothner.com>
4295
4296         * gcc.c (option_map):  Suport new --bootclasspath option.
4297         --CLASSPATH is now just an alias for --classpath.
4298
4299 2002-03-02  Richard Henderson  <rth@redhat.com>
4300
4301         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4302         load if "internal" visibility.
4303         * doc/extend.texi: Document visibility meanings.
4304
4305 2002-03-02  Richard Henderson  <rth@redhat.com>
4306
4307         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4308         to functions as well.
4309
4310 2002-03-02  Richard Henderson  <rth@redhat.com>
4311
4312         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4313         (handle_visibility_attribute): Don't call assemble_visibility.
4314         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4315         without asmspec.  Invoke assemble_alias when needed.
4316         * varasm.c (maybe_assemble_visibility): New.
4317         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4318
4319 2002-03-02  Richard Henderson  <rth@redhat.com>
4320
4321         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4322         invoke ENCODE_SECTION_INFO with first call flag.
4323
4324         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4325         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4326         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4327         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4328         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4329         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4330         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4331         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4332         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4333         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4334         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4335         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4336         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4337         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4338         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4339         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4340         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4341         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4342         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4343         config/sh/sh.h, config/sparc/sparc.h,
4344         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4345         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4346         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4347         FIRST argument.  As needed, examine it and do nothing.
4348
4349         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4350         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4351         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4352
4353         * config/arm/t-pe (pe.o): Add dependencies.
4354
4355 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4356
4357         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4358         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4359         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4360         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4361         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4362         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4363         * defaults.h (BITS_PER_UNIT): Define.
4364         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4365
4366 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4367
4368         * config/h8300/h8300-protos.h: Add a prototype for
4369         compute_a_shift_length.
4370         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4371         (compute_a_shift_length): Likewise.
4372         (h8300_adjust_insn_length): Do not adjust insn length of shift
4373         insns.
4374         * config/h8300/h8300.md (anonymous shift patterns): Use
4375         compute_a_shift_length.
4376
4377 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4378
4379         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4380         trunc_int_for_mode.
4381
4382         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4383
4384 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4385
4386         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4387         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4388         * flags.h (flag_zero_initialized_in_bss): Declare.
4389         * toplev.c (flag_zero_initialized_in_bss): New flag.
4390         (lang_independent_options): Add flag_zero_initialized_in_bss.
4391         * tree.c (initializer_zerop): New function.
4392         * tree.h (initializer_zerop): Declare.
4393         * varasm.c (assemble_variable): If we can emit bss, put zero
4394         initializers in the bss section.
4395
4396 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4397
4398         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4399         like more than one symbol per .weak directive.
4400
4401 2002-03-01  Richard Henderson  <rth@redhat.com>
4402
4403         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4404         adjust argument_pointer by pretend_args_size.
4405         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4406
4407 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4408
4409         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4410
4411 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4412
4413         * toplev.c (rest_of_compilation): Delete dead jumptables before
4414         loop.
4415         * flow.c (delete_dead_jumptables): Make global.
4416         * rtl.h (delete_dead_jumptables): Declare.
4417
4418 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4419
4420         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4421         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4422         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4423
4424 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4425
4426         * config/h8300/h8300-protos.h: Fix formatting.
4427         * config/h8300/h8300.c: Likewise.
4428         * config/h8300/h8300.h: Likewise.
4429
4430 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4431
4432         * config/h8300/h8300.c (print_operand): Support 16-bit
4433         constant addresses.
4434         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4435
4436 2002-02-28  Richard Henderson  <rth@redhat.com>
4437
4438         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4439         pun complex values as integers; use gen_lowpart instead of
4440         gen_rtx_SUBREG.
4441         (extract_bit_field): Likewise.
4442
4443 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4444             David Edelsohn  <edelsohn@gnu.org>
4445
4446         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4447         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4448         (SUPPORTS_WEAK): Likewise.
4449         * output.h (add_weak): Add tree param.
4450         * varasm.c (add_weak): Likewise.  Save decl.
4451         (struct weak_syms): Add decl field.
4452         (mark_weak_decls): New function.
4453         (init_varasm_once): ggc_add_root mark_weak_decls.
4454         (assemble_start_function): Use ASM_WEAKEN_DECL.
4455         (assemble_variable): Likewise.
4456         (assemble_alias): Likewise.
4457         (declare_weak): Pass decl to add_weak.
4458         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4459         (remove_from_pending_weak_list): Declare and define for
4460         ASM_WEAKEN_DECL.
4461         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4462         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4463         * defaults.h (SUPPORTS_WEAK): Likewise.
4464         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4465         .weak for code sym.  Do emit .size for descriptor sym.
4466         (ASM_DECLARE_FUNCTION_SIZE): Define.
4467         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4468         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4469         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4470         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4471         .weak for code sym.
4472         (HANDLE_PRAGMA_WEAK): Remove.
4473         (ASM_WEAKEN_LABEL): Remove.
4474         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4475
4476 2002-03-01  Jason Merrill  <jason@redhat.com>
4477
4478         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4479         (TARGET_EXPR_CLEANUP): New macro.
4480
4481 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4482
4483         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4484         to take ptr_extend into account as third type of extension.
4485         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4486         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4487         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4488         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4489         * calls.c (precompute_arguments): Use new macro.
4490         (expand_call): Ditto.
4491         * combine.c (nonzero_bits): Ditto.
4492         (record_promoted_value): Ditto.
4493         * expr.c (store_expr): Ditto.
4494         (expand_expr): Ditto.
4495         * function.c (assign_parms): Ditto.
4496
4497 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4498
4499         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4500         override -shared and -shared-libgcc.
4501
4502 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4503
4504         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4505         of "ultrasparc".
4506         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4507         to be broken.
4508
4509 2002-02-28  Richard Henderson  <rth@redhat.com>
4510
4511         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4512         4 cycle latency from MM producers.
4513         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4514
4515 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4516
4517         * mklibgcc.in: Don't use GNU make extension.
4518
4519 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4520
4521         * c-parse.in (STATIC): New terminal.
4522         (scspec): New non-terminal.  Update productions accordingly.
4523         (program): Remove bogus ifc / end ifc.
4524         (array_declarator): Simplify production using STATIC.
4525
4526 2002-02-28  Jim Meyering  <meyering@lucent.com>
4527
4528         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4529         \a still means TARGET_BELL.
4530
4531 2002-02-28  Richard Henderson  <rth@redhat.com>
4532
4533         * haifa-sched.c (sched_emit_insn): New.
4534         (schedule_block): Use last_scheduled_insn to track last insn.
4535         * sched-int.h (sched_emit_insn): Prototype.
4536         * config/ia64/ia64.c (last_issued): Remove.
4537         (ia64_variable_issue): Don't set it.
4538         (nop_cycles_until): Use sched_emit_insn.
4539
4540 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4541
4542         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4543         extended constants.
4544
4545 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4546
4547         * config/h8300/h8300.c: Fix formatting.
4548         * config/h8300/h8300.h: Likewise.
4549
4550 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4551
4552         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4553         which may overwrite the high byte of the frame pointer.
4554
4555 2002-02-28  Bo Thorsen  <bo@suse.de>
4556
4557         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4558         (STARTFILE_SPEC): Add 64 bit files.
4559         (ENDFILE_SPEC): Likewise.
4560
4561 2002-02-28  Jason Merrill  <jason@redhat.com>
4562
4563         * c-decl.c (finish_function): Only warn about missing return
4564         statement with -Wreturn-type.
4565
4566 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4567
4568         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4569
4570         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4571         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4572
4573 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4574
4575         * basic-block.h (BB_REACHABLE): Renumber.
4576         (BB_DIRTY, BB_NEW): New flags.
4577         (clear_bb_flags): Declare.
4578         (update_life_info_in_dirty_blocks): Declare.
4579         * cfg.c (clear_bb_flags): New function.
4580         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4581         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4582         reorder_insns, emit_insn_after): Mark block as dirty.
4583         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4584         (update_life_info_in_dirty_blocks): New function.
4585         * recog.c (apply_change_group): Dirtify block.
4586
4587         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4588         cfg consistent.
4589         * gcse.c (delete_null_pointer_checks): Likewise.
4590
4591         * toplev.c (dump_file_index): Move cse2 after bp,
4592         add DFI_null
4593         (dump_file_info): Similary.
4594         (rest_of_compilation): Avoid most of CFG rebuilds;
4595         do first if converision after null pointer checks, do cse2
4596         after branch prediction; avoid full liveness rebuild after
4597         initializing subregs.
4598         * invoke.texi (-d options): Document -du, renumber.
4599
4600         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4601         (notice_new_block): Do not set BB_UPDATE_LIFE.
4602         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4603          merge_blocks_move_successor_nojumps, merge_blocks,
4604          try_crossjump_to_edge): Likewise.
4605         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4606         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4607         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4608         (merge_of_block): Do not use life_data_ok.
4609         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4610         (if_convert): Use BB_DIRTY mechanizm to update life.
4611         * lcm.c (optimize_mode_switching): Update
4612         update_life_info_in_dirty_blocks
4613
4614 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4615
4616         * Makefile.in (integrate.o): Update.
4617         * c-decl.c (copy_lang_decl): Rename.
4618         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4619         * integrate.c: Include langhooks.h.
4620         (copy_decl_for_inlining): Update to use langhook.
4621         * langhooks-def.h (lhd_do_nothing_t,
4622         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4623         (LANG_HOOKS_INITIALIZER): Update.
4624         * langhooks.c (lhd_do_nothing_t): New.
4625         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4626         * tree.h (copy_lang_decl): Remove.
4627 objc:
4628         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4629
4630 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4631
4632         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4633         POST_DEC, and POST_MODIFY.
4634
4635 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4636
4637         * c-typeck.c (digest_init): Remove unused parameter; all
4638         callers changed.
4639
4640 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4641
4642         * expmed.c (expand_shift): Correctly test for low part of a
4643         subreg.
4644
4645 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4646
4647         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4648         insn UIDs with insn addresses.
4649
4650 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4651
4652         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4653         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4654         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4655         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4656         gcc.c, toplev.c: Delete code implementing -traditional mode.
4657
4658         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4659         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4660         Document removal of -traditional mode for compilation, and
4661         remove documentation only relevant to that mode.
4662
4663         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4664         config/convex/convex.h, config/d30v/d30v.h,
4665         config/i386/dgux.h, config/i386/osf1elf.h,
4666         config/i386/osfelf.h, config/i386/osfrose.h,
4667         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4668         config/m68k/hp310.h, config/m88k/dgux.h,
4669         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4670         config/m88k/m88k.h, config/m88k/openbsd.h,
4671         config/mips/abi64.h, config/mips/osfrose.h,
4672         config/mips/svr4-5.h, config/mips/svr4-t.h,
4673         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4674         config/stormy16/stormy16.h: Remove all references to
4675         -traditional from target specs.  Delete all mention of the
4676         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4677         delete a couple of commented-out definitions of
4678         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4679         to -traditional.
4680
4681         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4682         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4683
4684 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4685
4686         * mklibgcc.in: Don't use \n in a line subject to
4687         interpretation by echo.
4688
4689 2002-02-27  Graham Stott  <grahams@redhat.com>
4690
4691         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4692         Constify NAME.
4693
4694         * loop.c (prescan_loop): Handle PARALLEL.
4695
4696         * unroll.c (loop_iterations): Return 0 if the add_val for
4697         a BIV is REG.
4698
4699         * final.c (output_operand_lossage): Constify PFX_STR.
4700
4701         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4702
4703 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4704
4705         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4706         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4707
4708 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4709
4710         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4711
4712 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4713
4714         * cpplex.c (_cpp_lex_token): Handle directives in macro
4715         arguments.
4716         * cpplib.c (_cpp_handle_directive): Save and restore state
4717         if parsing macro args when entering a directive.
4718         * cppmacro.c (collect_args): No need to handle directives
4719         in macro arguments.
4720         (enter_macro_context, replace_args): Use the original macro
4721         definition in case it was redefined whilst collecting arguments.
4722 doc:
4723         * cpp.texi: Update.
4724
4725 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4726
4727         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4728         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4729         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4730         method on AIX.
4731         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4732         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4733         (load_toc_v4_PIC_2): Same.
4734
4735 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4736
4737         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4738
4739 2002-02-26  Richard Henderson  <rth@redhat.com>
4740
4741         * config/alpha/alpha.md (ashldi_se): Re-enable.
4742
4743 2002-02-26  Richard Henderson  <rth@redhat.com>
4744
4745         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4746         MODULE_LOCAL_P; improve commentary.
4747
4748 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4749
4750         * doc/cpp.texi: Clarify documentation of relationship between
4751         #line and #include.
4752
4753 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4754
4755         * config/h8300/h8300-protos.h: Update the prototype for
4756         compute_logical_op_length.  Add the prototype for
4757         compute_logical_op_cc.
4758         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4759         code from operands.
4760         (compute_logical_op_cc): New.
4761         * config/h8300/h8300.md: Combine all the logical op patterns
4762         in HImode and SImode.  Use compute_logical_op_cc.
4763
4764 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4765
4766         * config/i386/i386.c (print_operand): Don't append ATT-style
4767         length suffixs to x87 opcodes when in Intel mode.
4768
4769 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4770
4771         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4772         (init_emit_once): Update calls.
4773         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4774         (init_syntax_once): Prototype.
4775
4776 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4777
4778         * pa-linux.h (LIB_SPEC): Update definition.
4779         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4780
4781 2002-02-26  Richard Henderson  <rth@redhat.com>
4782
4783         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4784         if we emitted a stop bit.
4785
4786 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4787
4788         * configure.in (libgcc_visibility): Substitute.
4789         * configure: Rebuilt.
4790         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4791         defined symbols .hidden.
4792
4793 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4794
4795         * attribs.c (c_common_attribute_table): Add visibility.
4796         (handle_visibility_attribute): New function.
4797         * varasm.c (assemble_visibility): New function.
4798         * output.h (assemble_visibility): Add prototype.
4799         * tree.h (MODULE_LOCAL_P): Define.
4800         * crtstuff.c (__dso_handle): Use visibility attribute.
4801         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4802         for MODULE_LOCAL_P symbols too.
4803         * config/ia64/ia64.c (ia64_encode_section_info): Handle
4804         MODULE_LOCAL_P symbols the same way as local symbols.
4805         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4806         into .sdata/.sbss by the user.
4807         * doc/extend.texi (Function Attributes): Document visibility
4808         attribute.
4809
4810 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4811
4812         PR debug/5770
4813         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4814         STRING_CST initializer spanning the whole variable without
4815         embedded zeros.
4816         If expand_expr returned MEM, don't use it.
4817
4818 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
4819
4820         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4821         generate a die for the lexical block.
4822
4823 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4824
4825         * config/h8300/h8300-protos.h: Add a prototype for
4826         compute_logical_op_length.
4827         * config/h8300/h8300.c (compute_logical_op_length): New.
4828         * config/h8300/h8300.md (anonymous logical patterns): Use
4829         compute_logical_op_length for length.
4830
4831 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4832
4833         * dwarf2out.c (modified_type_die): Do not call type_main_variant
4834         for vectors.
4835         (gen_type_die): Same.
4836
4837         * attribs.c (handle_vector_size_attribute): Set debug information.
4838
4839 2002-02-26  Daniel Egger  <degger@fhm.edu>
4840
4841         * config/rs6000/rs6000.md: Swap define_insn attributes to
4842         fix incorrect generation of merge high instructions instead
4843         of merge low.
4844
4845 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4846
4847         * c-typeck.c (really_start_incremental_init): Use
4848         bitsize_zero_node for vectors.
4849
4850 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4851
4852         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4853         ("*set_vrsave_internal"): Same.
4854
4855 2002-02-25  Richard Henderson  <rth@redhat.com>
4856
4857         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4858         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
4859
4860 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
4861
4862         PR target/5755
4863         * config/i386/i386.c (ix86_return_pops_args): Only pop
4864         fake structure return argument if it was passed on the stack.
4865
4866 2002-02-25  Jason Merrill  <jason@redhat.com>
4867
4868         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4869         RESULT_DECL.
4870
4871 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4872
4873         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4874         link with shared_name only.
4875         * doc/invoke.texi (Link Options): Document new behavior.
4876
4877 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4878
4879         * c-typeck.c (push_init_level): Handle vectors.
4880
4881 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4882
4883         * config/sparc/sparc.c (const64_high_operand): Zero-extend
4884         operands of SPARC_SETHI_P.
4885         (input_operand): Likewise.
4886         (sparc_emit_set_const32): Likewise.
4887         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4888         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4889         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
4890         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4891         (movdi_insn_sp64_vis): Likewise.
4892         (movdi split, movdf split): Use SETHI32.
4893         * doc/md.texi: Document SPARC constraints L, M and N.
4894
4895 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4896
4897         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4898         ("*set_vrsave_internal"): use mfspr for Darwin.
4899
4900         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4901         gen_get_vrsave_internal.
4902
4903 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4904
4905         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4906
4907 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4908
4909         * cpplex.c (cpp_interpret_charconst): Get signedness or
4910         otherwise of wide character constants correct.
4911         * cppexp.c (lex): Get signedness of wide charconsts correct.
4912
4913 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4914
4915         * optabs.c (widen_operand): Only call convert_modes for
4916         promoted SUBREG if signedness matches.
4917         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4918
4919 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4920
4921         * cpplib.c (glue_header_name): Use local buffer to build up
4922         header name.
4923
4924 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4925
4926         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4927
4928 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4929
4930         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4931         H8/300[HS] separately.
4932         * config/h8300/h8300.md: Remove the early clobber constraint
4933         from bit field patterns.
4934
4935 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4936
4937         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4938         register_operand.
4939         (mulhisi3): Likewise.
4940         (umulqisi3): Likewise.
4941         (umulhisi3): Likewise.
4942
4943 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4944
4945         * cppinit.c (output_deps): Correct test for stdout output.
4946         (init_dependency_output): Cure warning.
4947
4948 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4949
4950         * expr.c (store_expr): When converting expression to promoted
4951         equivalent type, allow using SUBREG_REG of TARGET as the target
4952         of the expansion of EXP.
4953         * loop.c (basic_induction_var, case SUBREG): Always look inside.
4954         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4955         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4956         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4957         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4958
4959 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4960
4961         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4962         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4963         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4964
4965 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
4966
4967         PR optimization/5747
4968         * loop.c (scan_loop): Update reg info if move_movables created new
4969         pseudos.
4970
4971 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4972
4973         * gcc.c (init_gcc_spec): Revert last change.
4974
4975 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4976
4977         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4978         gpc_reg_operand constraint.
4979
4980 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
4981
4982         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4983         Simplify comparison of `low'.
4984         (add_operand): Fix formatting.
4985         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4986         (mask_operand): Disallow mask to wrap in 64-bit mode.
4987         (rs6000_stack_info): Remove redundant test setting push_p.
4988         (output_toc): Fix formatting.
4989         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4990         cc_reg_not_cr0_operand constraint.
4991         (booldi3, boolcdi3 splitters): Same.
4992
4993 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
4994
4995         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4996
4997 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
4998
4999         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5000         gcc invoked with -shared-libgcc.
5001
5002 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5003
5004         PR c++/5748
5005         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5006         decl if any of elements was TREE_USED.
5007
5008 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5009
5010         * config/sparc/sol2.h: Don't include sys/mman.h.
5011         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5012         (arith_4096_operand): Don't throw high bits away.
5013         (const64_operand): Take sign extension of CONST_INTs into account.
5014         (const64_high_operand, sparc_emit_set_const32): Likewise.
5015         (GEN_HIGHINT64): Likewise.
5016         (sparc_emit_set_const64_quick1): Likewise.
5017         (const64_is_2insns): Likewise.
5018         (print_operand): Use trunc_int_for_mode for sign extension.
5019         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5020         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5021         chars.  Assume CONST_INT is already properly sign-extended.
5022         (movdi split): Sign-extend each SImode part.
5023         (andsi3 split): Don't mask high bits off, so that result
5024         remains properly sign-extend.
5025         (iorsi3 split): Likewise.
5026         (xorsi3 split): Likewise.
5027
5028 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5029
5030         * fold-const.c (fold): Fix typo in comments.
5031
5032 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5033
5034         * Makefile.in (langhooks.o): Update dependencies.
5035
5036 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5037
5038         * langhooks.c: Include flags.h.
5039
5040 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5041
5042         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5043
5044         * c-common.c (c_common_post_options): Set inline trees by
5045         default.
5046
5047         * doc/extend.texi (Function Attributes): Document always_inline
5048         attribute.
5049         Update documentation about inlining when not optimizing.
5050
5051         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5052
5053         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5054         unless DECL_ALWAYS_INLINE.
5055
5056         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5057         unless DECL_ALWAYS_INLINE.
5058         (c_disregard_inline_limits): Disregard if always_inline set.
5059
5060         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5061         Disregard if always_inline set.
5062         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5063         unless DECL_ALWAYS_INLINE.
5064
5065         * attribs.c (handle_always_inline_attribute): New.
5066         (c_common_attribute_table): Add always_inline.
5067
5068         * config/rs6000/altivec.h: Add prototypes for builtins
5069         requiring the always_inline attribute.
5070
5071 2002-02-21  Eric Christopher  <echristo@redhat.com>
5072
5073         * expmed.c (store_bit_field): Try to simplify the subreg
5074         before generating a new one when when the mode size of
5075         value is less than maxmode.
5076
5077 2002-02-21  Richard Henderson  <rth@redhat.com>
5078
5079         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5080         than gen_rtx_PLUS to form the sum.
5081         * explow.c (force_reg): Rearrange to not allocate new pseudo
5082         when force_operand returns a register.
5083         * expr.c (expand_assignment): Allow offset_rtx expansion to
5084         return a sum.  Do not force addresses into registers.
5085         (expand_expr): Likewise.
5086         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5087         to canonicalize arithmetic that didn't simpify.
5088         (simplify_plus_minus): New argument force; update
5089         all callers.  Don't split CONST unless we can do something with it,
5090         and wouldn't lose the constness of the operands.
5091
5092         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5093         that we generated earlier.
5094
5095 2002-02-21  Tom Tromey  <tromey@redhat.com>
5096
5097         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5098         (output_line_info): Use constant `1', with a long explanatory
5099         comment.
5100         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5101
5102 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5103
5104         * jump.c (redirect_jump): If old label has no UID, don't try to
5105         delete it.
5106
5107 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5108
5109         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5110         If input is constant, do shifts at compile time.
5111
5112 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5113
5114         * doc/extend.texi: Fix some more overfull hboxes.
5115
5116 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5117
5118         PR optimization/4994
5119         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5120         register moves.
5121
5122 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5123
5124         PR c++/4574
5125         * expr.h (expand_and): Add mode argument.
5126         * expmed.c (expand_and): Add mode argument.
5127         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5128         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5129         * except.c (expand_builtin_extract_return_addr): Likewise.
5130         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5131         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5132         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5133         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5134         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5135         gen_rtx (CONST_INT, VOIDmode, x).
5136
5137 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5138
5139         PR c/4697:
5140         * stmt.c (warn_if_unused_value): Move side effects test once more.
5141
5142 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5143
5144         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5145         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5146
5147 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5148
5149         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5150         SUBREG or ZERO_EXTEND.
5151
5152 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5153
5154         * sh.h (current_function_anonymous_args): Remove.
5155         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5156         of current_function_varargs and current_function_stdarg is set.
5157         * sh.c (sh_expand_prologue): Check current_function_varargs /
5158         current_function_stdarg / TARGET_SH5 instead of
5159         current_function_anonymous_args.
5160
5161         * sh64.h (TARGET_VERSION): Define.
5162
5163 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5164
5165         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5166         VRSAVE_REGNO on TARGET_ALTIVEC.
5167
5168 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5169
5170         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5171         bits of SImode const_int.
5172         (includes_rshift_p): Likewise.
5173         (print_operand): Call mask_operand and mask64_operand with correct
5174         mode.
5175         (rs6000_output_function_epilogue): Pad traceback table to word.
5176         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5177         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5178         mask64_operand with correct mode.
5179         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5180
5181 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5182
5183         PR debug/4461
5184         * varasm.c (get_pool_constant_mark): New.
5185         * rtl.h (get_pool_constant_mark): Add prototype.
5186         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5187         be represented if it has not been output.
5188
5189 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5190
5191         * combine.c (do_SUBST): Sanity check substitutions of
5192         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5193         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5194         CONST_INT into its operand.
5195         (known_cond): Likewise, for ZERO_EXTEND.
5196         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5197         allow for simplification of wide modes.  Reject CONST_INTs in
5198         ZERO_EXTEND when their actual mode is not given.
5199
5200 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5201
5202         * c-decl.c (pushdecl): If no global declaration is found for an
5203         extern declaration in block scope, try a limbo one.
5204
5205 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5206
5207         PR c++/4401
5208         * c-common.c (pointer_int_sum): Moved from...
5209         * c-typeck.c (pointer_int_sum): ...here.
5210         * c-common.h (pointer_int_sum): Add prototype.
5211
5212 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5213
5214         PR c++/5713
5215         * c-decl.c (duplicate_decls): Return 0 if issued error about
5216         redeclaration.
5217
5218 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5219             Jakub Jelinek  <jakub@redhat.com>
5220
5221         PR c/4389
5222         * tree.c (host_integerp): Ensure that the constant integer is
5223         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5224         when pos is zero or non-zero respectively.  Clarify comment.
5225         * c-format.c (check_format_info_recurse): Fix host_integerp
5226         usage; the pos argument should be zero when assigning to a
5227         signed HOST_WIDE_INT.
5228
5229 2002-02-20  Richard Henderson  <rth@redhat.com>
5230
5231         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5232         of the operand, rather than assuming TImode.
5233         (ix86_expand_binop_builtin): Cope with commutative patterns
5234         using nonimmediate_operand for both operands.
5235         (ix86_expand_timode_binop_builtin): Likewise.
5236         (ix86_expand_store_builtin): Validate operand 1.
5237         (ix86_expand_unop1_builtin): Likewise.
5238
5239 2002-02-20  Philip Blundell  <philb@gnu.org>
5240
5241         PR 5705
5242         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5243
5244 2002-02-20  Richard Henderson  <rth@redhat.com>
5245
5246         PR c/5615
5247         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5248
5249 2002-02-20  Tom Tromey  <tromey@redhat.com>
5250
5251         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5252         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5253         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5254         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5255         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5256         unconditionally.
5257
5258 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5259
5260         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5261           for (const_int 0) in X not just INTVAL.
5262
5263 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5264
5265         * doc/extend.texi: Avoid or reduce overfull hboxes.
5266
5267 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5268
5269         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5270         operations if the field does not start at a mode boundary.
5271
5272 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5273
5274         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5275         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5276         Also done for -Acpu and -Amachine.
5277
5278 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5279
5280         * cppinit.c (init_dependency_output): Take deps output file
5281         from -o if none given with -MF.  Suppress normal output.
5282         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5283         * doc/cpp.texi, doc/invoke.texi: Update.
5284
5285 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5286
5287         * toplev.c (output_quoted_string): Write unprintable
5288         characters with octal escapes.
5289
5290 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5291
5292         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5293         really_call_used[VRSAVE_REGNO] if not Altivec.
5294
5295 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5296
5297         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5298         MODE_MASK.
5299         (constant_pool_expr_1): Fix formatting.
5300         (rs6000_legitimize_reload_address): Likewise.
5301
5302 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5303
5304         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5305         now that we have one.
5306
5307 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5308
5309         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5310         end of first block of bitfields (which was only seven bits);
5311         rename dummy to unused_1; remove comment which is no longer true.
5312
5313 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5314
5315         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5316
5317 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5318
5319         PR 5399
5320         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5321         if generating PIC.
5322
5323         PR 5054
5324         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5325         arm_is_longcall_p rather than inspecting call-type cookie
5326         directly.
5327         (call_value_insn) [TARGET_THUMB]: Likewise.
5328
5329 2002-02-19  Graham Stott  <grahams@redhat.com>
5330
5331         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5332
5333 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5334
5335         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5336         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5337         (FP_SAVE_INLINE): Delete.
5338
5339         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5340         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5341         * config/rs6000/t-ppccomm: Build crtsavres.o.
5342         * config/rs6000/crtsavres.asm: New file.
5343
5344 2002-02-19  Philip Blundell  <philb@gnu.org>
5345
5346         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5347         functions.
5348         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5349         (output_return_instruction): Allow interrupt functions to return with
5350         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5351         (arm_expand_prologue): Subtract 4 before stacking LR in an
5352         interrupt function.
5353
5354 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5355
5356         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5357         decl, not just FUNCTION_DECL.
5358         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5359         (arm_assemble_integer): Likewise.
5360         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5361         marked local.
5362
5363 2002-02-19  matthew green  <mrg@eterna.com.au>
5364
5365         * config.gcc (sparc-*-netbsdelf*): Enable target.
5366         (sparc64-*-netbsd*): New target.
5367         * config/sparc/netbsd-elf.h: New file.
5368         * config/sparc/t-netbsd64: New file.
5369
5370 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5371
5372         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5373
5374 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5375
5376         * doc/invoke.texi: explicitly list the style guidelines that
5377         -Weffc++ checks for.
5378
5379 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5380
5381         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5382
5383 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5384
5385         PR other/5718
5386         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5387         only if not -E.  If -E, pass -o through to the preprocessor.
5388
5389 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5390
5391         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5392         register number with an appropriate macro.
5393
5394 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5395
5396         * doc/rtl.texi (Constants): Close @code tag.
5397
5398 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5399
5400         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5401         ("mmx_uavgv4hi3"): Same.
5402         ("pmulhrwv4hi3"): Same.
5403
5404         * tree-inline.c (walk_tree): Handle vectors.
5405
5406         * c-common.c (constant_expression_warning): Handle vectors.
5407         (overflow_warning): Same.
5408
5409         * sched-deps.c (sched_analyze_2): Handle vectors.
5410
5411         * rtlanal.c (rtx_unstable_p): Handle vectors.
5412         (rtx_varies_p): Same.
5413         (count_occurrences): Same.
5414         (regs_set_between_p): Same.
5415         (modified_between_p): Same.
5416         (modified_in_p): Same.
5417         (volatile_insn_p): Same.
5418         (volatile_refs_p): Same.
5419         (side_effects_p): Same.
5420         (may_trap_p): Same.
5421         (inequality_comparisons_p): Same.
5422         (replace_regs): Same.
5423         (computed_jump_p_1): Same.
5424
5425         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5426         argument.
5427         (inner_mode_array): New.
5428         (copy_rtx): Handle vectors.
5429         (copy_most_rtx): Same.
5430         (rtx_equal_p): Same.
5431         (get_mode_alignment): Adjust for vectors.
5432
5433         * resource.c (mark_referenced_resources): Handle vectors.
5434         (mark_set_resources): Same.
5435
5436         * reload1.c (eliminate_regs): Handle vectors.
5437         (elimination_effects): Same.
5438         (scan_paradoxical_subregs): Same.
5439
5440         * reload.c (subst_reg_equivs): Handle vectors.
5441
5442         * regrename.c (scan_rtx): Handle vectors.
5443
5444         * regclass.c (reg_scan_mark_refs): Handle vectors.
5445
5446         * recog.c (find_single_use_1): Handle vectors.
5447
5448         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5449         (contains_replace_regs): Same.
5450         (memref_referenced_p): Same.
5451
5452         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5453         (subst_constants): Same.
5454
5455         * genattrtab.c (attr_copy_rtx): Handle vectors.
5456         (encode_units_mask): Same.
5457         (clear_struct_flag): Same.
5458         (count_sub_rtxs): Same.
5459
5460         * gcse.c (want_to_gcse_p): Handle vectors.
5461         (oprs_unchanged_p): Same.
5462         (hash_expr_1): Same.
5463         (oprs_not_set_p): Same.
5464         (expr_killed_p): Same.
5465         (compute_transp): Same.
5466         (store_ops_ok): Same.
5467
5468         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5469         of vectors.
5470         (fixup_var_refs_1): Same.
5471         (instantiate_virtual_regs_1): Same.
5472
5473         * fold-const.c (operand_equal_p): Handle vectors.
5474         (fold): Same.
5475         (rtl_expr_nonnegative_p): Same.
5476
5477         * flow.c (mark_used_regs): Handle vectors.
5478
5479         * df.c (df_uses_record): Handle vectors.
5480
5481         * cselib.c (cselib_subst_to_values): Handle vectors.
5482         (cselib_mem_conflict_p): Same.
5483         (hash_rtx): Same.
5484
5485         * cse.c (canon_reg): Handle vectors.
5486         (fold_rt): Same.
5487         (cse_process_notes): Same.
5488         (count_reg_usage): Same.
5489         (canon_hash): Same.
5490
5491         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5492
5493         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5494
5495         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5496         (gen_rtx): Handle CONST_VECTOR.
5497         (gen_const_vector_0): New.
5498         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5499         (reset_used_flags): Same.
5500         (copy_insn_1): Same.
5501         (initializer_constant_valid_p): Handle VECTOR_CST.
5502
5503         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5504
5505         * doc/rtl.texi (Constants): Document const_vector.
5506         (CONST0_RTX): Update for vectors.
5507         (RTL sharing): Same.
5508
5509         * print-tree.c (print_node): Add case for VECTOR_CST.
5510
5511         * tree.h (TREE_VECTOR_CST_ELTS): New.
5512         (struct tree_vector): New.
5513         (union tree_node): Add vector node.
5514         (build_vector): Add prototype.
5515
5516         * tree.def (VECTOR_CST): New.
5517
5518         * tree.c (build_vector): New.
5519
5520         * expmed.c (make_tree): Handle CONST_VECTOR.
5521
5522         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5523         (CONST_VECTOR_ELT): New.
5524         (CONST_VECTOR_NUNITS): New.
5525
5526         * machmode.h (GET_MODE_INNER): New.
5527         (DEF_MACHMODE): Accept 8th arg.
5528
5529         * machmode.def: Add 8th argument for vector inner mode.
5530         Add inner vector modes for vectors.
5531
5532         * rtl.def (VEC_CONST): Remove.
5533         (CONST_VECTOR): New.
5534
5535         * expr.c (clear_storage): Allow vectors.
5536         (is_zeros_p): Handle VECTOR_CST.
5537
5538         * varasm.c (output_constant_pool): Handle vectors.
5539         (rtx_const): Add veclo and vechi fields.
5540         (kind): Add RTX_VECTOR.
5541         (decode_rtx_const): Add case for vector.
5542
5543         * config/rs6000/rs6000-protos.h: Add zero_constant.
5544
5545         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5546         constants.  Force easy vector constants into memory.
5547         (easy_vector_constant): New.
5548         (emit_easy_vector_constant): New.
5549         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5550         darwin.
5551
5552         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5553         instruction does.
5554         ("altivec_lvxl"): Same.
5555         (altivec_lvebx): Same.
5556         (altivec_lvehx): Same.
5557         (altivec_lvewx): Same.
5558         ("*movv4si_const0"): New.
5559         ("*movv4sf_const0"): New.
5560         ("*movv8hi_const0"): New.
5561         ("*movv16qi_const0"): New.
5562
5563 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5564
5565         * config/h8300/h8300.c (notice_update_cc): Use
5566         cc_status.value2.
5567
5568 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5569
5570         * config/h8300/h8300.md (divmod patterns): Change the
5571         constraints for operands[1] to register_operand.
5572
5573 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5574
5575         * config/h8300/h8300-protos.h: Remove the prototype for
5576         p_operand.
5577         * config/h8300/h8300.c (p_operand): Remove.
5578         * config/h8300/h8300.md: Replace p_operand with
5579         const_int_operand.
5580
5581 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5582
5583         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5584         comment.
5585         (output_return_instruction): Allow use of LDR to unstack
5586         return addresss even for interrupt handlers or when
5587         interworking.  If compiling for ARMv5, use interworking-safe
5588         return instructions by default.  Remove duplicated code and
5589         lengthy "strcat" sequences.
5590
5591 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5592
5593         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5594         (LINK_EH_SPEC): Define.
5595         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5596
5597 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5598
5599         * config/s390/s390.c (s390_emit_prologue): Do not set the
5600         frame_related flag for call-clobbered registers.
5601
5602 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5603
5604         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5605         (construct_container): Fix handling of SSE operands.
5606         (ix86_expand_builtin): Fix handling of 64bit pointers.
5607         (mmx_maskmovq_rex): New pattern.
5608
5609 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5610
5611         * regrename.c (kill_set_value): Handle subregs properly.
5612
5613 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5614
5615         * objc/objc-act.c (handle_impent): Remove leading '*'
5616         from objc_class_name.
5617
5618 2002-02-17  Richard Henderson  <rth@redhat.com>
5619
5620         * config/alpha/alpha.c (some_small_symbolic_operand,
5621         some_small_symbolic_operand_1, split_small_symbolic_operand,
5622         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5623         Handle small SYMBOL_REFs anywhere, not just inside memories.
5624         * config/alpha/alpha-protos.h: Update.
5625         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5626         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5627
5628 2002-02-17  Roland McGrath  <roland@frob.com>
5629
5630         * config.gcc (powerpc-*-gnu-gnualtivec*,
5631         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5632         * config/rs6000/gnu.h: New file.
5633         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5634         Grok "gnu" in rs6000_abi_name.
5635         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5636         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5637         Grok -mcall-gnu analogous to -mcall-linux et al.
5638         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5639         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5640         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5641
5642 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5643
5644         PR c/3444:
5645         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5646         shortening.
5647
5648 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5649
5650         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5651         ENDFILE_SPEC before (re)defining them.
5652
5653 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5654
5655         * config/h8300/h8300.c: Fix formatting.
5656         * config/h8300/h8300.h: Likewise.
5657
5658 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5659
5660         * doc/tm.texi: Explain why empty strings should not be
5661         marked for translation.
5662
5663 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5664
5665         * final.c (output_operand_lossage): Changed to accept
5666         printf style arguments. Change calls where necessary.
5667         * output.h (output_operand_lossage): Change declaration
5668         accordingly. Update copyright.
5669         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5670         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5671         Update copyright date where necessary.
5672
5673         * config/i386/i386.c (print_operand): Likewise. Remove use of
5674         sprintf.
5675
5676         * config/cris/cris.c (cris_operand_lossage): Likewise.
5677         Rename parameter so that exgettext recognizes it as
5678         translatable message.
5679         (LOSE_AND_RETURN): Rename parameter to msgid.
5680
5681 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5682
5683         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5684         hard coded register number with an appropriate macro.
5685         (HARD_REGNO_MODE_OK): Likewise.
5686         (ARG_POINTER_REGNUM): Likewise.
5687         (STATIC_CHAIN_REGNUM): Likewise.
5688         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5689         * config/h8300/h8300.md (define_constants): Define more
5690         register numbers.
5691
5692 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5693
5694         * config/i386/i386.h: Don't mark empty strings for translation.
5695
5696 2002-02-16  H.J. Lu <hjl@gnu.org>
5697
5698         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5699
5700 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5701
5702         * cppinit.c (merge_include_chains): Check for brack being
5703         NULL before attempting to merge it with qtail.
5704
5705 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5706
5707         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5708         DBX_DEBUG.
5709
5710 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5711
5712         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5713
5714 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5715
5716         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5717         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5718         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5719
5720 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5721
5722         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5723         now only if !TARGET_FIX.
5724         (*movsi_nt_vms_fix): New pattern.
5725
5726 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5727
5728         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5729         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5730         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5731         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5732         (alpha_start_function, alpha_expand_epilogue): Likewise.
5733         (unicosmk_gen_dsib): Likewise.
5734
5735 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5736
5737         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5738
5739 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5740
5741         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5742         check_and_change_labels, s390_final_chunkify): Delete.
5743         (s390_split_branches, s390_chunkify_pool): New functions.
5744         (s390_function_prologue): Call them.
5745
5746         * config/s390/s390.h (S390_REL_MAX): Delete.
5747         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5748
5749         * config/s390/s390.md (cjump, icjump, jump): Fix length
5750         attribute calculation.
5751
5752
5753 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5754
5755         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5756         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5757
5758 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5759
5760         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5761         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5762         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5763
5764 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5765
5766         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5767
5768 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5769
5770         * reload.c (find_dummy_reload): Check that an output register
5771         is valid for its mode.
5772
5773 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5774
5775         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5776         to simplify it.
5777
5778         * function.c (assign_parms): Demote promoted argument passed by
5779         transparent reference.
5780
5781 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5782
5783         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5784         -Acpu() and -Amachine() to eliminate warnings.
5785
5786 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5787
5788         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5789
5790 2002-02-14  Kazu Hirata  <kazu@hxi.com>
5791
5792         * config/h8300/h8300-protos.h: Update the prototype for
5793         const_costs.
5794         * config/h8300/h8300.c (const_costs): Treat SET as a little
5795         more expensive operation.
5796         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5797         reference to const_costs.
5798
5799 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
5800
5801         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5802
5803 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
5804
5805         PR c/5503:
5806         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5807         use arguments from newtype.
5808
5809 2002-02-13  Eric Christopher  <echristo@redhat.com>
5810
5811         * config/mips/mips.c (override_options): Add check for march/mipsX
5812         on the same command line. Fix error message in cpu processing.
5813         Remove architecture and ISA checks.
5814
5815 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5816
5817         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5818
5819         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5820
5821 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5822
5823         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5824         alternatives.
5825         ("*movv8hi_internal1"): Same.
5826         ("*movv16qi_internal1"): Same.
5827         ("*movv4sf_internal1"): Same.
5828
5829         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5830         not push_reload for altivec modes.
5831
5832 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
5833
5834         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5835         all RTEMS targets including removal of #includes from config/*/rtems*.h
5836         file and adding them to tm_file setting. Added xm_defines=POSIX to
5837         many targets.
5838         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5839         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5840         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5841         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5842         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5843         config/m68k/rtemself.h: Ditto.
5844         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5845         config/mips/rtems64.h: Ditto.
5846         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5847         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5848         Ditto.
5849         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5850         config/sparc/rtemself.h: Ditto.
5851         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5852         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5853         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5854         more like arm-elf.
5855         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5856         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5857         target made more similar to i386-elf.
5858         * config/i386/t-rtems-i386: Added soft float support and multilibs.
5859         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5860         be similar to config/m68k/t-m68kelf.
5861         * gthr-rtems.h: Encapsulate with extern "C" for C++.
5862
5863 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
5864
5865         * regmove.c (kill_value): Handle subregs.
5866
5867 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5868
5869         * i386.md (mul patterns): Allow memory operand to be first;
5870         add expanders where needed; fix constraints.
5871         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5872         Allow memory operand to be the first.
5873
5874         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5875         operands.
5876
5877 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5878
5879         PR c/5681:
5880         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5881         GET_MODE (x).
5882
5883 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5884
5885         PR optimization/5547:
5886         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5887         all valid IA-32 address modes involving non-scaled %ebx and
5888         GOT/GOTOFF as displacement.
5889
5890 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5891
5892         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5893         after emitting ltorg insns.
5894
5895         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5896         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5897         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5898         *abssf2): Fix "op_type" attribute.
5899
5900 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
5901
5902         * mkconfig.sh: Avoid using a subshell redirect.
5903         ($output.T): Change to $(output)T.
5904         (ENABLE_NLS): Remove unneeded undef.
5905
5906         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5907         * config/alpha/x-vms (libsubdir): Define.
5908
5909         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5910         register frame procedures. Optimize retrieving context.
5911
5912         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5913         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5914         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5915
5916 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5917
5918         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5919         Make same change as for find_base_value.
5920
5921 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5922
5923         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5924         of QImode and SImode.
5925
5926 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5927
5928         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5929         length computation of movsi.
5930         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5931
5932 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5933
5934         * config/h8300/h8300.md (subqi3): Tighten the predicate for
5935         operands[2] to register_operand.
5936
5937 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
5938
5939         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5940
5941 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
5942
5943         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5944         for altivec_lvx* and altivec_stvx*.
5945         ("*movv4si_internal"): Add constraint for loading from GPRs.
5946         ("*movv8hi_internal1"): Same.
5947         ("*movv16qi_internal1"): Same.
5948         ("*movv4sf_internal1"): Same.
5949
5950         * config/rs6000/rs6000.c (altivec_register_operand): New.
5951
5952         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5953         altivec_register_operand.
5954
5955 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
5956
5957         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5958         handle SYMBOL_REF.
5959
5960 2002-02-13  Stan Shebs  <shebs@apple.com>
5961
5962         * c-typeck.c (digest_init): Handle vectors.
5963         (really_start_incremental_init): Same.
5964         (pop_init_level): Same.
5965         (process_init_element): Same.
5966
5967         * varasm.c (output_constant): Same.
5968
5969         * expr.c (clear_storage): Same.
5970         (store_constructor): Same.
5971
5972 2002-02-12  Eric Christopher  <echristo@redhat.com>
5973
5974         * explow.c (hard_function_value): Add comment explaining
5975         signed/unsigned comparison.
5976
5977 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
5978
5979         * jump.c (never_reached_warning): Add finish argument.
5980         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5981         real insn after end.
5982         * rtl.h (never_reached_warning): Adjust prototype.
5983         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5984         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5985         never_reached_warning.
5986
5987 2002-02-12  Graham Stott  <grahams@redhat.com>
5988
5989         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5990
5991 2002-02-12  Kazu Hirata  <kazu@hxi.com>
5992
5993         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5994         logical shifts on H8/300.
5995         (shift_alg_si): Improve several shifts on H8/300.
5996         (get_shift_alg): Likewise.
5997
5998 2002-02-12  Graham Stott  <grahams@redhat.com>
5999
6000         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6001
6002 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6003
6004         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6005         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6006
6007 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6008
6009         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6010         non-CONST_INT through default_assemble_integer.
6011         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6012         <case 8>: Abort for CONST_DOUBLE.
6013
6014 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6015
6016         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6017         is specified.
6018         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6019         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6020
6021 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6022
6023         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6024
6025 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6026
6027         * regrename.c (regrename_optimize): Don't accept a
6028         part-clobbered register if the replaced register is not part
6029         clobbered.
6030
6031         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6032         take padding into account when computing the argument value.
6033
6034         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6035
6036         * combine.c (try_combine): Apply substitutions in
6037         CALL_INSN_FUNCTION_USAGE too.
6038
6039 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6040
6041         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6042         __builtin_altivec_abs*.
6043         (bdesc_abs): New.
6044
6045         * config/rs6000/rs6000.h (rs6000_builtins): Add
6046         ALTIVEC_BUILTIN_ABS*.
6047
6048         * config/rs6000/altivec.h: Use const char for builtins expecting
6049         literals.
6050         (vec_abs): New versions for C and C++.
6051         (vec_abss): Same.
6052
6053 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6054
6055         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6056         using Pmode.
6057
6058 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6059
6060         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6061         constant definition from h8300.md.
6062         (FRAME_POINTER_REGNUM): Likewise.
6063         * config/h8300/h8300.md (define_constants): Add FP_REG.
6064
6065 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6066
6067         * config/h8300/h8300.c (print_operand): Remove redundant code.
6068
6069 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6070
6071         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6072         * config/h8300/h8300.c (byte_reg): Make it static.
6073
6074 2002-02-10  Richard Henderson  <rth@redhat.com>
6075
6076         PR c/5623
6077         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6078
6079 2002-02-10  Richard Henderson  <rth@redhat.com>
6080
6081         PR c++/5624
6082         * tree.c (append_random_chars): Don't abort if main_input_filename
6083         does not exist.
6084
6085 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6086
6087         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6088
6089 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6090
6091         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6092         (pushhi1): Likewise.
6093
6094 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6095
6096         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6097         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6098
6099 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6100
6101         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6102         remove MASK_VIS.
6103         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6104
6105 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6106
6107         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6108         a half of an SImode register on H8/300.
6109
6110 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6111
6112         * i386.md (movdi_2): Add missing '!'.
6113
6114 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6115
6116         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6117         definitions.
6118
6119 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6120
6121         * config/h8300/h8300.md (length): Correct the distance valid
6122         for the short branch.
6123
6124 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6125
6126         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6127
6128 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6129
6130         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6131         registers in SImode.
6132         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6133         part-clobbered.
6134
6135         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6136         patch.
6137
6138         Contribute sh64-elf.
6139         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6140         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6141         (sh_cannot_modify_jumps_p): New function.
6142         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6143         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6144         (sh_ms_bitfield_layout_p): New function.
6145         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6146                     Zack Weinberg  <zack@codesourcery.com>
6147         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6148         expand_simple_binop instead of expand_binop.
6149         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6150         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6151         use of .quad and .uaquad.
6152         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6153         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6154         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6155         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6156         movdi_const_16bit): Make sure all CONSTs have modes.
6157         (sym2PIC): Ditto, but by adjusting all callers.
6158         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6159         if the prologue calls the SHmedia argument decoder or register
6160         saver.
6161         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6162         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6163         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6164         (sh_expand_epilogue): Don't emit USE of return target register.
6165         (prepare_move_operands): Legitimize DImode PIC addresses.
6166         (sh_media_register_for_return): Skip tr0, used to initialize the
6167         PIC register.
6168         (sh_expand_prologue): Remove explicit USE of return register.
6169         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6170         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6171         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6172         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6173         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6174         EXTRA_CONSTRAINT_T.
6175         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6176         (MOVI_SHORI_BASE_OPERAND_P): New.
6177         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6178         (EXTRA_CONSTRAINT_T): Define in terms of them.
6179         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6180         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6181         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6182         alternatives supporting TARGET_REGS.
6183         (UNSPEC_GOTPLT): New constant.
6184         (movdi split): Move incrementing of LABEL_NUSES...
6185         (movdi_const, movdi_const_32bit): Here.  Use
6186         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6187         (movdi_const_16bit): New.
6188         (call, call_value) [flag_pic]: Use GOTPLT.
6189         (call_pop, call_value_pop): New expands.
6190         (call_pop_compact, call_pop_rettramp): New insns.
6191         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6192         (sibcall) [flag_pic]: Use GOT.
6193         (builtint_setjmp_receiver): Remove bogus, unused expand.
6194         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6195         (*pt, *ptb, ptrel): New insns.
6196         (sym2GOT): Handle DImode GOT.
6197         (sym2GOTPLT, symGOTPLT2reg): New expands.
6198         (sym2PIC): New expand.
6199         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6200         (shcompact_return_tramp_i): Use return register explicitly.
6201         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6202         disable flag_reorder_blocks.
6203         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6204         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6205         clobbers, for clarity.
6206         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6207         restoring of r0 in macl as MAYBE_DEAD.
6208         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6209         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6210         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6211         alter_subreg all over.
6212         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6213         reload, instead of emitting instructions that would require
6214         reloading.
6215         (casesi_load_media): Add missing modes.
6216         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6217         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6218         as used if the argument decoder is called.
6219         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6220         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6221         Pmode, then extend it to DImode if necessary.
6222         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6223         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6224         constants in FPU-enabled SHmedia, let them be loaded from memory.
6225         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6226         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6227         Adjust whitespace in assembly output templates.
6228         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6229         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6230         mode of if_then_else.
6231         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6232         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6233         sh.h.
6234         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6235                     Joern Rennecke <amylaar@redhat.com>
6236         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6237         (SUBTARGET_CPP_PTR_SPEC): New.
6238         (SUBTARGET_CPP_SPEC): Remove.
6239         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6240         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6241         Fix typo in previous checkin.
6242         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6243         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6244         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6245                     Alexandre Oliva  <aoliva@redhat.com>
6246         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6247         what single FP register can hold for SHmedia target.
6248         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6249                     Alexandre Oliva  <aoliva@redhat.com>
6250         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6251         Do not split into SUBREG.
6252         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6253         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6254         and added new functions as specified in SH5 ABI r9.
6255         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6256         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6257         8-byte boundary.
6258         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6259         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6260         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6261         and consttable_window_ends.
6262         2001-06-03  Graham Stott  <grahams@redhat,com>
6263         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6264         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6265         * config/sh/sh.c (print_operand): Handle floating-point pair,
6266         vector and matrix registers.
6267         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6268         vector modes into account.
6269         * config/sh/sh.md (movv2sf): Split move between registers into
6270         movdf.
6271         (movv4sf, movv16sf): Introduce insns that get split only after
6272         reload.
6273         * config/sh/shmedia.h: Fix Copyright dates.
6274         * config/sh/ushmedia.h: Likewise.  Move loop counter
6275         declarations into conditionals that uses them.
6276         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6277         loop boundary.
6278         * config/sh/sshmedia.h: Fix Copyright dates.
6279         (sh_media_PUTCFG): Fix constraints.
6280         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6281         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6282         ptrmemfunc_vbit_in_delta for SH5.
6283         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6284         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6285         * invoke.texi: Likewise.
6286         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6287         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6288         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6289         GCC_pop_shmedia_regs_nofpu): New global symbols.
6290         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6291         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6292         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6293         compact function with nonlocal labels.
6294         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6295         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6296         (initial_elimination_offset): Account for their stack space.
6297         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6298         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6299         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6300         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6301         least one of the operands to be a register.
6302         (movv2sf): Likewise.  Renamed to movv2sf_i.
6303         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6304         prepare_move_operands() before emitting SHmedia insns.
6305         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6306         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6307         Don't save nor initialize r12.  Don't mis-align the stack.
6308         Pad the code with a nop.
6309         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6310         stack.
6311         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6312         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6313         [__SHMEDIA__]: Implement.
6314         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6315         * config/sh/sh.md: Set latency of `pt' closer to reality.
6316         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6317         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6318         Set move, load and store type attributes.
6319         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6320         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6321         profiling.
6322         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6323         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6324         * config/sh/sh.c (sh_media_register_for_return): New function.
6325         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6326         branch-target register.
6327         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6328         * config/sh/sh.md (return_media_i): Use any call-clobbered
6329         branch-target register.
6330         (return_media): If r18 wasn't copied in the prologue, copy it
6331         here.
6332         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6333         Clear class FP0_REGS.
6334         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6335         from elf.h.
6336         2001-03-08  DJ Delorie  <dj@redhat.com>
6337         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6338         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6339         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6340         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6341         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6342         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6343         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6344         return value correctly for call_cookie.
6345         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6346         * config/sh/crt1.asm (start): Modified so as to call
6347         ___setup_argv_and_call_main.
6348         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6349         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6350         SHmedia mode.
6351         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6352         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6353         (STRIP_NAME_ENCODING): Use it.
6354         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6355         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6356         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6357         prepare_scc_operands().
6358         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6359         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6360         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6361         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6362         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6363         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6364         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6365         used in shcompact_incoming_args.
6366         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6367         change.
6368         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6369         mode.
6370         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6371         Adjust accordingly.
6372         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6373         Simplify.  Adjust.  Add sanity check.
6374         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6375         FPU_SINGLE_BIT.
6376         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6377         TARGET_SHCOMPACT.
6378         (udivsi3, divsi3): Use them.
6379         (force_mode_for_call): New insn.
6380         (call, call_value, sibcall_value): Emit it before SHcompact
6381         calls.
6382         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6383         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6384         call cookie is non-NULL before taking its value.
6385         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6386         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6387         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6388         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6389         block.
6390         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6391         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6392         temporary for stack adjusts.  Use MACL and MACH to pass
6393         arguments to shcompact_incoming_args.
6394         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6395         clobber r1.
6396         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6397         (nested_trampoline): Load static chain address into r1.
6398         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6399         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6400         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6401         fp_arith_reg_operand().
6402         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6403         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6404         and use signed compares for them.
6405         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6406         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6407         ones properly aligned.
6408         (find_barrier): Account for extra alignment needed for 8-byte wide
6409         constants.
6410         (machine_dependent_reorg): Require a label for the second 4-byte
6411         constant after an 8-byte one.
6412         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6413         change.
6414         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6415         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6416         last_float when switching float modes.
6417         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6418         auto-increment for general-purpose registers.
6419         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6420         result.
6421         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6422         for stack adjust.
6423         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6424         registers for varargs.
6425         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6426         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6427         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6428         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6429         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6430         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6431         call_cookie accordingly.
6432         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6433         (SHCOMPACT_BYREF): Likewise.
6434         (SHCOMPACT_FORCE_ON_STACK): New macro.
6435         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6436         (sh_builtin_saveregs): Likewise.
6437         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6438         shcompact_incoming_args): Use new shift values.  Support
6439         sequences of consecutive and non-consecutive pushes/pops.
6440         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6441         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6442         * config/sh/sh.h (TEXT_SECTION): Define.
6443         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6444         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6445         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6446         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6447         return values on FPU-enabled SHmedia.
6448         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6449         FPU-enabled SHmedia.
6450         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6451         value is returned in a non-FP reg and is not returned by
6452         reference.
6453         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6454         jump_ind.
6455         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6456         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6457         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6458         quad-aligned to be passed by callee-copy reference.
6459         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6460         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6461         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6462         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6463         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6464         copying low-numbered FP regs to r7 and r8.
6465         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6466         FP regs to general-purpose regs only if the copy was passed on the
6467         stack.
6468         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6469         copying FP reg to r9.
6470         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6471         copy FP regs to general-purpose regs only in outgoing calls.
6472         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6473         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6474         HOST_WIDE_INT.
6475         * config/sh/sh.h (struct sh_args): Document all fields.
6476         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6477         passed partially on the stack should not consider making
6478         sibcalls.
6479         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6480         stack_regs only for incoming calls.  When passing FP args,
6481         make sure there are FP regs available before modifying
6482         call_cookie.
6483         (SHCOMPACT_BYREF): Pass double args in general-purpose
6484         registers by reference.
6485         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6486         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6487         attempt to generate sibcalls if the caller got any arguments
6488         by reference.
6489         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6490         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6491         to 8-byte boundaries.
6492         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6493         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6494         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6495         stored in the stack.
6496         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6497         for the offsets to have the ISA bit set.
6498         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6499         invocation.  Use beq instead of bgt to mark end of sequence of
6500         loads.
6501         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6502         bgt to mark end of sequence of stores.
6503         * config/sh/sh.c (arith_operand): Don't check whether
6504         CONST_OK_FOR_J for now.
6505         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6506         instead of long for conversion.
6507         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6508         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6509         before passing it to fprintf.
6510         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6511         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6512         Call set_fpscr before reading/writing SR.
6513         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6514         Call set_fpscr.
6515         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6516         SHmedia code.
6517         (FMOVD_WORKS): Define on SH5 with FPU.
6518         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6519         setting.
6520         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6521         _fpscr_values.
6522         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6523         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6524         address.
6525         (ia_main_table): Ditto.
6526         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6527         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6528         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6529         the definitions from sh.h.
6530         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6531         TARGET_SH5.
6532         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6533         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6534         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6535         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6536         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6537         Increment LABEL_NUSES.
6538
6539         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6540         TARGET_SH5.
6541         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6542         defined.
6543         * config/sh/elf.h (SIZE_TYPE): Likewise.
6544         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6545         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6546         shcompact_incoming_args): Load switch table addresses using
6547         datalabel.
6548         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6549         (NO_BUILTIN_SIZE_TYPE): Define.
6550         (SIZE_TYPE): Don't define.
6551         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6552         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6553         definition of __SH5__=32 for -m5-compact-nofpu.
6554         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6555         ADDR_DIFF_VEC.
6556         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6557         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6558         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6559         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6560         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6561         (INSN_LENGTH_ALIGNMENT): Likewise.
6562         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6563         * config/sh/sh.md (call, call_value, sibcall): Simplify
6564         copying of non-branch-target register.
6565         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6566         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6567         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6568         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6569         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6570         floating-point values as structs.
6571         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6572         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6573         general-purpose register.
6574         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6575         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6576         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6577         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6578         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6579         (ENCODE_SECTION_INFO): Enclose variables and constants in
6580         DATALABEL unspecs.
6581         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6582         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6583         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6584         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6585         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6586         SH_DATALABEL_ENCODING to the symbol name.
6587         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6588         convert_mode().
6589         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6590         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6591         UNSPEC_DATALABEL.
6592         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6593         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6594         (DATALABEL_REF_P): Don't require CONST.
6595         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6596         REL label.
6597         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6598         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6599         right.
6600         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6601         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6602         Use shallow_copy_rtx and PUT_MODE to change the mode of
6603         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6604         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6605         on SHmedia using GENERAL_REGs.
6606         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6607         bltu_media_i): Fix reversion of conditions.
6608         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6609         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6610         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6611         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6612         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6613         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6614         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6615         (GCC_nested_trampoline): Likewise.
6616         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6617         * config/sh/sh.c (gen_datalabel_ref): Define.
6618         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6619         (INITIALIZE_TRAMPOLINE): Likewise.
6620         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6621         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6622         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6623         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6624         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6625         (ic_invalidate): Adjust for SH5.
6626         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6627         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6628         _nested_trampoline.
6629         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6630         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6631         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6632         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6633         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6634         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6635         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6636         * config/sh/sh.c (target_reg_operand): Match only target-branch
6637         registers and pseudos that aren't virtual registers.
6638         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6639         Copy operands that don't match target_reg_operand to pseudos.
6640         (call_media, call_value_media, sibcall_media): Use
6641         target_reg_operand instead of target_operand.
6642         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6643         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6644         * config/sh/sh.c (target_reg_operand): Match hardware registers
6645         other than branch-target registers.
6646         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6647         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6648         (fpscr_values) [SH5 == 32]: Define.
6649         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6650         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6651         Handle function addresses coming in SUBREGs.
6652         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6653         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6654         shcompact_return_trampoline): Use datalabel where appropriate.
6655         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6656         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6657         general-purpose register to copy one branch-target register to
6658         another.
6659         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6660         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6661         SYMBOL_REFs with VOIDmode.
6662         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6663         bltu_media_i): New insns.
6664         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6665         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6666         (INIT_CUMULATIVE_ARGS): Likewise.
6667         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6668         * machmode.def (V16SFmode): New mode.
6669         * c-common.c (type_for_mode): Support V2SF and V16SF.
6670         * tree.c (build_common_tree_nodes_2): Likewise.
6671         * tree.h (tree_index): Likewise.
6672         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6673         callers.  Introduce CALL_POPS_ARGS.
6674         * tm.texi (CALL_POPS_ARGS): Document.
6675         * config/sh/crt1.asm: Implement in SHmedia mode.
6676         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6677         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6678         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6679         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6680         Implement divsi and udivsi in SHmedia mode.  Introduce
6681         SHcompact trampolines.
6682         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6683         only in SHmedia64.
6684         (regno_reg_class): Rewrite.
6685         (fp_reg_names): Remove.
6686         (sh_register_names, sh_additional_register_names): New.
6687         (print_operand): Added `u'.  Support SUBREGs in addresses.
6688         Add parentheses around shifted CONSTs.
6689         (output_file_start): Output .mode and .abi directives.
6690         (shiftcosts, addsubcosts, multcosts): Adjust.
6691         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6692         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6693         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6694         bytes, not registers.  Take into account the need for the
6695         SHcompact incoming args trampoline.  Adjust all callers.
6696         (sh_expand_prologue): Take stack_regs into account.  Call
6697         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6698         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6699         stack aligned as per SH5 ABI.
6700         (sh_builtin_saveregs): Support SH5 ABI.
6701         (sh_build_va_list, sh_va_start): Likewise.
6702         (initial_elimination_offset): Take alignment into account.
6703         Compute location of PR according to the SH5 stack frame.
6704         (arith_reg_operand): Reject branch-target registers.
6705         (shmedia_6bit_operand): New.
6706         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6707         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6708         (target_operand): New.
6709         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6710         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6711         SIBCALL_REGS for SHmedia.
6712         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6713         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6714         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6715         (TARGET_SWITCHES): New SH5 flags.
6716         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6717         VALID_REGISTER_P to disable unsupported registers.
6718         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6719         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6720         (FUNCTION_ARG_PADDING): Define.
6721         (FASTEST_ALIGNMENT): Adjust.
6722         (SH_REGISTER_NAMES_INITIALIZER): New.
6723         (sh_register_names): Declare.
6724         (DEBUG_REGISTER_NAMES): Define.
6725         (REGISTER_NAMES): Define based on sh_register_names.
6726         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6727         (sh_additional_register_names): Declare.
6728         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6729         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6730         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6731         (REGISTER_NATURAL_MODE): Define.
6732         (FIRST_PSEUDO_REGISTER): Adjust.
6733         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6734         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6735         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6736         (VECTOR_MODE_SUPPORTED_P): Define.
6737         (REG_CLASS_CONTENTS): Adjust.
6738         (SMALL_REGISTER_CLASSES): Adjust.
6739         (REG_ALLOC_ORDER): Adjust.
6740         (INDEX_REG_CLASS): Adjust.
6741         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6742         (CONST_OK_FOR_LETTER_P): Adjust.
6743         (PREFERRED_RELOAD_CLASS): Adjust.
6744         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6745         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6746         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6747         (FIRST_FP_PARM_REG): Adjust.
6748         (CALL_POPS_ARGS): Define.
6749         (FUNCTION_ARG_REGNO_P): Adjust.
6750         (struct sh_args): New fields.
6751         (GET_SH_ARG_CLASS): Adjust.
6752         (INIT_CUMULATIVE_ARGS): Adjust.
6753         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6754         (FUNCTION_ARG_ADVANCE): Adjust.
6755         (FUNCTION_ARG): Adjust.
6756         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6757         (FUNCTION_ARG_CALLEE_COPIES): Define.
6758         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6759         (STRICT_ARGUMENT_NAMING): Define.
6760         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6761         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6762         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6763         (SETUP_INCOMING_VARARGS): Adjust.
6764         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6765         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6766         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6767         (SUBREG_OK_FOR_INDEX_P): Adjust.
6768         (EXTRA_CONSTRAINT_S): Update.
6769         (EXTRA_CONSTRAINT_T): New.
6770         (EXTRA_CONSTRAINT): Adjust.
6771         (GO_IF_LEGITIMATE_INDEX): Adjust.
6772         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6773         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6774         (MOVE_MAX): Adjust.
6775         (MAX_MOVE_MAX): Define.
6776         (Pmode): Adjust.
6777         (CONST_COSTS): Adjust.
6778         (REGISTER_MOVE_COST): Adjust.
6779         (BRANCH_COST): Adjust.
6780         (TEXT_SECTION_ASM_OP): Adjust.
6781         (DBX_REGISTER_NUMBER): Adjust.
6782         (ASM_OUTPUT_DOUBLE_INT): New.
6783         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6784         (PREDICATE_CODES): Adjust.
6785         (PROMOTE_MODE): Adjust.
6786         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6787         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6788         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6789         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6790         (DR0_REG, DR2_REG, DR4_REG): Renumber.
6791         (TR0_REG, TR1_REG, TR2_REG): New.
6792         (XD0_REG): Renumber.
6793         (UNSPEC_COMPACT_ARGS): New.
6794         (type): Added pt and ptabs.
6795         (length): Default to 4 on SHmedia.  Default pt length to 12
6796         and     20 on SHmedia32 and SHmedia64, respectively.
6797         (pt): New function unit.
6798         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
6799         Add whitespace between operands of SHmedia instructions.
6800         (movdicc): Fix.
6801         (adddi3_media, addsi3_media): Adjust constraints.
6802         (subsi3) [SHmedia]: Force operand 1 into a register.
6803         (udivsi3_i1_media, udivsi3_i4_media): New.
6804         (udivsi3): Support SHmedia.
6805         (divsi3_i1_media, divsi3_i4_media): New.
6806         (divsi3): Support SHmedia.
6807         (anddi3, iordi3, xordi3): Adjust constraints.
6808         (zero_extendhidi2, zero_extendqidi2): New.
6809         (extendsidi2, extendhidi2, extendqidi2): New.
6810         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6811         (pop_e, pop_fpul, pop_4): Likewise.
6812         (movsi_media): Support FP and BT registers.
6813         (movsi_media_nofpu): New.  Adjust splits to DImode.
6814         (lduw, ldub): Renamed to zero_extend* above.
6815         (movqi_media): Fix typo.
6816         (movdi_media): Support FP and BT registers.
6817         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
6818         (movdi_const_32bit): New.
6819         (shori_media): Require immediate operand.  Use `u' for output.
6820         (movdf_media, movsf_media): Simplified.
6821         (movdf_media_nofpu, movsf_media_nofpu): New.
6822         (movdf, movsf): Adjust
6823         (movv2sf, movv2sf, movv16sf): New.
6824         (beq_media, beq_media_i): Adjust constraints.  Don't use
6825         scratch BT register.
6826         (bne_media, bne_media_i): Likewise.
6827         (bgt_media, bgt_media_i): Likewise.
6828         (bge_media, bge_media_i): Likewise.
6829         (bgtu_media, bgtu_media_i): Likewise.
6830         (bgeu_media, bgeu_media_i): Likewise.
6831         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6832         bunordered): Emit jump insn.  Force operands to registers when
6833         needed.
6834         (jump_media, jump): Simplify.
6835         (call_compact, call_compact_rettramp): New.
6836         (call_value_compact, call_value_compact_rettramp): New.
6837         (call_media, call_value_media): Simplify.
6838         (sibcall_compact, sibcall_media): New.
6839         (call, call_value): Adjust for SHmedia and SHcompact.
6840         (sibcall, sibcall_value, untyped_call): Likewise.
6841         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6842         (indirect_jump): Adjust for SHmedia.
6843         (casesi_jump_media): New.
6844         (nop): Re-enable for SHmedia.
6845         (call_site): Restrict to SH1.
6846         (casesi): Adjust for SHmedia.
6847         (casesi_shift_media, casesi_load_media): New.
6848         (return): Explicitly use PR register.  Call return trampoline
6849         on SHcompact.
6850         (return_i): Explicitly use PR register.
6851         (shcompact_return_tramp, shcompact_return_tramp_i): New.
6852         (return_media): Adjust.
6853         (shcompact_incoming_args): New.
6854         (epilogue): Adjust.
6855         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6856         (movstrsi): Disable on SH5.
6857         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6858         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6859         (subsf3, subsf3_media): Likewise.
6860         (mulsf3, mulsf3_media, mac_media): Likewise.
6861         (divsf3, divsf3_media): Likewise.
6862         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
6863         (floatsisf2, fux_truncsfsi2): Likewise.
6864         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
6865         constraints.
6866         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6867         (cmpunsf_media, cmpsf): Likewise.
6868         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6869         (abssf2, abssf2_media): Likewise.
6870         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6871         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6872         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
6873         (floatsidf2, fix_truncdfsi2): Likewise.
6874         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
6875         constraints.
6876         (cmpeqdf_media, cmpgtdf_media): Likewise.
6877         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6878         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6879         (absdf2, absdf2_media): Likewise.
6880         (extendsfdf2, extendsfdf2_media): Likewise.
6881         (truncsfdf2, truncsfdf2_media): Likewise.
6882         * config/sh/sh64.h: New file.
6883         * config/sh/t-sh64: New file.
6884         * config/sh/shmedia.h: New file.
6885         * config/sh/ushmedia.h: New file.
6886         * config/sh/sshmedia.h: New file.
6887         * configure.in: Added sh64-*-elf.
6888         * configure: Rebuilt.
6889         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
6890         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6891         (reg_class_from_letter): Use `b' for TARGET_REGS.
6892         (print_operand): Support `%M', `%m', `AND' and
6893         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
6894         (andcosts): Adjust for SHmedia.
6895         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6896         Likewise.
6897         (target_reg_operand): New function.
6898         * config/sh/sh-protos.h (target_reg_operand): Declare.
6899         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6900         FP registers on SH5.
6901         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6902         on SH4.
6903         (TARGET_REGISTER_P): New macro.
6904         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6905         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6906         (EXTRA_CONSTRAINT_S): New macro.
6907         (EXTRA_CONSTRAINT): Adjust.
6908         (FLOAT_TYPE_SIZE): Define to 32.
6909         (Pmode): DImode on SHmedia.
6910         (CONST_COSTS): Adjust for SHmedia literals.
6911         (PREDICATE_CODES): Added target_reg_operand.
6912         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6913         * config/sh/sh.md: Remove all attrs from SHmedia insns.
6914         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6915         (cmpdi): Accept SHmedia.
6916         (movdicc_false, movdicc_true): New insns.
6917         (movdicc): New expand.
6918         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6919         no_new_pseudos.
6920         (addsi3_media): Match `S' constraint.
6921         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6922         (negdi2): Expand for SHmedia.
6923         (one_cmpldi2): New expand.
6924         (zero_extendsidi2): Change from expand to insn.
6925         (extendsidi2): Add constraints.
6926         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
6927         LD/ST address.  Fix SI immediate loading split.
6928         (movhi_media, movqi_media, lduw, ldub): New insns.
6929         (movhi, movqi): Accept SHmedia.
6930         (shori_media, movdi_media): Relax input constraints.  Split
6931         symbolic constants.
6932         (movdf_media, movsf_media): New insn.  New split to movdi.
6933         (movdf, movsf): Match on SHmedia.
6934         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6935         bgeu_media): New insns and splits.  New insns with `_i' suffix.
6936         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6937         (bunordered): New expand.
6938         (jump_compact): Renamed from `jump'.
6939         (jump_media): New insn.
6940         (jump): New expand.
6941         (call_media, call_value_media): New insns.
6942         (call, call_value): Adjust.
6943         (indirect_jump_compact): Renamed from `indirect_jump'.
6944         (indirect_jump_media): New insn.
6945         (indirect_jump): New expand.
6946         (untyped_call, return): Accept SHmedia.
6947         (return_media): New insn.
6948         (prologue, epilogue, blockage): Accept SHmedia.
6949         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6950         (sunordered): New expand.
6951         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6952         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6953         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6954         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6955         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6956         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6957         abssf2_media): New insns.
6958         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6959         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6960         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6961         floatdidf2, floatsidf2_media, fix_truncdfdi2,
6962         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6963         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6964         absdf2_media): New insns.
6965         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6966         (extendsfdf2_media, truncdfsf2_media): New insns.
6967         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
6968         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6969         * config/sh/sh.h (CONST_OK_FOR_J): Document.
6970         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6971         * config/sh/sh.md (adddi3): New expand.
6972         (adddi3_media, adddi3z_media): New insns.
6973         (adddi3_compact): Renamed from adddi3.
6974         (addsi3_media): Use add.l r63 to add constant zero.
6975         (subdi3): New expand.
6976         (subdi3_media): New insn.
6977         (subdi3_compact): Renamed from subdi3.
6978         (mulsidi3): New expand.
6979         (mulsidi3_media): New insn.
6980         (mulsidi3_compact): Renamed from mulsidi3.
6981         (umulsidi3): New expand.
6982         (umulsidi3_media): New insn.
6983         (umulsidi3_compact): Renamed from umulsidi3.
6984         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6985         (ashlsi3, ashrsi3, lshrsi3): Use them.
6986         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6987         (ashldi3, ashrdi3, lshrdi3): Use them.
6988         (zero_extendsidi2): New expand.
6989         (extendsidi2): New insn.
6990         (movsi_media): New insn.  Split to movdi to load constants.
6991         (movsi): Enable for shmedia.
6992         (movdi_media): New insn.  Use shori_media to load wide constants.
6993         (short_media): New insn.
6994         (movdi): Enable for shmedia.
6995         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
6996         * config/sh/sh.h (CPP_SPEC): Added `m5'.
6997         (SUBTARGET_CPP_SPEC): Added `!m5'.
6998         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6999         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7000         to all other SH variants.
7001         (TARGET_DEFAULT): Set to SH1_BIT.
7002         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7003         (BITS_PER_WORD): Raise to 64 on shmedia.
7004         (MAX_BITS_PER_WORD): Change to 64.
7005         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7006         (INT_TYPE_SIZE): Keep as 32.
7007         (UNITS_PER_WORD): Raise to 8 on shmedia.
7008         (MIN_UNITS_PER_WORD): Keep as 4.
7009         (POINTER_SIZE): Raise to 64 on shmedia.
7010         (CONST_OK_FOR_J): New macro.
7011         (CONST_OK_FOR_LETTER_P): Use it.
7012         (processor_type): Add PROCESSOR_SH5.
7013         * config/sh/sh.md: Conditionalize all expands, insns and
7014         splits to TARGET_SH1.
7015         (cpu): Added sh5.
7016         (addsi3_compact): Renamed from...
7017         (addsi3): Now an expand.
7018         (addsi3_media, subsi3_media): New insns.
7019         (subsi3): Don't negate constants with SHmedia.
7020
7021         * hooks.c: New file.
7022         * hooks.h: New file.
7023         * Makefile.in (HOOKS_H): New.
7024         (TARGET_DEF_H): Added $(HOOKS_H).
7025         (OBJS): Added hooks.o.
7026         (cfgcleanup.o, bb-reorder.o): Added target.h.
7027         (hooks.o): Added dependencies.
7028         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7029         (TARGET_INITIALIZER): this.
7030         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7031         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7032         * bb-reorder.c: Include target.h.
7033         (reorder_basic_blocks): Skip if cannot modify jumps.
7034         * cfgcleanup.c: Include target.h.
7035         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7036
7037 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7038
7039         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7040         Protect jump delay slot instructions with .set noreorder and
7041         .set nomacro.
7042
7043 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7044
7045         * config/mips/mips.md (casesi_internal_di): Calculate
7046         the index into the target offset table correctly.
7047
7048 2002-02-08  Richard Henderson  <rth@redhat.com>
7049
7050         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7051         * final.c (output_addr_const): Accept and discard SUBREG.
7052         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7053         mark them unknown instead.
7054         (simplify_subtraction): Handle RTX_UNKNOWN.
7055         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7056
7057 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7058
7059         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7060
7061 2002-02-08  Richard Henderson  <rth@redhat.com>
7062
7063         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7064
7065 2002-02-08  Andreas Jaeger  <aj@suse.de>
7066
7067         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7068         * config/i386/t-linux64: New file.
7069
7070 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7071
7072         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7073         * c-parse.in (compstmt): Clear last_expr_type.
7074
7075 2002-02-07  Richard Henderson  <rth@redhat.com>
7076
7077         * loop.c (strength_reduce): Sink final_value when not
7078         eliminating a biv.
7079
7080 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7081
7082         * config/sparc/freebsd.h: Fix mismatched spec {.
7083
7084 2002-02-07  Richard Henderson  <rth@redhat.com>
7085
7086         * cfgrtl.c: Include recog.h and insn-config.h.
7087         (keep_with_call_p): Fix general_operand invocation.
7088         * Makefile.in (cfgrtl.o): Update dependencies.
7089
7090 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7091
7092         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7093         comment.  Accept HImode only if TARGET_H8300.
7094
7095 2002-02-07  Eric Christopher  <echristo@redhat.com>
7096
7097         * config/mips/crtn.asm: Cleanup #ifdefs.
7098
7099 2002-02-07  Eric Christopher  <echristo@redhat.com>
7100
7101         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7102         register 7 as RA instead of $31.
7103         * config/mips/crtn.asm: Ditto.
7104         * config/mips/mips.c (mips_move_2words): Add case for
7105         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7106         (compute_frame_size): Fix typo.
7107         (save_restore_insns): Ditto.  Make documentation about using
7108         register $7 as return register more precise.
7109         (mips_expand_epilogue): Fix comment. Add code to work around not
7110         being able to add to the stack pointer directly.
7111         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7112         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7113         epilogue.
7114
7115 2002-02-07  Tom Rix  <trix@redhat.com>
7116
7117         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7118         immediates in ldu and stdu DS opcode field.
7119         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7120         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7121         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7122
7123 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7124
7125         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7126         offset for stack bias.
7127
7128 2002-02-07  H.J. Lu <hjl@gnu.org>
7129
7130         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7131
7132 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7133
7134         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7135
7136 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7137
7138         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7139         * i386.c (x86_order_regs_for_local_alloc): New global function.
7140         * i386.h (REG_ALLOC_ORDER): CLeanup.
7141         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7142
7143 2002-02-07  Richard Henderson  <rth@redhat.com>
7144
7145         PR optimization/2463
7146         * alias.c (find_base_value): Recall base values for fixed hard regs.
7147         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7148
7149 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7150
7151         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7152         length.
7153
7154 2002-02-06  Richard Henderson  <rth@redhat.com>
7155
7156         PR c/5609
7157         * stmt.c (resolve_operand_name_1): Take more care with mixed
7158         named and unnamed operands.
7159
7160 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7161             Jan Hubicka  <jh@suse.cz>
7162
7163         * loop.c (remove_constant_addition): Avoid clobbering a shared
7164         CONST expression.
7165
7166 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7167
7168         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7169         * config/s390/t-linux64: New file.
7170         * config/s390/libgcc-glibc.ver: New file.
7171
7172 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7173
7174         * config/s390/linux64.h: Delete file.
7175         * config/s390/s390x.h: New file.
7176         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7177         as target header file.
7178         * config/s390/linux.h (TARGET_VERSION): Define depending on
7179         DEFAULT_TARGET_64BIT.
7180         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7181         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7182         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7183         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7184         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7185         (EXTRA_SPEC): New define.
7186         * config/s390/s390.h (TARGET_VERSION): Define depending on
7187         DEFAULT_TARGET_64BIT.
7188         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7189
7190 2002-02-06  Jason Merrill  <jason@redhat.com>
7191
7192         * c-decl.c (finish_function): Warn about a non-void function with
7193         no return statement and no abnormal exit.
7194         (current_function_returns_abnormally): New variable.
7195         (start_function): Clear it.
7196         (struct c_language_function): Add returns_abnormally.
7197         (push_c_function_context): Save it.
7198         (pop_c_function_context): Restore it.
7199         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7200         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7201         an explicit return type.
7202         * c-tree.h: Declare current_function_returns_abnormally.
7203         (C_FUNCTION_IMPLICIT_INT): New macro.
7204         * c-typeck.c (build_function_call): Set it.
7205         (c_expand_return): Set current_function_returns_value even if the
7206         value is erroneous.
7207
7208 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7209
7210         PR c/5420:
7211         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7212         unsafe for reevaluation.
7213
7214 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7215
7216         PR c/5482:
7217         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7218         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7219
7220 2002-02-06  Richard Henderson  <rth@redhat.com>
7221
7222         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7223         be a general_operand.  Dest for function value must be a pseudo.
7224
7225 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7226
7227         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7228         as SYMBOL_REFs from the constant pool.
7229
7230 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7231
7232         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7233         passed by invisible reference.
7234
7235 2002-02-05  Richard Henderson  <rth@redhat.com>
7236
7237         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7238
7239 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7240
7241         Implement using "base addresses" in insn operands as default.
7242         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7243         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7244         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7245         used to read the rtx value.
7246         (mmix_target_asm_function_epilogue): Fix spacing.
7247         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7248         (mmix_legitimate_address): Ditto.
7249         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7250         should be loaded with a GETA insn.  Don't allocate needless extra
7251         char for nul termination and fix misleading comment.
7252         (mmix_print_operand_address): Handle constants if
7253         TARGET_BASE_ADDRESSES.
7254         (mmix_output_register_setting): Use base addressing if
7255         TARGET_BASE_ADDRESSES and the number of insns is 3.
7256         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7257         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7258         to use R as constraint, add LDA to match s.
7259         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7260         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7261         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7262         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7263         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7264         order with other fixed registers.
7265         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7266         other parameter/call-clobbered registers.
7267         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7268         -mbase-addresses, -mno-base-addresses.
7269         (MMIX Options): Ditto.
7270
7271 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7272
7273         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7274
7275 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7276
7277         * config/rs6000/altivec.h: Change elem to _S_elem.
7278
7279 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7280
7281         * config/netbsd.h (WCHAR_TYPE): Define.
7282         (WCHAR_TYPE_SIZE): Ditto.
7283         (WINT_TYPE): Ditto.
7284         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7285         (WCHAR_UNSIGNED): Ditto.
7286         (WCHAR_TYPE_SIZE): Ditto.
7287         (WINT_TYPE): Ditto.
7288         * config/arm/netbsd.h: Likewise.
7289         * config/i386/netbsd-elf.h: Likewise.
7290         * config/i386/netbsd.h: Likewise.
7291         * config/m68k/netbsd-elf.h: Likewise.
7292         * config/m68k/netbsd.h: Likewise.
7293         * config/ns32k/netbsd.h: Likewise.
7294         * config/sparc/netbsd.h: Likewise.
7295         * config/vax/netbsd.: Likewise.
7296
7297 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7298
7299         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7300         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7301         (TARGET_INITIALIZER): this.
7302         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7303         (BITFIELD_NBYTES_LIMITED): Markup fix.
7304         * tree.h (default_ms_bitfield_layout_p): Declare.
7305         (record_layout_info): Added prev_field.
7306         * tree.c (default_ms_bitfield_layout_p): New fn.
7307         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7308         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7309         * stor-layout.c: Include target.h.
7310         (start_record_layout): Initialize prev_field.
7311         (place_field): Handle MS bit-field layout, and disregard
7312         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7313         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7314         * Makefile.in (stor-layout.o): Adjust dependencies.
7315
7316 2002-02-05  Jason Merrill  <jason@redhat.com>
7317
7318         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7319
7320 2002-02-05  Andreas Jaeger  <aj@suse.de>
7321
7322         * crtstuff.c: Fix comments.
7323
7324 2002-02-05  Richard Henderson  <rth@redhat.com>
7325
7326         PR fortran/3393
7327         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7328         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7329
7330         PR fortran/3392
7331         * config/mips/mips.c (function_arg): Handle TImode.
7332         (function_arg_advance): Likewise.
7333
7334 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7335
7336         * config/rs6000/altivec.h (vec_step_help): Rename to
7337         __vec_step_help.
7338
7339 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7340
7341         * config/rs6000/altivec.h: Fix typos.
7342
7343 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7344
7345         * config/arm/netbsd.h: Correct a comment.
7346
7347 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7348
7349         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7350         building void typed builtins.
7351
7352         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7353         (vec_step): Implement for C++.
7354
7355 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7356
7357         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7358
7359 2002-02-04  Richard Henderson  <rth@redhat.com>
7360
7361         * combine.c (nonzero_bits): Re-introduce special case for
7362         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7363
7364 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7365
7366         * doc/extend.texi: Warn about unsupported usage of altivec
7367         builtins.
7368
7369         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7370         (altivec_predicate_*): New.
7371
7372         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7373         Add C++ version of vec_*() functions.
7374
7375         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7376         (bdesc_2arg): Remove altivec predicates.
7377         (altivec_expand_builtin): Handle predicates.
7378         (altivec_init_builtins): Handle predicates.
7379         (altivec_expand_predicate_builtin): New.
7380
7381 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7382
7383         * pa.c (DO_FRAME_NOTES): Move forward.
7384         (store_reg): Revise handling of frame notes.
7385         (load_reg): Likewise.
7386         (set_reg_plus_d): Likewise.
7387         (hppa_expand_prologue): Likewise.
7388         (hppa_expand_epilogue): Likewise.
7389
7390 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7391
7392         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7393
7394 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7395
7396         PR c/4475, c++/3780:
7397         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7398         * c-common.h (SWITCH_TYPE): Define.
7399         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7400         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7401         Rename spareness variable to sparseness.
7402         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7403         if non-NULL instead of TREE_TYPE (orig_index).
7404         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7405         (expand_end_case): Define using expand_end_case_type.
7406         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7407         to expand_end_case_type.
7408         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7409
7410 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7411
7412         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7413         (BIGGEST_ALIGNMENT): Change to 128.
7414
7415 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7416
7417         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7418
7419 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7420
7421         * pa.md (call_internal_reg_64bit): Remove unused variable.
7422
7423 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7424
7425         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7426         field.
7427         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7428         * config/arm/arm.c (current_function_anonymous_args): Delete,
7429         replace uses with cfun->machine->uses_anonymous_args.
7430         (arm_reorg): Do not reset uses_anonymous_args.
7431
7432         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7433         any geenral register.
7434
7435 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7436
7437         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7438         the entry block.
7439
7440 2002-02-04  Richard Henderson  <rth@redhat.com>
7441
7442         * combine.c (force_to_mode): Remove STACK_BIAS code.
7443         (nonzero_bits): Likewise.  Replace sp/fp special case with
7444         REGNO_POINTER_ALIGN.
7445
7446         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7447         (HARD_FRAME_POINTER_REGNUM): New.
7448         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7449         (FIXED_REGS, CALL_USED_REGS): Update.
7450         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7451         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7452         (HARD_REGNO_NREGS): Update for SFP.
7453         (STACK_POINTER_OFFSET): Include bias here ...
7454         (FIRST_PARM_OFFSET): ... not here.
7455         (STACK_BIAS): Remove.
7456         (INIT_EXPANDERS): New.
7457         (STARTING_FRAME_OFFSET): Do not include bias.
7458         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7459         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7460         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7461         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7462         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7463         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7464         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7465         (MUST_SAVE_REGISTER): Likewise.
7466         (sparc_flat_function_prologue): Likewise.
7467         (sparc_flat_function_epilogue): Likewise.
7468         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7469         (sparc_init_modes): SFP is GENERAL_REGS.
7470         (sparc_builtin_saveregs): SFP does not have bias applied.
7471
7472 2002-02-04  Richard Henderson  <rth@redhat.com>
7473
7474         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7475         current_function_is_thunk.
7476         (alpha_sa_mask): Distinguish between current_function_is_thunk
7477         called from ASM_OUTPUT_MI_THUNK and not.
7478         (alpha_does_function_need_gp): Thunks always need gp.
7479         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7480         (alpha_output_mi_thunk_osf): New.
7481         * config/alpha/alpha-protos.h: Update.
7482         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7483
7484 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7485
7486         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7487         function types, not when they're taken away.
7488
7489 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7490
7491         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7492         CODE_LABEL and jump table when replacing a table jump with a
7493         simple jump.
7494
7495 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7496
7497         * config/s390/s390-protos.h (legitimize_la_operand,
7498         s390_secondary_input_reload_class, s390_plus_operand,
7499         s390_expand_plus_operand): Add prototypes.
7500
7501         config/s390/s390.c (s390_secondary_input_reload_class,
7502         s390_plus_operand, s390_expand_plus_operand): New functions.
7503
7504         (struct s390_address): New member 'pointer'.
7505         (s390_decompose_address): Compute it.
7506         (legitimate_la_operand_p): Use it.
7507         (legitimize_la_operand): New function.
7508         (movti, movdi, movdf splitters): Call it.
7509
7510         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7511         (PREDICATE_CODES): Add s390_plus_operand.
7512
7513         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7514         (la_ccclobber): Allow GENERAL_REGS as output operand.
7515
7516         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7517         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7518         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7519
7520 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7521
7522         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7523         register names for regular asm () construct.
7524
7525 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7526
7527         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7528         registers.
7529
7530 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7531
7532         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7533         pat for recog.
7534
7535 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7536
7537         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7538         constant pool to be identical by string address and index.
7539
7540 2002-02-04  Anthony Green  <green@redhat.com>
7541
7542         * output.h (SECTION_OVERRIDE): Define.
7543         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7544
7545 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7546
7547         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7548         by existing arm*-*-netbsd* (a.out) target.
7549         (ns32k-*-netbsdelf*): Likewise.
7550         (sparc-*-netbsdelf*): Likewise.
7551         (vax-*-netbsdelf*): Likewise.
7552
7553 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7554
7555         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7556         headers and libobjc headers.
7557
7558 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7559
7560         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7561         (_mingw.h): Remove duplicate include.
7562
7563 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7564
7565         * config.gcc: Set cpu_type to m68k for 68010, as well.
7566         (m68010-*-netbsdelf*): New...
7567         (m68k*-*-netbsdelf*): ...targets.
7568         * config/m68k/netbsd-elf.h: New file.
7569
7570 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7571
7572         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7573
7574 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7575
7576         * config/h8300/h8300.c (h8_push_ops): Move inside
7577         h8300_init_once.
7578         (h8_pop_ops): Likewise.
7579         (h8_move_ops): Likewise.
7580
7581 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7582
7583         * config/h8300/h8300.c (os_task): Make it static.
7584         (monitor): Likewise.
7585         (pragma_saveall): Likewise.
7586
7587 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7588
7589         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7590         constant is a valid sign-extension for Pmode.
7591
7592 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7593
7594         * config/h8300/h8300.c: Fix formatting.
7595
7596 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7597
7598         * config/h8300/h8300.md: Fix formatting.
7599
7600 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7601
7602         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7603         predicates of operands[1].  Split the patterns for each
7604         processor variant.
7605
7606 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7607
7608         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7609         of operands[1] to register_operand.
7610
7611 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7612
7613         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7614         * cpphash.c (_cpp_init_hashtable): Similarly.
7615         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7616         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7617         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7618         (cpp_handle_option): Handle the new options.
7619         * cpplex.c (cpp_interpret_charconst): Use new flag.
7620         * cpplib.h (struct cpp_options): New member signed_char.
7621         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7622         (cpp_options): Handle -fsigned-char and -funsigned-char.
7623         (static_specs): Remove signed_char_spec.
7624         (do_spec1): Don't handle %c.
7625         * system.h: Poison SIGNED_CHAR_SPEC.
7626         * tradcif.y (yylex): Use flag_signed_char.
7627         * tradcpp.h (flag_signed_char): New.
7628         * tradcpp.c (flag_signed_char): New.
7629         (main): Handle new command-line options.
7630         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7631 config:
7632         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7633         * avr/avr.h: Remove old comments.
7634         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7635         (CC1_SPEC): Pass -fsigned-char if -mic*.
7636         (SIGNED_CHAR_SPEC): Remove.
7637 doc:
7638         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7639
7640 2002-02-01  Eric Christopher  <echristo@redhat.com>
7641
7642         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7643         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7644         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7645         (ASM_OUTPUT_REG_POP): Ditto.
7646
7647 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7648
7649         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7650         patch.
7651
7652 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7653
7654         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7655
7656 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7657
7658         PR c/5304:
7659         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7660         unconditionally.
7661
7662 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7663
7664         * cfganal.c: Include tm_p.h.
7665         (keep_with_call_p): Fix the test that determines if a register holds
7666         the return value of a call.
7667
7668 2002-02-01  DJ Delorie  <dj@redhat.com>
7669
7670         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7671         we are given conflicting registers, switch to the other one we
7672         had allocated for us.
7673         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7674         as TImode so we know when the "other" register is available.
7675
7676 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7677
7678         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7679         sparc/sparc_bi.h.
7680
7681 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7682
7683         * cfganal.c (keep_with_call_p): New function.
7684         (flow_call_edges_add): Prevent splitting a block between a call and
7685         a single-set instruction that should be kept in the same block.
7686
7687 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7688
7689         * doc/install.texi (avr): Update outdated URL.
7690
7691 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7692
7693         * config/stormy16/stormy16.md (pushqi): New.
7694         (popqi): New.
7695         (pushhi): New.
7696         (pophi): New.
7697         (movhi): Remove stack operands.
7698         (movqi): Likewise.
7699         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7700         nonimmediate_nonstack_operand.
7701         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7702         New.
7703         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7704         New.
7705
7706 2002-01-31  Jason Merrill  <jason@redhat.com>
7707
7708         * Makefile.in (c-parse.c): Handle .output file.
7709         * objc/Make-lang.in (objc-parse.c): Likewise.
7710
7711 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7712
7713         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7714         the -me[lb] option is given.  Don't output the default flag
7715         twice.
7716
7717 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7718
7719         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7720         the primary source file; this has not been done yet.
7721         * c-decl.c (c_expand_body): Reset input_filename from
7722         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7723
7724 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7725
7726         * rtlanal.c (subreg_regno_offset): Do not use
7727         SUBREG_REGNO_OFFSET.
7728         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7729         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7730
7731 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7732
7733         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7734         version rather than GNATS version in --version output.
7735
7736 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7737
7738         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7739         when copying back from a temporary.
7740
7741 2002-01-30  Richard Henderson  <rth@redhat.com>
7742
7743         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7744         and new_dest are the same.
7745
7746 2002-01-30  Richard Henderson  <rth@redhat.com>
7747
7748         PR opt/5076
7749         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7750         * rtl.c (note_insn_name): Update.
7751         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7752         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7753         to perform loop rotation.
7754         (expand_exit_loop_top_cond): New.
7755         * tree.h (expand_exit_loop_top_cond): Declare it.
7756         * c-semantics.c (genrtl_while_stmt): Use it.
7757         (genrtl_for_stmt): Likewise.
7758
7759 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7760
7761         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7762         arguments to 64-bit boundaries on 64-bit ABIs.
7763
7764 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7765
7766         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7767
7768 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7769
7770         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7771         invalid type.
7772
7773 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7774
7775         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7776         * config/sparc/sparc_bi.h: Remove file.
7777         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7778
7779 2002-01-30  Richard Henderson  <rth@redhat.com>
7780
7781         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7782
7783 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7784
7785         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7786
7787 2002-01-30  Jason Merrill  <jason@redhat.com>
7788
7789         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7790         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7791         (reg_save): Use DW_CFA_offset_extended_sf instead.
7792
7793         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7794
7795 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7796
7797         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7798         in cselib_lookup.
7799
7800 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
7801
7802         * rs6000.md ("*call_value_local32"): Remove constraints.
7803         ("*call_value_local64"): Same.
7804         ("*call_value_indirect_nonlocal_aix32"): Same.
7805         ("*call_value_nonlocal_aix32"): Same.
7806         ("*call_value_indirect_nonlocal_aix64"): Same.
7807         ("*call_value_nonlocal_aix64"): Same.
7808         ("*call_value_nonlocal_sysv"): Same.
7809
7810 2002-01-29  Richard Henderson  <rth@redhat.com>
7811
7812         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7813
7814 2002-01-29  Richard Henderson  <rth@redhat.com>
7815
7816         * expr.c (force_operand): Ignore flag_pic for detecting pic
7817         address loads.
7818         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7819         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7820         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7821         instead of open-coded loop.
7822         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7823         be fixed when in use.
7824
7825 2002-01-29  Richard Henderson  <rth@redhat.com>
7826
7827         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7828         * sched-rgn.c (propagate_deps): Update them.
7829         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
7830         clobbers list when either gets too long.
7831
7832 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7833
7834         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7835         and INDEX_REGS the same as GENERAL_REGS.
7836         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7837
7838 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7839
7840         * tree.c (build_nonstandard_integer_type): Correct prototype.
7841
7842 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
7843
7844         * config/s390/s390.md (movstrsico, movstrdix_64,
7845         movstrsix_31): Remove, replace by ...
7846         (movstrdi_short, movstrsi_short, movstrdi_long,
7847         movstrsi_long): ... these.  New.
7848         (movstrdi, movstrsi): Adapt.
7849
7850         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7851         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7852         Remove unnecessary CC clobber.
7853         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7854         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7855
7856         (divmoddi4): Don't partially initialize TImode register.
7857
7858 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
7859
7860         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7861
7862 2002-01-29  Richard Henderson  <rth@redhat.com>
7863
7864         * flow.c (print_rtl_and_abort): Remove.
7865         (print_rtl_and_abort_fcn): Remove.
7866         (verify_local_live_at_start): Use dump_bb instead.
7867         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7868         (verify_wide_reg_1): Return 2 on mode test failure.
7869
7870 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7871
7872         PR c/3325, c/3326, c/2511, c/3347
7873         * c-decl.c (enum_decl_context): Remove BITFIELD.
7874         (grokdeclarator): Take bitfield width as an input.
7875         Ensure bitfields are given the correct type.  Perform
7876         bitfield width validation with build_bitfield_integer_type
7877         rather than waiting for finish_struct.
7878         (grok_typename, grok_typename_in_parm_context, start_decl,
7879         push_parmdecl, grokfield, start_function): Update calls to
7880         grokdeclarator.
7881         (build_bitfield_integer_type): New function.
7882         (finish_struct): Move bitfield validation to grokdeclarator
7883         and build_bitfield_integer_type.
7884         * tree.c (build_nonstandard_integer_type): New function.
7885         * tree.h (build_nonstandard_integer_type): New prototype.
7886 objc:
7887         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7888
7889 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7890
7891         PR other/1502:
7892         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7893         don't ignore unrecognized -W* options.
7894         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7895         * cpplib.h (cpp_handle_option): Adjust prototype.
7896         * c-decl.c (c_decode_options): Pass 0 as last argument to
7897         cpp_handle_option.
7898
7899         PR c/2896:
7900         * gcc.c (cpp_unique_options): Split from cpp_options.
7901         (cpp_options): Source cpp_unique_options.
7902         (default_compilers): Use cpp_unique_options instead of cpp_options
7903         when used together with cc1_options.
7904         (static_specs): Add cpp_unique_options.
7905         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7906         when used together with cc1_options.
7907
7908 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7909
7910         * config/h8300/h8300-protos.h: Update the prototype of
7911         output_a_shift.
7912         * config/h8300/h8300.c (output_a_shift): Remove an unused
7913         argument 'insn'.  Remove redundant code.
7914         * config/h8300/h8300.md: Adust to the new prototype of
7915         output_a_shift.
7916
7917 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7918
7919         * config/h8300/h8300-protos.h: Update the prototypes of
7920         emit_a_rotate and expand_a_rotate.
7921         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7922         first argument to 'enum rtx_code'.
7923         (expand_a_rotate): Likewise.
7924
7925 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7926
7927         * config/h8300/h8300-protos.h: Update the prototype of
7928         output_simode_bld.
7929         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7930         'log2'.
7931         * config/h8300/h8300.md: Adjust to the new prototype.
7932
7933 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7934
7935         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7936         redundant code.
7937
7938 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7939
7940         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7941         is a fixed register before returning pic_offset_table_rtx.
7942         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7943         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7944
7945 2002-01-28  Jason Merrill  <jason@redhat.com>
7946
7947         * dwarf2.h: Sync with src version.
7948
7949 2002-01-28  Paul Koning  <pkoning@equallogic.com>
7950
7951         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7952         BT_FN_VOID_PTR_VAR.
7953         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7954         * doc/extend.texi (__builtin_prefetch): Update documentation:
7955         first argument is now const void ptr.
7956
7957 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7958
7959         * config/h8300/h8300-protos.h: Remove an unused prototype.
7960
7961 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
7962
7963         * toplev.c (lang_independent_init): Round up identifier size.
7964
7965 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7966
7967         * config.gcc: Revert previous change.
7968
7969 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
7970
7971         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7972
7973 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7974
7975         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7976         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
7977         other non-elf netbsd config frags.
7978         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7979         collect2 will does that.
7980         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7981         shared-lib frobbing will work.
7982
7983 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7984
7985         * config/h8300/h8300.h: Fix formatting.
7986         * config/h8300/h8300.md: Likewise.
7987
7988 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
7989
7990         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7991         the old, removed AAA_standards fix.
7992         * fixinc/fixincl.x: Rebuilt.
7993
7994 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
7995
7996         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7997         atexit call in crtbegin, hooked in after call to frame_dummy;
7998         register EH before registering __fini__start.
7999
8000 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8001
8002         * config/rs6000/altivec.h: Remove spurious semicolons.
8003
8004 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8005
8006         * config/h8300/h8300.md: Replace dead bit extraction patterns
8007         with ones that work.
8008
8009 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8010
8011         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8012         if not STRICT_ALIGNMENT.
8013         * rtl.h (MEM_ALIGN): Likewise.
8014
8015 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8016
8017         * doc/invoke.texi (-fdump-translation-unit): Revert this
8018         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8019
8020 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8021
8022         * config/h8300/h8300.md (define_constants): New.
8023         (anonymous patterns) Use defined constants appropriately.
8024
8025 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8026
8027         * config/h8300/h8300.c (function_arg): Remove redundant code.
8028
8029 2002-01-26  Richard Henderson  <rth@redhat.com>
8030
8031         * sched-deps.c (reg_pending_uses_head): New.
8032         (reg_pending_barrier): Rename from reg_pending_sets_all.
8033         (find_insn_list): Don't mark inline.
8034         (find_insn_mem_list): Remove.
8035         (add_dependence_list, add_dependence_list_and_free): New.
8036         (flush_pending_lists): Replace only_write param with separate
8037         for_read and for_write parameters.  Update all callers.  Use
8038         add_dependence_list_and_free.
8039         (sched_analyze_1): Do not add reg dependencies here; just set
8040         the pending bits.  Use add_dependence_list.
8041         (sched_analyze_2): Likewise.
8042         (sched_analyze_insn): Replace schedule_barrier_found with
8043         reg_pending_barrier.  Add all dependencies for pending reg
8044         uses, sets, and clobbers.
8045         (sched_analyze): Don't add reg dependencies for calls, just
8046         set pending bits.  Use regs_invalidated_by_call.  Treat
8047         sched_before_next_call as a normal list, not a fake insn.
8048         (init_deps): No funny init for sched_before_next_call.
8049         (free_deps): Free pending mems lists.  Don't zero reg_last.
8050         (init_deps_global): Init reg_pending_uses.
8051         (finish_deps_global): Free it.
8052         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8053         (find_insn_mem_list): Remove.
8054         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8055         (propagate_deps): Use them.  Zero temp mem lists.
8056
8057 2002-01-26  Richard Henderson  <rth@redhat.com>
8058
8059         * Makefile.in (CRTSTUFF_CFLAGS): New.
8060         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8061         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8062         crtstuff.c instead of alpha assembly version.
8063         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8064         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8065         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8066         (__do_global_dtors_aux): Mark used.
8067         (frame_dummy, __do_global_ctors_aux): Mark used.
8068         (fini_dummy, init_dummy): Remove.
8069
8070         * config/alpha/crtbegin.asm: Remove file.
8071         * config/alpha/crtend.asm: Remove file.
8072         * config/alpha/t-crtbe: Remove file.
8073         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8074         (LINK_EH_SPEC): New.
8075
8076         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8077         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8078         calling constructors.
8079         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8080
8081         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8082         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8083         CRT_END_INIT_DUMMY hack.
8084         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8085         FORCE_{INIT,FINI}_SECTION_ALIGN.
8086
8087         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8088         FORCE_{INIT,FINI}_SECTION_ALIGN.
8089
8090         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8091         invocation sequence.
8092         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8093
8094         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8095         (FORCE_CODE_SECTION_ALIGN): New.
8096
8097 2002-01-26  Richard Henderson  <rth@redhat.com>
8098
8099         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8100
8101 2002-01-26  Richard Henderson  <rth@redhat.com>
8102
8103         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8104         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8105
8106 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8107
8108         * config/h8300/h8300.md: Remove bit extraction patterns that
8109         cannot be triggered.
8110         Restrict each bit extraction pattern to a variant on which the
8111         pattern is tested.
8112
8113 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8114
8115         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8116
8117 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8118
8119         * config/h8300/h8300.md: Remove bit test patterns that cannot
8120         be triggered.
8121         Restrict each bit test pattern to a variant on which the
8122         pattern is tested.
8123
8124 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8125
8126         * builtins.c (expand_builtin_strncat): Remove redundant check for
8127         INTEGER_CST.
8128
8129 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8130
8131         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8132         default setting.
8133         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8134         existing setting.
8135
8136 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8137
8138         * dbxout.c (dbxout_init): Use assemble_name rather than just
8139         stripping off the first character.
8140         (dbxout_source_file): Likewise.
8141
8142 2002-01-25  DJ Delorie  <dj@redhat.com>
8143
8144         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8145         using rtx_equal_p, not by comparing pointers.
8146
8147 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8148
8149         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8150         for PIC_OFFSET_TABLE_REGNUM.
8151         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8152
8153 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8154
8155         * config.gcc (x86_64-*-freebsd*): New target.
8156         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8157         value.
8158         (i[34567]86-*-freebsd*): Don't include svr4.h.
8159         * config/i386/freebsd64.h: New file.
8160
8161 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8162
8163         * config/alpha/x-vms (version): Make static.
8164
8165         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8166         in previous checkin.
8167
8168         * Makefile.in (install-headers-cp): New target.
8169         * config.gcc (alpha-dec-*vms*): Install headers with
8170         install-headers-cp
8171
8172 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8173
8174         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8175         avoid it's copies.
8176
8177 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8178
8179         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8180         of compare_tree_int.
8181         (expand_builtin_strncat): Likewise.
8182         * c-decl.c (finish_struct): Use tree_low_cst.
8183         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8184         * tree.c (compare_tree_int): Likewise.
8185
8186 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8187
8188         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8189         adjustments even if they are implemented by more than two insns.
8190
8191 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8192
8193         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8194         * df.h (struct ref): Kill B.
8195         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8196
8197         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8198         * flow.c (propagate_one_insn): Use it.
8199         (mark_used_regs): Handle NIL.
8200
8201 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8202
8203         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8204         to help folding.
8205
8206 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8207
8208         * rs6000.md (prefetch): Make address V4SI mode so that the address
8209         is restricted to legitimate form for instruction.
8210
8211 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8212
8213         * doc/install.texi (xtensa-*-elf): New target.
8214         (xtensa-*-linux*): New target.
8215         * doc/contrib.texi: Add myself.
8216
8217 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8218
8219         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8220         purpose register to hold an SImode (or smaller) value.
8221
8222 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8223
8224         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8225         registry only.
8226         * crtstuff.c: Likewise.
8227
8228 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8229
8230         * config/h8300/h8300.md (negation patterns): Tighten
8231         predicates to register_operand.
8232
8233 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8234
8235         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8236         mode, not Pmode.
8237
8238         * builtins.c (expand_builtin_prefetch): Same.
8239
8240 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8241
8242         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8243         modes.
8244
8245 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8246
8247         * config/h8300/h8300.c (print_operand): Remove support for
8248         operand character 'A'.
8249         * config/h8300/h8300.md (three anonymous patterns): Replace
8250         operand character 'A' with either 'T' or 'S'.
8251
8252 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8253
8254         * config/h8300/h8300.c (print_operand): Remove support for
8255         operand character 'U'.
8256
8257 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8258
8259         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8260
8261 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8262
8263         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8264         values to be assigned to the stack pointer.
8265
8266 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8267
8268         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8269         to const_double needs to be done right for big-endian systems.
8270
8271 2002-01-24  Jason Merrill  <jason@redhat.com>
8272
8273         PR c++/2432
8274         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8275         to can_throw_internal.
8276
8277 2002-01-23  Richard Henderson  <rth@redhat.com>
8278
8279         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8280         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8281
8282 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8283
8284         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8285         (symGOT2reg): Use them, then set as GOT value as unchanging.
8286         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8287         as a temporary, if possible.
8288         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8289         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8290
8291 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8292
8293         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8294         accept to accept 0x80 as operands[2].
8295
8296 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8297
8298         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8299
8300 2002-01-23  Richard Henderson  <rth@redhat.com>
8301
8302         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8303
8304 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8305
8306         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8307         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8308         an attribute.
8309
8310 2002-01-23  Richard Henderson  <rth@redhat.com>
8311
8312         * expr.c (move_by_pieces_1): Extend size before negation.
8313
8314         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8315         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8316         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8317         * config/m68k/t-m68kelf: Likewise.
8318
8319 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8320
8321         * config/xtensa/elf.h: New file.
8322         * config/xtensa/lib1funcs.asm: New file.
8323         * config/xtensa/lib2funcs.S: New file.
8324         * config/xtensa/linux.h: New file.
8325         * config/xtensa/t-xtensa: New file.
8326         * config/xtensa/xtensa-config.h: New file.
8327         * config/xtensa/xtensa-protos.h: New file.
8328         * config/xtensa/xtensa.c: New file.
8329         * config/xtensa/xtensa.h: New file.
8330         * config/xtensa/xtensa.md: New file.
8331         * config.gcc (xtensa-*-elf*): New target.
8332         (xtensa-*-linux*): New target.
8333         * cse.c (canon_hash): Compare rtx pointers instead of register
8334         numbers.  This is required for the Xtensa port.
8335         * integrate.c (copy_insn_list): Handle case where the static
8336         chain is in memory and the memory address has to be copied to
8337         a register.
8338         * doc/invoke.texi (Option Summary): Add Xtensa options.
8339         (Xtensa Options): New node.
8340         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8341
8342 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8343
8344         * diagnostic.c (internal_error): Do ICE suppression only
8345         when ENABLE_CHECKING is not defined.
8346
8347         * c-typeck.c (require_complete_type): Return error_mark_node
8348         if type is error_mark_node.
8349
8350 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8351
8352         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8353         -Os and issue a warning.
8354
8355 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8356
8357         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8358         current (lack of) need for host configuration by hand.
8359
8360         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8361         references.  Documentation of some target macros moved from
8362         hostconfig.texi to tm.texi.
8363
8364 2002-01-23  Will Cohen  <wcohen@redhat.com>
8365
8366         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8367         defined.
8368
8369 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8370
8371         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8372         operand[3].
8373
8374 2002-01-23  Jason Merrill  <jason@redhat.com>
8375
8376         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8377
8378         * function.c (assign_parms): Don't put args of inline functions
8379         into registers when not optimizing.
8380
8381 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8382
8383         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8384         (prologue_use): New pattern.
8385         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8386         preference to gen_rtx_USE.
8387         (thumb_expand_prologue): Use gen_prologue_use in preference to
8388         gen_rtx_USE.
8389         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8390         gen_rtx_USE.
8391
8392 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8393
8394         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8395
8396 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8397
8398         PR c/3504
8399         * doc/extend.texi: Correct documentation of __alignof__.
8400
8401 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8402
8403         * params.h: Rename arguments of DEFPARAM so that it will be
8404         recognized as a translation keyword.
8405
8406 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8407
8408         * extend.texi: Document altivec functions.
8409         Fix N-bit adjectives in X86 builtin documentation.
8410
8411 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8412
8413         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8414         auto_inc_dec values.
8415
8416 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8417
8418         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8419         after backslash.
8420         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8421
8422 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8423
8424         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8425
8426 2002-01-22  Richard Henderson  <rth@redhat.com>
8427
8428         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8429         copy_insn not copy_rtx.
8430
8431 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8432
8433         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8434         "nonzero" as that might add "1" bits.  Ensure "constop" is
8435         properly sign extened.
8436         (force_to_mode): Tweak for sign extended constop.
8437
8438 2002-01-22  Richard Henderson  <rth@redhat.com>
8439
8440         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8441         for_each_rtx instead of assuming we're already looking at the MEM.
8442         (split_small_symbolic_mem_operand): Likewise.
8443         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8444         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8445
8446 2002-01-22  Richard Henderson  <rth@redhat.com>
8447
8448         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8449         sequence number for the literal.
8450         (divmoddi_internal_er): Likewise.
8451
8452 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8453
8454         PR java/4972
8455         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8456         in LIBICONV variable.
8457         * configure: Regenerated.
8458
8459 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8460
8461         * dependence.c (build_def_use): Remove array_idx.
8462
8463         * dwarfout.c (last_filename): Remove.
8464         (output_compile_unit_die): Remove last_filename.
8465
8466 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8467             Richard Henderson  <rth@redhat.com>
8468
8469         PR opt/3640
8470         * fold-const.c (fold): Optimize unsigned comparisons against
8471         UINT_MAX (and similar unsigned constants).
8472
8473 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8474
8475         * Makefile.in (loop.o): Depend on OPTABS_H.
8476         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8477         against the predicate.
8478
8479         PR target/5379
8480         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8481         for the address operand.
8482
8483 2002-01-22  Richard Henderson  <rth@redhat.com>
8484
8485         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8486
8487 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8488
8489         PR other/5450
8490         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8491         preprocessor flags.
8492
8493 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8494
8495         * config.gcc (x86_64-*-netbsd*): New target.
8496         * config/i386/netbsd64.h: New file.
8497
8498 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8499
8500         * regrename.c (kill_value): Fix typo.
8501
8502 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8503
8504         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8505
8506         * config/rs6000/rs6000.h: Same.
8507
8508         * function.c (instantiate_virtual_regs): Remove
8509         STARTING_FRAME_PHASE.
8510         (assign_stack_local_1): Same.
8511         Calculate frame phase.
8512
8513 2002-01-22  Nick Clifton  <nickc@redhat.com>
8514
8515         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8516         variable declaration to outer scope in order to simplify
8517         future extensions.
8518         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8519         arm_hard_regno_mode_ok.
8520         * config/arm/arm-protos.h: Add a prototype for
8521         arm_hard_regno_mode_ok.
8522         * config/arm/arm.c (soft_df_operand): Remove now redundant
8523         check for DImode values using IP_REGNUM.
8524         (nonimmediate_soft_df_operand): Remove now redundant check for
8525         DImode values using IP_REGNUM.
8526         (arm_hard_regno_mode_ok): New function. New check: make sure
8527         that DImode values are not stored in IP_REGNUM.
8528
8529         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8530         note with a USE.
8531         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8532
8533 2002-01-22  Jason Merrill  <jason@redhat.com>
8534
8535         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8536         consistency if this COMPOUND_STMT is scoped.
8537
8538 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8539
8540         * predict.c: Fix formatting.
8541         * print-tree.c: Likewise.
8542         * protoize.c: Likewise.
8543         * real.h: Likewise.
8544         * rtl.h: Likewise.
8545         * sbitmap.h: Likewise.
8546         * scan.c: Likewise.
8547         * sched-deps.c: Likewise.
8548         * sched-vis.c: Likewise.
8549         * sdbout.c: Likewise.
8550         * sibcall.c: Likewise.
8551         * ssa.c: Likewise.
8552         * ssa-ccp.c: Likewise.
8553         * ssa-dce.c: Likewise.
8554         * stmt.c: Likewise.
8555         * stor-layout.c: Likewise.
8556         * system.h: Likewise.
8557
8558 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8559
8560         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8561         if fits in bounds of base type.
8562
8563         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8564         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8565         (add_bound_info, default): If can't find a context, make a
8566         SAVE_EXPR.
8567         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8568
8569 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8570
8571         * c-typeck.c (parser_build_binary_op): If result from
8572         build_binary_op is ERROR_MARK just return error_mark_node without
8573         further processing.
8574
8575 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8576
8577         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8578         Split a.out-specific bits into...
8579         * config/netbsd-aout.h: ...this.
8580         * config/netbsd-elf.h: New file.
8581         * config/alpha/netbsd-elf.h: Remove.
8582         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8583         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8584         (STARTFILE_SPEC): Remove redundant definition.
8585         (ENDFILE_SPEC): Likewise.
8586         (LINK_SPEC): Likewise.
8587         (CPP_SPEC): Likewise.
8588         (ASM_SPEC): Likewise.
8589         (LIB_SPEC): Likewise.
8590         (SWITCH_TAKES_ARG): Likewise.
8591         (TARGET_MEM_FUNCTIONS): Likewise.
8592         (CPP_PREDEFINES): Redefine.
8593         (ASM_FINAL_SPEC): Remove redefinition.
8594         (ASM_COMMENT_START): Redefine.
8595         (FUNCTION_PROFILER): Define.
8596         (TARGET_VERSION): Redefine.
8597         Comment and formatting cleanup.
8598         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8599         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8600         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8601         big- or little-endian.
8602         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8603         * config.gcc (*-*-netbsd*): Add definitions common to all
8604         NetBSD configs.
8605         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8606         gnu_ld definitions.  Add netbsd-elf.h to and remove
8607         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8608         tmake_file, and don't lose previous tmake_file contents.
8609         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8610         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8611         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8612         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8613         (mipsel-*-netbsd*): Rename this to...
8614         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8615         mips/little.h to tm_file for mips*el-*.
8616         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8617         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8618         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8619
8620 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8621
8622         * pa-protos.h (reg_before_reload_operand): New function prototype.
8623         * pa.c (reg_before_reload_operand): New function implementation.
8624         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8625         contraints to "*m".
8626
8627 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8628
8629         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8630
8631 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8632
8633         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8634         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8635         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8636         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8637         (ENDFILE_SPEC): Undefine.
8638         (STARTFILE_SPEC): Redefine for PA.
8639
8640 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8641
8642         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8643
8644 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8645
8646         * config.gcc: Add entries to supported PowerPC --with-cpu
8647         types.
8648
8649 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8650
8651         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8652         true for 64-bit mode only SSE registers in 32-bit mode.
8653
8654 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8655
8656         * unwind-dw2.c: Fix formatting.
8657         * unwind-dw2-fde.c: Likewise.
8658         * unwind-dw2-fde.h: Likewise.
8659         * unwind-pe.h: Likewise.
8660         * varasm.c: Likewise.
8661         * varray.h: Likewise.
8662
8663 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8664
8665         Remove workaround for register stack overwrite bug in mmix.
8666         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8667         support for TARGET_REG_STACK_FILL_BUG.
8668         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8669         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8670         Delete.
8671         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8672         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8673         -mno-reg-stack-fill-bug-workaround.
8674         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8675         machine member has_call_without_parameters.
8676         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8677         -mreg-stack-fill-bug-workaround and
8678         -mno-reg-stack-fill-bug-workaround.
8679         (MMIX Options): Ditto.
8680
8681 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8682
8683         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8684         as appropriate.
8685         Remove redundant code.
8686
8687 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8688
8689         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8690         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8691         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8692         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8693         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8694         out target macro definitions and non-target-specific comments
8695         mostly taken from old versions of the manual.
8696
8697 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8698
8699         * config/h8300/h8300.h: Fix comment formatting.
8700         * config/ia64/aix.h: Likewise.
8701         * config/ia64/ia64-protos.h: Likewise.
8702         * config/ia64/ia64.c: Likewise.
8703         * config/ia64/ia64.h: Likewise.
8704         * config/ia64/ia64intrin.h: Likewise.
8705         * config/ia64/linux.h: Likewise.
8706         * config/ia64/unwind-aix.c: Likewise.
8707         * config/ia64/unwind-ia64.c: Likewise.
8708
8709 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8710
8711         * config/h8300/h8300.c: Revise comments about shift code.
8712
8713 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8714
8715         * config/h8300/h8300.c (function_arg): Update a comment.
8716
8717 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8718
8719         * config/h8300/h8300.md: Update the comments at the beginning
8720         of the file.
8721
8722 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8723
8724         * config/i370/i370.c: Fix comment formatting.
8725         * config/i370/i370.h: Likewise.
8726         * config/i370/i370.md: Likewise.
8727         * config/i370/linux.h: Likewise.
8728
8729 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8730
8731         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8732
8733         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8734         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8735         in incomplete case.
8736
8737 2002-01-20  Graham Stott  <grahams@redhat.com>
8738
8739         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8740
8741 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8742
8743         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8744
8745 2002-01-19  Tom Rix  <trix@redhat.com>
8746
8747         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8748
8749 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8750
8751         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8752
8753         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8754         STARTING_FRAME_PHASE.
8755         (STARTING_FRAME_PHASE): New.
8756         (instantiate_virtual_regs): Check saneness of
8757         STARTING_FRAME_PHASE.
8758
8759         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8760
8761 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8762
8763         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8764
8765 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8766
8767         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8768         be used for bootstrapping GCC 3.0.
8769
8770 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8771
8772         * config/h8300/h8300.md: Fix an insn length.
8773
8774 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8775
8776         * bitmap.h: Fix comment formatting.
8777         * combine.c: Likewise.
8778         * cppfiles.c: Likewise.
8779         * c-pragma.h: Likewise.
8780         * c-typeck.c: Likewise.
8781         * df.c: Likewise.
8782         * dwarf2out.c: Likewise.
8783         * function.c: Likewise.
8784         * gcc.c: Likewise.
8785         * genattrtab.c: Likewise.
8786         * gthr-win32.h: Likewise.
8787         * haifa-sched.c: Likewise.
8788         * predict.c: Likewise.
8789         * rtlanal.c: Likewise.
8790         * rtl.h: Likewise.
8791         * unwind-dw2-fde.h: Likewise.
8792         * unwind-pe.h: Likewise.
8793         * vmsdbgout.c: Likewise.
8794
8795 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8796
8797         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8798         if type_required and passed decl.
8799
8800 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
8801
8802         * config.gcc (cpu_type): Include altivec.h in powerpc
8803         extra_headers.
8804         Same for darwin.
8805
8806         * config/rs6000/altivec.h: New.
8807
8808 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
8809
8810         * doc/install.texi (*-ibm-aix*): Update assembler and exception
8811         handling information.
8812         * doc/trouble.texi (Interoperation): Add libstdc++ information
8813         for AIX.
8814         (Misunderstandings): Add template instantiation and static template
8815         member information for AIX.
8816
8817 2002-01-17  Jason Merrill  <jason@redhat.com>
8818
8819         * dbxout.c (dbxout_type): Support const and volatile.
8820
8821         * except.c (add_partial_entry): Remove backwards compatibility code.
8822         (end_protect_partials): Likewise.
8823
8824 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
8825
8826         * config/ia64/ia64.md (prologue_use): New.
8827         * config/ia64/ia64.c (ia64_expand_prologue): Use
8828         gen_prologue_use instead of gen_rtx_USE.
8829         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8830         as CODE_FOR_pred_rel_mutex.
8831         (ia64_sched_reorder2): Likewise.
8832
8833 2002-01-16  Eric Christopher  <echristo@redhat.com>
8834
8835         * config/mips/r3900.h: Reformat.
8836         (SUBTARGET_CPP_SIZE_SPEC): Remove.
8837         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8838         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8839         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8840         * config/mips/t-elf: Remove mips3 multilib.
8841
8842 2002-01-16  H.J. Lu <hjl@gnu.org>
8843
8844         * config/mips/linux.h: Include "mips/abi64.h".
8845
8846 2002-01-16  H.J. Lu <hjl@gnu.org>
8847
8848         * config/mips/t-linux: New.
8849
8850         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8851
8852         * config/mips/linux.h: Don't include "gofast.h".
8853         (INIT_SUBTARGET_OPTABS): Removed.
8854
8855 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8856
8857         * config/h8300/h8300-protos.h: Replace emit_a_shift with
8858         output_a_shift.
8859         * config/h8300/h8300.c: Likewise.
8860         * config/h8300/h8300.md: Likewise.
8861
8862 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8863
8864         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8865         spaces after an opcode name.
8866         (pushqi1_h8300hs): Likewise.
8867         (pushhi1_h8300hs): Likewise.
8868
8869 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8870
8871         * doc/extend.texi: Replace "option" with "attribute"
8872         appropriately.
8873
8874 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8875
8876         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8877         (and:DI () (const_int -8)).
8878         (split_small_symbolic_mem_operand): Split
8879         (mem (and:DI () (const_int -8)).
8880
8881 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8882
8883         PR target/5309:
8884         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8885         same way as TYPE_IMUL.
8886         (ultrasparc_sched_reorder): Likewise.
8887         * config/sparc/sparc.md (type): Add comment to update
8888         ultrasparc_sched_reorder when making changes.
8889
8890 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8891
8892         * doc/invoke.texi: Change the dump file name of block
8893         reordering pass from 28.bbro to 29.bbro.
8894         Mention -dk option.
8895
8896 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
8897
8898         * i386.md (minsf splitter): Fix pasto.
8899
8900 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8901
8902         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8903         to frame pointer initialisation instruction.
8904         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8905         initialisation instruction.
8906         (soft_df_operand): Do not accept the IP register.
8907         (nonimmediate_soft_df_operand): Do not accept the IP register.
8908
8909 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8910
8911         PR target/5357:
8912         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8913         MASK_V8 being both set.
8914
8915 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
8916
8917         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8918         insn for GOT register; add REG_MAYBE_DEAD notes instead.
8919         config/s390/s390.md (call, call_value): Add GOT register to
8920         CALL_INSN_FUNCTION_USAGE where needed.
8921         (call_exp, call_value_exp): New.
8922
8923 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8924
8925         * config/arm/arm.c: General formatting tidy up.
8926
8927 2002-01-16  Graham Stott  <grahams@redhat.com>
8928
8929         * calls.c (try_to_integrate): Use "(size_t)" intermediate
8930         cast and when casting an integer literal to "rtx" pointer.
8931         (expand_call): Likewise.
8932         * flow.c (try_pre_increment): Likewise.
8933         (find_use_as_address): Likewise.
8934         * integrate.c (expand_iline_function): Likewise.
8935         * regmove.c (try_auto_increment): Likewise.
8936
8937 2002-01-16  Graham Stott  <grahams@redhat.com>
8938
8939         * sched-rgn.c (passed): Use sbitmap_free.
8940         (header): Likewise.
8941         (inner): Likewise.
8942         (in_queue): Likewise.
8943         (in_stack): Likewise.
8944
8945 2002-01-15  Eric Christopher  <echristo@redhat.com>
8946
8947         * flow.c (propagate_one_insn): Change to use fatal_insn.
8948
8949 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8950
8951         * expmed.c (extract_fixed_bit_field): Remove unused code.
8952         * system.h: Poison SLOW_ZERO_EXTEND.
8953         * doc/tm.texi: Remove.
8954         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8955         * config/arm/arm.h: Likewise.
8956         * config/avr/avr.h: Likewise.
8957         * config/clipper/clipper.h: Likewise.
8958         * config/convex/convex.h: Likewise.
8959         * config/d30v/d30v.h: Likewise.
8960         * config/dsp16xx/dsp16xx.h: Likewise.
8961         * config/elxsi/elxsi.h: Likewise.
8962         * config/fr30/fr30.h: Likewise.
8963         * config/h8300/h8300.h: Likewise.
8964         * config/i370/i370.h: Likewise.
8965         * config/i386/i386.h: Likewise.
8966         * config/m68k/m68k.h: Likewise.
8967         * config/mips/mips.h: Likewise.
8968         * config/ns32k/ns32k.h: Likewise.
8969         * config/pdp11/pdp11.h: Likewise.
8970         * config/pj/pj.h: Likewise.
8971         * config/s390/s390.h: Likewise.
8972         * config/sh/sh.h: Likewise.
8973         * config/stormy16/stormy16.h: Likewise.
8974         * config/v850/v850.h: Likewise.
8975         * config/vax/vax.h: Likewise.
8976         * config/we32k/we32k.h: Likewise.
8977
8978 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8979
8980         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8981         (altivec_lvsl): Change constraint to b.
8982         (altivec_lvsr): Same.
8983         (altivec_lvebx): Same.
8984         (altivec_lvehx): Same.
8985         (altivec_lvewx): Same.
8986         (altivec_lvxl): Same.
8987         (altivec_lvx): Same.
8988         (altivec_stvx): Add parallel.
8989         (altivec_stvxl): Same.
8990         (altivec_stvehx): Same.
8991         (altivec_stvebx): Same.
8992         (altivec_stvebx): Same.
8993
8994 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8995
8996         * config.gcc: Change altivec.h to altivec-defs.h.
8997
8998         * config/rs6000/altivec.h: Delete.
8999
9000         * config/rs6000/altivec-defs.h: Add.
9001
9002 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9003
9004         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9005         and UMOD modes.
9006
9007         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9008         less than or equal to eight bytes.
9009
9010         * vax.md (andsi3): Remove constraints and change SET destination
9011         operand type to nonimmediate_operand.
9012         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9013         when it is a CONST_INT.
9014
9015 2002-01-15  Jason Merrill  <jason@redhat.com>
9016
9017         * c-common.def (FILE_STMT): New code.
9018         * c-common.c (statement_code_p): It's a statement.
9019         * c-common.h (stmt_tree_s): Add x_last_filename.
9020         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9021         (last_expr_filename): New macro.
9022         * c-semantics.c (begin_stmt_tree): Initialize it.
9023         (add_stmt): If the filename changed, also insert a
9024         FILE_STMT.
9025         (expand_stmt): Handle seeing one.
9026
9027 2002-01-15  Eric Christopher  <echristo@redhat.com>
9028
9029         * flow.c (propagate_one_insn): Add error message and print out
9030         insn for debugging.
9031
9032 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9033
9034         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9035         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9036         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9037         TRAMPOLINE_ALIGNMENT.
9038         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9039         to be in bits.
9040         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9041         PCC_BITFIELD_TYPE_MATTERS.
9042         * config/interix.h (STDC_VALUE): Remove.  Use
9043         STDC_0_IN_SYSTEM_HEADERS.
9044         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9045         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9046         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9047
9048 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9049
9050         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9051         not work on this platform currently.
9052
9053 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9054
9055         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9056         readonly_warning in _().
9057
9058 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9059
9060         * gcc.c (delete_if_ordinary): Backout previous change.
9061
9062 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9063
9064         * config/h8300/h8300.c (print_operand): Remove support for
9065         unused operand characters.
9066
9067         * read-rtl.c: Fix formatting.
9068         * real.c: Likewise.
9069         * recog.c: Likewise.
9070         * regclass.c: Likewise.
9071         * regmove.c: Likewise.
9072         * reg-stack.c: Likewise.
9073         * reload1.c: Likewise.
9074         * rtlanal.c: Likewise.
9075
9076 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9077
9078         * config/i386/i386.c: Fix formatting.
9079
9080 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9081
9082         * c-typeck.c (process_init_element): Don't save_expr
9083         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9084
9085 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9086
9087         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9088         emit optional traceback table if optimize_size or TARGET_ELF.
9089         * config/rs6000/rs6000.md (prefetch): New.
9090
9091 2002-01-15  Andreas Jaeger  <aj@suse.de>
9092
9093         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9094
9095 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9096
9097         * mips-tfile.c: Fix formatting.
9098
9099 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9100
9101         * unroll.c (final_reg_note_copy): Fix previous commit.
9102
9103 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9104
9105         * config/h8300/h8300-protos.h: Remove the prototype for
9106         eq_operator.
9107         * config/h8300/h8300.c (eq_operator): Remove.
9108
9109 2002-01-14  Richard Henderson  <rth@redhat.com>
9110
9111         * config/i386/i386.md (prefetch): Tidy.
9112         (prefetch_3dnow): Fix locality operand.
9113
9114 2002-01-14  Richard Henderson  <rth@redhat.com>
9115
9116         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9117         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9118
9119 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9120
9121         * reload1.c (reload_combine): Pass reg_sum replacement through
9122         copy_rtx in loop performing multiple changes.
9123
9124 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9125
9126         * except.c (remove_unreachable_regions): New.
9127         (free_eh_status): Clear exception_handler_labels.
9128         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9129         (find_exception_handler_labels): Don't add the same label more than
9130         once.
9131         (remove_exception_handler_label): Don't die if
9132         find_exception_handler_labels hasn't been called for the current
9133         function yet.
9134
9135 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9136
9137         * toplev.c (rest_of_compilation): Rebuild jump labels after
9138         gcse.
9139
9140 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9141
9142         * doc/extend.texi: Move documentation of X86 built-in functions
9143         here.
9144         * doc/invoke.texi: From here.
9145         * doc/sourcebuild.texi: Document location of documentation for
9146         machine built-in functions.
9147
9148 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9149
9150         * cppfiles.c (TEST_THRESHOLD): New macro.
9151         (SHOULD_MMAP): Ditto.
9152         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9153         be used.
9154
9155 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9156
9157         * unroll.c (final_reg_note_copy): Properly handle
9158         REG_LABEL
9159         (unroll_loops): Fix LOOP_CONDITION heuristics.
9160
9161 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9162
9163         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9164         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9165
9166 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9167
9168         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9169         threaded loop.
9170
9171 2002-01-14  Tom Rix  <trix@redhat.com>
9172
9173         * config/rs6000/rs6000.md: Fix typo with sradi.
9174
9175 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9176
9177         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9178         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9179         (clrstrdi, clrstrsi): Adapt callers.
9180
9181         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9182
9183         (movti splitter): Never use register 0 as base register.
9184
9185 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9186
9187         * combine.c (simplify_shift_const): Always generate new rtx
9188         for shift expression instead of reusing given expression.
9189
9190 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9191
9192         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9193         alpha_legitimize_address unless mode is Pmode.
9194
9195 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9196
9197         * doc/md.texi (Modifiers): Document the '*' constraint for the
9198         user.
9199
9200         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9201         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9202         for xstormy16 too.
9203
9204 2002-01-13  Richard Henderson  <rth@redhat.com>
9205
9206         * reload.c (find_reloads): Use a hard reg destination as reload reg
9207         for an input reload of the source.
9208
9209 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9210
9211         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9212         more generic.
9213
9214 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9215
9216         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9217         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9218
9219         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9220
9221 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9222
9223         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9224
9225 2002-01-12  Tom Rix  <trix@redhat.com>
9226
9227         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9228         TARGET_POWERPC64.
9229
9230 2002-01-12  Richard Henderson  <rth@redhat.com>
9231
9232         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9233
9234         * doc/invoke.texi: Update Alpha options.
9235
9236         * doc/invoke.texi: Update i386 built-in function lists.
9237
9238 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9239
9240         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9241         referencing outside.
9242
9243 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9244
9245         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9246         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9247         offsets, and change line folding.
9248         * optabs.c (expand_binop): Remove warnings.
9249         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9250
9251 2002-01-12  Graham Stott <grahams@redhat.com>
9252
9253         * attribs.c (handle_deprecated_attribute): constify WHAT.
9254         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9255         dangling else warning and constify WHAT.
9256         * except.h (struct function, struct inline_remap): Move
9257         struct tag forward defs before all prototypes.
9258         (duplicate_eh_regions): Whitespace.
9259
9260 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9261
9262         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9263         MODE_BASE_REG_CLASS.
9264         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9265
9266 2002-01-12  Richard Henderson  <rth@redhat.com>
9267
9268         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9269         (ix86_expand_vector_move): New.
9270         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9271         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9272         Remove old prefetch builtins.  Special case the logicals removed above.
9273         (ix86_expand_builtin): Likewise.
9274         (safe_vector_operand): Use V4SFmode, not TImode.
9275         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9276         (ix86_expand_timode_binop_builtin): New.
9277         * config/i386/i386-protos.h: Update.
9278         * config/i386/i386.h (enum ix86_builtins): Update.
9279         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9280         Use ix86_expand_vector_move in vector move expanders.
9281         (movti_internal, movti_rex64): Add xorps alternative.
9282         (sse_clrv4sf): Rename and adjust from sse_clrti.
9283         (prefetch): Don't work so hard.
9284         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9285         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9286         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9287
9288 2002-01-11  Richard Henderson  <rth@redhat.com>
9289
9290         * config/i386/mmintrin.h: New file.
9291         * config/i386/xmmintrin.h: New file.
9292         * config.gcc (i?86-*-*): Add extra_headers.
9293         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9294         truncation codes.
9295         (simplify_binary_operation): Handle saturating arithmetic codes.
9296         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9297         not the lowpart subreg.
9298         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9299         on error.
9300         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9301
9302 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9303
9304         * conflict.c (conflict_graph_compute): Free regsets when finished.
9305         * ssa.c (compute_coalesced_reg_partition): Likewise.
9306
9307 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9308
9309         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9310         every where we allocate a register.
9311
9312 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9313
9314         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9315         * lcm.c (compute_earliest, compute_farthest): Likewise.
9316
9317 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9318
9319         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9320
9321 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9322
9323         * doc/rtl.texi (Insns): Fix 2 typos.
9324
9325 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9326
9327         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9328         options.  Use @table @gcctabopt for MMIX options.  Add index
9329         entries for MMIX options.  Start new paragraph with first
9330         heading of the machine-dependent options.
9331
9332 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9333
9334         PR other/5299
9335         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9336         * combine.c (force_to_mode): Same.
9337         * reload1.c (clear_reload_reg_in_use): Same.
9338
9339 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9340
9341         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9342         and 'subtargets'.
9343
9344 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9345             Brad Lucier <lucier@math.purdue.edu>
9346
9347         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9348         mcpu.
9349
9350 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9351
9352         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9353         Protect with IN_LIBGCC.
9354         (LINK_EH_SPEC): Add required trailing space.
9355
9356 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9357
9358         * c-tree.h: Move function declarations so that they are listed
9359         under the filename which contains them.
9360         (check_identifier, finish_decl_top_level,
9361         lookup_name_current_level_global, shadow_record_fields): Remove.
9362
9363 2002-01-11  Andreas Jaeger  <aj@suse.de>
9364
9365         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9366         march.
9367
9368 2002-01-10  Richard Henderson  <rth@redhat.com>
9369
9370         * config/alpha/alpha.c (print_operand): Add 'J'.
9371         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9372         new operand with the sequence number for the lituse.  When splitting
9373         the insns, use gen_movdi_er_high_g and generate a sequence number.
9374         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9375
9376 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9377
9378         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9379         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9380         stvxl.
9381         (altivec_expand_builtin): Same.
9382         (altivec_expand_stv_builtin): New.
9383
9384         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9385
9386         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9387         ("altivec_lvehx"): New.
9388         ("altivec_lvewx"): New.
9389         ("altivec_lvxl"): New.
9390         ("altivec_lvx"): New.
9391         ("altivec_stvx"): New.
9392         ("altivec_stvebx"): New.
9393         ("altivec_stvehx"): New.
9394         ("altivec_stvewx"): New.
9395         ("altivec_stvxl"): New.
9396
9397 2002-01-10  Richard Henderson  <rth@redhat.com>
9398
9399         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9400         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9401         care not to delete instructions twice.
9402
9403 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9404
9405         * toplev.c: Don't declare environ (it's not used anywhere).
9406         * configure.in: Don't check for declaration of environ.
9407         * config/i386/xm-mingw32.h: Don't #define environ.
9408         * config.in, configure: Regenerate.
9409
9410 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9411
9412         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9413         * configure: Regenerate.
9414
9415         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9416         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9417         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9418         alpha/xm-vms.h.
9419         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9420         LIMITS_H_TEST here, not in m68k/x-next.
9421         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9422         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9423
9424         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9425         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9426         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9427
9428         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9429         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9430         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9431         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9432         replacement of quadlib.asm with quadlib.c.
9433
9434         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9435         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9436         config/rs6000/xm-beos.h: Delete file.
9437
9438         * config.gcc: Update to match above changes.
9439
9440 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9441
9442         * config/h8300/h8300.h: Fix comment typos.
9443         * config/h8300/h8300.md: Likewise.
9444         * config/h8300/lib1funcs.asm: Likewise.
9445
9446 2002-01-10  Dale Johannesen  <dalej@apple.com>
9447
9448         PR optimization/5269
9449         * unroll.c (precondition_loop_p): Make *increment be the correct
9450         sign when n_iterations known, to avoid confusing caller.
9451
9452 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9453
9454         * doc/extend.texi (deprecated): Fix a typo.
9455
9456 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9457
9458         * basic-block.h (update_br_prob_note): Declare.
9459         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9460         (try_forward_edges): Care negative frequencies and update note.
9461         (outgoing_edges_match): Tweek conditional merging heuristics.
9462         (try_crossjump_to_edge): use update_br_prob_note.
9463         * cfglayout.c (fixup_reorder_chain): Likewise.
9464         * cfrtl.c (update_br_prob_note): New.
9465         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9466
9467         * i386.c (ix86_decompose_address): Return -1 if address contains
9468         shift.
9469         (legitimate_address_p): Require ix86_decompose_address to return 1.
9470
9471         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9472         (cprop_insn): Likewise.
9473
9474 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9475
9476         * toplev.c: Fix formatting.
9477         * tree.c: Likewise.
9478         * tree-dump.c: Likewise.
9479         * unroll.c: Likewise.
9480         * unwind-dw2.c: Likewise.
9481         * unwind-dw2-fde.c: Likewise.
9482         * unwind-dw2-fde-glibc.c: Likewise.
9483         * unwind-sjlj.c: Likewise.
9484
9485 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9486
9487         * doc/invoke.texi: Document PDP-11 options.
9488
9489 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9490
9491         * config/h8300/h8300.h: Fix formatting.
9492
9493 2002-01-10  Ira Ruben   <ira@apple.com>
9494
9495         Add __attribute__ ((deprecated)).
9496         * extend.texi: Document __attribute__ ((deprecated)).
9497         * invoke.texi: Document -Wno-deprecated-declarations.
9498         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9499         * testsuite/gcc.dg/deprecated.c: New C test.
9500         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9501         (c_common_attribute_table): Add "deprecated" entry.
9502         (handle_deprecated_attribute): New function.
9503         * c-decl.c (deprecated_states): New enum.
9504         deprecated_state: State of "deprecated" handling.
9505         (start_decl): Set deprecated_state based on attributes.
9506         (grokdeclarator): Test for deprecated uses, propagate attribute.
9507         * c-typeck.c (build_component_ref): Test for deprecated fields.
9508         (build_external_ref): Test for deprecated primaries.
9509         * diagnostic.c (warn_deprecated_use) New function to issue
9510         warnings about __attribute__ ((depricated)) references.
9511         * flags.h (warn_deprecated_decl): Extern declared for
9512         -W[no-]deprecated-declarations option.
9513         * print-tree.c (print_node): Show deprecated flag status.
9514         * toplev.c (warn_deprecated_decl): Defined.
9515         (W_options): Added "deprecated-declaration".
9516         * toplev.h (warn_deprecated_use): Extern declared.
9517         * tree.h (struct tree_common): Define deprecated_flag.
9518         (TREE_DEPRECATED): New macro to access flag.
9519         * cp/call.c (build_call): Test for deprecated calls.
9520         * cp/class.c (add_implicitly_declared_members): Set global
9521         flag to tell grokdeclarator to not issue deprecated warnings.
9522         * cp/cp-tree.h: Add extern for adding_implicit_members.
9523         * cp/decl.c (deprecated_states): New enum.
9524         (start_decl): Set deprecated_state based on attributes.
9525         (grokdeclarator): Test for deprecated uses, propagate attribute.
9526         * cp/lex.c (do_identifier): Test for deprecated primaries.
9527         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9528
9529 2002-01-10  Ira Ruben   <ira@apple.com>
9530
9531         Fix to assign attributes to inline member functions.
9532         * cp/decl.c (start_method): Handle attrlist.
9533
9534 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9535
9536         * combine.c (expand_field_assignment): Use subreg_lsb().
9537
9538 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9539
9540         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9541         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9542         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9543         Recurse for any operand of AND as long as constant is non-zero.
9544
9545 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9546
9547         * config/h8300/h8300.md: Remove constraints from expanders.
9548
9549 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9550
9551         * varasm.c: Fix formatting.
9552         * varray.c: Likewise.
9553         * vmsdbgout.c: Likewise.
9554         * xcoffout.c: Likewise.
9555
9556 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9557
9558         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9559         update edge probabilities to match.
9560
9561 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9562
9563         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9564         dependencies.
9565         * doc/languages.texi, doc/sourcebuild.texi: New files.
9566         * doc/configfiles.texi: Make a subsubsection.  Update.
9567         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9568         instructions for building GCC.
9569         * doc/makefile.texi: Make a subsection.
9570         * doc/gccint.texi: Update.
9571
9572 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9573
9574         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9575
9576 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9577
9578         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9579
9580 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9581
9582         * optabs.c (expand_fix): Look for wider integer modes first.
9583
9584         * i386.md (mov?f): Avoid the fake const double trick for medium
9585         memory model.
9586         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9587         (fop_df_4): Disable for SSE compilation.
9588
9589 2002-01-10  Graham Stott  <grahams@redhat.com>
9590
9591         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9592         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9593
9594 2002-01-10  Richard Henderson  <rth@redhat.com>
9595
9596         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9597
9598 2002-01-10  Richard Henderson  <rth@redhat.com>
9599
9600         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9601         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9602
9603 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9604
9605         * combine.c (can_combine_p): Fix a comment typo.
9606
9607 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9608
9609         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9610         empty list correctly.  Change loop index $t to $f for
9611         consistency with rest of Makefile.
9612
9613 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9614
9615         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9616         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9617
9618         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9619         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9620         (altivec_init_builtins): Same.
9621         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9622         (altivec_expand_binop_builtin): Same.
9623         (altivec_expand_ternop_builtin): Same.
9624         (bdesc_dst): New.
9625
9626         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9627         ("altivec_vctuxs"): Fix typo.
9628         ("altivec_vnmsubfp"): Same.
9629         ("altivec_dssall"): New.
9630         ("altivec_mfvscr"): New.
9631         ("altivec_dss"): New.
9632         ("altivec_lvsl"): New.
9633         ("altivec_lvsr"): New.
9634         ("altivec_dstt"): New.
9635         ("altivec_dstst"): New.
9636         ("altivec_dststt"): New.
9637         ("altivec_dst"): New.
9638
9639         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9640         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9641
9642 2002-01-09  Richard Henderson  <rth@redhat.com>
9643
9644         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9645
9646 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9647
9648         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9649         function.
9650         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9651         prototype.
9652         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9653
9654 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9655
9656         * read-rtl.c: Fix formatting.
9657         * real.c: Likewise.
9658         * regclass.c: Likewise.
9659         * regrename.c: Likewise.
9660         * reg-stack.c: Likewise.
9661         * reload1.c: Likewise.
9662         * reload.c: Likewise.
9663         * rtl.c: Likewise.
9664
9665 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9666
9667         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9668         to extract items in the expr_list chain.
9669
9670 2002-01-09  Richard Henderson  <rth@redhat.com>
9671
9672         * config/vax/vax.c (vax_rtx_cost): Never abort.
9673
9674         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9675
9676 2002-01-09  Jan Hubicka  <jh@suse.cz>
9677
9678         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9679
9680 2002-01-09  Richard Henderson  <rth@redhat.com>
9681
9682         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9683         Unify code from various alternatives.
9684
9685 2002-01-09  Richard Henderson  <rth@redhat.com>
9686
9687         * regrename.c (copy_value): Ignore the copy if the source register
9688         is present in the value chain with a narrower mode.
9689
9690 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9691
9692         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9693         for the c4x target. Also improve layout.
9694
9695 2002-01-09  Richard Henderson  <rth@redhat.com>
9696
9697         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9698         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9699         to match insn patterns.
9700
9701 2002-01-09  Richard Henderson  <rth@redhat.com>
9702
9703         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9704         (copyprop_hardreg_forward_1): Likewise.
9705
9706 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9707
9708         * pa.md (decrement_and_branch_until_zero): Change predicate for
9709         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9710
9711 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9712
9713         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9714         gets undefined. For Darwin.
9715
9716 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9717
9718         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9719
9720 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9721
9722         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9723
9724 2002-01-08  Richard Henderson  <rth@redhat.com>
9725
9726         * regrename.c (copy_value): Ignore overlapping copies.
9727
9728 2002-01-08  Richard Henderson  <rth@redhat.com>
9729
9730         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9731         as needed to avoid shared structure.
9732
9733 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9734
9735         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9736         H8/300H and H8/S.
9737
9738 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9739
9740         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9741         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9742         documentation of obsolete macros.
9743         * system.h: Poison these macros.
9744         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9745         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9746         config/c4x/c4x.h, config/clipper/clipper.h,
9747         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9748         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9749         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9750         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9751         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9752         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9753         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9754         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9755         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9756         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9757         config/sparc/sparc.h, config/stormy16/stormy16.h,
9758         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9759         definitions and commented out definitions of obsolete macros.
9760         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9761         of MAX_INT_TYPE_SIZE.
9762
9763 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9764
9765         * config/s390/s390.c (s390_preferred_reload_class): Never
9766         return ADDR_REGS if it isn't a subset of the given class.
9767         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9768         FP_REGS, but all superclasses as well.
9769
9770         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9771
9772         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9773         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9774         must not be a const_int.
9775
9776 2002-01-08  Richard Henderson  <rth@redhat.com>
9777
9778         * Makefile.in (toplev.o): Depend on options.h.
9779         (gcc.o): Depend on specs.h.
9780
9781 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9782
9783         * expr.c (store_expr): Convert VOIDmode constants back to target's
9784         mode.
9785
9786 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9787
9788         * doc/invoke.texi: Markup gcc as @command.  Refer to
9789         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9790         of http://gcc.gnu.org/thanks.html.
9791
9792 2002-01-08  Dale Johannesen  <dalej@apple.com>
9793
9794         * config/rs6000/rs6000.md: Add missing int register
9795         target case to movdf_low.
9796
9797 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
9798
9799         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9800         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
9801         (cppinit.o): Depend on except.h.
9802         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9803         s-specs): New rules.
9804
9805         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9806         Don't create specs.h/options.h/gencheck.h here.  Remove
9807         unnecessary variable settings from last argument of AC_OUTPUT.
9808         * config.in, configure: Regenerate.
9809         * intl.c: Hardcode package name as "gcc".
9810
9811         * cppinit.c: Include except.h.
9812         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9813         appropriate.
9814         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9815         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9816         (!)USING_SJLJ_EXCEPTIONS.
9817         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9818
9819 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9820
9821         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9822         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9823         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9824         documentation of obsolete macros.
9825         * system.h: Poison these macros.
9826         * config/d30v/d30v.h, config/ns32k/encore.h,
9827         config/stormy16/stormy16.h: Remove definitions and commented out
9828         definitions of obsolete macros.
9829
9830 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
9831
9832         * objc/objc-act.c (handle_class_ref): Mark the declaration of
9833         %sobjc_class_ref_%s as used - to prevent unwanted compiler
9834         warnings.
9835
9836 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9837
9838         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9839         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9840         to insn adjusting stack/frame pointer.
9841         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9842         accept operands that cause the insn to be non-splittable.
9843
9844 2002-01-08  Graham Stott  <grahams@redhat.com>
9845
9846         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9847         (C_TYPE_FIELDS_VOLATILE): Likewise.
9848         (C_TYPE_BEING_DEFINED): Likewise.
9849         (C_IS_RESERVED_WORD): Likewise.
9850         (C_TYPE_VARIABLE_SIZE): Likewise.
9851         (C_DECL_VARIABLE_SIZE): Likewise.
9852         (C_MISSING_PROTOTYPE_WARNED): Likewise.
9853         (C_SET_EXP_ORIGINAL_CODE): Likewise.
9854         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9855         parenthesis.
9856         (C_DECL_ANTICIPATED): Likewise.
9857         (c_build_type_variant): Add parenthesis.
9858
9859 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9860
9861         * gcc.c (option_map): Remove --version.
9862         (process_command): Handle -fversion following the GNU Coding
9863         Standards.  Partially addresses PR other/704.
9864
9865 2002-01-08  Graham Stott  <grahams@redhat.com>
9866
9867         * combine.c (combine_instructions): Fix typo.
9868
9869 2002-01-08  Graham Stott  <grahams@redhat.com>
9870
9871         * debug.h: Use "tree" and "rtx" throughout.
9872
9873         * debug.c: Likewise.
9874
9875 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
9876
9877         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9878         constant pool, use the pool's version of the symbol instead.
9879
9880 2002-01-07  Richard Henderson  <rth@redhat.com>
9881
9882         * regrename.c (find_oldest_value_reg): Ignore the value chain if
9883         the original register was copied in a mode with a fewer number of
9884         hard registers than the desired mode.
9885         (copyprop_hardreg_forward_1): Likewise.
9886         (debug_value_data): Fix loop test.
9887         * toplev.c (parse_options_and_default_flags): Reenable
9888         -fcprop-registers at -O1.
9889
9890 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9891
9892         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9893         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9894
9895         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9896         predicates.
9897
9898         * config/rs6000/rs6000.md: Add altivec predicate patterns.
9899
9900 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9901
9902         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9903         (pa_output_function_prologue): Output local label at the beginning of
9904         the prologue when profiling.
9905         (hppa_profile_hook): Use the local label rather than the function label.
9906         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9907
9908 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9909
9910         * config/rs6000/rs6000.c (print_operand): Remove extra space.
9911         (altivec_expand_unop_builtin): Fix thinko.
9912         (altivec_expand_binop_builtin): Same.
9913         (altivec_expand_ternop_builtin): Same.
9914         (altivec_expand_builtin): Same.
9915
9916 2002-01-07  Richard Henderson  <rth@redhat.com>
9917
9918         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9919
9920 2002-01-07  Jason Merrill  <jason@redhat.com>
9921
9922         * unwind-dw2.c (execute_cfa_program): Use < again.
9923
9924 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9925
9926         * predict.c (combine_predictions_for_insn): Avoid division by zero.
9927
9928 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9929
9930         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9931         Don't allow -1 - x -> ~x simplifications in the first pass.
9932
9933 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9934
9935         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9936         arguments.
9937         (altivec_expand_binop_builtin): Same.
9938         (altivec_expand_unop_builtin): Same.
9939         (print_operand): Fix typo.
9940         (bdesc_1arg): Add vupk* variants.
9941
9942         * rs6000.h (rs6000_builtins): Add vupk* enums.
9943
9944         * rs6000.md: Add altivec_vupk* variants.
9945
9946 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9947
9948         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9949         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9950         and last update dates.
9951
9952 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
9953
9954         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9955
9956 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9957
9958         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9959         * config/avr/avr.h (CPP_SPEC): Likewise.
9960         (LINK_SPEC): Likewise.
9961         (CRT_BINUTILS_SPECS): Likewise.
9962         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9963         * doc/invoke.texi (AVR Options): Document them.
9964
9965 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9966
9967         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9968         LABEL_NUSES.
9969
9970 2002-01-07  Graham Stott  <grahams@redhat.com>
9971
9972         * config/i386/i386.h: Update copyright date.
9973         (HALF_PIC_PTR): Add parenthesis.
9974         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9975         (CONSTANT_ALIGNMENT): Add parenthesis.
9976         (DATA_ALIGNMENT): Likewise.
9977         (LOCAL_ALIGNMENT): Likewise.
9978         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9979         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9980         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9981         (HARD_REGNO_NREGS): Add paranethesis.
9982         (VALID_SSE_REG_MODE): Whitespace.
9983         (VALID_MMX_REG_MODE): Whitespace.
9984         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9985         (ix86_hard_regno_mode_ok): Add parenthesis.
9986         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9987         (RETURN_IN_MEMORY): Whitespace.
9988         (N_REG_CLASSES): Add parenthesis.
9989         (INTEGER_CLASS_P): Add parenthesis and wrap.
9990         (FLOAT_CLASS_P): Likewise.
9991         (SSE_CLASS_P): Likewise.
9992         (MMX_CLASS_P): Likewise.
9993         (MAYBE_INTEGER_CLASS_P): Likewise.
9994         (MAYBE_FLOAT_CLASS_P): Likewise.
9995         (MAYBE_SSE_CLASS_P): Likewise.
9996         (MAYBE_MMX_CLASS_P): Likewise.
9997         (Q_CLASS_P): Likewise.
9998         (GENERAL_REGNO_P): Uppercase macro parameter.
9999         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10000         (FP_REGNO_P): Likewise.
10001         (ANY_FP_REGNO_P): Uppercase macro parameter.
10002         (SSE_REGNO_P): Likewise.
10003         (SSE_REGNO): Likewise.
10004         (SSE_REG_P): Likewise.
10005         (SSE_FLOAT_MODE_P): Likewise.
10006         (MMX_REGNO_P): Likewise.
10007         (MMX_REG_P):Likewise.
10008         (STACK_REG_P): Likewise.
10009         (NON_STACK_REG_P): Likewise.
10010         (STACK_TOP_P): Likewise.
10011         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10012         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10013         (SECONDARY_MEMORY_NEEDED): Likewise.
10014         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10015         (MD_ASM_CLOBBERS): Whitespace and wrap.
10016         (MUST_PASS_IN_STACK): Whitespace and wrap.
10017         (RETURN_POPS_ARGS): Add parenthesis.
10018         (INIT_CUMULATIVE_ARGS): Likewise.
10019         (FUNCTION_ARG): Likewise.
10020         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10021         (SETUP_INCOMING_VARARGS): Likewise.
10022         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10023         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10024         parenthsis.
10025         (EXPAND_BUILTIN_VA_ARG): Likewise.
10026         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10027         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10028         (INITIAL_ELIMINATION_OFFSET): Likewise.
10029         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10030         (REGNO_OK_FOR_BASE_P): Likewise.
10031         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10032         (REGNO_OK_FOR_DIREG_P): Likewise.
10033         (REG_OK_FOR_INDEX_P): Whitespace.
10034         (REG_OK_FOR_BASE_P): Whitespace.
10035         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10036         parenthesis.
10037         (FIND_BASE_TERM): Fix typo.
10038         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10039         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10040         (SYMBOLIC_CONST; Whitespace.
10041         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10042         (ENCODE_SECTION_INFO): Whitespace.
10043         (FINALIZE_PIC): Remove do { ... } while (0).
10044         (PROMOTE_MODE): Wrap in do { ... } while (0).
10045         (CONST_COSTS): Whitespace.
10046         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10047         (REGISTER_MOVE_COST): Add parenthesis.
10048         (MEMORY_MOVE_COST): Likewise.
10049         (EXTRA_CC_MODES): Whitespace.
10050         (SELECT_CC_MODE): Add parenthesis and whitespace.
10051         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10052         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10053         (ASM_OUTPUT_LABEL): Add paramethesis.
10054         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10055         (ASM_OUTPUT_REG_POP): Likewise.
10056         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10057         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10058
10059         * config/i386/i386.c: Update copyright.
10060         (CHECK_STACK_LIMIT): Add parenthesis.
10061         (AT_BP): Uppercase macro parameter.
10062         (x86_64_int_parameter_registers): Constify.
10063         (x86_64_int_return_registers): Likewise.
10064         (ix86_compare_op0): Use rtx.
10065         (construct_container): Constify INTREG parameter.
10066         (function_arg): Use rtx.
10067
10068         * diagnostic.h: Update copyright date.
10069         (output_buffer_state): Add parenthesis.
10070         (output_buffer_format_args): Likewise.
10071
10072         * combine.c (combine_instructions): Replace XEXP (links, 0)
10073         with link.
10074
10075 2002-01-06  H.J. Lu <hjl@gnu.org>
10076
10077         * cfgcleanup.c (thread_jump): Fix 2 typos.
10078
10079 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10080
10081         * config.gcc: Add support for --enable-altivec.
10082
10083 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10084
10085         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10086
10087 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10088
10089         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10090         __objc_class_name_*.
10091
10092 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10093
10094         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10095
10096 2002-01-06  Richard Henderson  <rth@redhat.com>
10097
10098         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10099         nop them out.  Increment label reference count for REG_LABEL.
10100         (fill_slots_from_thread): Frob label reference count around
10101         delete_related_insns.
10102
10103 2002-01-05  Richard Henderson  <rth@redhat.com>
10104
10105         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10106         jump threading.
10107
10108 2002-01-05  Richard Henderson  <rth@redhat.com>
10109
10110         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10111         * integrate.c (output_inline_function): Likewise.
10112         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10113         to remove_unnecessary_notes after emitting abstract instance.
10114         Force an emitted nested function to have its parent emited as well.
10115         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10116         for null.
10117         (rtl_for_decl_location): Do not look at reload data structures
10118         before reload has run.
10119
10120 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10121
10122         * cse.c: Fix formatting.
10123         * dwarf2asm.c: Likewise.
10124         * dwarf2out.c: Likewise.
10125         * explow.c: Likewise.
10126         * expmed.c: Likewise.
10127         * function.c: Likewise.
10128         * gcov.c: Likewise.
10129         * gencheck.c: Likewise.
10130         * genrecog.c: Likewise.
10131         * ggc-common.c: Likewise.
10132         * ggc-page.c: Likewise.
10133         * global.c: Likewise.
10134
10135 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10136
10137         * combine.c: Fix formatting.
10138
10139 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10140
10141         PR middle-end/1557
10142         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10143
10144 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10145
10146         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10147         as 1 for __powerpc64__ as well.
10148
10149         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10150
10151         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10152         return it.
10153
10154 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10155
10156         * lcm.c: Revert change, due to performance regression it causes on
10157         SPEC because it's slightly more conservative (sigh, I hate
10158         edge-based LCM).
10159
10160 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10161
10162         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10163
10164 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10165
10166         * doc/cppinternals.texi: Update.
10167
10168 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10169
10170         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10171         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10172         negatives.
10173         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10174         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10175         kludge for pre-october-14th mmix versions to handle new-found bug
10176         with PUSHJ/PUSHGO and the register stack.
10177         * config/mmix/mmix.h (struct machine_function): Rename member
10178         has_call_value_without_parameters to has_call_without_parameters.
10179         All referers changed.
10180         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10181         TARGET_MASK_BRANCH_PREDICT): New macros.
10182         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10183         -mno-reg-stack-fill-bug-workaround.
10184         * config/mmix/mmix.md ("call"): Set struct machine member
10185         has_call_without_parameters.
10186
10187 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10188
10189         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10190
10191 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10192
10193         * cfgcleanup.c: Include tm_p.h
10194         (mark_effect): Fix handling of hard register; fix handling of SET
10195
10196 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10197
10198         * config/h8300/h8300.md (anonymous patterns): Check that
10199         operands are registers before using REGNO on them.
10200
10201 2002-01-03  Roland McGrath  <roland@frob.com>
10202
10203         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10204
10205 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10206
10207         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10208         * c-common.h (genrtl_expr_stmt_value): Likewise.
10209         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10210         (expand_expr_stmt_value): Add maybe_last argument.
10211         Don't warn about statement with no effect if it is the last statement
10212         in expression statement.
10213         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10214         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10215         expand_expr_stmt_value.
10216         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10217         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10218         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10219         as maybe_last to expand_expr_stmt_value.
10220
10221 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10222
10223         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10224         be passed in, do not build it.
10225         (c_begin_if_stmt): New function.
10226         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10227         * c-common.h (c_expand_start_cond): Update prototype.
10228         (c_begin_if_stmt): Prototype new function.
10229         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10230         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10231         c_begin_while_stmt and c_finish_while_stmt_cond.
10232
10233 2002-01-04  William Cohen  <wcohen@redhat.com>
10234
10235         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10236         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10237         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10238         * config/pa/som.h (ASM_FILE_START): Likewise.
10239
10240 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10241
10242         * lcm.c: Include df.h.
10243         Add available_transfer_function prototype.
10244         (compute_available): Rework to use iterative dataflow framework.
10245         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10246         with bb_info in df.h
10247         (available_transfer_function): New function.
10248
10249         * Makefile.in (lcm.o): add df.h to dependencies.
10250
10251 2002-01-04  Richard Henderson  <rth@redhat.com>
10252
10253         * config/alpha/alpha.c (some_operand): Accept HIGH.
10254         (input_operand): Likewise; accept simple references to globals.
10255         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10256         (alpha_const_double_ok_for_letter_p): Likewise.
10257         (alpha_extra_constraint): Likewise.
10258         (alpha_preferred_reload_class): Likewise.  Do not force
10259         symbolic constants to memory.
10260         (alpha_legitimate_address_p): Accept simple references
10261         to small_symbolic_operand.
10262         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10263         called when no_new_pseudos.  Emit simple symbolic references.
10264         Split integers into low, high, and rest.
10265         (alpha_expand_mov): Use alpha_legitimize_address.
10266         (some_small_symbolic_mem_operand): New.
10267         (split_small_symbolic_mem_operand): New.
10268         * config/alpha/alpha-protos.h: Update.
10269         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10270         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10271         (EXTRA_CONSTRAINT): Likewise.
10272         (PREFERRED_RELOAD_CLASS): Likewise.
10273         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10274         (PREDICATE_CODES): Update.
10275         * config/alpha/alpha.md: New post-reload splitters to convert
10276         simplfied symbolic operands to the form that references $29.
10277         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10278         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10279
10280 2002-01-03  Richard Henderson  <rth@redhat.com>
10281
10282         * local-alloc.c (function_invariant_p): Update commentary.
10283
10284 2002-01-04  H.J. Lu <hjl@gnu.org>
10285
10286         * toplev.c (rest_of_compilation): Fix a typo when calling
10287         cleanup_cfg.
10288
10289 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10290
10291         * c-common.c: Fix formatting.
10292         * diagnostic.c: Likewise.
10293         * doloop.c: Likewise.
10294         * dwarf2out.c: Likewise.
10295
10296 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10297
10298         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10299         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10300
10301 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10302
10303         * cpperror.c: Update comments and copyright.
10304         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10305         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10306
10307 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10308
10309         * collect2.c (main): Use strcmp when testing for "-shared".
10310
10311 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10312
10313         * cppmacro.c: Don't include intl.h.  Update comments.
10314         (new_number_token): Allocate enough buffer for 64-bit unsigned
10315         integers; update prototype.
10316         * cppmain.c: Update comments.
10317
10318 2002-01-03  William Cohen  <wcohen@redhat.com>
10319
10320         * function.h (struct function): Add profile.
10321         (current_function_profile): New.
10322         doc/extend.texi: Update documentation.
10323         * final.c (final_start_function): Use current_function_profile
10324         instead of profile_flag.
10325         (profile_after_prologue): Likewise.
10326         * function.c (expand_function_start): Likewise.
10327         (expand_function_start): Likewise.
10328         * config/alpha/alpha.c (direct_call_operand):
10329         (alpha_does_function_need_gp): Likewise.
10330         (alpha_expand_prologue): Likewise.
10331         * config/arm/arm.c (arm_expand_prologue): Likewise.
10332         thumb_expand_prologue: Likewise.
10333         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10334         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10335         (fr30_expand_prologue): Likewise.
10336         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10337         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10338         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10339         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10340         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10341         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10342         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10343         (m32r_expand_prologue): Likewise.
10344         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10345         (m88k_expand_prologue): Likewise.
10346         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10347         * config/mips/mips.c (compute_frame_size): Likewise.
10348         (mips_expand_prologue): Likewise.
10349         (mips_can_use_return_insn): Likewise.
10350         * config/pa/elf.h (ASM_FILE_START): Likewise.
10351         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10352         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10353         * config/pa/som.h (ASM_FILE_START): Likewise.
10354         * config/romp/romp.c (romp_using_r14): Likewise.
10355         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10356         (rs6000_stack_info): Likewise.
10357         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10358         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10359         * config/v850/v850.c (compute_register_save_size): Likewise.
10360
10361 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10362
10363         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10364         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10365
10366 2002-01-03  Turly O'Connor  <turly@apple.com>
10367
10368         * darwin.c (machopic_output_possible_stub_label): Don't generate
10369         stub routines for pseudo-stubs which we've just defined.
10370
10371 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10372
10373         * builtins.c: Fix formatting.
10374         * c-typeck.c: Likewise.
10375         * combine.c: Likewise.
10376         * expr.c: Likewise.
10377         * loop.c: Likewise.
10378
10379 2002-01-03  Andreas Schwab  <schwab@suse.de>
10380
10381         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10382         and return true if _cpp_push_next_buffer pushed a new include
10383         file.
10384         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10385         _cpp_pop_file_buffer did not push a new file.
10386         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10387
10388 2002-01-02  Eric Christopher  <echristo@redhat.com>
10389
10390         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10391         FIND_REG_INC_NOTE call. Update copyright.
10392         * loop.c (canonicalize_condition): Ditto.
10393         * reorg.c (delete_scheduled_jump): Ditto.
10394
10395 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10396
10397         * gcse.c: Fix formatting.
10398
10399 2002-01-03  Graham Stott  <grahams@redhat.com>
10400
10401         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10402         forward defs for struct tags rtx_def, union_tree, rtvec_def
10403         also output corresponding typedefs for rtx, tree, and rtvec.
10404
10405         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10406         rtvec_def along with corresponding typedefs for rtx, tree, and
10407         rtvec to config.h, hconfig.h, tconfig.h.
10408
10409 2002-01-03  Graham Stott  <grahams@redhat.com>
10410
10411         * tree.h: Update copyright date.
10412         (IS_EXPR_CODE_CLASS): Add parenthesis.
10413         (TREE_SET_CODE): Add whitespace.
10414         (TREE_CHECK): Add parenthesis.
10415         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10416         (CST_OR_CONSTRUCTOR_CHECK):
10417         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10418         (TREE_SYMBOL_REFERENCED): Whitespace.
10419         (INT_CST_LT): Likewise.
10420         (INT_CST_LT_UNSIGNED): Likewise.
10421         (tree_real_cst): Unwrap comment.
10422         (tree_string): Likewise.
10423         (tree_complex): Likewise.
10424         (IDENTIFIER_POINTER): correct cast.
10425         (SAVE_EXPR_CONTEXT): Whitespace.
10426         (EXPR_WFL_FILENAME_NODE): Likewise.
10427         (EXPR_WFL_FILENAME): Remove parenthesis.
10428         (DECL_ORIGIN): Add parenthesis.
10429         (DECL_FROM_INLINE): Use NULL_TREE.
10430         (build_int_2): Whitespace.
10431         (build_type_variant): Add parenthesis.
10432
10433         * gcc/jcf-parse.c: Update copyright date.
10434         (yyparse): Constify resource_filename.
10435
10436 2002-01-03  Graham Stott  <grahams@redhat.com>
10437
10438         * rtl.h: Update copyright date.
10439         (RTL_CHECK1): Wrap long line.
10440         (RTL_CHECK2): Likewise.
10441         (RTL_CHECKC1): Wrap long line and whitespace.
10442         (RTL_CHECKC2): Likewise.
10443         (XWINT): Whitespace.
10444         (XINT): Likewise.
10445         (XSTR): Likewise.
10446         (XEXP): Likewise.
10447         (XVEC): Likewise.
10448         (XMODE): Likewise.
10449         (XBITMAP): Likewise.
10450         (XTREE): Likewise.
10451         (XBBDEF): Likewise.
10452         (XTMPL): Likewise.
10453         (X0WINT): Likewise.
10454         (X0INT):Likewise.
10455         (X0UINT): Likewise.
10456         (X0STR): Likewise.
10457         (X0EXP): Likewise.
10458         (X0VEC): Likewise.
10459         (X0MODE): Likewise.
10460         (X0BITMAP): Likewise.
10461         (X0TREE): Likewise.
10462         (X0BBDEF): Likewise.
10463         (X0ADVFLAGS): Likewise.
10464         (X0CSELIB): Likewise.
10465         (X0MEMATTR): Likewise.
10466         (XCWINT): Likewise.
10467         (XCINT): Likewise.
10468         (XCUINT): Likewise.
10469         (XCSTR): Likewise.
10470         (XCEXP): Likewise.
10471         (XCVEC): Likewise.
10472         (XCMODE): Likewise.
10473         (XCBITMAP): Likewise.
10474         (XCTREE): Likewise.
10475         (XCBBDEF): Likewise.
10476         (XCADVFLAGS): Likewise.
10477         (XCCSELIB): Likewise.
10478         (XC2EXP): Likewise.
10479         (INSN_UID): Likewise.
10480         (PREV_INSN): Likewise.
10481         (PATTERN): Likewise.
10482         (INSN_CODE): Likewise.
10483         (PUT_REG_NOTE_KIND): Likewise.
10484         (CODE_LABEL_NUMBER): Likewise.
10485         (NOTE_SOURCE_FILE): Likewise.
10486         (NOTE_BLOCK): Likewise.
10487         (NOTE_EH_HANDLER): Likewise.
10488         (NOTE_RANGE_INFO): Likewise.
10489         (NOTE_LIVE_INFO): Likewise.
10490         (NOTE_BASIC_BLOCK): Likewise.
10491         (NOTE_EXPECTED_VALUE): Likewise.
10492         (NOTE_LINE_NUMBER): Likewise.
10493         (LABEL_NAME): Likewise.
10494         (LABEL_NUSES): Likewise.
10495         (LABEL_ALTERNATE_NAME): Likewise.
10496         (ADDRESSOF_DECL): Likewise.
10497         (JUMP_LABEL): Likewise.
10498         (LABEL_NEXTREF): Likewise.
10499         (REGNO): Likewise.
10500         (ORIGINAL_REGNO: Likewise.
10501         (HARD_REGISTER_NUM_P): Add parenthesis.
10502         (SUBREG_REG): Whitespace.
10503         (SUBREG_BYTE): Likewise.
10504         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10505         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10506         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10507         (ASM_OPERANDS_INPUT_VEC): Likewise.
10508         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10509         (ASM_OPERANDS_INPUT): Likewise.
10510         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10511         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10512         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10513         (ASM_OPERANDS_INPUT_MODE): Likewise.
10514         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10515         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10516         (MEM_SET_IN_STRUCT_P): Minor reformat.
10517         (TRAP_CONDITION): Whitespace.
10518         (TRAP_CODE): Likewise.
10519         (COND_EXEC_TEST): Likewise.
10520         (COND_EXEC_CODE): Likewise.
10521         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10522         (PHI_NODE_P): Add parenthesis.
10523         (plus_constant): Whitespace and add parenthesis.
10524
10525 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10526
10527         * config/avr/avr.c: Fix comment typos.
10528         * config/c4x/c4x.md: Likewise.
10529         * config/dsp16xx/dsp16xx.h: Likewise.
10530         * config/dsp16xx/dsp16xx.md: Likewise.
10531         * config/i386/i386.md: Likewise.
10532         * config/ia64/ia64.c: Likewise.
10533         * config/m32r/m32r.h: Likewise.
10534         * config/m68hc11/m68hc11.md: Likewise.
10535         * config/mmix/mmix.c: Likewise.
10536         * config/mn10200/mn10200.c: Likewise.
10537         * config/romp/romp.c: Likewise.
10538         * config/sh/sh.c: Likewise.
10539         * config/stormy16/stormy16.c: Likewise.
10540         * config/stormy16/stormy16.h: Likewise.
10541         * config/stormy16/stormy16.md: Likewise.
10542
10543 2002-01-03  Graham Stott  <grahams@redhat.com>
10544
10545         * loop.h: Update copyright date.
10546         (LOOP_MOVABLES): Fix typo.
10547         (LOOP_REGS): Likewise.
10548         (LOOP_IVS): Likewise.
10549
10550 2002-01-03  Graham Stott  <grahams@redhat.com>
10551
10552         * cppinit.c: Update copyright date.
10553         Don't include output.h
10554         * Makefile.in: Update copyright date.
10555         Update dependency.
10556
10557 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10558
10559         PR c/5226
10560         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10561         (-pthread) Add to RS/6000 options.
10562
10563 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10564
10565         * except.c: Fix comment typos.
10566         * loop.c: Likewise.
10567         * varasm.c: Likewise.
10568         * doc/tm.texi: Fix a typo.
10569
10570 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10571
10572         * c-typeck.c (output_init_element): Allow initializing static storage
10573         duration objects with compound literals.
10574
10575 2002-01-02  Richard Henderson  <rth@redhat.com>
10576
10577         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10578         after abusing it.
10579
10580 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10581
10582         * gcc.c (default_compilers): Const-ify.
10583         * mips-tdump.c (stab_names): Likewise.
10584         * mips-tfile.c (map_coff_types, map_coff_storage,
10585         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10586         pseudo_ops_t, pseudo_ops): Likewise.
10587         * protoize.c (default_include): Likewise
10588
10589         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10590         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10591         Add array size in declaration.
10592         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10593         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10594         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10595         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10596         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10597         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10598         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10599         emtens, make_nan): Const-ify.
10600         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10601         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10602
10603 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10604
10605         * config.gcc (ia64-*-*): Set extra_headers.
10606         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10607         * config/alpha/t-osf: Remove.
10608         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10609
10610 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10611
10612         * config/rs6000/t-aix43: Revert previous change.
10613
10614 2002-01-02  Jason Merrill  <jason@redhat.com>
10615
10616         * c-decl.c (c_expand_body): Call outlining_inline_function when
10617         emitting an inline function out of line.
10618
10619 2002-01-02  Richard Henderson  <rth@redhat.com>
10620
10621         * dwarf2out.c (limbo_die_node): Add created_for member.
10622         (new_die): New argument created_for.  Update all callers.
10623         (mark_limbo_die_list): New.
10624         (dwarf2out_init): Register limbo_die_list as a root.
10625         (dwarf2out_finish): Force insert limbo dies into their function
10626         context.
10627
10628 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10629
10630         PR c++/5089
10631         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10632
10633 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10634
10635         * config/h8300/fixunssfsi.c: Update copyright.
10636         Fix comment typos.
10637         Fix formatting.
10638         * config/h8300/h8300.c: Update copyright.
10639         Eliminate warnings.
10640
10641 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10642
10643         * config/romp/romp.c: Fix comment formatting.
10644         * config/romp/romp.h: Likewise.
10645         * config/romp/romp.md: Likewise.
10646         * config/s390/s390.c: Likewise.
10647         * config/stormy16/stormy16.c: Likewise.
10648         * config/stormy16/stormy16.h: Likewise.
10649
10650 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10651
10652         * c-common.h (genrtl_expr_stmt_value): Declare.
10653         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10654         (genrtl_goto_stmt_value): ... this new function.  Pass new
10655         argument down to expand_expr_stmt_value, taking
10656         TREE_ADDRESSABLE into account.
10657         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10658         STMT_EXPR as addressable, i.e., one whose result we want.
10659         * expr.c (expand_expr): Don't save expression statement value
10660         of labeled_blocks or loop_exprs.
10661         * stmt.c (expand_expr_stmt): Redirect to...
10662         (expand_expr_stmt_value): ... this new function.  Use new
10663         argument to tell whether to save expression value.
10664         (expand_end_stmt_expr): Reset last_expr_type and
10665         last_expr_value if we don't have either.
10666         * tree-inline.c (declare_return_variable): Mark its use
10667         statement as addressable.
10668         * tree.h: Document new use of TREE_ADDRESSABLE.
10669         (expand_expr_stmt_value): Declare.
10670
10671 2002-01-01  Tom Rix  <trix@redhat.com>
10672
10673         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10674         rs6000_emit_allocate_stack.
10675
10676 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10677
10678         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10679         ${srcdir}/ginclude/ to every entry in extra_headers.
10680         * configure: Regenerate.
10681         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10682         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10683         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10684         * ginclude/proto.h: Rename to config/convex/proto.h.
10685
10686 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10687
10688         * attribs.c (handle_vector_size_attribute): Use host_integerp
10689         and tree_int_cst; remove warnings.
10690         * caller-save.c (insert_restore): Add cast to get rid of warning.
10691         (insert_save): Likewise.
10692         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10693         * regmove.c (find_matches): Add temporary var to kill a warning.
10694
10695 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10696
10697         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10698         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10699         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10700         (vms-dwarf2eh.o): Add Makefile rule.
10701         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10702         * config/alpha/vms-dwarf2eh.asm: New file.
10703
10704         * gcc.c (delete_if_ordinary): Delete all versions.
10705
10706 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10707
10708         * config/mmix/mmix.md: Update FIXME to not mention
10709         define_constants.
10710         (MMIX_rJ_REGNUM): New define_constants constant.
10711         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10712         "*movdicc_real"): Adjust contraints formatting.
10713         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10714         for branch prediction.
10715         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10716         output template.
10717         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10718         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10719         number.  Delete related FIXMEs.
10720         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10721         from number to MMIX_rJ_REGNUM.
10722         (TARGET_MASK_BRANCH_PREDICT): New.
10723         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10724         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10725         value.  Add -mbranch-predict and -mno-branch-predict.
10726         (TARGET_VERSION): Drop date.
10727         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10728         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10729         for finding out global symbols.
10730         (mmix_asm_output_labelref): Revert condition for global symbol.
10731         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10732         (mmix_print_operand_punct_valid_p): A '+' is valid.
10733
10734 See ChangeLog.6 for earlier changes.