OSDN Git Service

* config/cris/cris.h (TARGET_VERSION): Remove local version number.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
2
3         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4
5 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6
7         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8         in last patch.
9
10 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
11
12         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
13         instead of unsigned_type.
14
15 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
16
17         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
18         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
19         later.
20
21 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
22
23         * attribs.c (vector_type_node_list): New static variable.
24         (handle_vector_size_attribute): Use it to avoid generating a
25         new type node each time we are called.
26
27         * combine.c (subst): Avoid trying to make a vector mode subreg of
28         an integer constant.
29         (gen_lowpart_for_combine): Likewise.
30                         
31 2002-04-18  Roger Sayle  <roger@eyesopen.com>
32             Jakub Jelinek  <jakub@redhat.com>
33
34         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
35         for integer constant c (if x has unsigned type or sign bit is not
36         set in c).  This folds the zero/sign extension into the bit-wise and
37         operation.
38
39 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
40
41         PR middle-end/6205
42         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
43         otherwise xorps.
44
45 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
46
47         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
48
49 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
50
51         * gcc.c (read_specs): Detect and fail if an attempt is made to
52         rename a spec string to an already existing string.
53
54 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
55
56         * config/s390/s390.c (legitimize_pic_address): Do not generate
57         illegal address constant without CONST.
58
59 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
60
61         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
62         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
63
64 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
65
66         PR optimization/6305
67         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
68         to make sure previous reloads are taken into account.  Generate
69         better code if one operand is an in-range immediate constant.
70
71 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
72
73         * doc/install.texi (Building): libgcj requires GNU make.
74
75 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
76
77         PR bootstrap/6315
78         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
79         even if hard quad and register is not floating.
80         (movtf reg<-mem split): Disallow splitting if hard quad and
81         register is floating.
82         (movtf mem<-reg split): Likewise.
83         * config/sparc/sparc.c (fp_register_operand): New predicate.
84         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
85
86 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
87
88         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
89         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
90         (unprotoize.o): Ditto.  Build from protoize.c.  Define
91         UNPROTOIZE on command line.
92         * protoize.c: Include cppdefault.h.  Delete include_defaults.
93         (in_system_include_dir): Use cpp_include_defaults (defined in
94         cppdefault.o).
95         * unprotoize.c: Delete file.
96
97 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
98
99         * config/rs6000/altivec.h (vec_ld): Add array variants.
100         (vec_lde): Same.
101         (vec_ldl): Same.
102
103 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
104             Aldy Hernandez <aldyh@redhat.com>
105
106         * config/rs6000/altivec.h: Define __ALTIVEC__.
107         (bool): New.
108         (__pixel): New.
109         (pixel): New.
110         (vec_cfux): New.
111         (vec_vmaddfp): New.
112         (vec_vsldoi): New.
113         Add parentheses to all macro arguments.
114
115 2002-04-16  Richard Henderson  <rth@redhat.com>
116
117         PR c++/6320
118         * except.c (remove_eh_handler): Insert inner regions at beginning
119         of sibling chain.  Refactor expressions.
120
121 2002-04-16  Richard Henderson  <rth@redhat.com>
122
123         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
124         * config/sparc/sol2-gas-bi.h: New file.
125         * config.gcc (sparc*-solaris): Add it as needed.
126         * configure.in (AS_SPARC64_FLAG): Remove check.
127         * config.in, configure: Regenerate.
128
129         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
130
131 2002-04-16  Richard Henderson  <rth@redhat.com>
132
133         * config/mips/mips.c (override_options): Don't override N32 for
134         a 64-bit ISA.
135
136         PR 6202
137         * config/mips/mips.md (can_delay): Split out of existing define_delays.
138         (HILO_delay): Set can_delay false.
139
140 2002-04-16  Dale Johannesen <dalej@apple.com>
141
142         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
143         instruction addresses.
144         (rs6000_output_function_epilogue): Likewise.
145
146 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
147
148         * c-parse.in (poplevel, compstmt_start,
149         compstmt_primary_start): Add ending ';', in accordance
150         with POSIX.
151
152 2002-04-16  Richard Henderson  <rth@redhat.com>
153
154         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
155         Adjust tm_file order to get TARGET_DEFAULT set properly.
156         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
157         * doc/install.texi (sparc-solaris): Update.
158
159 2002-04-16  Dale Johannesen <dalej@apple.com>
160
161         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
162         comparison operands do not match each other or if modes of
163         conditions do not match result.
164
165 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
166
167         PR target/6305
168         * config/s390/s390.md (mulsidi3): Set both subregs of the
169         multiword register. 
170
171 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
172
173         * config/rs6000/altivec.h (vec_addc): Type check.
174
175 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
176
177         PR middle-end/6279
178         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
179
180         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
181
182 2002-04-15  Richard Henderson  <rth@redhat.com>
183
184         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
185         call_really_used_regs too.
186
187 2002-04-15  Richard Henderson  <rth@redhat.com>
188
189         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
190
191 2002-04-15  David S. Miller  <davem@redhat.com>
192
193         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
194         as being CLOBBERed.
195
196 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
197
198         PR c/6290
199         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
200         CONST_VECTOR is { 0, ... 0 }.
201
202 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
203
204         * doc/install.texi (Installing GCC: Configuration): Clarify
205         the only supported ways to configure gcc.
206
207 2002-04-15  Roland McGrath  <roland@frob.com>
208  
209         * config.gcc (alpha*-*-gnu*): New target configuration.
210         * config/alpha/gnu.h: New file for it.
211         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
212
213 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
214
215         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
216         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
217         * tree.h (expand_start_stmt_expr): Update prototype.
218         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
219         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
220         on the STMT_EXPR created for the inline function.
221         
222 2002-04-15  Richard Henderson  <rth@redhat.com>
223
224         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
225         config/i386/linux-aout.h, config/i386/linux-oldld.h,
226         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
227         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
228         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
229         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
230         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
231         Define __gnu_linux__, not gnu_linux.
232         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
233
234 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
235
236         Remove Chill front end.
237         * gcc.c (default_compilers): Remove Chill entries.
238         * ch: Remove directory.
239         * doc/frontends.texi: Remove information about Chill.
240         * doc/sourcebuild.texi: Likewise.
241         * doc/standards.texi: Likewise.
242
243 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
244
245         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
246         (LONGLONG_STANDALONE): Define.
247
248 2002-04-15  David S. Miller  <davem@redhat.com>
249
250         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
251         Call emit_library_call with LCT_NORMAL.
252         (sparc_initialize_trampoline): Use LCT_foo instead of
253         magic constant in emit_library_call invocations.
254         (sparc64_initialize_trampoline): Likewise.
255         (sparc_profile_hook): Likewise.
256         * config/sparc/sparc.md: Likewise.
257
258         * config/sparc/sparc.c (sparc_extra_constraint_check):
259         Fix type of argument 'c'.
260         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
261         Likewise.
262
263 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
264
265         * diagnostic.h (output_buffer_state): Redefine.
266         (output_format_decoder): New macro.
267         (output_prefixing_rule): Likewise.
268         (output_line_cutoff): Likewise.
269         (diagnostic_format_decoder): Adjust.
270         (diagnostic_prefixing_rule): Likewise.
271         (diagnostic_line_cutoff): Likewise.
272         (diagnostic_state): Likewise.
273         (diagnostic_kind_count): Likewise.
274         (diagnostic_buffer): Now a macro.
275
276         * diagnostic.c (diagnostic_buffer): Remove definition.
277         (output_is_line_wrapping): Adjust.
278         (set_real_maximum_length): Likewise.
279         (output_set_maximum_length): Likewise.
280         (init_output_buffer): Likewise.
281         (lhd_print_error_function): Likewise.
282         (output_do_verbatim): Likewise.
283
284 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
285
286         * cpperror.c (print_location): Don't print include chain
287         if line == 0.
288         (cpp_begin_message): Update to use DL_ macros.
289         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
290         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
291         cpp_notice, cpp_notice_from_errno): Remove.
292         (cpp_error, cpp_error_with_line): Update to take a diagnostic
293         level.
294         (cpp_errno): New.
295         * cppexp.c (CPP_ICE): Remove.
296         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
297         lex, integer_overflow, _cpp_parse_expr): Update.
298         * cppfiles.c (read_include_file, find_include_file,
299         handle_missing_header, _cpp_read_file, remap_filename): Update.
300         * cpphash.h (enum error_type): Remove.
301         (_cpp_begin_message): Update.
302         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
303         cpp_handle_option, cpp_post_options): Update.
304         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
305         skip_whitespace, parse_identifier, parse_slow, parse_string,
306         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
307         cpp_interpret_charconst): Update.
308         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
309         lex_macro_node, do_undef, glue_header_name, parse_include,
310         do_include_common, read_flag, do_line, do_linemarker, do_ident,
311         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
312         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
313         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
314         _cpp_pop_buffer, do_diagnostic): Update.
315         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
316         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
317         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
318         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
319         cpp_notice, cpp_notice_from_errno): Remove.
320         (cpp_error, cpp_error_with_line): Update to take a diagnostic
321         level.
322         (cpp_errno): New.
323         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
324         collect_args, enter_macro_context, save_parameter, parse_params,
325         _cpp_create_definition, check_trad_stringification,
326         cpp_macro_definition): Update.
327         * cppmain.c (cpp_preprocess_file): Update.
328         * fix-header.c (read_scan_file): Update.
329
330 2002-04-14  Andreas Schwab  <schwab@suse.de>
331
332         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
333
334 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
335
336         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
337
338 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
339
340         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
341         not gnu_hurd.
342
343 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
344
345         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
346
347 2002-04-13      Joel Sherrill <joel@OARcorp.com>
348
349         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
350         sparc-elf and sparc-rtems targets.
351
352 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
353
354         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
355         defined, and __gnu_hurd__ wherever __GNU__ is defined.
356         * arm/linux-elf.h: Likewise.
357         * cris/aout.h: Likewise.
358         * cris/linux.h: Likewise.
359         * i370/linux.h: Likewise.
360         * i386/gnu.h: Likewise.
361         * i386/linux-aout.h: Likewise.
362         * i386/linux-oldld.h: Likewise.
363         * i386/linux.h: Likewise.
364         * i386/linux64.h: Likewise.
365         * ia64/linux.h: Likewise.
366         * m68k/linux-aout.h: Likewise.
367         * m68k/linux.h: Likewise.
368         * mips/linux.h: Likewise.
369         * pa/pa-linux.h: Likewise.
370         * pj/linux.h: Likewise.
371         * rs6000/sysv4.h: Likewise.
372         * s390/linux.h: Likewise.
373         * sh/linux.h: Likewise.
374         * sparc/linux-aout.h: Likewise.
375         * sparc/linux.h: Likewise.
376         * sparc/linux64.h: Likewise.
377         * xtensa/linux.h: Likewise.
378
379 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
380
381         * stmt.c (check_unique_operand_names): Expect operand names to
382         be strings rather than identifiers.  Use simple_cst_equal to
383         compare them.
384         (resolve_operand_name_1): Make same identifier to string change here.
385         * c-parse.in (asm_operand): Convert a named operand into a string.
386         * cp/parse.y (asm_operand): Likewise.
387
388 2002-04-13  Andreas Schwab  <schwab@suse.de>
389
390         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
391
392 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
393
394         Revert these changes:
395
396         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
397
398         PR c++/5571
399         * stor-layout.c (layout_decl): Reset the RTL for the decl.
400
401 2002-04-12  Richard Henderson  <rth@redhat.com>
402
403         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
404         (sparc*-*-solaris): Clean up header files.
405         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
406         and plan on generating 64-bit code.
407         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
408         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
409         * config/sparc/sol2-sld-64.h: Rename ...
410         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
411         for AS_SPARC64_FLAG not defined.
412         * config/sparc/sol2-gld-bi.h: New.
413         * config/sparc/sol2-sld.h: Remove.
414         * config/sparc/sol26-sld.h: New.
415         * config/sparc/sol2.h: Tidy comments.
416         * doc/install.texi: Document sparc-solaris configury changes.
417
418 2002-04-12  Richard Henderson  <rth@redhat.com>
419
420         * recog.c (offsettable_address_p): Match the logic in adjust_address.
421
422         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
423         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
424
425 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
426
427         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
428
429 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
430
431         * pa.c (pa_can_combine_p): Call extract_insn before calling
432         constrain_operands.
433
434 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
435
436         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
437         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
438         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
439         (CPP_PREDEFINES): Handle __declspec.
440         * config/i386/t-interix (USER_H): Remove.
441
442 2002-04-12  DJ Delorie  <dj@redhat.com>
443
444         * integrate.c (compare_blocks): Make comparisons safe for when
445         sizeof(int) < sizeof(char *).
446         (find_block): Likewise.
447
448 2002-04-12  Jan Hubicka  <jh@suse.cz>
449             David Edelsohn  <edelsohn@gnu.org>
450
451         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
452         registers.
453         (symbol_ref_operand): New.
454         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
455         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
456
457 2002-04-12  Andreas Schwab  <schwab@suse.de>
458
459         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
460         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
461         overrides the definition in config/svr4.h.
462         
463 2002-04-12      Eric Norum <eric.norum@usask.ca>
464
465         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
466         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
467         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
468         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
469         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
470         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
471         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
472         definitions to config/rtems.h and make the targets more similar.
473
474 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
475
476         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
477         POINTERS_EXTEND_UNSIGNED.
478         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
479         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
480
481         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
482         not specified.
483
484 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
485
486         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
487         depends on TARGET_SHMEDIA, not TARGET_SH5.
488
489 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
490
491         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
492         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
493
494 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
495
496         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
497         no r0 clobber.
498
499 2002-04-12  Andreas Schwab  <schwab@suse.de>
500
501         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
502
503 2002-04-12  Richard Henderson  <rth@redhat.com>
504
505         PR bootstrap/4191
506         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
507
508         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
509         modes spanning multiple hard regs.
510     
511         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
512
513 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
514
515         * pa.c (pa_output_function_prologue): Don't accumulate the total
516         number of code bytes when using TARGET_64BIT, or gas, SOM and not
517         the portable runtime.
518         (output_deferred_plabels): Handle 64bit plabels.
519         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
520         generating pic code using the GAS assembler for object formats that
521         are not SOM (ie., ELF32 and ELF64).
522         (output_millicode_call): Check attribute type if attribute length is 28.
523         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
524         dbr_sequence_length once.
525         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
526         dbr_sequence_length once.
527         * pa.h (TARGET_SOM): Define if not defined.
528         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
529         with GAS and not SOM.
530         (jump, call_internal_reg, call_value_internal_reg): Likewise.
531         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
532
533 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
534
535         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
536         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
537         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
538         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
539         elfos.h and dbxelf.h values are fine now.
540         * config/i386/freebsd.h, config/alpha/freebsd.h
541         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
542
543 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
544
545         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
546         or set Acpu or Amachine.  Reformat.
547         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
548         define.
549         (LINK_SPEC): Do not need to undef.
550         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
551         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
552         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
553         define.
554         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
555         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
556         (LINK_SPEC): Do not need to undef.
557         (DONT_USE_BUILTIN_SETJMP): Do not define.
558         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
559         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
560         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
561         Remove trailing spaces.
562         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
563         __ELF__, or set Acpu or Amachine.  Reformat.
564         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
565         define.
566
567 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
568
569         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
570         all other *-*-freebsd* targets.
571
572 2002-04-11  Richard Henderson  <rth@redhat.com>
573
574         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
575
576 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
577
578         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
579         Include {cpu}/{cpu}.h thru tm_file.
580         (alpha*-*-linux*ecoff): Remove target.
581         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
582         (LINK_SPEC): Remove, is not OS independent.
583         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
584         (LINK_SPEC): Do not need to #undef any longer.
585         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
586         any longer.
587         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
588         __ELF__.
589         (LINK_SPEC): Moved here from alpha/elf.h.
590         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
591         SUB_CPP_PREDEFINES.
592         * config/alpha/linux-ecoff.h: Remove.
593         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
594         (CPP_SPEC): Define _POSIX_SOURCE as needed.
595         (CPP_SUBTARGET_SPEC): Do not define.
596         (LINK_SPEC): Do not need to #undef any longer.
597         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
598         * config/alpha/vms.h: Likewise.
599
600 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
601
602         * doc/extend.texi: Remove old claim that typedefs cannot have
603         an alignment attribute.
604
605 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
606
607         PR optimization/6177
608         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
609         bitpos is 0 and bitsize CONCAT size.
610
611 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
612
613         PR c/6223
614         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
615
616 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
617
618         * config/alpha/freebsd.h: Minor reformatting.
619         (CPP_SPEC): Define ELF and add cpp_subtarget.
620         (ASM_SPEC): No longer needed.
621
622 2002-04-11  Richard Henderson  <rth@redhat.com>
623
624         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
625         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
626         (dimode mem/zero splitter): New.
627
628 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
629
630         * config/cris/cris.c (cris_override_options): Tweak error message
631         for PIC not implemented.
632
633         * config/cris/cris.h: Tweak comments related to parameter-passing.
634
635         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
636
637 2002-04-10  Richard Henderson  <rth@redhat.com>
638
639         * except.c (add_ehl_entry): Allow duplicates after landing pad
640         creation.
641
642 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
643
644         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
645
646 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
647
648         * c-decl.c (c_init_decl_processing): Move generation of
649         decls for g77_integer_type_node and friends from here ...
650         * c-common.c (c_common_nodes_and_builtins): ... to here.
651
652 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
653
654         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
655         is only used as frame pointer when frame_pointer_needed is true.
656
657 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
658
659         PR target/817
660         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
661         for the fact that the pool entry uses two words.
662         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
663         1k bytes.
664         (movdf_soft_insn): Similarly.
665         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
666         for the fact that the pool entry uses three words.
667
668 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
669
670         * config/mips/mips.c (mips_va_arg): When using the struct version
671         of the EABI va_list, allow arguments in the register save area to
672         take up less room than a stack argument.
673
674 2002-04-10  Richard Henderson  <rth@redhat.com>
675
676         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
677         if EXPAND_INITIALIZER.
678
679 2002-04-09  Richard Henderson  <rth@redhat.com>
680
681         * config/alpha/alpha.md (movdi_er_maybe_g): New.
682         * config/alpha/alpha.c (alpha_expand_mov): Use it.
683
684 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
685
686         PR optimization/6233
687         * rtlanal.c (pure_call_p): New function.
688         * rtl.h (pure_call_p): Declare.
689         * loop.c (prescan_loop): Use it to set has_nonconst_call.
690         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
691
692 2002-04-09  Eric Christopher  <echristo@redhat.com>
693
694         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
695         information to .comm directive.
696
697 2002-04-09  Richard Henderson  <rth@redhat.com>
698
699         PR c/5078
700         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
701
702 2002-04-09  Richard Henderson  <rth@redhat.com>
703
704         * basic-block.h (flow_delete_block_noexpunge): Declare.
705         (expunge_block_nocompact): Declare.
706         * cfg.c (expunge_block_nocompact): Split out from ...
707         (expunge_block): ... here.
708         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
709         (flow_delete_block_noexpunge): Split out from ...
710         (flow_delete_block): ... here.
711         * cfgcleanup.c (delete_unreachable_blocks): Compact while
712         removing dead blocks.
713         * except.c (exception_handler_labels): Remove.
714         (exception_handler_label_map): New.
715         (struct eh_region): Add aka member.
716         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
717         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
718         (for_each_eh_label, for_each_eh_label_1): New.
719         (init_eh): Register exception_handler_label_map.
720         (free_eh_status): Use free_region.
721         (find_exception_handler_labels): Use the map, not the list.
722         (remove_exception_handler_label): Likewise.
723         (maybe_remove_eh_handler): Likewise.
724         (remove_eh_handler): Use the region aka bitmap.
725         * except.h (exception_handler_labels): Remove.
726         (for_each_eh_label): Declare.
727         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
728         * loop.c (invalidate_loops_containing_label): New.
729         (find_and_verify_loops): Use it.  Use for_each_eh_label.
730         * sched-rgn.c (is_cfg_nonregular): Use
731         current_function_has_exception_handlers.
732
733 2002-04-09  Richard Henderson  <rth@redhat.com>
734
735         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
736         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
737         Do not return changed status.
738         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
739         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
740         New functions that do return changed status.
741         * sbitmap.h: Update decls.
742         * gcse.c, lcm.c: Use _cg functions as needed.
743
744 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
745
746         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
747         (sh64-*-elf*, sh-*-rtemself*): Likewise.
748         * config/sh/embed_bb.c: New file.
749         * config/sh/embed-elf.h: New file.
750         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
751         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
752         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
753         __PTRDIFF_TYPE__ .
754         (SUBTARGET_CPP_PTR_SPEC): Don't define.
755         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
756         Add subtarget_asm_endian_spec.
757         (ASM_SPEC): Use subtarget_asm_endian_spec.
758         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
759         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
760         (WCHAR_UNSIGNED): Define.
761         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
762         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
763         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
764         Fix value.
765         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
766         (sh_adjust_cost): Likewise.
767         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
768         __PTRDIFF_TYPE__ .
769         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
770         (WCHAR_TYPE_SIZE): Likewise.
771         (ASM_SPEC): Use subtarget_asm_endian_spec.
772         (SH_ELF_WCHAR_TYPE): #undef/ #define.
773         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
774         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
775         (MAX_WCHAR_TYPE_SIZE): Don't #define .
776         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
777         (USER_LABEL_PREFIX): Don't #undef /#define .
778         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
779         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
780         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
781         (ASM_SPEC): Likewise.
782         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
783         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
784         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
785         (LIB2FUNCS_EXTRA): Define.
786         * t-sh64 (LIB2FUNCS_EXTRA): Define.
787         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
788         (LIB1ASMFUNCS_CACHE): Define.
789         (LIB2FUNCS_EXTRA): Redefine empty.
790
791 2002-04-08  Richard Henderson  <rth@redhat.com>
792
793         * reorg.c (get_branch_condition): Use reversed_comparison_code.
794
795 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
796
797         * config/m68hc11/larith.asm (__map_data_section): Fix condition
798         and optimize for size.
799         (__do_global_ctors): Fix pointer comparison.
800         (__do_global_dtors): Likewise.
801
802 2002-04-09  David S. Miller  <davem@redhat.com>
803
804         * config/sparc/sparc.c (sparc_extra_constraint_check): New
805         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
806         allow reloading pseudos.
807         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
808         * config/sparc/sparc-protos.h: Declare it.
809
810         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
811         unsigned comparison warning.
812         (output_restore_regs): Mark leaf_function as unused.
813
814 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
815
816         * expr.c (is_aligning_offset): New function.
817         (expand_expr, case COMPONENT_EXPR): Call it.
818
819 2002-04-08  David S. Miller  <davem@redhat.com>
820
821         PR target/6082
822         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
823
824         Make init_priority work on Sparc when using GNU ld.
825         * config/sparc/linux.h, config/sparc/linux64.h,
826         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
827         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
828         * config/sparc/sol2-gld.h: New file to do the same.
829         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
830         sparc/sol2-gld.h to tm_file.
831
832         PR optimization/4328
833         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
834         * doc/md.texi: Document it.
835         * config/sparc/sparc.md (movdi_insn_sp64_novis,
836         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
837         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
838         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
839         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
840
841 2002-04-08  Andreas Jaeger  <aj@suse.de>
842
843         * stmt.c (expand_asm_operands): Revert last patch from Richard
844         Henderson.
845
846 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
847
848         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
849         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
850
851 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
852
853         * doc/contrib.texi (Contributors): Add David O'Brien.
854
855 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
856
857         * configure.in (auto-build.h): Use target_alias and build_alias
858         when running configure.
859         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
860         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
861         * configure: Regenerate.
862
863 2002-04-07  David S. Miller  <davem@redhat.com>
864
865         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
866
867 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
868
869         PR 5933
870         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
871         generating 32-bit pic code.
872
873 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
874
875         * cppinit.c (cpp_create_reader): Initialize
876         discard_comments_in_macro_exp.
877         (COMMAND_LINE_OPTIONS): Add "-CC" option.
878         (cpp_handle_option): Handle "-CC" option.
879         * cpplex.c (save_comment): If saving a C++ comment in
880         a directive, convert it to a C comment.
881         (_cpp_lex_direct): Pass second comment start character to
882         save_comment to indicate comment type.
883         * cpplib.c (_cpp_handle_directive): If processing
884         a "#define" directive and discard_comments_in_macro_exp
885         is false,  re-enable saving of comments.
886         (lex_macro_node): If discard_comments_in_macro_exp is false,
887         discard any comments before the macro identifier.
888         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
889         member.
890         * cppmacro.c (cpp_get_token): If expanding a macro while
891         processing a directive, discard any comments we might encounter.
892         (parse_params): If discard_comments_in_macro_exp is false,
893         ignore comments in the macro parameter list.
894         * gcc.c (cpp_unique_options): Add "-CC" option.
895         (option_map): Map "--comments-in-macros" to "-CC".
896         * doc/cppopts.texi: Document "-CC" option.
897         * f/lang-specs.h: Add "-CC" option.
898         * testsuite/gcc.dg/cpp/maccom1.c: New test.
899         * testsuite/gcc.dg/cpp/maccom2.c: New test.
900         * testsuite/gcc.dg/cpp/maccom3.c: New test.
901         * testsuite/gcc.dg/cpp/maccom4.c: New test.
902         * testsuite/gcc.dg/cpp/maccom5.c: New test.
903         * testsuite/gcc.dg/cpp/maccom6.c: New test.
904
905 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
906
907         PR middle-end/6180
908         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
909
910 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
911
912         PR c++/5571
913         * stor-layout.c (layout_decl): Reset the RTL for the decl.
914
915         PR opt/5120
916         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
917         RTX_UNCHANGING_P for the functions arguments when a tail call
918         is made.
919
920 2002-04-06  Jason Merrill  <jason@redhat.com>
921
922         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
923         (parse_options_and_default_flags): Set them appropriately.
924         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
925
926 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
927
928         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
929         here.
930
931         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
932         semicolon.
933
934         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
935         types come in by-reference.  Fix typo in comment.
936
937 2002-04-05  David S. Miller  <davem@redhat.com>
938
939         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
940         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
941         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
942         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
943
944 2002-04-05  David S. Miller  <davem@redhat.com>
945
946         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
947         are not going to emit return instructions, emit at least a nop
948         for the sake of sane backtraces.
949
950 2002-04-05  Richard Henderson  <rth@redhat.com>
951
952         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
953
954 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
955
956         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
957
958 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
959
960         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
961         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
962         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
963
964 2002-04-05  Andreas Schwab  <schwab@suse.de>
965
966         * c-convert.c: Include c-common.h.
967         * Makefile.in (c-convert.o): Updated.
968
969 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
970
971         * mklibgcc.in: Use separate libgcc.map for each multilib.
972         * Makefile.in (distclean): Don't remove libgcc.map here.
973
974 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
975
976         * Makefile.in (s-mlib): Handle --disable-multilib by separate
977         genmultilib invocation.
978
979 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
980
981         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
982         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
983         to num_gprs for symmetry.
984         * config/mips/mips.c: Adjust accordingly.
985
986 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
987
988         * c-common.c (truthvalue_conversion): Rename, update.
989         * c-common.h (c_common_truthvalue_conversion): New.
990         * c-convert.c (convert): Update.
991         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
992         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
993         * c-typeck.c (build_binary_op, build_unary_op,
994         build_conditional_expr): Update.
995         * fold-const.c (constant_boolean_node, fold): Use langhook.
996         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
997         * langhooks.h (struct lang_hooks): New hook.
998         * stmt.c (expand_decl_cleanup): Use langhook.
999         * tree.h (truthvalue_conversion): Remove.
1000 objc:
1001         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1002
1003 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1004
1005         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1006         Add rules to make null object file.
1007
1008 2002-04-04  Jim Blandy  <jimb@redhat.com>
1009
1010         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1011         macro formal parameter names.
1012
1013 2002-04-04  David S. Miller  <davem@redhat.com>
1014
1015         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1016
1017 2002-04-04  Richard Henderson  <rth@redhat.com>
1018
1019         PR middle-end/5099
1020         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1021         Support copies into and out of memory.  Don't accept allows_reg
1022         and allows_mem as gospel.
1023
1024 2002-04-04  Richard Henderson  <rth@redhat.com>
1025
1026         PR opt/6165
1027         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1028         (write_dependence_p): Likewise.
1029
1030 2002-04-04  Richard Henderson  <rth@redhat.com>
1031
1032         * predict.c (estimate_bb_frequencies): Do frequency calculation
1033         with a volatile temporary.
1034
1035 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1036
1037         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1038
1039 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1040
1041         PR c++/6119
1042         * final.c (final_start_function): Don't bump profile_label_no here...
1043         (final_end_function): ...but here.
1044
1045 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1046
1047         * config/sparc/sparc.md (pic): New attribute.
1048         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1049         into stack slots.
1050         (split after do_builtin_setjmp_setup): New.
1051
1052 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1053
1054         PR fortran/6106
1055         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1056         change.
1057
1058 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1059
1060         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1061         UNITS_PER_WORD for zero sized aggregates.
1062
1063 2002-04-03  David S. Miller  <davem@redhat.com>
1064
1065         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1066         one-character spec for this, just use %(link_gcc_c_sequence).
1067
1068 2002-04-03  David S. Miller  <davem@redhat.com>
1069
1070         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1071         handling.
1072
1073 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1074
1075         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1076         (DWARF_FRAME_RETURN_COLUMN): Move.
1077         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1078         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1079         * pa.c (except.h, predict.h): Include.
1080         (FRP): Delete.
1081         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1082         (output_ascii): Add cast.
1083         (store_reg_modify): Revise to add frame notes.
1084         (set_reg_plus_d): Likewise.
1085         (compute_frame_size): Include space for eh data registers in frame if
1086         the current function calls eh_return.
1087         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1088         function calls eh_return.  Save eh data registers if the current
1089         function calls eh_return.  Fix code to add frame notes.  Emit
1090         blockage to prevent insns with frame notes being scheduled in the
1091         delay slot of calls.
1092         (hppa_expand_epilogue): Restore eh data registers and do final stack
1093         adjustment if the current function calls eh_return.  Don't add frame
1094         notes.
1095         (output_call): Revise for change in length of call insn.  Don't do
1096         return pointer adjustment for an unconditional jump in the delay slot
1097         of a call when using frame notes.
1098         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1099         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1100         (ARG_POINTER_CFA_OFFSET): Define.
1101         * pa.md (return_external_pic): New pattern.
1102         (prologue): Correct formatting.  Use return_external_pic if current
1103         function calls eh_return.
1104         (call_internal_symref, call_value_internal_symref,
1105         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1106         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1107         respectively.
1108         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1109
1110         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1111         list of targets to check using "nop" insn.
1112         * configure: Rebuilt.
1113
1114 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1115
1116         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1117
1118 2002-04-03  David S. Miller  <davem@redhat.com>
1119
1120         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1121         library sequence passed to the linker.
1122         (LINK_COMMAND_SPEC): Use it.
1123         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1124         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1125         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1126
1127 2002-04-03  Jason Merrill  <jason@redhat.com>
1128
1129         * except.c (struct eh_status): Remove protect_list.
1130         (begin_protect_partials, end_protect_partials): Remove.
1131         (add_partial_entry): Remove.
1132         * except.h: Remove prototypes.
1133
1134         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1135         expand_decl_cleanup_eh.
1136
1137         PR c++/5636
1138         * tree.h (CLEANUP_EH_ONLY): New macro.
1139         * stmt.c (expand_decl_cleanup_eh): New fn.
1140         (expand_cleanups): Check CLEANUP_EH_ONLY.
1141         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1142         Use expand_decl_cleanup_eh.
1143         (expand_stmt): Adjust.
1144         * c-common.h: Adjust prototype.
1145
1146 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1147
1148         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1149         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1150         (cris_target_asm_function_epilogue): Ditto.
1151         (cris_initial_frame_pointer_offset): Ditto.
1152         (cris_simple_epilogue): Ditto.
1153         (cris_expand_builtin_va_arg): Variable-size types come in
1154         by-reference.
1155
1156 2002-04-03  David S. Miller  <davem@redhat.com>
1157
1158         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1159         little-endian.
1160         (set_fast_math): Correct 'fsr' type.
1161
1162 2002-04-03  Richard Henderson  <rth@redhat.com>
1163
1164         PR opt/3569
1165         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1166         * toplev.c (check_global_declarations): Use it.
1167         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1168         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1169         (LANG_HOOKS_DECLS): Add it.
1170         * langhooks.c (lhd_warn_unused_global_decl): New.
1171         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1172         * c-objc-common.c (c_warn_unused_global_decl): New.
1173         * c-tree.h (c_warn_unused_global_decl): Declare.
1174         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1175
1176 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1177
1178         * langhooks-def.h (lhd_set_decl_assembler_name,
1179         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1180         (LANG_HOOKS_INITIALIZER): Update.
1181         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1182         * langhooks.h (struct lang_hooks): New hook.
1183         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1184         (lang_set_decl_assembler_name): Remove.
1185         (init_obstacks): Don't set hook.
1186         (decl_assembler_name): New function.
1187         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1188         (decl_assembler_name): New.
1189         (lang_set_decl_assembler_name): Remove.
1190
1191 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1192
1193         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1194         works properly with .hidden symbols.
1195         * configure: Rebuilt.
1196         * config.in: Rebuilt.
1197         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1198         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1199         properly with .hidden symbols.
1200
1201 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1202
1203         PR middle-end/6102
1204         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1205         USE argument.
1206
1207 2002-04-03  Richard Henderson  <rth@redhat.com>
1208
1209         PR opt/4120
1210         * sched-rgn.c (sets_likely_spilled): New.
1211         (sets_likely_spilled_1): New.
1212         (add_branch_dependences): Use it.
1213
1214 2002-04-02  Richard Henderson  <rth@redhat.com>
1215
1216         PR opt/4311
1217         * loop.h (LOOP_FIRST_PASS): New.
1218         * loop.c (strength_reduce): Mind it when deciding to unroll.
1219         * toplev.c (rest_of_compilation): Set it.
1220
1221 2002-04-02  David S. Miller  <davem@redhat.com>
1222
1223         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1224         mems_ok_for_ldd_peep when the order of the loads being examined
1225         is reversed.
1226         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1227         existing comment to increase comprehension of this situation.
1228
1229 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1230
1231         * config/sh/sh.md: Don't use union real_extract.
1232
1233 2002-04-02  Richard Henderson  <rth@redhat.com>
1234
1235         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1236
1237 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1238
1239         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1240         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1241         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1242         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1243         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1244         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1245         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1246         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1247         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1248         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1249         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1250         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1251         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1252         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1253         Include as many configury headers via tm_file as possible.  This
1254         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1255         * config/openbsd-oldgas.h: New file.
1256         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1257         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1258         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1259         config/i386/i386-coff.h, config/i386/i386-interix.h,
1260         config/i386/iscdbx.h, config/i386/linux-aout.h,
1261         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1262         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1263         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1264         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1265         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1266         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1267         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1268         config/i386/vxi386.h: Do not directly include configury headers.
1269         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1270         Directly include configury headers that are no longer automatically
1271         included by the above headers.
1272         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1273         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1274         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1275         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1276         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1277         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1278         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1279         (TARGET_VERSION): Define.
1280         * config/i386/beos-elf.h, config/i386/freebsd.h,
1281         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1282         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1283         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1284         config/i386/sco5.h, config/i386/sysv4.h
1285         (TARGET_VERSION): Do not need to protect.
1286         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1287         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1288         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1289         config/i386/i386-interix.h, config/i386/linux-aout.h,
1290         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1291         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1292         (YES_UNDERSCORES): Do not define - not needed.
1293         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1294         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1295         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1296         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1297         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1298         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1299         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1300         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1301
1302 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1303             Richard Henderson  <rth@redhat.com>
1304
1305         PR c/5484
1306         * function.c (assign_temp): Accept either type or decl argument.
1307         Detect variables whose size is too large to fit into an integer.
1308         * stmt.c (expand_decl): Pass the decl, not the type.
1309
1310 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1311
1312         * protoize.c: Match include directory usage with cppdefault.c.
1313
1314 2002-04-03  Jeffrey A Law  (law@redhat.com)
1315             Hans-Peter Nilsson  <hp@bitrange.com>
1316
1317         * combine.c (simplify_comparison): Avoid narrowing a comparison
1318         with a paradoxical subreg when doing so would drop signficant bits.
1319
1320 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1321
1322         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1323         if POINTERS_EXTEND_UNSIGNED is defined.
1324
1325 2002-04-02  Richard Henderson  <rth@redhat.com>
1326
1327         PR opt/3967
1328         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1329         replace regs.
1330
1331 2002-04-02  Richard Henderson  <rth@redhat.com>
1332
1333         * doc/standards.texi: Document required freestanding libc entry points.
1334
1335 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1336
1337         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1338         associated splitter.  Remove MQ constraint.
1339         (ctrdi_internal4): Correct CCmode clobber.
1340
1341 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1342
1343         * milli64.S ($$dyncall): New function.
1344         * t-linux (LIB1ASMFUNCS): Revise module list.
1345         (LIB1ASMSRC): Use pa/milli64.S.
1346
1347 2002-04-02  Richard Henderson  <rth@redhat.com>
1348
1349         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1350         rename solaris_sys_varargs_h.
1351
1352 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1353
1354         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1355         the same mode as its component.
1356
1357 2002-04-02  Richard Henderson  <rth@redhat.com>
1358
1359         PR opt/190
1360         * final.c (this_is_asm_operands): Export.
1361         * output.h (this_is_asm_operands): Declare.
1362         * config/i386/i386.c (print_operand): Error odd asm operands.
1363
1364 2002-04-02  Richard Henderson  <rth@redhat.com>
1365
1366         PR opt/420
1367         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1368
1369 2002-04-01  Richard Henderson  <rth@redhat.com>
1370
1371         PR target/1538
1372         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1373         * fixinc/fixincl.x: Rebuild.
1374
1375 2002-04-01  Richard Henderson  <rth@redhat.com>
1376
1377         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1378         (atomic_alloc, atomic_free): New.
1379         (SIZE, MASK_FOR, PTR_IN): New.
1380         (emergency_reg_state, emergency_reg_state_free): New.
1381         (emergency_labeled_state, emergency_labeled_state_free): New.
1382         (reg_state_alloced, labeled_state_alloced): New.
1383         (alloc_reg_state, free_reg_state): New.
1384         (alloc_label_state, free_label_state, free_label_states): New.
1385         (push, pop, dup_state_stack, free_state_stack): Use them.
1386         (desc_label_state): Likewise.
1387         (uw_frame_state_for): Free label states and state stack.
1388         (uw_update_reg_address): Eliminate warnings.
1389
1390 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1391
1392         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1393         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1394
1395 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1396
1397         * c-decl.c (grokdeclarator): Update.
1398         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1399         * c-tree.h (c_mark_addressable): New.
1400         * c-typeck.c (default_function_array_conversion, build_unary_op,
1401         build_array_ref, convert_for_assignment): Update.
1402         (mark_addressable): Rename.
1403         * calls.c (try_to_integrate, expand_call): Use langhook.
1404         * expr.c (expand_expr): Use langhook.
1405         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1406         * langhooks.h (struct lang_hooks): New hook.
1407         * stmt.c (expand_asm_operands): Use langhook.
1408         * tree.h (mark_addressable): Remove.
1409 objc:
1410         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1411
1412 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1413
1414         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1415         in previous change.
1416
1417 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1418
1419         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1420         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1421
1422 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1423
1424         * c-common.c (unsigned_conversion_warning, convert_and_check,
1425         unsigned_type, signed_type, shorten_compare,
1426         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1427         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1428         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1429         New.
1430         * c-decl.c (grokdeclarator): Update.
1431         * c-format.c (check_format_types): Update.
1432         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1433         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1434         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1435         * convert.c (convert_to_integer): Use new hooks.
1436         * expmed.c (make_tree): Use new hooks.
1437         * expr.c (store_expr): Use new hooks.
1438         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1439         all_ones_mask_p, unextend, fold): Use new hooks.
1440         * langhooks.h (struct lang_hooks_for_types): New hooks.
1441         * tree.h (signed_or_unsigned_type, signed_type,
1442         unsigned_type): Remove.
1443 objc:
1444         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1445         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1446
1447 2002-03-31  Richard Henderson  <rth@redhat.com>
1448
1449         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1450         (desc_frgr_mem): Fix reference to f16-f31.
1451
1452 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1453
1454         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1455         RTVEC_ELT): Const-ify.
1456         * varray.h (VARRAY_CHECK): Const-ify.
1457         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1458         ggc_mark_rtvec, ggc_mark): Const-ify.
1459
1460 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1461
1462         * diagnostic.c: Include langhooks-def.h.
1463         * Makefile.in (diagnostic.o): Update.
1464
1465 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1466
1467         * c-common.c (c_unsafe_for_reeval): Rename.
1468         * c-common.h (c_unsafe_for_reeval): Rename.
1469         * c-decl.c (finish_incomplete_decl): Rename.
1470         (c_init_decl_processing): Don't set langhook.
1471         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1472         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1473         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1474         * c-tree.h (finish_incomplete_decl): Rename.
1475         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1476         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1477         (LANG_HOOKS_INITIALIZER): Update.
1478         * langhooks.c (lhd_unsafe_For_reeval): New.
1479         * langhooks.h (struct langhooks): New hooks.
1480         * toplev.c (incomplete_decl_finalize_hook): Remove.
1481         (wrapup_global_declarations): Update.
1482         * tree.c (lang_unsafe_for_reeval): Remove.
1483         (unsafe_for_reeval): Update.
1484         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1485         Remove.
1486 objc:
1487         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1488         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1489
1490 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1491
1492         * diagnostic.c (print_error_function): Remove.
1493         (default_print_error_function): Rename.
1494         (report_error_function): Update.
1495         * diagnostic.h (print_error_function): Remove.
1496         (default_print_error_function): Remove.
1497         * langhooks-def.h (struct diagnostic_context): Predeclare.
1498         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1499         (LANG_HOOKS_INITIALIZER): Update.
1500         * langhooks.h (struct diagnostic context): Predeclare.
1501         (struct lang_hooks): New hook.
1502
1503 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1504
1505         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1506         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1507         !flag_pic.
1508         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1509         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1510         of PIC_OFFSET_TABLE_REGNUM thruout.
1511         * config/rs6000/rs6000.md: Likewise.
1512         * config/rs6000/darwin.h: Likewise.
1513
1514 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1515
1516         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1517         unsigned HOST_WIDE_INT, not unsigned int.
1518
1519 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1520
1521         PR middle-end/6096, middle-end/6098, middle-end/6099
1522         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1523         CODE_LABELs.
1524         (fill_slots_from_thread): Likewise.
1525
1526 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1527
1528         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1529         floating fields in float regs.
1530         (function_arg_record_value_2): Likewise.
1531
1532 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1533
1534         * config/mmix/mmix.md (define_constants): Remove misleading
1535         FIXME.  Add MMIX_fp_rO_OFFSET.
1536         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1537         saved rO as part of the pattern.  Remove FIXME.
1538         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1539         here, at output-time.
1540
1541 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1542
1543         PR middle-end/6100
1544         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1545         REG_BR_PRED.
1546         (output_v9branch): Likewise.
1547
1548 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1549
1550         * gcc.c: Revert previous patch for now.
1551         * config/i386/djgpp.h: Likewise.
1552
1553 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1554
1555         * config/mmix/crti.asm (_init): Register _fini with atexit.
1556         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1557
1558 2002-03-31  Richard Henderson  <rth@redhat.com>
1559
1560         PR target/3997
1561         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1562         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1563
1564 2002-03-31  Richard Henderson  <rth@redhat.com>
1565
1566         * libgcc2.c (__bb_exit_func): Make static.
1567
1568         * config/alpha/alpha.md (trap): New.
1569
1570 2002-03-31  Richard Henderson  <rth@redhat.com>
1571
1572         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1573         promoted argument types; build trap.
1574         (expand_builtin_trap): New.
1575         (expand_builtin): Use it.
1576         * stmt.c (expand_nl_goto_receivers): Likewise.
1577         * expr.h (expand_builtin_trap): Declare.
1578         * libfuncs.h (LTI_abort, abort_libfunc): New.
1579         * optabs.c (init_optabs): Init abort_libfunc.
1580
1581 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1582
1583         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1584         (LINK_COMMAND_SPEC): ... from here.
1585         (init_gcc_specs): Duplicate it here too, omitting
1586         shared_name in the second copy.
1587         (init_spec): Test for duplicate
1588         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1589
1590 2002-03-30  David S. Miller  <davem@redhat.com>
1591
1592         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1593         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1594
1595 2002-03-30  Roger Sayle <roger@eyesopen.com>
1596             Richard Henderson  <rth@redhat.com>
1597
1598         * regmove.c (combine_stack_adjustments_for_block): Avoid
1599         emitting a stack adjustment of zero bytes.  Let delete_insn
1600         update bb->head.
1601
1602 2002-03-30  Richard Henderson  <rth@redhat.com>
1603
1604         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1605         (sparc_emitting_epilogue): New.
1606         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1607         * config/sparc/sparc-protos.h: Update.
1608         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1609         (TARGET_SWITCHES): Update.
1610         * config/sparc/sparc.md (return): Remove.
1611         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1612         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1613         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1614         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1615         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1616         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1617         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1618         Remove MASK_EPILOGUE.
1619         * doc/invoke.texi: Update.
1620
1621 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1622
1623         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1624         CPP will start the file for us.
1625
1626 2002-03-30  Richard Henderson  <rth@redhat.com>
1627
1628         PR target/5446
1629         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1630         prologue_allocate_stack.
1631         (ia64_single_set): Use insn codes for recognition of special
1632         cases, not rtl matching.
1633         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1634
1635 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1636
1637         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1638
1639 2002-03-30  Richard Henderson  <rth@redhat.com>
1640
1641         PR target/6032
1642         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1643         or -fomit-frame-pointer with profiling.
1644         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1645         (FUNCTION_PROFILER): Do nothing.
1646         (PROFILE_HOOK): New.
1647         * config/sparc/sparc.c (sparc_override_options): Don't check
1648         code models for profiling.
1649         (sparc_function_profiler): Remove.
1650         (sparc_profile_hook): New.
1651         * config/sparc/sparc-protos.h: Update.
1652
1653 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1654
1655         PR optimization/6086
1656         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1657         of SUBREG of volatile MEM or because the MEM was mode dependent,
1658         return CLOBBER instead of unmodified SUBREG.
1659
1660 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1661
1662         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1663         when not optimizing.
1664
1665         * toplev.c (rest_of_compilation): Cann mark_constant_function
1666         only when optimizing.
1667
1668         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1669         are NULL.
1670
1671         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1672         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1673         (try_optimize_cfg): clear all AUX fields.
1674
1675         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1676         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1677         (ix86_address_cost): Be prepared for SUBREGed registers.
1678         (legitimate_address_p): Accept SUBREGed registers.
1679
1680 2002-03-29  Richard Henderson  <rth@redhat.com>
1681
1682         PR target/5672
1683         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1684
1685 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1686
1687         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1688         for aggregate and TFmode types.
1689
1690 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1691
1692         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1693
1694 2002-03-29  Richard Henderson  <rth@redhat.com>
1695
1696         PR target/5886
1697         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1698         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1699
1700 2002-03-29  Richard Henderson  <rth@redhat.com>
1701
1702         PR target/6041
1703         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1704         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1705         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1706         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1707         conditional.
1708         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1709
1710 2002-03-29  Dale Johannesen <dalej@apple.com>
1711
1712         * loop.c (combine_movables): Do allow combination of pseudos.
1713
1714 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1715
1716         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1717         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1718         No functional change except ...
1719         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1720         * doc/install.texi (*-*-freebsd*): Document port configuration.
1721
1722 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1723
1724         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1725         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1726         Use new hooks.
1727         * builtin-types.def (BT_PTRMODE): Update.
1728         * c-common.c (type_for_size): Rename c_common_type_for_size.
1729         (type_for_mode): Similarly.
1730         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1731         Use new hook.
1732         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1733         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1734         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1735         Redefine.
1736         * c-typeck.c (common_type, comptypes, default_conversion):
1737         Use new hooks.
1738         * calls.c: Include langhooks.h.
1739         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1740         calls.
1741         * convert.c: Include langhooks.h
1742         (convert_to_pointer, convert_to_integer): Use new hooks.
1743         * except.c (init_eh): Similarly.
1744         * expmed.c: Include langhooks.h.
1745         (expand_mult_add): Use new hooks.
1746         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1747         try_casesi): Similarly.
1748         * fold-const.c (optimize_bit_field_compare, make_range,
1749         decode_field_reference, fold_truthop, fold): Similarly.
1750         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1751         put_var_into_stack): Similarly.
1752         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1753         LANG_HOOKS_TYPE_FOR_SIZE): New.
1754         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1755         * langhooks.h (lang_hooks_for_types): New hooks.
1756         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1757         * tree.c (get_unwidened, get_narrower): Similarly.
1758         * tree.h (type_for_mode, type_for_size): Remove.
1759         * varasm.c (force_const_mem): Use new hooks.
1760         * utils2.c (nonbinary_modular_operation): Update.
1761 objc:
1762         * objc-act.c (handle_impent): Update.
1763         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1764         Redefine.
1765
1766 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1767
1768         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1769         * config/ia64/ia64.c (basereg_operand): New.
1770         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1771         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1772
1773 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1774
1775         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1776         unwind information when frame_pointer_needed.
1777         (mmix_assemble_integer): Tweak wording in comment.
1778
1779 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1780
1781         * Makefile.in (except.o): Update.
1782         * except.c: Include langhooks.h.
1783         (init_eh): Use langhook.
1784         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1785         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1786         (LANG_HOOKS_INITIALIZER): Update.
1787         * langhooks.h (lang_hooks_for_types): New.
1788         (struct lang_hooks): Add it.
1789         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1790         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1791 config:
1792         * alpha/alpha.c: Include langhooks.h.
1793         (alpha_build_va_list): Use langhook.
1794         * d30v/d30v.c: Include langhooks.h.
1795         (d30v_build_va_list): Use langhook.
1796         * i386/i386.c: Include langhooks.h.
1797         (ix86_build_va_list): Use langhook.
1798         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1799         * s390/s390.c: Include langhooks.h.
1800         (s390_build_va_list): Use langhook.
1801         * stormy16/stormy16.c: Include langhooks.h.
1802         (stormy16_build_va_list): Use langhook.
1803
1804 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1805
1806         PR c++/5964
1807         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1808         attributes.
1809         (length): Compute variable length for branches/calls/jumps here.
1810         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1811         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1812         define branch_type attribute.
1813         (divsi3_sp32): Maximum length is 6 not 7.
1814         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1815         call_address_untyped_struct_value_sp32,
1816         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1817         * config/sparc/sparc.c (empty_delay_slot): New function.
1818         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1819         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1820
1821 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1822
1823         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1824         nonzero_bits if not needed.
1825         (nonzero_bits) [XOR]: Likewise.
1826         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1827         reg_last_set_mode and mode are both MODE_INT, but not equal.
1828         (record_value_for_reg): Compute reg_last_set_nonzero_bits
1829         in nonzero_bits_mode for MODE_INT modes.
1830
1831 2002-03-28  Richard Henderson  <rth@redhat.com>
1832
1833         PR target/5715
1834         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1835         to GAS.  Correct drift between alternatives.
1836
1837 2002-03-28  Richard Henderson  <rth@redhat.com>
1838
1839         PR target/6087
1840         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1841
1842 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
1843
1844         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1845         emulation to the linker.
1846
1847 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
1848
1849         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1850         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1851
1852 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
1853
1854         * combine.c (simplify_and_const_int): Make sure to apply mask
1855         when force_to_mode returns a constant integer.  PR3311.
1856
1857 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1858
1859         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1860
1861 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1862
1863         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1864         and Objective-C Dialect Options.
1865
1866 2002-03-28  Richard Henderson  <rth@redhat.com>
1867
1868         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1869         comparison should be done vs !=0 not >0 return code.  Tidy cases.
1870
1871 2002-03-28  Richard Henderson  <rth@redhat.com>
1872
1873         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
1874         on to c_expand_body.
1875         * c-tree.h (finish_function): Update decl.
1876         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1877
1878 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1879
1880         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1881
1882 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
1883
1884         * rtlanal.c: Include flags.h
1885         (may_trap_p): Do not mark FP operations if trapping
1886         if !flag_trapping_math
1887         * Makefile.in (rtlanal.o): Add dependency on flag.h
1888         * ifcvt.c (noce_operand_ok): Avoid the lameness.
1889
1890 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
1891
1892         * mips.md: Use dconst1, not 1.0, as first argument of
1893         REAL_VALUE_LDEXP.  Don't use union real_extract.
1894
1895 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1896
1897         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1898         rather than $target.  Heed program_prefix and
1899         program_transform_name.  Search for gas in cross-compiler case too.
1900         "test -x" rather than "test -f".
1901         (gcc_cv_ld): Likewise.
1902         (gcc_cv_nm): Heed program_prefix and program_transform_name.
1903         (gcc_cv_objdump): Likewise.
1904         * configure: Regenerate.
1905
1906 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1907
1908         * Makefile.in (attribs.o): Update.
1909         * attribs.c: Include langhooks.h.
1910         (decl_attributes): Use langhook.
1911         * c-decl.c (insert_default_attributes): Rename.
1912         * c-tree.h (c_insert_default_attributes): New.
1913         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1914         (LANG_HOOKS_INITIALIZER): Update.
1915         * langhooks.h (struct lang_hooks): New hook.
1916         * tree.h (insert_default_attributes): Remove.
1917 objc:
1918         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1919
1920 2002-03-27  Andreas Schwab  <schwab@suse.de>
1921
1922         * config/i386/i386.c (classify_argument): Also check for
1923         QUAL_UNION_TYPE.
1924
1925 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1926
1927         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1928         any more.
1929
1930 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1931
1932         * i960.md (ret): Set PC.
1933         (nonlocal_goto): Fix expander.
1934         * builtins.c (epxand_builin_longjmp): Check that we've emitted
1935         some jump or call.
1936
1937 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1938
1939         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1940         of libcall regions.
1941
1942 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1943
1944         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1945         assigning to BLOCK_FOR_INSN directly.
1946
1947 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
1948
1949         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1950
1951 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1952
1953         * c-common.c (c_expand_expr): Fix prototype.
1954         * c-common.h (c_expand_expr): Always declare, update.
1955         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1956         * c-objc-common.c (c_objc_common_init): No global hook.
1957         * expr.c (expand_expr): Use langhook.
1958         * expr.h (enum expand_modifier): Conditionally declare.
1959         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1960         (LANG_HOOKS_INITIALIZER): Update.
1961         * langhooks.c (lhd_expand_expr): New.
1962         * langhooks.h (struct lang_hooks): New hook.
1963         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1964         (lang_independent_init): Don't default hook.
1965 objc:
1966         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1967
1968 2002-03-27  Richard Henderson  <rth@redhat.com>
1969
1970         PR target/6054
1971         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1972         TARGET_CONST_GP.  Simplify conditions.
1973
1974 2002-03-27  Richard Henderson  <rth@redhat.com>
1975
1976         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1977         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1978         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1979
1980 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
1981
1982         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1983         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1984         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1985         Remove unnecessary masks.
1986         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1987         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1988         -mwindows, -mdll switches and their negations.
1989
1990 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1991
1992         * gcc-common.c (lang_mark_false_label_stack): Remove.
1993         * ggc.h (lang_mark_false_label_stack): Similarly.
1994
1995 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
1996
1997         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1998
1999         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2000         or __rtems_ is defined.
2001
2002 2002-03-26  Richard Henderson  <rth@redhat.com>
2003
2004         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2005         if a non-trivial load was emitted.
2006         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2007         in high+extra+low case.
2008
2009 2002-03-26  Richard Henderson  <rth@redhat.com>
2010
2011         * config.gcc (sparc*-solaris): Use float_format=sparc.
2012
2013 2002-03-26  Richard Henderson  <rth@redhat.com>
2014
2015         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2016         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2017         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2018         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2019         (WINT_TYPE_SIZE): Fix at 32.
2020
2021 2002-03-26  Richard Henderson  <rth@redhat.com>
2022
2023         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2024         until after eh landing pad generation.
2025         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2026         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2027
2028 2002-03-26  Richard Henderson  <rth@redhat.com>
2029
2030         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2031
2032 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2033
2034         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2035         and warning switches.
2036         (cc1_options):  Likewise.
2037
2038 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2039
2040         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2041         Restore more of the signal context.  Set no_reg_stack_frame.
2042         * config/ia64/unwind-ia64.c (unw_state_record):
2043         Add no_reg_stack_frame, comments.
2044         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2045         (uw_update_context): Adjust bsp when unwinding from leaf,
2046         but not signal frame.
2047
2048 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2049
2050         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2051
2052 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2053
2054         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2055
2056 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2057
2058         PR target/5621
2059         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2060         "Add a pool_range attribute", which was lost during the ARM/Thumb
2061         merge.
2062
2063 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2064
2065         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2066         a register into the MAC16 accumulator.
2067
2068 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2069
2070         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2071         (Warning Options): Document -Wswitch-enum.
2072         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2073         -Wswitch.
2074         (warn_switch_enum): Define variables.
2075         * flags.h (warn_switch_enum): Declare variables.
2076         * stmt.c (expand_end_case_type): When warn_switch_enum /
2077         -Wswitch-enum, perform switch checks.
2078         Fix PR c/5044.
2079
2080 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2081
2082         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2083         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2084         (reload_muladdsi_compare0_scratch): Delete.
2085
2086 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2087
2088         * doc/install.texi (*-*-freebsd*): Update.
2089
2090 2002-03-26  Richard Henderson  <rth@redhat.com>
2091
2092         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2093         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2094
2095         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2096         types from the normal argument frame.
2097
2098         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2099         variable sized objects by reference.
2100         (sparc_va_arg): Receive them by reference too.
2101
2102 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2103
2104         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2105         code to not restoring global registers.
2106
2107 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2108
2109         * Makefile.in (ggc-common.o): Update.
2110         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2111         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2112         * c-tree.h (c_mark_tree): New.
2113         * ggc-common.c: Include langhooks.h.
2114         (gcc_mark_trees): Use new langhook.
2115         * ggc-callbacks.c: Delete file.
2116         * ggc.h (lang_mark_tree): Remove.
2117         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2118         (LANG_HOOKS_INITIALIZER): Update.
2119         * langhooks.h (struct lang_hooks): New hook.
2120 objc:
2121         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2122
2123 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2124
2125         * doc/cpp.texi: Exclude entire Top node from printed manual.
2126         Move option index after directive index.  Insert page breaks
2127         before GFDL and concept index.  Index environment variables
2128         with command line options.
2129         * doc/cppenv.texi: Use @vtable for environment variable list.
2130         Add paragraph explaining semantics of empty elements in path
2131         variables.  Exclude a cross-reference to Fishkill from the
2132         manpage.  Remove an unnecessary cross-reference of the entry
2133         right above the referer.  Don't use @anchor in text that goes
2134         into manpage.
2135         * doc/cppopts.texi: Cross-reference the environment variables
2136         section, not the specific environment variable, for consistency.
2137
2138 2002-03-25  Richard Henderson  <rth@redhat.com>
2139
2140         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2141         anywhere in the block.  Don't refer to insns that have been
2142         removed from the chain.  Iterate backward through the new insns.
2143         Don't refer to edges that have been removed.
2144
2145 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2146
2147         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2148         test for overflow of constant.
2149
2150 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2151
2152         PR target/2623
2153         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2154         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2155         these patterns on arm_archv4.
2156
2157 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2158
2159         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2160         int".
2161
2162 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2163
2164         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2165         float_handled, float_handler, float_signal, set_float_handler,
2166         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2167         * toplev.h: Don't prototype do_float_handler.
2168
2169         * c-lex.c: Fold parse_float into lex_number.  Make warning
2170         about portability of hex float constants more informative, and
2171         don't issue it on top of a syntax error.
2172         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2173         their callers.
2174         * real.h: Define REAL_VALUE_ABS here...
2175         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2176         simplify_unary_real, simplify_binary_real, and
2177         simplify_binary_is2orm1 into their callers.
2178         * tree.c: Fold build_real_from_int_cst_1 into caller.
2179
2180         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2181
2182         * tsystem.h: Include float.h here...
2183         * libgcc2.c: ... not here.
2184
2185 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2186
2187         Fixes for: PR bootstrap/3591, target/5676
2188         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2189         defined.  Do not disable exceptions or rtti.
2190         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2191         mcore.h.  Disable exceptions and rtti, since they are not
2192         supported by EPOC.
2193
2194 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2195
2196         * c-decl.c (maybe_build_cleanup): Remove.
2197         * expr.c (expand_expr): Use langhook.
2198         * langhooks-def.h (lhd_return_null_tree,
2199         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2200         (LANGHOOKS_INITIALIZER): Update.
2201         * langhooks.c (lhd_return_null_tree): New.
2202         * langhooks.h (struct lang_hooks): New hook.
2203         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2204         * tree.h (maybe_build_cleanup): Remove.
2205
2206 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2207
2208         * regrename.c (build_def_use): Move recog_memoized
2209         before extract_insn.
2210
2211 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2212
2213         PR target/6043
2214         * expr.c (emit_group_store): Handle storing into CONCAT.
2215
2216 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2217
2218         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2219         corresponding MATCH_DUP.
2220
2221 2002-03-24  Richard Henderson  <rth@redhat.com>
2222
2223         * unroll.c (unroll_loop): Zero label_map.
2224
2225         * gcse.c: Include except.h.
2226         * Makefile.in (gcse.o): Update.
2227
2228 2002-03-24  Richard Henderson  <rth@redhat.com>
2229
2230         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2231         Do resolve_unique_section before shared data clause.
2232
2233 2002-03-24  Richard Henderson  <rth@redhat.com>
2234
2235         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2236
2237 2002-03-24  Richard Henderson  <rth@redhat.com>
2238
2239         * recog.c (peephole2_optimize): Split blocks when EH insns are
2240         generated in the middle of a block.  Do global life update if
2241         zapped EH edges.
2242
2243 2002-03-24  Richard Henderson  <rth@redhat.com>
2244
2245         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2246
2247 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2248
2249         preprocessor/3951
2250         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2251         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2252         (init_dependency_output): Don't make no_output decision here.
2253
2254 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2255
2256         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2257         warn_switch.  Update description.
2258         (expand_end_case_type): Call check_for_full_enumeration_handling
2259         when warn_switch.
2260
2261 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2262
2263         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2264         (m68hc11_split_move): Call it to see if the source and destination
2265         operands use the same direction auto inc/dec mode, otherwise make the
2266         source an offsetable memory operand and generate an add.
2267
2268 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2269
2270         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2271         register for operand 2.
2272         ("*subsi3_zero_extendqi"): Likewise.
2273         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2274         bits so that it is compatible with a pop.
2275         ("*andhi3_gen"): Likewise.
2276         ("xorhi3"): Likewise.
2277
2278 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2279
2280         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2281         -pedantic here...
2282         (cpp_post_options): ... not here.
2283
2284 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2285             Aldy Hernandez  <aldyh@redhat.com>
2286
2287         Removal of separate preprocessor cpp0.
2288
2289         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2290         cpp0, install-common): Update.
2291         * c-common.c (flag_preprocess_only): New.
2292         (c_common_init): Preprocess for -E.
2293         * c-common.h (flag_preprocess_only): New.
2294         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2295         * c-objc-common.c (c_init_decl_processing): Exit quickly
2296         for NULL return from c_common_init.
2297         * cpplib.h (cpp_preprocess_file): New.
2298         * cppmain.c (main, general_init, pfile, progname): Remove.
2299         (do_preprocessing): Rename cpp_preprocess_file, don't call
2300         cpp_finish.  Don't close stdout here.
2301         (setup_callbacks): Update prototype.
2302         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2303         Update.
2304         * tradcpp.c (main): Ignore -quiet.
2305 objc:
2306         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2307
2308 2002-03-24  Richard Henderson  <rth@redhat.com>
2309
2310         PR optimization/5742
2311         * machmode.def: Add inner mode field to complex modes.
2312         * config/mips/mips.c (mips_function_value): Always define.  Add
2313         new argument to handle libcalls.
2314         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2315         (FUNCTION_VALUE): Likewise.
2316         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2317         * config/mips/mips-protos.h: Update.
2318
2319 2002-03-23  Richard Henderson  <rth@redhat.com>
2320
2321         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2322         * config/sparc/sparc-protos.h: Update.
2323         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2324
2325 2002-03-23  Richard Henderson  <rth@redhat.com>
2326
2327         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2328         _start or _init begins the text segment.
2329
2330 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2331
2332         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2333         not HOST_WIDEST_INT.
2334         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2335
2336 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2337
2338         PR java/5489
2339         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2340         operand argument to output_return_instruction.
2341         * arm.c (arm_print_operand, case 'd'): If the operand is
2342         const_true_rtx then just return.
2343         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2344         then abort.
2345
2346 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2347
2348         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2349         (Warning Options): Document -Wswitch-default.
2350         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2351         -Wswitch.
2352         (warn_switch_default): Define variable.
2353         (warn_switch): Update comment.
2354         * flags.h (warn_switch_default): Declare variable.
2355         (warn_switch): Update comment.
2356         * stmt.c (expand_end_case): Check for and, when
2357         warn_switch_no_default, warn of a missing default case.
2358
2359 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2360
2361         * real.h (N): Special case 128 bit doubles.
2362
2363         * combine.c (simplify_comparison): When widening modes, ignore
2364         sign extension on CONST_INTs.
2365
2366 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2367
2368         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2369         passed to adjust_address.  Fix comment formatting.
2370
2371
2372 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2373
2374         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2375         Always make REAL_VALUE_TYPE a struct containing an array of
2376         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2377         big it is.  Don't declare or use union real_extract.
2378
2379         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2380         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2381         (print_operand), config/arm/arm.c (output_move_double),
2382         config/arm/arm.md (consttable_4, consttable_8),
2383         config/romp/romp.c (output_fpops), config/s390/s390.h
2384         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2385         (xtensa_output_literal): Don't use union real_extract.
2386
2387         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2388         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2389         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2390         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2391         (PRINT_OPERAND): Don't use local version of union
2392         real_extract.
2393
2394         * config/convex/convex.c (check_float_value), config/vax/vax.c
2395         (vax_float_literal), config/m88k/m88k.md (divdf3),
2396         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2397         config/pdp11/pdp11.c (output_move_quad): Don't do host
2398         arithmetic on target floating point quantities.
2399
2400         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2401         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2402
2403         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2404         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2405
2406         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2407         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2408         INFINITY.
2409         * print-rtl.c (print_rtx): Disable code which needs
2410         floating-point emulator.
2411         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2412         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2413         depending on HOST_FLOAT_FORMAT to be defined properly.
2414
2415         * config/1750a/1750a.c (get_double, float_label): Delete.
2416         (print_operand): Delete huge commented-out chunk.  Use
2417         REAL_VALUE_TO_DECIMAL.
2418         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2419         functions.
2420         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2421         IEEE_FLOAT_FORMAT.
2422         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2423         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2424         * config/m88k/m88k.c (real_power_of_2_operand,
2425         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2426         real_extract out of the union; run the input through
2427         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2428         from that into the union.
2429         * config/pdp11/pdp11.c (output_move_double): Rearrange
2430         parentheses to make automatic indenter happy.
2431
2432         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2433         Point" and rewrite to describe current situation.  Also adjust
2434         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2435         match code.
2436         * doc/rtl.texi: Adjust cross reference.
2437
2438 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2439
2440         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2441         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2442         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2443         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2444         prevent use of sp as a reload register.
2445         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2446         non_acc_reg_operand.
2447         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2448         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2449         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2450         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2451
2452 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2453
2454         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2455         * cpplex.c (unterminated): Delete.
2456         (parse_string): No string literal may extend over multiple
2457         lines.  Suppress the error when preprocessing assembly.
2458         * cppmain.c (scan_translation_unit): Strings are single-line.
2459
2460         * doc/cpp.texi: Update to match.
2461
2462 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2463
2464         PR optimization/5854
2465         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2466         Shut up warnings.
2467         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2468         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2469         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2470         const0 if scratch register was not allocated.
2471         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2472         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2473         with GEN_INT (...).
2474         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2475         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2476         with GEN_INT (...) everywhere.  Remove constraints in define_split
2477         patterns.
2478         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2479         require scratch register for setting 0 into regs/non-pushable memory.
2480
2481 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2482
2483         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2484         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2485
2486 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2487
2488         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2489         * cppinit.c (cpp_create_reader):  On by default.
2490         (cpp_handle_option):  Handle -W[no-]endif-labels.
2491         (cpp_post_options):  Also enable if -pedantic.
2492         * cpplib.c (do_else):  Use it.
2493         (do_endif):  Likewise.
2494         * doc/cppopts.texi:  Document new option.
2495         * doc/invoke.texi:  Document new option.
2496
2497 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2498
2499         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2500         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2501
2502 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2503
2504         * flow.c (calculate_global_regs_live): Clear aux fields of
2505         ENTRY and EXIT.
2506
2507 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2508
2509         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2510         REG or MEM subregs, pass rtx * instead of rtx to it.
2511         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2512         rtx * instead of rtx to alter_subreg.
2513         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2514         * config/pj/pj.c (pj_output_rval): Likewise.
2515
2516 2002-03-22  Richard Henderson  <rth@redhat.com>
2517
2518         PR target/3177
2519         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2520         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2521         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2522         (ia64_expand_prologue): Look at int_regs, not words, for number
2523         of incomming int regs.
2524
2525 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2526
2527         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2528
2529 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2530
2531         * toplev.c (flag_loop_optimize, flag_crossjumping):
2532         New static variables.
2533         (rest_of_compilation): Conditionalize crossjumping and
2534         loop optimizer.
2535         (parse_options_and_default_flags): Default loop_optimize and
2536         crossjumping.
2537         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2538         * invoke.texi (crossjumping, loop-optimize): Document.
2539
2540 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2541
2542         * real.c (eiisneg): Move outside #ifdef NANS.
2543
2544 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2545
2546         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2547         frequencies match; avoid match on different loop depths.
2548         (try_crossjump_to_bb): Kill tests that no longer brings time
2549         savings.
2550         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2551         updating code.
2552         (split_edge): Likewise.
2553
2554         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2555         variable.
2556
2557         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2558         * cfgrtl.c: Include insn-config.h
2559         (split_block) Dirtify block in presence of conditional execution
2560
2561 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2562
2563         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2564         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2565         (function_arg): Constify CUMULATIVE_ARGS.
2566         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2567         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2568         (UNITS_PER_DOUBLE): New macro.
2569         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2570         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2571         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2572         fp_regs and stack_words.
2573         (EABI_FLOAT_VARARGS_P): New macro.
2574         * config/mips/mips.c (struct mips_arg_info): New.
2575         (mips_arg_info): New function.
2576         (function_arg_advance): Use it.  Add adjustment instructions here
2577         rather than in function_arg.
2578         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2579         for VOIDmode at the beginning of the function.
2580         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2581         (function_arg_pass_by_reference): Likewise.
2582         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2583         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2584         (mips_va_start): Likewise.  Use the new stack_words field of
2585         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2586         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2587         doubles and other types, aligning the overflow pointer for non-doubles
2588         too.  Remove some code duplication.  Replace hard-coded constants.
2589
2590 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2591
2592         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2593         (CLASS_UNITS): Undefine.
2594         (CLASS_MAX_NREGS): Use FP_INC.
2595         * config/mips/mips.c (compute_frame_size): Likewise.
2596         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2597
2598 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2599
2600         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2601         prototype, and handle lexing numbers and identifiers.
2602         (parse_identifier): Update to new form of parse_slow.
2603         (parse_number): Fast path only, use parse_slow otherwise.
2604         (_cpp_lex_direct): Update calls to parse_number.
2605
2606 2002-03-21  DJ Delorie  <dj@redhat.com>
2607
2608         * bb-reorder.c (make_reorder_chain_1): Protect against
2609         when redundant edges are omitted.
2610         * predict.c (dump_prediction): Likewise.
2611
2612 2002-03-21  Richard Henderson  <rth@redhat.com>
2613
2614         PR target/5996
2615         * fixinc/inclhack.def (solaris_stdio_tag): New.
2616         * fixinc/fixincl.x: Regenerate.
2617
2618 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2619
2620         PR c/5597
2621         * c-typeck.c (process_init_element): Flag non-static
2622         initialization of a flexible array member as illegal.
2623
2624 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2625
2626         * config/rs6000/t-linux64: New.
2627         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2628         t-ppccomm.  Use t-rs6000 and t-linux64.
2629         (powerpc64-*-gnu* <tmake_file>): Likewise.
2630         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2631         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2632         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2633
2634 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2635
2636         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2637         flag_really_no_inline instead of optimize == 0.
2638
2639         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2640
2641         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2642
2643         * flags.h (flag_really_no_inline): New.
2644
2645         * c-common.c (c_common_post_options): Initialize
2646         flag_really_no_inline.
2647
2648         * toplev.c (flag_really_no_inline): New.
2649
2650 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2651
2652         * config/avr/avr.md (length): Fix length computation for
2653         conditional branches.
2654
2655 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2656
2657         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2658         sdbout.o, profile.o): Update.
2659         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2660         langhook.
2661         * c-common.h (gettags): Move here from tree.h.
2662         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2663         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2664         * dbxout.c (dbxout_init): Use getdecls langhook.
2665         * expr.c (expand_expr): Use insert_block langhook.
2666         * fold-const.c: Include langhooks.h.
2667         (fold_range_test, fold_binary_op_with_conditional_arg,
2668         fold): Use global_bindings_p langhook.
2669         * integrate.c (expand_inline_function): Use insert_block langhook.
2670         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2671         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2672         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2673         LANG_HOOKS_GETDECLS): New.
2674         (LANG_HOOKS_INITIALIZER): Update.
2675         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2676         langhook.
2677         * langhooks.h (struct lang_hooks_for_decls): New.
2678         (struct lang_hooks): Update.
2679         * profile.c: Include langhooks.h.
2680         (output_func_start_profiler): Use new langhooks.
2681         * sdbout.c: Include langhooks.h.
2682         (sdbout_init, sdbout_finish): Use getdecls langhook.
2683         * stmt.c: Include langhooks.h.
2684         (expand_fixup, fixup_gotos): Use new langhooks.
2685         * stor-layout.c: Include langhooks.h.
2686         (variable_size): Use global_bindings_p langhook.
2687         * toplev.c (compile_file): Use getdecls langhook.
2688         * tree-inline.c (remap_block): Use insert_block langhook.
2689         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2690         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2691
2692 2002-03-21  Richard Henderson  <rth@redhat.com>
2693
2694         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2695         constants in .data when -fpic.
2696
2697 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2698
2699         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2700         where appropriate.
2701
2702 2002-03-21  Tom Tromey  <tromey@redhat.com>
2703
2704         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2705
2706 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2707
2708         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2709
2710         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2711
2712 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2713             Richard Henderson  <rth@redhat.com>
2714
2715         PR c/5354
2716         * c-common.c (c_expand_expr): Preserve result of a statement
2717         expression if needed.
2718
2719 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2720
2721         PR bootstrap/4195
2722         * genrecog.c (maybe_both_true_mode): Remove.
2723         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2724         * machmode.def (Pmode): Likewise.
2725
2726 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2727
2728         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2729         (nonlocal_mentioned_p_1): New function.
2730         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2731         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2732         (mark_constant_function): Recognize pure functions.
2733         * rtl.h (global_reg_mentioned_p): New prototype.
2734         * rtlanal.c (global_reg_mentioned_p,
2735         global_reg_mentioned_p_1): New function.
2736
2737 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2738
2739         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2740         UNIX assert.h.
2741         * fixinc/fixincl.x: Regenerate.
2742
2743 2002-03-20  Jason Merrill  <jason@redhat.com>
2744
2745         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2746
2747 2002-03-20  Michael Meissner  <meissner@redhat.com>
2748
2749         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2750         -fstrict-aliasing.
2751
2752 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2753
2754         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2755         ".literal_position" directive before the constant pool.
2756
2757 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2758
2759         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2760         Add Craig Rodrigues.
2761         Add Brad Lucier to testers.
2762
2763 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2764
2765         PR target/4792
2766         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2767         to if_then_else.
2768         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2769         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2770         instead of insn_extract.
2771
2772 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2773
2774         PR bootstrap/4192
2775         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2776
2777         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2778         stmt if some case has been output.
2779
2780 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2781
2782         PR c/5972
2783         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2784         movsfcc_1, movdfcc_1): Add %O2.
2785         * config/i386/i386.c (print_operand): Handle %ON.
2786         Print . before float condition codes in Sun as cmov syntax.
2787         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2788         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2789         no longer true.
2790
2791 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2792
2793         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2794         return instruction if PC was popped.
2795
2796 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2797
2798         * config/xtensa/xtensa.md: Remove unused type attributes.
2799         (adddi_carry, subddi_carry): Change type attribute to "multi".
2800
2801 2002-03-19  Dale Johannesen  <dalej@apple.com>
2802
2803         PR optimization/5999, middle-end/5731
2804         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2805         multiplications by reciprocals.
2806
2807 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2808
2809         * Makefile.in: Update.
2810         * c-common.c: Include langhooks.h.
2811         (inline_forbidden_p): Use new hook.
2812         * diagnostic.c: Include langhooks.h.
2813         (format_with_decl, announce_function,
2814         default_print_error_function): Use new hook.
2815         * dwarf2out.c (dwarf2_name): Use new hook.
2816         * function.c: Include langhooks.h.
2817         (init_function_start): Use new hook.
2818         * langhooks-def.h (lhd_decl_printable_name): New.
2819         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2820         (LANGHOOKS_INITIALIZER): Update.
2821         * langhooks.c (lhd_decl_printable_name): New.
2822         * langhooks.h (struct lang_hooks): New hook.
2823         * toplev.c (decl_name, decl_printable_name): Remove.
2824         (open_dump_file): Use new hook.
2825         (process_options): Remove old hook.
2826         * tree.h (decl_printable_name): Remove.
2827 objc:
2828         * objc-act.c (objc_init): Remove old hook.
2829         (objc_printable_name): Export.
2830         * objc-act.h (objc_printable_name): New.
2831         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2832
2833 2002-03-19  Jim Blandy  <jimb@redhat.com>
2834
2835         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2836         the start_source_file debug hook, not the current line number.
2837
2838 2002-03-19  Richard Henderson  <rth@redhat.com>
2839
2840         * flow.c (EH_USES): Provide default.
2841         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2842         * doc/tm.texi (EH_USES): New.
2843
2844         * config/ia64/ia64.c (ia64_eh_uses): New.
2845         * config/ia64/ia64-protos.h: Update.
2846         * config/ia64/ia64.h (EH_USES): New.
2847
2848 2002-03-19  Richard Henderson  <rth@redhat.com>
2849
2850         * varasm.c (output_constant_def): Fix stupid typo.
2851
2852 2002-03-19  Richard Henderson  <rth@redhat.com>
2853
2854         PR 5879
2855         * except.c (current_function_has_exception_handlers): New.
2856         * except.h: Declare it.
2857         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2858         Combine tests that disable all sibcalls for the function.
2859
2860 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
2861
2862         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2863         for INTEGER_CST.
2864
2865 2002-03-19  Richard Henderson  <rth@redhat.com>
2866
2867         PR 5977, 5991
2868         * config/ia64/ia64.c: Revert 2002-03-01 patch.
2869         * config/ia64/ia64.h (INIT_EXPANDERS): New.
2870
2871 2002-03-19  Jim Blandy  <jimb@redhat.com>
2872
2873         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2874         name, even if the replacement list contains no tokens, as required
2875         by Dwarf.
2876
2877 2002-03-19  Jason Merrill  <jason@redhat.com>
2878
2879         * varasm.c (globalize_decl): Get the name from the RTL, not
2880         DECL_ASSEMBLER_NAME.
2881
2882         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2883
2884 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
2885
2886         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2887         subdi_carry): Define.
2888
2889 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2890
2891         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2892         about -fpic/-fPIC if extra_warnings set.
2893
2894 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2895
2896         * expr.c (expand_expr): Sign-extend CONST_INT generated from
2897         TREE_STRING_POINTER.
2898         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2899
2900 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2901
2902         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2903         in favor of SP if FRAME_POINTER_REQUIRED is false.
2904
2905 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
2906
2907         * emit-rtl.c (gen_int_mode): New function.
2908         * rtl.h: Prototype for it.
2909         * combine.c (make_extraction, simplify_comparison), expmed.c
2910         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2911         (convert_modes, store_field), optabs.c (expand_fix),
2912         simplify-rtx.c (neg_const_int, simplify_unary_real),
2913
2914         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2915         Use it instead of GEN_INT (trunc_int_for_mode (...)).
2916
2917 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
2918
2919         PR c/5656
2920         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2921         convert_parm_for_inlining.
2922         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2923         Define.
2924         * langhooks-def.h: Likewise.
2925         * objc/objc-lang.c: Likewise.
2926         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2927         function.
2928         * tree-inline.c (initialize_inlined_parameters):
2929         Call convert_parm_for_inlining lang hook if needed.
2930         * c-typeck.c (c_convert_parm_for_inlining): New function.
2931         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2932
2933 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
2934
2935         * calls.c (precompute_arguments): Do not assume that temporaries
2936         can be destroyed after expanding the argument.
2937         (expand_call): Likewise.
2938
2939 2002-03-15  Eric Christopher  <echristo@redhat.com>
2940
2941         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2942         Fix register preference on last change.
2943         * config/mips/mips.c (mips_return_in_memory): New function.
2944         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2945         * config/mips/mips-protos.h: Declare.
2946         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2947         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2948
2949 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2950
2951         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2952         a register too.
2953         (anddi3, iorsi3): Likewise.
2954
2955         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2956         use %gprel for symbols that are going to be placed in linkonce
2957         sections.
2958
2959         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2960         RETURN_ADDRESS_POINTER_REGNUM to $ra.
2961         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2962         not needed.  Disregard leaf_function_p().
2963         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2964         mips16 frame pointer.
2965         * config/mips/mips.md (store ra): Only to small SP offsets.
2966         2001-08-22  Graham Stott  <grahams@redhat.com>
2967         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2968         return a REG rtx for the return address register.
2969
2970 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
2971
2972         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2973         constant-pool addresses as "mode-dependent".
2974         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2975
2976 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
2977
2978         PR target/5740
2979         * expr.c (emit_group_load): Use extract_bit_field if
2980         needed for CONCAT arguments.
2981
2982 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
2983
2984         PR target/4863
2985         * arm.md (tablejump): Make this a define_expand.  For PIC add the
2986         offset to the base of the table.
2987         (thumb_tablejump): Matcher for Thumb tablejump insn.
2988         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2989         as the difference of two labels.
2990         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2991         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2992         tables in the code.
2993         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2994         * arm.c (get_jump_table_size): If the table is not in the text
2995         section, return zero.
2996
2997 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
2998
2999         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3000         of gen_rtx_SUBREG.
3001         (arm_reload_out_hi): Use gen_lowpart instead of
3002         gen_rtx_SUBREG to access QImode components.
3003         * config/arm/arm.md: Disable zero_extend split for QImode
3004         subregs in BIG_ENDIAN mode.
3005         (storehi_bigend): Match use of least significant byte.
3006         (storeinthi): Remove extraneous SUBREG.
3007         Add missing construction of operands[2].
3008         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3009         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3010         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3011
3012 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3013
3014         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3015         any_operand.
3016
3017 2002-03-17  Richard Henderson  <rth@redhat.com>
3018
3019         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3020         explicitly.
3021
3022 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3023
3024         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3025         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3026
3027 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3028
3029         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3030
3031         * predict.c (estimate_bb_frequencies): Delete unused variables.
3032
3033 2002-03-17  Richard Henderson  <rth@redhat.com>
3034
3035         * config/ia64/ia64.c (ia64_attribute_table): Move before
3036         targetm definition.  Make static.
3037
3038 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3039
3040         * c-common.h (yyparse, c_common_parse_file): New.
3041         * c-lang.c: Include c-common.h.
3042         (LANG_HOOKS_PARSE_FILE): Redefine.
3043         * c-lex.c: Include c-common.h.
3044         (yyparse): Rename c_common_parse_file.  Call yyparse.
3045         * c-parse.in (yyparse): Remove macro.
3046         * c-tree.h (yyparse_1): Remove.
3047         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3048         (LANG_HOOKS_INITIALIZER): Update.
3049         * langhooks.h (struct lang_hoooks): New hook parse_file.
3050         * toplev.c (compile_file): Use parse_file hook.
3051         * tree.h (yyparse): Remove.
3052         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3053
3054 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3055
3056         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3057         float_truncate, not fix.
3058         ("*truncdfsf2_real"): Ditto.
3059         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3060
3061         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3062
3063 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3064
3065         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3066         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3067         where appropriate.  Make the second reference to
3068         leaf_function_p a function call, as intended.  Reindented.
3069
3070         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3071         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3072
3073         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3074         add register to non-constant into sp.
3075
3076         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3077         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3078         (mips16_gp_pseudo_rtx): Lose.
3079         (INIT_EXPANDERS): Deleted.
3080         * config/mips/mips.c (mips_init_machine_status): New.
3081         (mips_free_machine_status): New.
3082         (mips_mark_machine_status): New.
3083         (override_options): Set them.
3084         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3085         (struct machine_function): ... new.  Replaced all references.
3086         (mips_add_gc_roots): Don't mark them.
3087         (embedded_pic_fnaddr_reg): New, extracted from...
3088         (embedded_pic_offset): ... here.
3089         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3090         (movsi): Likewise.
3091
3092 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3093
3094         * cppinit.c: Revert -MD removal.
3095
3096 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3097
3098         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3099         soft registers by default for 68HC12.
3100         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3101         when compiling with -fomit-frame-pointer.
3102         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3103         (expand_epilogue): Likewise.
3104         (m68hc11_gen_rotate): Use exg when rotating by 8.
3105
3106 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3107
3108         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3109         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3110         (splits): Remove unused add splits.
3111         ("*addhi3_68hc12"): Tune constraints.
3112         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3113         constant fits in 8-bits and D is dead use abx/aby instructions.
3114         ("*addhi3"): Remove extern declaration of ix_reg.
3115         ("*subsi3"): Optimize and provide new split.
3116         ("subhi3"): Cleanup.
3117         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3118         (arith splits): For 68hc12 save the address register on the stack
3119         and do the arithmetic operation with a pop.
3120
3121 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3122
3123         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3124         allocating QImode in address registers.
3125         ("*movqi_m68hc11"): Likewise.
3126
3127 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3128
3129         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3130
3131 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3132
3133         * cppinit.c (print_help): Display -MD and -MMD.
3134         Don't display usage string.  Update assertion syntax and
3135         typo.
3136         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3137         (cpp_handle_option): Update.
3138
3139 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3140
3141         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3142         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3143         and define it so that regardless of target CPU size,
3144         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3145         of "int" rather than "long."
3146
3147 2002-03-15  Richard Henderson  <rth@redhat.com>
3148
3149         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3150         size as a tree.
3151
3152 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3153
3154         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3155         ("tstqi" split): Avoid using memory for tstqi on address register.
3156         (splits): Remove constraints.
3157         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3158         ("cmpdf", "cmpsf"): Remove since not used.
3159         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3160         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3161
3162 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3163
3164         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3165         ("neghi2"): Tighten constraints.
3166         ("one_cmplsi2"): Optimize and simplify split.
3167         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3168
3169 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3170
3171         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3172         and split of AND operation to clear the upper bits.
3173         ("*logicalsi3_zextqi"): Likewise.
3174         ("*logicallhi3_zexthi_ashift8"): Likewise.
3175         ("*logicalsi3_silshr16"): Likewise.
3176         ("logicalsi3_silshl16"): Likewise.
3177         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3178
3179 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3180
3181         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3182         (m68hc11_indirect_p): New function.
3183         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3184         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3185         TARGET_M6812.
3186         (asm_print_register): Likewise.
3187         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3188         (m68hc11_indirect_p): Declare.
3189         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3190         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3191         (TARGET_SWITCHES): New option -mrelax.
3192         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3193         destination.
3194         ("iorsi3", "xorsi3"): Likewise.
3195         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3196         ("*andhi3_mem"): New to handle destination in memory with bclr
3197         and a scratch register.
3198         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3199         ("*andhi3_const"): New when operand2 is constant.
3200         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3201         ("*andhi3_gen"): Cleanup of the old "andhi3".
3202         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3203         ("xorqi3"): Update constraints.
3204
3205 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3206
3207         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3208         for reg_equiv_memory_loc when the operand is a register that does
3209         not get a hard register (stack location).
3210         (tst_operand): After reload, accept all memory operand.
3211         (symbolic_memory_operand): Fix detection of symbolic references.
3212         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3213         accept symbols and any constant.
3214
3215 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3216
3217         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3218         note on the insn that sets the soft frame register.
3219         (must_parenthesize): ix and iy are also reserved names.
3220         (print_operand_address): One more place where parenthesis are required
3221         to avoid confusion with register names.
3222         (m68hc11_gen_movhi): Allow push of stack pointer.
3223         (m68hc11_check_z_replacement): Fix handling of parallel with a
3224         clobber.
3225         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3226         the replacement register is.
3227         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3228         and D8_REGS classes.
3229         (MODES_TIEABLE_P): All modes are tieable except QImode.
3230
3231 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3232
3233         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3234         (___subdi3): Likewise.
3235         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3236         (__map_data_section): Optimize 68hc11 case.
3237
3238 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3239
3240         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3241         than a shift to avoid adding a register with itself.
3242         (m68hc11_memory_move_cost): Take into account NO_REGS.
3243         (m68hc11_register_move_cost): Update and use memory move cost
3244         for soft registers.
3245         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3246         it gives more opportunities to cse to optimize.
3247         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3248         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3249
3250 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3251
3252         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3253         * c-common.def (CLEANUP_STMT): New tree node.
3254         * c-common.h (CLEANUP_DECL): New macro.
3255         (CLEANUP_EXPR): Likewise.
3256         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3257         * expr.c (expand_expr): Tidy.
3258         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3259         * tree-inline.c (initialize_inlined_parameters): Clean up
3260         new local variables.
3261
3262 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3263
3264         PR bootstrap/4128
3265         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3266         before movrXX only, use reg_overlap_mentioned_p.
3267         Only special case NE if just one insn can be generated.
3268
3269 2002-03-15  Jason Merrill  <jason@redhat.com>
3270
3271         * varasm.c (assemble_variable): Call resolve_unique_section before
3272         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3273         of error_mark_node.
3274
3275 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3276
3277         PR target/5170
3278         * arm.md (split pattern for thumb shiftable immediates): Add comment
3279         explaining non-obvious test.
3280
3281 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3282
3283         PR target/5712
3284         * arm.md (movaddr, movaddr_insn): Delete.
3285
3286 2002-03-15  Jason Merrill  <jason@redhat.com>
3287
3288         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3289         -fkeep-static-consts doesn't apply to comdats.
3290
3291 2002-03-14  Richard Henderson  <rth@redhat.com>
3292
3293         * c-decl.c: Include c-pragma.h.
3294         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3295         (finish_function): Tidy.
3296         * c-pragma.c: Include c-common.h.
3297         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3298         (handle_pragma_weak): Use them.
3299         (init_pragma): Register pending_weaks.
3300         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3301         * print-tree.c (print_node): Print DECL_WEAK.
3302         * varasm.c (mark_weak_decls): Remove.
3303         (remove_from_pending_weak_list): Remove.
3304         (add_weak): Remove.
3305         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3306         (weak_decls): Make a tree_list.
3307         (declare_weak): Cons weak_decls directly.
3308         (globalize_decl): Remove weak_decls elements directly.
3309         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3310         symbols.  Don't pretend to handle aliases.
3311         (init_varasm_once): Update weak_decls registry.
3312         * Makefile.in: Update dependencies.
3313
3314 2002-03-14  Richard Henderson  <rth@redhat.com>
3315
3316         PR target/5312
3317         * config/ia64/ia64.c: Include tm_p.h last.
3318         (gen_nop_type): Remove duplicate definition.
3319         (cycle_end_fill_slots): Set sched_data for second L slot.
3320         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3321         (nop_cycles_until): Fix typos.
3322
3323 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3324
3325         PR optimization/5891
3326         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3327
3328 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3329
3330         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3331           descriptors correctly.
3332
3333 2002-03-14  Michael Meissner  <meissner@redhat.com>
3334
3335         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3336         100, allowing MAX_UNROLLED_INSNS to be overridden.
3337
3338         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3339         --param.
3340
3341         * unroll.c (params.h): Include.
3342         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3343
3344         * doc/invoke.texi (--param max-unroll-insns): Document.
3345
3346         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3347
3348 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3349
3350         * arm.md: Fix warnings about constraints in peepholes and splits.
3351
3352 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3353
3354         * cpphash.h (struct lexer_state): Remove line_extension member.
3355         * cpplib.c (dequote_string, do_linemarker): New functions.
3356         (linemarker_dir): New data object.
3357         (DIRECTIVE_TABLE): No longer need to interpret #line in
3358         preprocessed source.  Delete obsolete comment about return
3359         values of handlers.
3360         (end_directive, directive_diagnostics, _cpp_handle_directive):
3361         Don't muck with line_extension.
3362         (directive_diagnostics): No need to issue warnings for
3363         linemarkers here.
3364         (_cpp_handle_directive): Issue warnings for linemarkers here,
3365         when appropriate.  Dispatch linemarkers to do_linemarker, not
3366         do_line.
3367         (do_line): Code to handle linemarkers split out to do_linemarker.
3368         Convert escape sequences in filename argument, both places.
3369
3370         * cppmacro.c (quote_string): Rename cpp_quote_string and
3371         export.  All callers changed.
3372         * cpplib.h (cpp_quote_string): Prototype.
3373         * cppmain.c (print_line): Call cpp_quote_string on to_file
3374         before printing it.
3375
3376         * doc/cpp.texi: Document that escapes are now interpreted in
3377         #line and in linemarkers, and that non-printing characters are
3378         converted to octal escapes when linemarkers are generated.
3379
3380 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3381
3382         * emit-rtl.c (try_split): Use delete_insns.
3383         * recog.c (split_all_insns): Fix terminating condition.
3384
3385 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3386             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3387
3388         PR target/5828
3389         * arm.c (arm_output_epilogue): Fix floating-point register save
3390         adjustment when using a frame pointer.
3391
3392 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3393
3394         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3395         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3396         (save_restore_insns, mips_expand_epilogue): And here.
3397         (build_mips16_call_stub): And here.
3398         (mips_function_value): Use the new macros to decide whether a single
3399         or complex float can be returned in floating-point registers.  Return
3400         a parallel rtx in the complex case.
3401
3402 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3403
3404         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3405         call after liveness analysis.
3406
3407         * recog.c (split_insn): Use delete_insn_and_edges.
3408
3409         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3410         instructions to have branch prediction notes.
3411         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3412
3413 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3414
3415         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3416         that doesn't support it.
3417         * configure: Regenerate.
3418
3419 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3420
3421         PR target/5626
3422         * config/sparc/sparc.md (normal_branch, inverted_branch,
3423         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3424         inverted_fp_branch): Adjust calls to output_cbranch.
3425         Set length attribute.
3426         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3427         output_v9branch.  Set length attribute.
3428         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3429         predicates.
3430         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3431         (output_cbranch): Likewise.  Handle far branches.
3432         (output_v9branch): Handle far branches.
3433         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3434         Adjust prototypes.
3435         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3436         noov_compare64_op predicates.
3437
3438 2002-03-13  Jason Merrill  <jason@redhat.com>
3439
3440         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3441         into the function and constify it.
3442         * gthr-dce.h, gthr-solaris.h: Likewise.
3443
3444 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3445
3446         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3447         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3448         std_expand_builtin_va_arg if not ABI_V4.
3449
3450 2002-03-13  Jason Merrill  <jason@redhat.com>
3451
3452         * varasm.c (globalize_decl): New fn.
3453         (assemble_start_function): Use it.
3454         (asm_emit_uninitialized): Use it.
3455         (assemble_alias): Use it.
3456         (assemble_variable): Use it.
3457
3458 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3459
3460         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3461         2002-03-12 internal visibility change.
3462         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3463         visibility into SYMBOL_REF_FLAG.
3464
3465 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3466
3467         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3468         VOIDmode operand.  Add compile-time optimization for constant results.
3469
3470 2002-03-12  Jason Merrill  <jason@redhat.com>
3471
3472         * c-typeck.c (convert_for_assignment): Don't allow conversions
3473         between pointers and references.  Only allow lvalues to convert to
3474         reference.
3475
3476 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3477
3478         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3479         before prologue, to avoid scheduling problems.
3480
3481 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3482
3483         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3484         (ELIMINABLE_REGS): Add sfp->sp.
3485         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3486
3487 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3488
3489         PR optimization/5892
3490         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3491
3492 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3493
3494         * loop.c (basic_induction_var): Don't call convert_modes if mode
3495         classes are different.
3496
3497 2002-03-12  Richard Henderson  <rth@redhat.com>
3498
3499         PR optimization/5901
3500         * function.c (reposition_prologue_and_epilogue_notes): Position
3501         the markers after/before the last/first insn not deleted.
3502
3503 2002-03-12  Richard Henderson  <rth@redhat.com>
3504
3505         PR optimization/5878
3506         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3507         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3508         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3509
3510         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3511         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3512         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3513
3514         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3515         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3516         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3517         also.  Don't set it if not flag_pic.
3518         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3519         to be INVALID_REGNUM when not used.
3520
3521 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3522
3523         * expmed.c (store_bit_field): Reset alias set for memory.
3524         (extract_bit_field): Same.
3525
3526 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3527
3528         * c-common.c (c_tree_code_type, c_tree_code_length,
3529         c_tree_code_name, add_c_tree_codes): Delete.
3530         * c-common.h (add_c_tree_codes): Delete.
3531         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3532         Define.
3533         * c-objc-common.c (c_objc_common_init): Don't call
3534         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3535         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3536         objc_tree_code_name, add_objc_tree_codes): Delete.
3537         (objc_init): Don't call add_objc_tree_codes.
3538         * objc/objc-lang.c (tree_code_type, tree_code_length,
3539         tree_code_name): Define.
3540         * toplev.c (lang_independent_init): Don't set
3541         tree_code_length[IDENTIFIER_NODE].
3542         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3543         Delete definitions, moved to language front-ends.
3544         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3545         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3546         Const-ify.
3547         (tree_code_length): Change type to unsigned char.
3548
3549 2002-03-12  Richard Henderson  <rth@redhat.com>
3550
3551         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3552         internal visibility change.
3553
3554 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3555
3556         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3557         validize_mem() instead of change_address to avoid clobbering
3558         memory attributes.
3559
3560 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3561
3562         * c-lex.h (position_after_whitespace): Remove.
3563
3564 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3565
3566         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3567         (lex_string): Use unsigned char pointers.
3568
3569 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3570
3571         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3572         is not a valid memory_operand.
3573
3574 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3575
3576         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3577         * config/xtensa/lib1funcs.asm: Fix copyright to include
3578         special case for libgcc files.
3579         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3580         (__divsi3): Likewise.
3581         (__umodsi3): Likewise.
3582         (__modsi3): Likewise.
3583         * config/xtensa/lib2funcs.S: Fix copyright to include
3584         special case for libgcc files.
3585
3586 2002-03-12  Tom Rix  <trix@redhat.com>
3587
3588         * collect2.c (resolve_lib_name): Move outside of
3589         OBJECT_FORMAT_COFF ifdef.
3590         (ignore_library): Same.
3591
3592 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3593
3594         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3595
3596 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3597
3598         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3599         to function_section before writing out the constant pool.
3600
3601 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3602
3603         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3604         zero_constant.
3605         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3606
3607 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3608
3609         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3610         (adddi3): Likewise.
3611         (movdf): Likewise.
3612         (movdi): Likewise.
3613         (cmpsi splitter): Likewise.
3614         (modsi3): Fail if <= 0.
3615         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3616         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3617         (reg_or_sub_cint64_operand): Likewise.
3618         (num_insns_constant_wide): Optimize sign extension.
3619         (rs6000_legitimize_address): Likewise.
3620
3621 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3622
3623         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3624         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3625
3626 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3627
3628         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3629         address calculation.
3630
3631 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3632
3633         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3634         scratch register to DImode / TImode.
3635         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3636         register used does not overlap the target.
3637
3638 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3639
3640         * Makefile.in (debug.o): Depend on debug.h.
3641         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3642         * debug.c (do_nothing_debug_hooks): Likewise.
3643         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3644         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3645         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3646         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3647         * dwarfout.c (dwarf_debug_hooks): Likewise.
3648         * integrate.c (output_inline_function): Likewise.
3649         * objc/objc-act.c (synth_module_prologue): Likewise.
3650         * sdbout.c (sdb_debug_hooks): Likewise.
3651         * toplev.c (debug_hooks): Likewise.
3652         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3653
3654 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3655
3656         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3657         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3658         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3659         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3660         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3661         * defaults.h (POINTER_SIZE): Define.
3662         * doc/tm.texi (POINTER_SIZE): Document default.
3663
3664 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3665
3666         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3667
3668 2002-03-11  Richard Henderson  <rth@redhat.com>
3669
3670         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3671         if rebuild_label_notes_after_reload.
3672
3673 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3674
3675         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3676         emit pic register load if "internal" visibility.
3677         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3678         (cris_expand_builtin_va_arg): Do all computations on trees.
3679
3680 2002-03-11  Richard Henderson  <rth@redhat.com>
3681
3682         * rtlanal.c: Include recog.h.
3683         (keep_with_call_p): Fix thinko.
3684         * Makefile.in (rtlanal.o): Update dependencies.
3685
3686 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3687
3688         * genflags.c (gen_insn): Use IS_VSPACE.
3689         * genoutput.c (output_insn_data): Likewise.
3690         (process_template): Likewise.
3691
3692 2002-03-11  Richard Henderson  <rth@redhat.com>
3693
3694         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3695
3696 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3697
3698         * Makefile.in: Update.
3699         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3700         Update documentation.
3701         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3702         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3703
3704 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3705
3706         * Makefile.in: Give texi2pod its input file as a command line
3707         argument, not on stdin.
3708
3709 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3710             Daniel Berlin  <dan@dberlin.org>
3711
3712         C++ alias analysis improvement.
3713         * alias.c (record_component_aliases): Record aliases for base
3714         classes too.
3715
3716 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3717
3718         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3719
3720 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3721
3722         * toplev.c (vms_fopen): Remove, not needed.
3723
3724         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3725
3726         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3727
3728         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3729         for FP, already done later.
3730
3731         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3732         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3733
3734 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3735
3736         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3737         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3738         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3739         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3740         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3741         (ediv, emul, eldexp, esqrt): Likewise.
3742         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3743         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3744         (saturate): New function.
3745         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3746         (make_nan): Use a saturation value instead of a NaN if
3747         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3748         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3749         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3750         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3751         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3752         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3753         !ROUND_TOWARDS_ZERO.
3754         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3755         (ROUND_TOWARDS_ZERO): Document.
3756
3757 2002-03-11  Andreas Jaeger  <aj@suse.de>
3758
3759         * cfg.c (dump_flow_info): Remove unused variable.
3760
3761 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3762
3763         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3764         computations on trees.
3765
3766 2002-03-10  Richard Henderson  <rth@redhat.com>
3767
3768         PR 5693:
3769         * reload.c (copy_replacements_1): New.
3770         (copy_replacements): Use it to recurse through the rtx.
3771
3772 2002-03-10  Richard Henderson  <rth@redhat.com>
3773
3774         * loop.c (strength_reduce): Compute number of iterations as
3775         unsigned HOST_WIDE_INT.
3776
3777 2002-03-10  Richard Henderson  <rth@redhat.com>
3778
3779         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3780         to move away from the end of the block.
3781
3782 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3783
3784         PR preprocessor/5899
3785         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3786
3787 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3788
3789         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3790
3791         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3792
3793 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3794
3795         * config/mmix/mmix.c: Improve comments.
3796         (mmix_target_asm_function_prologue): Drop variable
3797         empty_stack_frame.  Don't allocate unused slot above fp.
3798         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3799         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3800         brace in first column.
3801         (enum reg_class): Ditto.
3802         (FIRST_PARM_OFFSET): Now 0.
3803         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3804
3805 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3806
3807         * combine.c (make_extraction): Fix error in last change.
3808
3809 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3810
3811         * c4x.c (c4x_fp_reglist): Const-ify.
3812         * cris.c (cris_print_operand): Likewise.
3813         * i386.c (ix86_va_arg): Likewise.
3814         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3815         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3816         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3817         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3818         * mcore.h (regno_reg_class): Likewise.
3819         * mips.c (gen_int_relational): Likewise.
3820         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3821         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3822         * pdp11.c (move_costs): Likewise.
3823         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3824         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3825         Likewise.
3826         * s390.h (regclass_map): Likewise.
3827         * sh.c (shift_amounts): Likewise.
3828         * sh.md (rotlsi3): Likewise.
3829
3830 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3831
3832         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3833         (ne0+5): Use new clobber to generate proper shift pattern.
3834         Patch by Michael Matz <matz@kde.org>.
3835
3836 2002-03-09  Andreas Schwab  <schwab@suse.de>
3837
3838         * gcc.c (validate_all_switches): Also handle `%W{...}'.
3839
3840 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3841
3842         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3843
3844 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3845
3846         PR middle-end/5877
3847         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3848         even for non-representable constants.
3849
3850 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3851
3852         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3853         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3854         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3855         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3856         (pop_function_context): Compute MAY_SHARE parameter for
3857         fixup_var_refs.
3858         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3859         (gen_mem_addressof): Call fixup_var_refs with new parm.
3860
3861         * combine.c (make_extraction): Don't make extension of CONST_INT.
3862
3863 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3864
3865         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3866         in o32 and o64 ABIs.
3867         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3868         but getting fixed-size structs passed in registers regardless of
3869         padding in o32 and o64 ABIs.
3870
3871         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3872         offset before loading address of argument passed by transparent
3873         reference.
3874
3875 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3876
3877         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3878
3879 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3880
3881         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3882         marker such that registers after it are saved.
3883
3884 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3885
3886         * sparc.c (arith_4096_operand): Fix error in last change.
3887
3888 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3889
3890         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3891         defaults for MEABI.
3892
3893 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3894
3895         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3896         vectors.
3897
3898 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3899
3900         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3901
3902 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
3903
3904         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3905         removed; fix return value.
3906         * combine.c (combine_instructions): Dirtify blocks where we failed to
3907         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3908         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3909
3910 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3911
3912         * gcse.c (insert_insn_end_bb): Fix typo in last change.
3913
3914 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
3915
3916         * recog.c (peephole2_optimize): Re-distribute EH edges.
3917
3918 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3919
3920         * expr.c (expand_expr): Use unsave lang hook.
3921         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3922         (LANG_HOOKS_INITIALIZER): Update.
3923         * langhooks.h (struct lang_hooks): New hook unsave.
3924         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3925         (unsave_expr_1): Remove unused lang_unsave_expr_now.
3926         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
3927         (unsave_expr_now): Remove.
3928         * tree.h (unsave_expr_now, lang_unsave,
3929         lang_unsave_expr_now): Remove.
3930         (lhd_unsave): New.
3931
3932 2002-03-08  Andreas Jaeger  <aj@suse.de>
3933
3934         * flow.c (propagate_block_delete_insn): Remove unused variable.
3935
3936 2002-03-08  Kazu Hirata  <kazu@hxi.com>
3937
3938         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3939         insn length for memory load/store.
3940
3941 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3942
3943         * doc/install.texi (--with-libiconv-prefix): Document.
3944
3945 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
3946
3947         * doc/sourcebuild.texi: Fix typo.
3948
3949 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
3950
3951         PR c/3711
3952         * builtins.c (std_expand_builtin_va_arg): Do all computations on
3953         trees.
3954
3955 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3956
3957         * rtl.c (copy_most_rtx): Move from here ...
3958         * emit-rtl.c (copy_most_rtx): ... to here.
3959
3960 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3961
3962         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3963         SUBTARGET_CPP_SIZE_SPEC.
3964         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3965
3966         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3967
3968 2002-03-07  Matt Hiller  <hiller@redhat.com>
3969
3970         * gensupport.c (first_dir_md_include): Renamed from include;
3971         change all references.
3972         (last_dir_md_include): Renamed from last_include; change all
3973         references.
3974         (init_md_reader): Unconditionally initialize base_dir whether or
3975         not filename is a relative path.
3976
3977 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
3978
3979         * config/fp-bit.c (_unord_f2): Compile it in even if
3980         US_SOFTWARE_GOFAST is enabled.
3981
3982         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3983         NULL_RTX.  Set all HFmode operations as NULL_RTX.
3984         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3985         NULL_RTX, try reversing the comparison and the operands.
3986
3987 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3988
3989         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3990         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3991         and MATCH_OP_DUP.
3992
3993 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
3994
3995         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3996
3997 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3998
3999         * basic-block.h (fixup_abnormal_edges): Declare.
4000         * reload1.c (fixup_abnormal_edges): New function.
4001         * reg-stack.c (convert_regs): Use it.
4002
4003         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4004
4005         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4006
4007 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4008
4009         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4010         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4011         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4012         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4013         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4014         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4015         unless x and y could be infinite.
4016         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4017         Check that the common type of both arguments is a real, even for
4018         targets without unordered comparisons.  Allow an integer argument
4019         to be compared against a real.
4020         (expand_tree_builtin): Use expand_unordered_cmp.
4021         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4022         * cse.c (fold_rtx): Likewise.  Fix indentation.
4023         * fold-const.c (fold_real_zero_addition_p): New.
4024         (fold): Use it, and the new HONOR_... macros.
4025         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4026         * jump.c (reversed_comparison_code_parts): After searching for
4027         the true comparison mode, use HONOR_NANS to decide whether it
4028         can be safely reversed.
4029         (reverse_condition_maybe_unordered): Remove IEEE check.
4030         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4031         to decide which simplifications are valid.  Allow the following
4032         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4033         and (a - -b) to (a + b).
4034         (simplify_relational_operation): Use HONOR_NANS.
4035         * doc/tm.texi: Document the MODE_HAS_... macros.
4036
4037 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4038
4039         * combine.c (simplify_comparison): If simplifying a logical shift
4040         right and compare with constant, force the comparison to unsigned.
4041
4042 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4043
4044         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4045
4046         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4047         -mabi=no-altivec
4048         (alt_reg_names): Remove % for vrsave.
4049
4050 2002-03-06  Richard Henderson  <rth@redhat.com>
4051
4052         PR optimization/5844
4053         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4054         if used indicates we've already emitted one copy of an operand.
4055         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4056         (gen_split): Supply a non-null used.
4057
4058 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4059
4060         * reload1.c (reload): Unshare all rtl after reload is done.
4061
4062         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4063         but simply fail if the expression is too complex to simplify.
4064         (simplify_gen_binary): Handle simplify_plus_minus failures.
4065
4066 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4067
4068         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4069         consistently call delete_trivially_dead_insns after CSE and GCSE;
4070         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4071         after liveness2; update comment in last crossjumping.
4072         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4073
4074 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4075
4076         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4077         after completing fast dead code elimination.
4078
4079         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4080         COMPARE operator.
4081
4082 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4083
4084         * version.c:  Fix misplaced leading blanks on first line.
4085
4086 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4087
4088         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4089
4090 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4091
4092         * cfgcleanup.c (mentions_nonequal_regs): New function.
4093         (thread_jump): Use it.
4094         * toplev.c (rest_of_compilation): Run jump threading after
4095         liveness.
4096
4097 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4098
4099         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4100         patch.
4101
4102 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4103
4104         * predict.c (estimate_bb_frequencies): Do not reload the
4105         frequencies from notes.
4106
4107 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4108
4109         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4110         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4111
4112         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4113         delete_noop_moves): Return indeger.
4114         * flow.c (ndead): New variable.
4115         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4116         BB argument; update callers.
4117         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4118         (life_analysis): Do not call purge_all_dead_edges.
4119         (update_life_info): Return number of deleted insns; print statistics.
4120         (update_life_info_in_dirty_blocks): likewise.
4121         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4122         return number of insns deleted.
4123
4124         * cse.c: Include timevar.h
4125         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4126         iterate until stabilizes; print statistics; return number of killed
4127         insns.
4128         * Makefile.in: (cse.o): Add timevar.h dependency
4129         * rtl.h (delete_trivially_dead_insns): New.
4130         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4131         * toplev.c (rest_of_compilation): Update callers.
4132
4133         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4134         (try_optimize_cfg): Do not update liveness.
4135         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4136         removal stabilizes; use delete_trivially_dead_insns.
4137
4138         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4139
4140 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4141
4142         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4143         callbacks when processing assembly language.
4144
4145 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4146
4147         * pa.h (ASM_FILE_END): Define.
4148         * som.h (ASM_FILE_END): Delete.
4149
4150         * pa.c (function_arg): Don't pass floats in general registers in
4151         indirect calls if TARGET_ELF32.
4152
4153 2002-03-05  Richard Henderson  <rth@redhat.com>
4154
4155         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4156
4157 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4158
4159         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4160
4161 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4162
4163         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4164         -r command line.  Don't hide any symbols if not building
4165         shared libgcc.
4166
4167 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4168
4169         * cfg.c (dump_flow_info): Warn about profile mismatches.
4170         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4171         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4172
4173 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4174
4175         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4176         wide volatile memory by parts.
4177
4178 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4179
4180         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4181         is NULL.
4182
4183 2002-03-05  Richard Henderson  <rth@redhat.com>
4184
4185         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4186
4187 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4188
4189         * toplev.c (documented_lang_options): Document more
4190         language-specific options.
4191         * doc/invoke.texi (Warning Options): Correct documentation for
4192         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4193         * c-decl.c (c_decode_option): Use a table to handle warning options.
4194
4195 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4196
4197         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4198         parameter to mmix_encode_section_info.
4199         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4200         relocatably.  Always produce ELF, not mmo if linking relocatably.
4201         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4202         first is non-zero, don't add symbol prefix.
4203         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4204         prototype accordingly.
4205
4206 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4207
4208         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4209
4210 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4211
4212         * configure.in: Increase required makeinfo version to 4.1.
4213         * configure: Regenerate.
4214
4215 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4216
4217         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4218         elsewhere now.
4219
4220 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4221
4222         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4223         * doc/invoke.texi: Fix @math uses.
4224
4225 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4226
4227         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4228         removal
4229
4230 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4231
4232         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4233         (powerpc-*-eabisimaltivec*): Same.
4234
4235         * config/rs6000/t-ppcendian: New.
4236
4237 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4238
4239         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4240         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4241         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4242
4243 2002-03-03  Richard Henderson  <rth@redhat.com>
4244
4245         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4246
4247 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4248
4249         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4250         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4251         tree.c, config/m68k/m68k.c:
4252         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4253         REAL_ARITHMETIC blocks unconditional.  Delete some further
4254         #ifdef blocks predicated on REAL_ARITHMETIC.
4255         * flags.h, toplev.c: Delete remaining references to
4256         flag_pretend_float.
4257
4258         * doc/invoke.texi: Remove documentation of -fpretend-float.
4259         * doc/tm.texi: Describe the various REAL_* macros as provided by
4260         real.h, not by the target configuration files.
4261
4262         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4263         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4264         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4265         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4266         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4267         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4268         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4269         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4270         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4271         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4272         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4273         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4274         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4275         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4276         config/xtensa/xtensa.h:
4277         Do not define, undefine, or mention in comments any of
4278         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4279         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4280         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4281         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4282         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4283         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4284         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4285         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4286         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4287
4288 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4289
4290         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4291         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4292         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4293         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4294         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4295         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4296         Delete.
4297         * defaults.h (BITS_PER_WORD): Define.
4298         * doc/tm.texi (BITS_PER_WORD): Document default value.
4299
4300         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4301         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4302         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4303
4304 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4305
4306         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4307         lieu of explicit sizeof/sizeof.
4308         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4309         ix86_expand_builtin): Likewise.
4310         * mips.c (mips_add_gc_roots): Likewise.
4311         * mmix.c (mmix_output_condition): Likewise.
4312         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4313         altivec_init_builtins): Likewise.
4314         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4315         * cppexp.c (Nsuff, parse_number): Likewise.
4316         * cppinit.c (builtin_array_end): Likewise.
4317         * gcc.c (n_default_compilers, process_command): Likewise.
4318         * genpreds.c (output_predicate_decls): Likewise.
4319         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4320         * lcm.c (N_ENTITIES): Likewise.
4321         * stor-layout.c (set_sizetype): Likewise.
4322
4323 2002-03-03  Richard Henderson  <rth@redhat.com>
4324
4325         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4326         for types or labels.
4327
4328 2002-03-03  Richard Henderson  <rth@redhat.com>
4329
4330         * c-decl.c (start_decl): Initialized variables are not common.
4331
4332 2002-03-02  Per Bothner  <per@bothner.com>
4333
4334         * gcc.c (option_map):  Suport new --bootclasspath option.
4335         --CLASSPATH is now just an alias for --classpath.
4336
4337 2002-03-02  Richard Henderson  <rth@redhat.com>
4338
4339         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4340         load if "internal" visibility.
4341         * doc/extend.texi: Document visibility meanings.
4342
4343 2002-03-02  Richard Henderson  <rth@redhat.com>
4344
4345         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4346         to functions as well.
4347
4348 2002-03-02  Richard Henderson  <rth@redhat.com>
4349
4350         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4351         (handle_visibility_attribute): Don't call assemble_visibility.
4352         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4353         without asmspec.  Invoke assemble_alias when needed.
4354         * varasm.c (maybe_assemble_visibility): New.
4355         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4356
4357 2002-03-02  Richard Henderson  <rth@redhat.com>
4358
4359         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4360         invoke ENCODE_SECTION_INFO with first call flag.
4361
4362         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4363         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4364         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4365         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4366         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4367         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4368         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4369         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4370         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4371         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4372         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4373         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4374         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4375         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4376         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4377         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4378         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4379         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4380         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4381         config/sh/sh.h, config/sparc/sparc.h,
4382         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4383         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4384         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4385         FIRST argument.  As needed, examine it and do nothing.
4386
4387         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4388         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4389         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4390
4391         * config/arm/t-pe (pe.o): Add dependencies.
4392
4393 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4394
4395         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4396         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4397         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4398         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4399         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4400         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4401         * defaults.h (BITS_PER_UNIT): Define.
4402         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4403
4404 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4405
4406         * config/h8300/h8300-protos.h: Add a prototype for
4407         compute_a_shift_length.
4408         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4409         (compute_a_shift_length): Likewise.
4410         (h8300_adjust_insn_length): Do not adjust insn length of shift
4411         insns.
4412         * config/h8300/h8300.md (anonymous shift patterns): Use
4413         compute_a_shift_length.
4414
4415 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4416
4417         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4418         trunc_int_for_mode.
4419
4420         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4421
4422 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4423
4424         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4425         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4426         * flags.h (flag_zero_initialized_in_bss): Declare.
4427         * toplev.c (flag_zero_initialized_in_bss): New flag.
4428         (lang_independent_options): Add flag_zero_initialized_in_bss.
4429         * tree.c (initializer_zerop): New function.
4430         * tree.h (initializer_zerop): Declare.
4431         * varasm.c (assemble_variable): If we can emit bss, put zero
4432         initializers in the bss section.
4433
4434 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4435
4436         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4437         like more than one symbol per .weak directive.
4438
4439 2002-03-01  Richard Henderson  <rth@redhat.com>
4440
4441         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4442         adjust argument_pointer by pretend_args_size.
4443         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4444
4445 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4446
4447         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4448
4449 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4450
4451         * toplev.c (rest_of_compilation): Delete dead jumptables before
4452         loop.
4453         * flow.c (delete_dead_jumptables): Make global.
4454         * rtl.h (delete_dead_jumptables): Declare.
4455
4456 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4457
4458         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4459         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4460         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4461
4462 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4463
4464         * config/h8300/h8300-protos.h: Fix formatting.
4465         * config/h8300/h8300.c: Likewise.
4466         * config/h8300/h8300.h: Likewise.
4467
4468 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4469
4470         * config/h8300/h8300.c (print_operand): Support 16-bit
4471         constant addresses.
4472         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4473
4474 2002-02-28  Richard Henderson  <rth@redhat.com>
4475
4476         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4477         pun complex values as integers; use gen_lowpart instead of
4478         gen_rtx_SUBREG.
4479         (extract_bit_field): Likewise.
4480
4481 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4482             David Edelsohn  <edelsohn@gnu.org>
4483
4484         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4485         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4486         (SUPPORTS_WEAK): Likewise.
4487         * output.h (add_weak): Add tree param.
4488         * varasm.c (add_weak): Likewise.  Save decl.
4489         (struct weak_syms): Add decl field.
4490         (mark_weak_decls): New function.
4491         (init_varasm_once): ggc_add_root mark_weak_decls.
4492         (assemble_start_function): Use ASM_WEAKEN_DECL.
4493         (assemble_variable): Likewise.
4494         (assemble_alias): Likewise.
4495         (declare_weak): Pass decl to add_weak.
4496         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4497         (remove_from_pending_weak_list): Declare and define for
4498         ASM_WEAKEN_DECL.
4499         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4500         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4501         * defaults.h (SUPPORTS_WEAK): Likewise.
4502         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4503         .weak for code sym.  Do emit .size for descriptor sym.
4504         (ASM_DECLARE_FUNCTION_SIZE): Define.
4505         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4506         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4507         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4508         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4509         .weak for code sym.
4510         (HANDLE_PRAGMA_WEAK): Remove.
4511         (ASM_WEAKEN_LABEL): Remove.
4512         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4513
4514 2002-03-01  Jason Merrill  <jason@redhat.com>
4515
4516         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4517         (TARGET_EXPR_CLEANUP): New macro.
4518
4519 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4520
4521         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4522         to take ptr_extend into account as third type of extension.
4523         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4524         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4525         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4526         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4527         * calls.c (precompute_arguments): Use new macro.
4528         (expand_call): Ditto.
4529         * combine.c (nonzero_bits): Ditto.
4530         (record_promoted_value): Ditto.
4531         * expr.c (store_expr): Ditto.
4532         (expand_expr): Ditto.
4533         * function.c (assign_parms): Ditto.
4534
4535 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4536
4537         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4538         override -shared and -shared-libgcc.
4539
4540 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4541
4542         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4543         of "ultrasparc".
4544         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4545         to be broken.
4546
4547 2002-02-28  Richard Henderson  <rth@redhat.com>
4548
4549         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4550         4 cycle latency from MM producers.
4551         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4552
4553 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4554
4555         * mklibgcc.in: Don't use GNU make extension.
4556
4557 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4558
4559         * c-parse.in (STATIC): New terminal.
4560         (scspec): New non-terminal.  Update productions accordingly.
4561         (program): Remove bogus ifc / end ifc.
4562         (array_declarator): Simplify production using STATIC.
4563
4564 2002-02-28  Jim Meyering  <meyering@lucent.com>
4565
4566         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4567         \a still means TARGET_BELL.
4568
4569 2002-02-28  Richard Henderson  <rth@redhat.com>
4570
4571         * haifa-sched.c (sched_emit_insn): New.
4572         (schedule_block): Use last_scheduled_insn to track last insn.
4573         * sched-int.h (sched_emit_insn): Prototype.
4574         * config/ia64/ia64.c (last_issued): Remove.
4575         (ia64_variable_issue): Don't set it.
4576         (nop_cycles_until): Use sched_emit_insn.
4577
4578 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4579
4580         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4581         extended constants.
4582
4583 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4584
4585         * config/h8300/h8300.c: Fix formatting.
4586         * config/h8300/h8300.h: Likewise.
4587
4588 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4589
4590         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4591         which may overwrite the high byte of the frame pointer.
4592
4593 2002-02-28  Bo Thorsen  <bo@suse.de>
4594
4595         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4596         (STARTFILE_SPEC): Add 64 bit files.
4597         (ENDFILE_SPEC): Likewise.
4598
4599 2002-02-28  Jason Merrill  <jason@redhat.com>
4600
4601         * c-decl.c (finish_function): Only warn about missing return
4602         statement with -Wreturn-type.
4603
4604 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4605
4606         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4607
4608         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4609         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4610
4611 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4612
4613         * basic-block.h (BB_REACHABLE): Renumber.
4614         (BB_DIRTY, BB_NEW): New flags.
4615         (clear_bb_flags): Declare.
4616         (update_life_info_in_dirty_blocks): Declare.
4617         * cfg.c (clear_bb_flags): New function.
4618         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4619         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4620         reorder_insns, emit_insn_after): Mark block as dirty.
4621         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4622         (update_life_info_in_dirty_blocks): New function.
4623         * recog.c (apply_change_group): Dirtify block.
4624
4625         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4626         cfg consistent.
4627         * gcse.c (delete_null_pointer_checks): Likewise.
4628
4629         * toplev.c (dump_file_index): Move cse2 after bp,
4630         add DFI_null
4631         (dump_file_info): Similary.
4632         (rest_of_compilation): Avoid most of CFG rebuilds;
4633         do first if converision after null pointer checks, do cse2
4634         after branch prediction; avoid full liveness rebuild after
4635         initializing subregs.
4636         * invoke.texi (-d options): Document -du, renumber.
4637
4638         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4639         (notice_new_block): Do not set BB_UPDATE_LIFE.
4640         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4641          merge_blocks_move_successor_nojumps, merge_blocks,
4642          try_crossjump_to_edge): Likewise.
4643         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4644         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4645         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4646         (merge_of_block): Do not use life_data_ok.
4647         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4648         (if_convert): Use BB_DIRTY mechanizm to update life.
4649         * lcm.c (optimize_mode_switching): Update
4650         update_life_info_in_dirty_blocks
4651
4652 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4653
4654         * Makefile.in (integrate.o): Update.
4655         * c-decl.c (copy_lang_decl): Rename.
4656         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4657         * integrate.c: Include langhooks.h.
4658         (copy_decl_for_inlining): Update to use langhook.
4659         * langhooks-def.h (lhd_do_nothing_t,
4660         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4661         (LANG_HOOKS_INITIALIZER): Update.
4662         * langhooks.c (lhd_do_nothing_t): New.
4663         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4664         * tree.h (copy_lang_decl): Remove.
4665 objc:
4666         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4667
4668 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4669
4670         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4671         POST_DEC, and POST_MODIFY.
4672
4673 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4674
4675         * c-typeck.c (digest_init): Remove unused parameter; all
4676         callers changed.
4677
4678 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4679
4680         * expmed.c (expand_shift): Correctly test for low part of a
4681         subreg.
4682
4683 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4684
4685         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4686         insn UIDs with insn addresses.
4687
4688 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4689
4690         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4691         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4692         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4693         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4694         gcc.c, toplev.c: Delete code implementing -traditional mode.
4695
4696         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4697         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4698         Document removal of -traditional mode for compilation, and
4699         remove documentation only relevant to that mode.
4700
4701         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4702         config/convex/convex.h, config/d30v/d30v.h,
4703         config/i386/dgux.h, config/i386/osf1elf.h,
4704         config/i386/osfelf.h, config/i386/osfrose.h,
4705         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4706         config/m68k/hp310.h, config/m88k/dgux.h,
4707         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4708         config/m88k/m88k.h, config/m88k/openbsd.h,
4709         config/mips/abi64.h, config/mips/osfrose.h,
4710         config/mips/svr4-5.h, config/mips/svr4-t.h,
4711         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4712         config/stormy16/stormy16.h: Remove all references to
4713         -traditional from target specs.  Delete all mention of the
4714         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4715         delete a couple of commented-out definitions of
4716         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4717         to -traditional.
4718
4719         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4720         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4721
4722 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4723
4724         * mklibgcc.in: Don't use \n in a line subject to
4725         interpretation by echo.
4726
4727 2002-02-27  Graham Stott  <grahams@redhat.com>
4728
4729         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4730         Constify NAME.
4731
4732         * loop.c (prescan_loop): Handle PARALLEL.
4733
4734         * unroll.c (loop_iterations): Return 0 if the add_val for
4735         a BIV is REG.
4736
4737         * final.c (output_operand_lossage): Constify PFX_STR.
4738
4739         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4740
4741 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4742
4743         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4744         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4745
4746 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4747
4748         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4749
4750 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4751
4752         * cpplex.c (_cpp_lex_token): Handle directives in macro
4753         arguments.
4754         * cpplib.c (_cpp_handle_directive): Save and restore state
4755         if parsing macro args when entering a directive.
4756         * cppmacro.c (collect_args): No need to handle directives
4757         in macro arguments.
4758         (enter_macro_context, replace_args): Use the original macro
4759         definition in case it was redefined whilst collecting arguments.
4760 doc:
4761         * cpp.texi: Update.
4762
4763 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4764
4765         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4766         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4767         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4768         method on AIX.
4769         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4770         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4771         (load_toc_v4_PIC_2): Same.
4772
4773 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4774
4775         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4776
4777 2002-02-26  Richard Henderson  <rth@redhat.com>
4778
4779         * config/alpha/alpha.md (ashldi_se): Re-enable.
4780
4781 2002-02-26  Richard Henderson  <rth@redhat.com>
4782
4783         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4784         MODULE_LOCAL_P; improve commentary.
4785
4786 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4787
4788         * doc/cpp.texi: Clarify documentation of relationship between
4789         #line and #include.
4790
4791 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4792
4793         * config/h8300/h8300-protos.h: Update the prototype for
4794         compute_logical_op_length.  Add the prototype for
4795         compute_logical_op_cc.
4796         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4797         code from operands.
4798         (compute_logical_op_cc): New.
4799         * config/h8300/h8300.md: Combine all the logical op patterns
4800         in HImode and SImode.  Use compute_logical_op_cc.
4801
4802 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4803
4804         * config/i386/i386.c (print_operand): Don't append ATT-style
4805         length suffixs to x87 opcodes when in Intel mode.
4806
4807 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4808
4809         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4810         (init_emit_once): Update calls.
4811         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4812         (init_syntax_once): Prototype.
4813
4814 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4815
4816         * pa-linux.h (LIB_SPEC): Update definition.
4817         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4818
4819 2002-02-26  Richard Henderson  <rth@redhat.com>
4820
4821         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4822         if we emitted a stop bit.
4823
4824 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4825
4826         * configure.in (libgcc_visibility): Substitute.
4827         * configure: Rebuilt.
4828         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4829         defined symbols .hidden.
4830
4831 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4832
4833         * attribs.c (c_common_attribute_table): Add visibility.
4834         (handle_visibility_attribute): New function.
4835         * varasm.c (assemble_visibility): New function.
4836         * output.h (assemble_visibility): Add prototype.
4837         * tree.h (MODULE_LOCAL_P): Define.
4838         * crtstuff.c (__dso_handle): Use visibility attribute.
4839         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4840         for MODULE_LOCAL_P symbols too.
4841         * config/ia64/ia64.c (ia64_encode_section_info): Handle
4842         MODULE_LOCAL_P symbols the same way as local symbols.
4843         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4844         into .sdata/.sbss by the user.
4845         * doc/extend.texi (Function Attributes): Document visibility
4846         attribute.
4847
4848 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4849
4850         PR debug/5770
4851         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4852         STRING_CST initializer spanning the whole variable without
4853         embedded zeros.
4854         If expand_expr returned MEM, don't use it.
4855
4856 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
4857
4858         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4859         generate a die for the lexical block.
4860
4861 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4862
4863         * config/h8300/h8300-protos.h: Add a prototype for
4864         compute_logical_op_length.
4865         * config/h8300/h8300.c (compute_logical_op_length): New.
4866         * config/h8300/h8300.md (anonymous logical patterns): Use
4867         compute_logical_op_length for length.
4868
4869 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4870
4871         * dwarf2out.c (modified_type_die): Do not call type_main_variant
4872         for vectors.
4873         (gen_type_die): Same.
4874
4875         * attribs.c (handle_vector_size_attribute): Set debug information.
4876
4877 2002-02-26  Daniel Egger  <degger@fhm.edu>
4878
4879         * config/rs6000/rs6000.md: Swap define_insn attributes to
4880         fix incorrect generation of merge high instructions instead
4881         of merge low.
4882
4883 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4884
4885         * c-typeck.c (really_start_incremental_init): Use
4886         bitsize_zero_node for vectors.
4887
4888 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4889
4890         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4891         ("*set_vrsave_internal"): Same.
4892
4893 2002-02-25  Richard Henderson  <rth@redhat.com>
4894
4895         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4896         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
4897
4898 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
4899
4900         PR target/5755
4901         * config/i386/i386.c (ix86_return_pops_args): Only pop
4902         fake structure return argument if it was passed on the stack.
4903
4904 2002-02-25  Jason Merrill  <jason@redhat.com>
4905
4906         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4907         RESULT_DECL.
4908
4909 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4910
4911         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4912         link with shared_name only.
4913         * doc/invoke.texi (Link Options): Document new behavior.
4914
4915 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4916
4917         * c-typeck.c (push_init_level): Handle vectors.
4918
4919 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4920
4921         * config/sparc/sparc.c (const64_high_operand): Zero-extend
4922         operands of SPARC_SETHI_P.
4923         (input_operand): Likewise.
4924         (sparc_emit_set_const32): Likewise.
4925         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4926         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4927         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
4928         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4929         (movdi_insn_sp64_vis): Likewise.
4930         (movdi split, movdf split): Use SETHI32.
4931         * doc/md.texi: Document SPARC constraints L, M and N.
4932
4933 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4934
4935         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4936         ("*set_vrsave_internal"): use mfspr for Darwin.
4937
4938         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4939         gen_get_vrsave_internal.
4940
4941 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4942
4943         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4944
4945 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4946
4947         * cpplex.c (cpp_interpret_charconst): Get signedness or
4948         otherwise of wide character constants correct.
4949         * cppexp.c (lex): Get signedness of wide charconsts correct.
4950
4951 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4952
4953         * optabs.c (widen_operand): Only call convert_modes for
4954         promoted SUBREG if signedness matches.
4955         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4956
4957 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4958
4959         * cpplib.c (glue_header_name): Use local buffer to build up
4960         header name.
4961
4962 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4963
4964         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4965
4966 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4967
4968         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4969         H8/300[HS] separately.
4970         * config/h8300/h8300.md: Remove the early clobber constraint
4971         from bit field patterns.
4972
4973 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4974
4975         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4976         register_operand.
4977         (mulhisi3): Likewise.
4978         (umulqisi3): Likewise.
4979         (umulhisi3): Likewise.
4980
4981 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4982
4983         * cppinit.c (output_deps): Correct test for stdout output.
4984         (init_dependency_output): Cure warning.
4985
4986 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4987
4988         * expr.c (store_expr): When converting expression to promoted
4989         equivalent type, allow using SUBREG_REG of TARGET as the target
4990         of the expansion of EXP.
4991         * loop.c (basic_induction_var, case SUBREG): Always look inside.
4992         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4993         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4994         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4995         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4996
4997 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4998
4999         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5000         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5001         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5002
5003 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5004
5005         PR optimization/5747
5006         * loop.c (scan_loop): Update reg info if move_movables created new
5007         pseudos.
5008
5009 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5010
5011         * gcc.c (init_gcc_spec): Revert last change.
5012
5013 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5014
5015         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5016         gpc_reg_operand constraint.
5017
5018 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5019
5020         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5021         Simplify comparison of `low'.
5022         (add_operand): Fix formatting.
5023         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5024         (mask_operand): Disallow mask to wrap in 64-bit mode.
5025         (rs6000_stack_info): Remove redundant test setting push_p.
5026         (output_toc): Fix formatting.
5027         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5028         cc_reg_not_cr0_operand constraint.
5029         (booldi3, boolcdi3 splitters): Same.
5030
5031 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5032
5033         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5034
5035 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5036
5037         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5038         gcc invoked with -shared-libgcc.
5039
5040 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5041
5042         PR c++/5748
5043         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5044         decl if any of elements was TREE_USED.
5045
5046 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5047
5048         * config/sparc/sol2.h: Don't include sys/mman.h.
5049         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5050         (arith_4096_operand): Don't throw high bits away.
5051         (const64_operand): Take sign extension of CONST_INTs into account.
5052         (const64_high_operand, sparc_emit_set_const32): Likewise.
5053         (GEN_HIGHINT64): Likewise.
5054         (sparc_emit_set_const64_quick1): Likewise.
5055         (const64_is_2insns): Likewise.
5056         (print_operand): Use trunc_int_for_mode for sign extension.
5057         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5058         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5059         chars.  Assume CONST_INT is already properly sign-extended.
5060         (movdi split): Sign-extend each SImode part.
5061         (andsi3 split): Don't mask high bits off, so that result
5062         remains properly sign-extend.
5063         (iorsi3 split): Likewise.
5064         (xorsi3 split): Likewise.
5065
5066 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5067
5068         * fold-const.c (fold): Fix typo in comments.
5069
5070 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5071
5072         * Makefile.in (langhooks.o): Update dependencies.
5073
5074 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5075
5076         * langhooks.c: Include flags.h.
5077
5078 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5079
5080         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5081
5082         * c-common.c (c_common_post_options): Set inline trees by
5083         default.
5084
5085         * doc/extend.texi (Function Attributes): Document always_inline
5086         attribute.
5087         Update documentation about inlining when not optimizing.
5088
5089         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5090
5091         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5092         unless DECL_ALWAYS_INLINE.
5093
5094         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5095         unless DECL_ALWAYS_INLINE.
5096         (c_disregard_inline_limits): Disregard if always_inline set.
5097
5098         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5099         Disregard if always_inline set.
5100         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5101         unless DECL_ALWAYS_INLINE.
5102
5103         * attribs.c (handle_always_inline_attribute): New.
5104         (c_common_attribute_table): Add always_inline.
5105
5106         * config/rs6000/altivec.h: Add prototypes for builtins
5107         requiring the always_inline attribute.
5108
5109 2002-02-21  Eric Christopher  <echristo@redhat.com>
5110
5111         * expmed.c (store_bit_field): Try to simplify the subreg
5112         before generating a new one when when the mode size of
5113         value is less than maxmode.
5114
5115 2002-02-21  Richard Henderson  <rth@redhat.com>
5116
5117         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5118         than gen_rtx_PLUS to form the sum.
5119         * explow.c (force_reg): Rearrange to not allocate new pseudo
5120         when force_operand returns a register.
5121         * expr.c (expand_assignment): Allow offset_rtx expansion to
5122         return a sum.  Do not force addresses into registers.
5123         (expand_expr): Likewise.
5124         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5125         to canonicalize arithmetic that didn't simpify.
5126         (simplify_plus_minus): New argument force; update
5127         all callers.  Don't split CONST unless we can do something with it,
5128         and wouldn't lose the constness of the operands.
5129
5130         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5131         that we generated earlier.
5132
5133 2002-02-21  Tom Tromey  <tromey@redhat.com>
5134
5135         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5136         (output_line_info): Use constant `1', with a long explanatory
5137         comment.
5138         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5139
5140 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5141
5142         * jump.c (redirect_jump): If old label has no UID, don't try to
5143         delete it.
5144
5145 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5146
5147         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5148         If input is constant, do shifts at compile time.
5149
5150 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5151
5152         * doc/extend.texi: Fix some more overfull hboxes.
5153
5154 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5155
5156         PR optimization/4994
5157         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5158         register moves.
5159
5160 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5161
5162         PR c++/4574
5163         * expr.h (expand_and): Add mode argument.
5164         * expmed.c (expand_and): Add mode argument.
5165         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5166         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5167         * except.c (expand_builtin_extract_return_addr): Likewise.
5168         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5169         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5170         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5171         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5172         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5173         gen_rtx (CONST_INT, VOIDmode, x).
5174
5175 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5176
5177         PR c/4697:
5178         * stmt.c (warn_if_unused_value): Move side effects test once more.
5179
5180 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5181
5182         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5183         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5184
5185 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5186
5187         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5188         SUBREG or ZERO_EXTEND.
5189
5190 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5191
5192         * sh.h (current_function_anonymous_args): Remove.
5193         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5194         of current_function_varargs and current_function_stdarg is set.
5195         * sh.c (sh_expand_prologue): Check current_function_varargs /
5196         current_function_stdarg / TARGET_SH5 instead of
5197         current_function_anonymous_args.
5198
5199         * sh64.h (TARGET_VERSION): Define.
5200
5201 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5202
5203         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5204         VRSAVE_REGNO on TARGET_ALTIVEC.
5205
5206 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5207
5208         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5209         bits of SImode const_int.
5210         (includes_rshift_p): Likewise.
5211         (print_operand): Call mask_operand and mask64_operand with correct
5212         mode.
5213         (rs6000_output_function_epilogue): Pad traceback table to word.
5214         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5215         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5216         mask64_operand with correct mode.
5217         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5218
5219 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5220
5221         PR debug/4461
5222         * varasm.c (get_pool_constant_mark): New.
5223         * rtl.h (get_pool_constant_mark): Add prototype.
5224         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5225         be represented if it has not been output.
5226
5227 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5228
5229         * combine.c (do_SUBST): Sanity check substitutions of
5230         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5231         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5232         CONST_INT into its operand.
5233         (known_cond): Likewise, for ZERO_EXTEND.
5234         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5235         allow for simplification of wide modes.  Reject CONST_INTs in
5236         ZERO_EXTEND when their actual mode is not given.
5237
5238 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5239
5240         * c-decl.c (pushdecl): If no global declaration is found for an
5241         extern declaration in block scope, try a limbo one.
5242
5243 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5244
5245         PR c++/4401
5246         * c-common.c (pointer_int_sum): Moved from...
5247         * c-typeck.c (pointer_int_sum): ...here.
5248         * c-common.h (pointer_int_sum): Add prototype.
5249
5250 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5251
5252         PR c++/5713
5253         * c-decl.c (duplicate_decls): Return 0 if issued error about
5254         redeclaration.
5255
5256 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5257             Jakub Jelinek  <jakub@redhat.com>
5258
5259         PR c/4389
5260         * tree.c (host_integerp): Ensure that the constant integer is
5261         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5262         when pos is zero or non-zero respectively.  Clarify comment.
5263         * c-format.c (check_format_info_recurse): Fix host_integerp
5264         usage; the pos argument should be zero when assigning to a
5265         signed HOST_WIDE_INT.
5266
5267 2002-02-20  Richard Henderson  <rth@redhat.com>
5268
5269         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5270         of the operand, rather than assuming TImode.
5271         (ix86_expand_binop_builtin): Cope with commutative patterns
5272         using nonimmediate_operand for both operands.
5273         (ix86_expand_timode_binop_builtin): Likewise.
5274         (ix86_expand_store_builtin): Validate operand 1.
5275         (ix86_expand_unop1_builtin): Likewise.
5276
5277 2002-02-20  Philip Blundell  <philb@gnu.org>
5278
5279         PR 5705
5280         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5281
5282 2002-02-20  Richard Henderson  <rth@redhat.com>
5283
5284         PR c/5615
5285         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5286
5287 2002-02-20  Tom Tromey  <tromey@redhat.com>
5288
5289         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5290         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5291         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5292         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5293         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5294         unconditionally.
5295
5296 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5297
5298         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5299           for (const_int 0) in X not just INTVAL.
5300
5301 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5302
5303         * doc/extend.texi: Avoid or reduce overfull hboxes.
5304
5305 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5306
5307         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5308         operations if the field does not start at a mode boundary.
5309
5310 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5311
5312         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5313         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5314         Also done for -Acpu and -Amachine.
5315
5316 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5317
5318         * cppinit.c (init_dependency_output): Take deps output file
5319         from -o if none given with -MF.  Suppress normal output.
5320         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5321         * doc/cpp.texi, doc/invoke.texi: Update.
5322
5323 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5324
5325         * toplev.c (output_quoted_string): Write unprintable
5326         characters with octal escapes.
5327
5328 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5329
5330         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5331         really_call_used[VRSAVE_REGNO] if not Altivec.
5332
5333 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5334
5335         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5336         MODE_MASK.
5337         (constant_pool_expr_1): Fix formatting.
5338         (rs6000_legitimize_reload_address): Likewise.
5339
5340 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5341
5342         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5343         now that we have one.
5344
5345 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5346
5347         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5348         end of first block of bitfields (which was only seven bits);
5349         rename dummy to unused_1; remove comment which is no longer true.
5350
5351 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5352
5353         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5354
5355 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5356
5357         PR 5399
5358         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5359         if generating PIC.
5360
5361         PR 5054
5362         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5363         arm_is_longcall_p rather than inspecting call-type cookie
5364         directly.
5365         (call_value_insn) [TARGET_THUMB]: Likewise.
5366
5367 2002-02-19  Graham Stott  <grahams@redhat.com>
5368
5369         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5370
5371 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5372
5373         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5374         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5375         (FP_SAVE_INLINE): Delete.
5376
5377         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5378         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5379         * config/rs6000/t-ppccomm: Build crtsavres.o.
5380         * config/rs6000/crtsavres.asm: New file.
5381
5382 2002-02-19  Philip Blundell  <philb@gnu.org>
5383
5384         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5385         functions.
5386         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5387         (output_return_instruction): Allow interrupt functions to return with
5388         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5389         (arm_expand_prologue): Subtract 4 before stacking LR in an
5390         interrupt function.
5391
5392 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5393
5394         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5395         decl, not just FUNCTION_DECL.
5396         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5397         (arm_assemble_integer): Likewise.
5398         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5399         marked local.
5400
5401 2002-02-19  matthew green  <mrg@eterna.com.au>
5402
5403         * config.gcc (sparc-*-netbsdelf*): Enable target.
5404         (sparc64-*-netbsd*): New target.
5405         * config/sparc/netbsd-elf.h: New file.
5406         * config/sparc/t-netbsd64: New file.
5407
5408 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5409
5410         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5411
5412 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5413
5414         * doc/invoke.texi: explicitly list the style guidelines that
5415         -Weffc++ checks for.
5416
5417 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5418
5419         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5420
5421 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5422
5423         PR other/5718
5424         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5425         only if not -E.  If -E, pass -o through to the preprocessor.
5426
5427 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5428
5429         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5430         register number with an appropriate macro.
5431
5432 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5433
5434         * doc/rtl.texi (Constants): Close @code tag.
5435
5436 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5437
5438         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5439         ("mmx_uavgv4hi3"): Same.
5440         ("pmulhrwv4hi3"): Same.
5441
5442         * tree-inline.c (walk_tree): Handle vectors.
5443
5444         * c-common.c (constant_expression_warning): Handle vectors.
5445         (overflow_warning): Same.
5446
5447         * sched-deps.c (sched_analyze_2): Handle vectors.
5448
5449         * rtlanal.c (rtx_unstable_p): Handle vectors.
5450         (rtx_varies_p): Same.
5451         (count_occurrences): Same.
5452         (regs_set_between_p): Same.
5453         (modified_between_p): Same.
5454         (modified_in_p): Same.
5455         (volatile_insn_p): Same.
5456         (volatile_refs_p): Same.
5457         (side_effects_p): Same.
5458         (may_trap_p): Same.
5459         (inequality_comparisons_p): Same.
5460         (replace_regs): Same.
5461         (computed_jump_p_1): Same.
5462
5463         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5464         argument.
5465         (inner_mode_array): New.
5466         (copy_rtx): Handle vectors.
5467         (copy_most_rtx): Same.
5468         (rtx_equal_p): Same.
5469         (get_mode_alignment): Adjust for vectors.
5470
5471         * resource.c (mark_referenced_resources): Handle vectors.
5472         (mark_set_resources): Same.
5473
5474         * reload1.c (eliminate_regs): Handle vectors.
5475         (elimination_effects): Same.
5476         (scan_paradoxical_subregs): Same.
5477
5478         * reload.c (subst_reg_equivs): Handle vectors.
5479
5480         * regrename.c (scan_rtx): Handle vectors.
5481
5482         * regclass.c (reg_scan_mark_refs): Handle vectors.
5483
5484         * recog.c (find_single_use_1): Handle vectors.
5485
5486         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5487         (contains_replace_regs): Same.
5488         (memref_referenced_p): Same.
5489
5490         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5491         (subst_constants): Same.
5492
5493         * genattrtab.c (attr_copy_rtx): Handle vectors.
5494         (encode_units_mask): Same.
5495         (clear_struct_flag): Same.
5496         (count_sub_rtxs): Same.
5497
5498         * gcse.c (want_to_gcse_p): Handle vectors.
5499         (oprs_unchanged_p): Same.
5500         (hash_expr_1): Same.
5501         (oprs_not_set_p): Same.
5502         (expr_killed_p): Same.
5503         (compute_transp): Same.
5504         (store_ops_ok): Same.
5505
5506         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5507         of vectors.
5508         (fixup_var_refs_1): Same.
5509         (instantiate_virtual_regs_1): Same.
5510
5511         * fold-const.c (operand_equal_p): Handle vectors.
5512         (fold): Same.
5513         (rtl_expr_nonnegative_p): Same.
5514
5515         * flow.c (mark_used_regs): Handle vectors.
5516
5517         * df.c (df_uses_record): Handle vectors.
5518
5519         * cselib.c (cselib_subst_to_values): Handle vectors.
5520         (cselib_mem_conflict_p): Same.
5521         (hash_rtx): Same.
5522
5523         * cse.c (canon_reg): Handle vectors.
5524         (fold_rt): Same.
5525         (cse_process_notes): Same.
5526         (count_reg_usage): Same.
5527         (canon_hash): Same.
5528
5529         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5530
5531         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5532
5533         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5534         (gen_rtx): Handle CONST_VECTOR.
5535         (gen_const_vector_0): New.
5536         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5537         (reset_used_flags): Same.
5538         (copy_insn_1): Same.
5539         (initializer_constant_valid_p): Handle VECTOR_CST.
5540
5541         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5542
5543         * doc/rtl.texi (Constants): Document const_vector.
5544         (CONST0_RTX): Update for vectors.
5545         (RTL sharing): Same.
5546
5547         * print-tree.c (print_node): Add case for VECTOR_CST.
5548
5549         * tree.h (TREE_VECTOR_CST_ELTS): New.
5550         (struct tree_vector): New.
5551         (union tree_node): Add vector node.
5552         (build_vector): Add prototype.
5553
5554         * tree.def (VECTOR_CST): New.
5555
5556         * tree.c (build_vector): New.
5557
5558         * expmed.c (make_tree): Handle CONST_VECTOR.
5559
5560         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5561         (CONST_VECTOR_ELT): New.
5562         (CONST_VECTOR_NUNITS): New.
5563
5564         * machmode.h (GET_MODE_INNER): New.
5565         (DEF_MACHMODE): Accept 8th arg.
5566
5567         * machmode.def: Add 8th argument for vector inner mode.
5568         Add inner vector modes for vectors.
5569
5570         * rtl.def (VEC_CONST): Remove.
5571         (CONST_VECTOR): New.
5572
5573         * expr.c (clear_storage): Allow vectors.
5574         (is_zeros_p): Handle VECTOR_CST.
5575
5576         * varasm.c (output_constant_pool): Handle vectors.
5577         (rtx_const): Add veclo and vechi fields.
5578         (kind): Add RTX_VECTOR.
5579         (decode_rtx_const): Add case for vector.
5580
5581         * config/rs6000/rs6000-protos.h: Add zero_constant.
5582
5583         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5584         constants.  Force easy vector constants into memory.
5585         (easy_vector_constant): New.
5586         (emit_easy_vector_constant): New.
5587         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5588         darwin.
5589
5590         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5591         instruction does.
5592         ("altivec_lvxl"): Same.
5593         (altivec_lvebx): Same.
5594         (altivec_lvehx): Same.
5595         (altivec_lvewx): Same.
5596         ("*movv4si_const0"): New.
5597         ("*movv4sf_const0"): New.
5598         ("*movv8hi_const0"): New.
5599         ("*movv16qi_const0"): New.
5600
5601 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5602
5603         * config/h8300/h8300.c (notice_update_cc): Use
5604         cc_status.value2.
5605
5606 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5607
5608         * config/h8300/h8300.md (divmod patterns): Change the
5609         constraints for operands[1] to register_operand.
5610
5611 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5612
5613         * config/h8300/h8300-protos.h: Remove the prototype for
5614         p_operand.
5615         * config/h8300/h8300.c (p_operand): Remove.
5616         * config/h8300/h8300.md: Replace p_operand with
5617         const_int_operand.
5618
5619 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5620
5621         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5622         comment.
5623         (output_return_instruction): Allow use of LDR to unstack
5624         return addresss even for interrupt handlers or when
5625         interworking.  If compiling for ARMv5, use interworking-safe
5626         return instructions by default.  Remove duplicated code and
5627         lengthy "strcat" sequences.
5628
5629 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5630
5631         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5632         (LINK_EH_SPEC): Define.
5633         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5634
5635 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5636
5637         * config/s390/s390.c (s390_emit_prologue): Do not set the
5638         frame_related flag for call-clobbered registers.
5639
5640 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5641
5642         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5643         (construct_container): Fix handling of SSE operands.
5644         (ix86_expand_builtin): Fix handling of 64bit pointers.
5645         (mmx_maskmovq_rex): New pattern.
5646
5647 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5648
5649         * regrename.c (kill_set_value): Handle subregs properly.
5650
5651 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5652
5653         * objc/objc-act.c (handle_impent): Remove leading '*'
5654         from objc_class_name.
5655
5656 2002-02-17  Richard Henderson  <rth@redhat.com>
5657
5658         * config/alpha/alpha.c (some_small_symbolic_operand,
5659         some_small_symbolic_operand_1, split_small_symbolic_operand,
5660         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5661         Handle small SYMBOL_REFs anywhere, not just inside memories.
5662         * config/alpha/alpha-protos.h: Update.
5663         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5664         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5665
5666 2002-02-17  Roland McGrath  <roland@frob.com>
5667
5668         * config.gcc (powerpc-*-gnu-gnualtivec*,
5669         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5670         * config/rs6000/gnu.h: New file.
5671         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5672         Grok "gnu" in rs6000_abi_name.
5673         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5674         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5675         Grok -mcall-gnu analogous to -mcall-linux et al.
5676         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5677         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5678         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5679
5680 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5681
5682         PR c/3444:
5683         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5684         shortening.
5685
5686 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5687
5688         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5689         ENDFILE_SPEC before (re)defining them.
5690
5691 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5692
5693         * config/h8300/h8300.c: Fix formatting.
5694         * config/h8300/h8300.h: Likewise.
5695
5696 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5697
5698         * doc/tm.texi: Explain why empty strings should not be
5699         marked for translation.
5700
5701 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5702
5703         * final.c (output_operand_lossage): Changed to accept
5704         printf style arguments. Change calls where necessary.
5705         * output.h (output_operand_lossage): Change declaration
5706         accordingly. Update copyright.
5707         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5708         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5709         Update copyright date where necessary.
5710
5711         * config/i386/i386.c (print_operand): Likewise. Remove use of
5712         sprintf.
5713
5714         * config/cris/cris.c (cris_operand_lossage): Likewise.
5715         Rename parameter so that exgettext recognizes it as
5716         translatable message.
5717         (LOSE_AND_RETURN): Rename parameter to msgid.
5718
5719 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5720
5721         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5722         hard coded register number with an appropriate macro.
5723         (HARD_REGNO_MODE_OK): Likewise.
5724         (ARG_POINTER_REGNUM): Likewise.
5725         (STATIC_CHAIN_REGNUM): Likewise.
5726         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5727         * config/h8300/h8300.md (define_constants): Define more
5728         register numbers.
5729
5730 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5731
5732         * config/i386/i386.h: Don't mark empty strings for translation.
5733
5734 2002-02-16  H.J. Lu <hjl@gnu.org>
5735
5736         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5737
5738 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5739
5740         * cppinit.c (merge_include_chains): Check for brack being
5741         NULL before attempting to merge it with qtail.
5742
5743 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5744
5745         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5746         DBX_DEBUG.
5747
5748 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5749
5750         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5751
5752 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5753
5754         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5755         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5756         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5757
5758 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5759
5760         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5761         now only if !TARGET_FIX.
5762         (*movsi_nt_vms_fix): New pattern.
5763
5764 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5765
5766         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5767         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5768         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5769         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5770         (alpha_start_function, alpha_expand_epilogue): Likewise.
5771         (unicosmk_gen_dsib): Likewise.
5772
5773 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5774
5775         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5776
5777 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5778
5779         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5780         check_and_change_labels, s390_final_chunkify): Delete.
5781         (s390_split_branches, s390_chunkify_pool): New functions.
5782         (s390_function_prologue): Call them.
5783
5784         * config/s390/s390.h (S390_REL_MAX): Delete.
5785         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5786
5787         * config/s390/s390.md (cjump, icjump, jump): Fix length
5788         attribute calculation.
5789
5790
5791 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5792
5793         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5794         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5795
5796 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5797
5798         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5799         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5800         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5801
5802 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5803
5804         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5805
5806 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5807
5808         * reload.c (find_dummy_reload): Check that an output register
5809         is valid for its mode.
5810
5811 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5812
5813         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5814         to simplify it.
5815
5816         * function.c (assign_parms): Demote promoted argument passed by
5817         transparent reference.
5818
5819 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5820
5821         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5822         -Acpu() and -Amachine() to eliminate warnings.
5823
5824 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5825
5826         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5827
5828 2002-02-14  Kazu Hirata  <kazu@hxi.com>
5829
5830         * config/h8300/h8300-protos.h: Update the prototype for
5831         const_costs.
5832         * config/h8300/h8300.c (const_costs): Treat SET as a little
5833         more expensive operation.
5834         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5835         reference to const_costs.
5836
5837 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
5838
5839         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5840
5841 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
5842
5843         PR c/5503:
5844         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5845         use arguments from newtype.
5846
5847 2002-02-13  Eric Christopher  <echristo@redhat.com>
5848
5849         * config/mips/mips.c (override_options): Add check for march/mipsX
5850         on the same command line. Fix error message in cpu processing.
5851         Remove architecture and ISA checks.
5852
5853 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5854
5855         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5856
5857         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5858
5859 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5860
5861         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5862         alternatives.
5863         ("*movv8hi_internal1"): Same.
5864         ("*movv16qi_internal1"): Same.
5865         ("*movv4sf_internal1"): Same.
5866
5867         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5868         not push_reload for altivec modes.
5869
5870 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
5871
5872         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5873         all RTEMS targets including removal of #includes from config/*/rtems*.h
5874         file and adding them to tm_file setting. Added xm_defines=POSIX to
5875         many targets.
5876         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5877         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5878         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5879         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5880         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5881         config/m68k/rtemself.h: Ditto.
5882         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5883         config/mips/rtems64.h: Ditto.
5884         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5885         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5886         Ditto.
5887         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5888         config/sparc/rtemself.h: Ditto.
5889         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5890         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5891         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5892         more like arm-elf.
5893         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5894         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5895         target made more similar to i386-elf.
5896         * config/i386/t-rtems-i386: Added soft float support and multilibs.
5897         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5898         be similar to config/m68k/t-m68kelf.
5899         * gthr-rtems.h: Encapsulate with extern "C" for C++.
5900
5901 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
5902
5903         * regmove.c (kill_value): Handle subregs.
5904
5905 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5906
5907         * i386.md (mul patterns): Allow memory operand to be first;
5908         add expanders where needed; fix constraints.
5909         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5910         Allow memory operand to be the first.
5911
5912         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5913         operands.
5914
5915 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5916
5917         PR c/5681:
5918         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5919         GET_MODE (x).
5920
5921 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5922
5923         PR optimization/5547:
5924         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5925         all valid IA-32 address modes involving non-scaled %ebx and
5926         GOT/GOTOFF as displacement.
5927
5928 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5929
5930         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5931         after emitting ltorg insns.
5932
5933         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5934         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5935         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5936         *abssf2): Fix "op_type" attribute.
5937
5938 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
5939
5940         * mkconfig.sh: Avoid using a subshell redirect.
5941         ($output.T): Change to $(output)T.
5942         (ENABLE_NLS): Remove unneeded undef.
5943
5944         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5945         * config/alpha/x-vms (libsubdir): Define.
5946
5947         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5948         register frame procedures. Optimize retrieving context.
5949
5950         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5951         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5952         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5953
5954 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5955
5956         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5957         Make same change as for find_base_value.
5958
5959 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5960
5961         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5962         of QImode and SImode.
5963
5964 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5965
5966         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5967         length computation of movsi.
5968         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5969
5970 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5971
5972         * config/h8300/h8300.md (subqi3): Tighten the predicate for
5973         operands[2] to register_operand.
5974
5975 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
5976
5977         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5978
5979 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
5980
5981         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5982         for altivec_lvx* and altivec_stvx*.
5983         ("*movv4si_internal"): Add constraint for loading from GPRs.
5984         ("*movv8hi_internal1"): Same.
5985         ("*movv16qi_internal1"): Same.
5986         ("*movv4sf_internal1"): Same.
5987
5988         * config/rs6000/rs6000.c (altivec_register_operand): New.
5989
5990         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5991         altivec_register_operand.
5992
5993 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
5994
5995         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5996         handle SYMBOL_REF.
5997
5998 2002-02-13  Stan Shebs  <shebs@apple.com>
5999
6000         * c-typeck.c (digest_init): Handle vectors.
6001         (really_start_incremental_init): Same.
6002         (pop_init_level): Same.
6003         (process_init_element): Same.
6004
6005         * varasm.c (output_constant): Same.
6006
6007         * expr.c (clear_storage): Same.
6008         (store_constructor): Same.
6009
6010 2002-02-12  Eric Christopher  <echristo@redhat.com>
6011
6012         * explow.c (hard_function_value): Add comment explaining
6013         signed/unsigned comparison.
6014
6015 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6016
6017         * jump.c (never_reached_warning): Add finish argument.
6018         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6019         real insn after end.
6020         * rtl.h (never_reached_warning): Adjust prototype.
6021         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6022         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6023         never_reached_warning.
6024
6025 2002-02-12  Graham Stott  <grahams@redhat.com>
6026
6027         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6028
6029 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6030
6031         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6032         logical shifts on H8/300.
6033         (shift_alg_si): Improve several shifts on H8/300.
6034         (get_shift_alg): Likewise.
6035
6036 2002-02-12  Graham Stott  <grahams@redhat.com>
6037
6038         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6039
6040 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6041
6042         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6043         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6044
6045 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6046
6047         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6048         non-CONST_INT through default_assemble_integer.
6049         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6050         <case 8>: Abort for CONST_DOUBLE.
6051
6052 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6053
6054         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6055         is specified.
6056         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6057         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6058
6059 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6060
6061         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6062
6063 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6064
6065         * regrename.c (regrename_optimize): Don't accept a
6066         part-clobbered register if the replaced register is not part
6067         clobbered.
6068
6069         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6070         take padding into account when computing the argument value.
6071
6072         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6073
6074         * combine.c (try_combine): Apply substitutions in
6075         CALL_INSN_FUNCTION_USAGE too.
6076
6077 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6078
6079         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6080         __builtin_altivec_abs*.
6081         (bdesc_abs): New.
6082
6083         * config/rs6000/rs6000.h (rs6000_builtins): Add
6084         ALTIVEC_BUILTIN_ABS*.
6085
6086         * config/rs6000/altivec.h: Use const char for builtins expecting
6087         literals.
6088         (vec_abs): New versions for C and C++.
6089         (vec_abss): Same.
6090
6091 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6092
6093         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6094         using Pmode.
6095
6096 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6097
6098         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6099         constant definition from h8300.md.
6100         (FRAME_POINTER_REGNUM): Likewise.
6101         * config/h8300/h8300.md (define_constants): Add FP_REG.
6102
6103 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6104
6105         * config/h8300/h8300.c (print_operand): Remove redundant code.
6106
6107 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6108
6109         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6110         * config/h8300/h8300.c (byte_reg): Make it static.
6111
6112 2002-02-10  Richard Henderson  <rth@redhat.com>
6113
6114         PR c/5623
6115         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6116
6117 2002-02-10  Richard Henderson  <rth@redhat.com>
6118
6119         PR c++/5624
6120         * tree.c (append_random_chars): Don't abort if main_input_filename
6121         does not exist.
6122
6123 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6124
6125         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6126
6127 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6128
6129         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6130         (pushhi1): Likewise.
6131
6132 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6133
6134         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6135         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6136
6137 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6138
6139         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6140         remove MASK_VIS.
6141         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6142
6143 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6144
6145         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6146         a half of an SImode register on H8/300.
6147
6148 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6149
6150         * i386.md (movdi_2): Add missing '!'.
6151
6152 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6153
6154         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6155         definitions.
6156
6157 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6158
6159         * config/h8300/h8300.md (length): Correct the distance valid
6160         for the short branch.
6161
6162 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6163
6164         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6165
6166 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6167
6168         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6169         registers in SImode.
6170         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6171         part-clobbered.
6172
6173         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6174         patch.
6175
6176         Contribute sh64-elf.
6177         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6178         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6179         (sh_cannot_modify_jumps_p): New function.
6180         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6181         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6182         (sh_ms_bitfield_layout_p): New function.
6183         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6184                     Zack Weinberg  <zack@codesourcery.com>
6185         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6186         expand_simple_binop instead of expand_binop.
6187         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6188         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6189         use of .quad and .uaquad.
6190         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6191         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6192         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6193         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6194         movdi_const_16bit): Make sure all CONSTs have modes.
6195         (sym2PIC): Ditto, but by adjusting all callers.
6196         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6197         if the prologue calls the SHmedia argument decoder or register
6198         saver.
6199         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6200         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6201         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6202         (sh_expand_epilogue): Don't emit USE of return target register.
6203         (prepare_move_operands): Legitimize DImode PIC addresses.
6204         (sh_media_register_for_return): Skip tr0, used to initialize the
6205         PIC register.
6206         (sh_expand_prologue): Remove explicit USE of return register.
6207         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6208         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6209         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6210         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6211         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6212         EXTRA_CONSTRAINT_T.
6213         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6214         (MOVI_SHORI_BASE_OPERAND_P): New.
6215         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6216         (EXTRA_CONSTRAINT_T): Define in terms of them.
6217         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6218         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6219         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6220         alternatives supporting TARGET_REGS.
6221         (UNSPEC_GOTPLT): New constant.
6222         (movdi split): Move incrementing of LABEL_NUSES...
6223         (movdi_const, movdi_const_32bit): Here.  Use
6224         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6225         (movdi_const_16bit): New.
6226         (call, call_value) [flag_pic]: Use GOTPLT.
6227         (call_pop, call_value_pop): New expands.
6228         (call_pop_compact, call_pop_rettramp): New insns.
6229         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6230         (sibcall) [flag_pic]: Use GOT.
6231         (builtint_setjmp_receiver): Remove bogus, unused expand.
6232         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6233         (*pt, *ptb, ptrel): New insns.
6234         (sym2GOT): Handle DImode GOT.
6235         (sym2GOTPLT, symGOTPLT2reg): New expands.
6236         (sym2PIC): New expand.
6237         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6238         (shcompact_return_tramp_i): Use return register explicitly.
6239         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6240         disable flag_reorder_blocks.
6241         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6242         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6243         clobbers, for clarity.
6244         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6245         restoring of r0 in macl as MAYBE_DEAD.
6246         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6247         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6248         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6249         alter_subreg all over.
6250         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6251         reload, instead of emitting instructions that would require
6252         reloading.
6253         (casesi_load_media): Add missing modes.
6254         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6255         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6256         as used if the argument decoder is called.
6257         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6258         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6259         Pmode, then extend it to DImode if necessary.
6260         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6261         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6262         constants in FPU-enabled SHmedia, let them be loaded from memory.
6263         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6264         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6265         Adjust whitespace in assembly output templates.
6266         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6267         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6268         mode of if_then_else.
6269         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6270         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6271         sh.h.
6272         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6273                     Joern Rennecke <amylaar@redhat.com>
6274         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6275         (SUBTARGET_CPP_PTR_SPEC): New.
6276         (SUBTARGET_CPP_SPEC): Remove.
6277         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6278         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6279         Fix typo in previous checkin.
6280         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6281         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6282         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6283                     Alexandre Oliva  <aoliva@redhat.com>
6284         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6285         what single FP register can hold for SHmedia target.
6286         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6287                     Alexandre Oliva  <aoliva@redhat.com>
6288         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6289         Do not split into SUBREG.
6290         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6291         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6292         and added new functions as specified in SH5 ABI r9.
6293         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6294         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6295         8-byte boundary.
6296         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6297         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6298         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6299         and consttable_window_ends.
6300         2001-06-03  Graham Stott  <grahams@redhat,com>
6301         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6302         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6303         * config/sh/sh.c (print_operand): Handle floating-point pair,
6304         vector and matrix registers.
6305         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6306         vector modes into account.
6307         * config/sh/sh.md (movv2sf): Split move between registers into
6308         movdf.
6309         (movv4sf, movv16sf): Introduce insns that get split only after
6310         reload.
6311         * config/sh/shmedia.h: Fix Copyright dates.
6312         * config/sh/ushmedia.h: Likewise.  Move loop counter
6313         declarations into conditionals that uses them.
6314         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6315         loop boundary.
6316         * config/sh/sshmedia.h: Fix Copyright dates.
6317         (sh_media_PUTCFG): Fix constraints.
6318         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6319         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6320         ptrmemfunc_vbit_in_delta for SH5.
6321         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6322         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6323         * invoke.texi: Likewise.
6324         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6325         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6326         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6327         GCC_pop_shmedia_regs_nofpu): New global symbols.
6328         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6329         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6330         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6331         compact function with nonlocal labels.
6332         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6333         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6334         (initial_elimination_offset): Account for their stack space.
6335         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6336         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6337         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6338         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6339         least one of the operands to be a register.
6340         (movv2sf): Likewise.  Renamed to movv2sf_i.
6341         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6342         prepare_move_operands() before emitting SHmedia insns.
6343         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6344         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6345         Don't save nor initialize r12.  Don't mis-align the stack.
6346         Pad the code with a nop.
6347         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6348         stack.
6349         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6350         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6351         [__SHMEDIA__]: Implement.
6352         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6353         * config/sh/sh.md: Set latency of `pt' closer to reality.
6354         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6355         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6356         Set move, load and store type attributes.
6357         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6358         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6359         profiling.
6360         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6361         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6362         * config/sh/sh.c (sh_media_register_for_return): New function.
6363         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6364         branch-target register.
6365         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6366         * config/sh/sh.md (return_media_i): Use any call-clobbered
6367         branch-target register.
6368         (return_media): If r18 wasn't copied in the prologue, copy it
6369         here.
6370         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6371         Clear class FP0_REGS.
6372         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6373         from elf.h.
6374         2001-03-08  DJ Delorie  <dj@redhat.com>
6375         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6376         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6377         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6378         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6379         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6380         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6381         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6382         return value correctly for call_cookie.
6383         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6384         * config/sh/crt1.asm (start): Modified so as to call
6385         ___setup_argv_and_call_main.
6386         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6387         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6388         SHmedia mode.
6389         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6390         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6391         (STRIP_NAME_ENCODING): Use it.
6392         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6393         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6394         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6395         prepare_scc_operands().
6396         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6397         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6398         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6399         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6400         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6401         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6402         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6403         used in shcompact_incoming_args.
6404         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6405         change.
6406         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6407         mode.
6408         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6409         Adjust accordingly.
6410         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6411         Simplify.  Adjust.  Add sanity check.
6412         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6413         FPU_SINGLE_BIT.
6414         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6415         TARGET_SHCOMPACT.
6416         (udivsi3, divsi3): Use them.
6417         (force_mode_for_call): New insn.
6418         (call, call_value, sibcall_value): Emit it before SHcompact
6419         calls.
6420         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6421         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6422         call cookie is non-NULL before taking its value.
6423         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6424         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6425         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6426         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6427         block.
6428         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6429         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6430         temporary for stack adjusts.  Use MACL and MACH to pass
6431         arguments to shcompact_incoming_args.
6432         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6433         clobber r1.
6434         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6435         (nested_trampoline): Load static chain address into r1.
6436         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6437         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6438         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6439         fp_arith_reg_operand().
6440         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6441         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6442         and use signed compares for them.
6443         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6444         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6445         ones properly aligned.
6446         (find_barrier): Account for extra alignment needed for 8-byte wide
6447         constants.
6448         (machine_dependent_reorg): Require a label for the second 4-byte
6449         constant after an 8-byte one.
6450         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6451         change.
6452         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6453         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6454         last_float when switching float modes.
6455         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6456         auto-increment for general-purpose registers.
6457         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6458         result.
6459         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6460         for stack adjust.
6461         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6462         registers for varargs.
6463         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6464         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6465         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6466         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6467         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6468         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6469         call_cookie accordingly.
6470         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6471         (SHCOMPACT_BYREF): Likewise.
6472         (SHCOMPACT_FORCE_ON_STACK): New macro.
6473         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6474         (sh_builtin_saveregs): Likewise.
6475         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6476         shcompact_incoming_args): Use new shift values.  Support
6477         sequences of consecutive and non-consecutive pushes/pops.
6478         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6479         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6480         * config/sh/sh.h (TEXT_SECTION): Define.
6481         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6482         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6483         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6484         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6485         return values on FPU-enabled SHmedia.
6486         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6487         FPU-enabled SHmedia.
6488         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6489         value is returned in a non-FP reg and is not returned by
6490         reference.
6491         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6492         jump_ind.
6493         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6494         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6495         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6496         quad-aligned to be passed by callee-copy reference.
6497         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6498         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6499         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6500         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6501         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6502         copying low-numbered FP regs to r7 and r8.
6503         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6504         FP regs to general-purpose regs only if the copy was passed on the
6505         stack.
6506         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6507         copying FP reg to r9.
6508         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6509         copy FP regs to general-purpose regs only in outgoing calls.
6510         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6511         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6512         HOST_WIDE_INT.
6513         * config/sh/sh.h (struct sh_args): Document all fields.
6514         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6515         passed partially on the stack should not consider making
6516         sibcalls.
6517         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6518         stack_regs only for incoming calls.  When passing FP args,
6519         make sure there are FP regs available before modifying
6520         call_cookie.
6521         (SHCOMPACT_BYREF): Pass double args in general-purpose
6522         registers by reference.
6523         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6524         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6525         attempt to generate sibcalls if the caller got any arguments
6526         by reference.
6527         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6528         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6529         to 8-byte boundaries.
6530         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6531         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6532         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6533         stored in the stack.
6534         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6535         for the offsets to have the ISA bit set.
6536         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6537         invocation.  Use beq instead of bgt to mark end of sequence of
6538         loads.
6539         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6540         bgt to mark end of sequence of stores.
6541         * config/sh/sh.c (arith_operand): Don't check whether
6542         CONST_OK_FOR_J for now.
6543         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6544         instead of long for conversion.
6545         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6546         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6547         before passing it to fprintf.
6548         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6549         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6550         Call set_fpscr before reading/writing SR.
6551         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6552         Call set_fpscr.
6553         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6554         SHmedia code.
6555         (FMOVD_WORKS): Define on SH5 with FPU.
6556         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6557         setting.
6558         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6559         _fpscr_values.
6560         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6561         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6562         address.
6563         (ia_main_table): Ditto.
6564         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6565         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6566         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6567         the definitions from sh.h.
6568         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6569         TARGET_SH5.
6570         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6571         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6572         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6573         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6574         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6575         Increment LABEL_NUSES.
6576
6577         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6578         TARGET_SH5.
6579         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6580         defined.
6581         * config/sh/elf.h (SIZE_TYPE): Likewise.
6582         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6583         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6584         shcompact_incoming_args): Load switch table addresses using
6585         datalabel.
6586         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6587         (NO_BUILTIN_SIZE_TYPE): Define.
6588         (SIZE_TYPE): Don't define.
6589         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6590         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6591         definition of __SH5__=32 for -m5-compact-nofpu.
6592         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6593         ADDR_DIFF_VEC.
6594         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6595         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6596         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6597         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6598         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6599         (INSN_LENGTH_ALIGNMENT): Likewise.
6600         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6601         * config/sh/sh.md (call, call_value, sibcall): Simplify
6602         copying of non-branch-target register.
6603         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6604         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6605         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6606         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6607         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6608         floating-point values as structs.
6609         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6610         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6611         general-purpose register.
6612         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6613         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6614         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6615         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6616         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6617         (ENCODE_SECTION_INFO): Enclose variables and constants in
6618         DATALABEL unspecs.
6619         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6620         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6621         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6622         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6623         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6624         SH_DATALABEL_ENCODING to the symbol name.
6625         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6626         convert_mode().
6627         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6628         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6629         UNSPEC_DATALABEL.
6630         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6631         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6632         (DATALABEL_REF_P): Don't require CONST.
6633         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6634         REL label.
6635         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6636         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6637         right.
6638         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6639         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6640         Use shallow_copy_rtx and PUT_MODE to change the mode of
6641         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6642         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6643         on SHmedia using GENERAL_REGs.
6644         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6645         bltu_media_i): Fix reversion of conditions.
6646         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6647         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6648         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6649         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6650         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6651         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6652         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6653         (GCC_nested_trampoline): Likewise.
6654         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6655         * config/sh/sh.c (gen_datalabel_ref): Define.
6656         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6657         (INITIALIZE_TRAMPOLINE): Likewise.
6658         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6659         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6660         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6661         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6662         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6663         (ic_invalidate): Adjust for SH5.
6664         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6665         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6666         _nested_trampoline.
6667         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6668         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6669         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6670         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6671         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6672         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6673         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6674         * config/sh/sh.c (target_reg_operand): Match only target-branch
6675         registers and pseudos that aren't virtual registers.
6676         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6677         Copy operands that don't match target_reg_operand to pseudos.
6678         (call_media, call_value_media, sibcall_media): Use
6679         target_reg_operand instead of target_operand.
6680         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6681         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6682         * config/sh/sh.c (target_reg_operand): Match hardware registers
6683         other than branch-target registers.
6684         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6685         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6686         (fpscr_values) [SH5 == 32]: Define.
6687         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6688         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6689         Handle function addresses coming in SUBREGs.
6690         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6691         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6692         shcompact_return_trampoline): Use datalabel where appropriate.
6693         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6694         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6695         general-purpose register to copy one branch-target register to
6696         another.
6697         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6698         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6699         SYMBOL_REFs with VOIDmode.
6700         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6701         bltu_media_i): New insns.
6702         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6703         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6704         (INIT_CUMULATIVE_ARGS): Likewise.
6705         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6706         * machmode.def (V16SFmode): New mode.
6707         * c-common.c (type_for_mode): Support V2SF and V16SF.
6708         * tree.c (build_common_tree_nodes_2): Likewise.
6709         * tree.h (tree_index): Likewise.
6710         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6711         callers.  Introduce CALL_POPS_ARGS.
6712         * tm.texi (CALL_POPS_ARGS): Document.
6713         * config/sh/crt1.asm: Implement in SHmedia mode.
6714         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6715         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6716         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6717         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6718         Implement divsi and udivsi in SHmedia mode.  Introduce
6719         SHcompact trampolines.
6720         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6721         only in SHmedia64.
6722         (regno_reg_class): Rewrite.
6723         (fp_reg_names): Remove.
6724         (sh_register_names, sh_additional_register_names): New.
6725         (print_operand): Added `u'.  Support SUBREGs in addresses.
6726         Add parentheses around shifted CONSTs.
6727         (output_file_start): Output .mode and .abi directives.
6728         (shiftcosts, addsubcosts, multcosts): Adjust.
6729         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6730         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6731         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6732         bytes, not registers.  Take into account the need for the
6733         SHcompact incoming args trampoline.  Adjust all callers.
6734         (sh_expand_prologue): Take stack_regs into account.  Call
6735         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6736         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6737         stack aligned as per SH5 ABI.
6738         (sh_builtin_saveregs): Support SH5 ABI.
6739         (sh_build_va_list, sh_va_start): Likewise.
6740         (initial_elimination_offset): Take alignment into account.
6741         Compute location of PR according to the SH5 stack frame.
6742         (arith_reg_operand): Reject branch-target registers.
6743         (shmedia_6bit_operand): New.
6744         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6745         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6746         (target_operand): New.
6747         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6748         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6749         SIBCALL_REGS for SHmedia.
6750         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6751         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6752         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6753         (TARGET_SWITCHES): New SH5 flags.
6754         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6755         VALID_REGISTER_P to disable unsupported registers.
6756         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6757         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6758         (FUNCTION_ARG_PADDING): Define.
6759         (FASTEST_ALIGNMENT): Adjust.
6760         (SH_REGISTER_NAMES_INITIALIZER): New.
6761         (sh_register_names): Declare.
6762         (DEBUG_REGISTER_NAMES): Define.
6763         (REGISTER_NAMES): Define based on sh_register_names.
6764         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6765         (sh_additional_register_names): Declare.
6766         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6767         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6768         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6769         (REGISTER_NATURAL_MODE): Define.
6770         (FIRST_PSEUDO_REGISTER): Adjust.
6771         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6772         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6773         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6774         (VECTOR_MODE_SUPPORTED_P): Define.
6775         (REG_CLASS_CONTENTS): Adjust.
6776         (SMALL_REGISTER_CLASSES): Adjust.
6777         (REG_ALLOC_ORDER): Adjust.
6778         (INDEX_REG_CLASS): Adjust.
6779         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6780         (CONST_OK_FOR_LETTER_P): Adjust.
6781         (PREFERRED_RELOAD_CLASS): Adjust.
6782         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6783         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6784         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6785         (FIRST_FP_PARM_REG): Adjust.
6786         (CALL_POPS_ARGS): Define.
6787         (FUNCTION_ARG_REGNO_P): Adjust.
6788         (struct sh_args): New fields.
6789         (GET_SH_ARG_CLASS): Adjust.
6790         (INIT_CUMULATIVE_ARGS): Adjust.
6791         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6792         (FUNCTION_ARG_ADVANCE): Adjust.
6793         (FUNCTION_ARG): Adjust.
6794         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6795         (FUNCTION_ARG_CALLEE_COPIES): Define.
6796         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6797         (STRICT_ARGUMENT_NAMING): Define.
6798         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6799         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6800         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6801         (SETUP_INCOMING_VARARGS): Adjust.
6802         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6803         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6804         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6805         (SUBREG_OK_FOR_INDEX_P): Adjust.
6806         (EXTRA_CONSTRAINT_S): Update.
6807         (EXTRA_CONSTRAINT_T): New.
6808         (EXTRA_CONSTRAINT): Adjust.
6809         (GO_IF_LEGITIMATE_INDEX): Adjust.
6810         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6811         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6812         (MOVE_MAX): Adjust.
6813         (MAX_MOVE_MAX): Define.
6814         (Pmode): Adjust.
6815         (CONST_COSTS): Adjust.
6816         (REGISTER_MOVE_COST): Adjust.
6817         (BRANCH_COST): Adjust.
6818         (TEXT_SECTION_ASM_OP): Adjust.
6819         (DBX_REGISTER_NUMBER): Adjust.
6820         (ASM_OUTPUT_DOUBLE_INT): New.
6821         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6822         (PREDICATE_CODES): Adjust.
6823         (PROMOTE_MODE): Adjust.
6824         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6825         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6826         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6827         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6828         (DR0_REG, DR2_REG, DR4_REG): Renumber.
6829         (TR0_REG, TR1_REG, TR2_REG): New.
6830         (XD0_REG): Renumber.
6831         (UNSPEC_COMPACT_ARGS): New.
6832         (type): Added pt and ptabs.
6833         (length): Default to 4 on SHmedia.  Default pt length to 12
6834         and     20 on SHmedia32 and SHmedia64, respectively.
6835         (pt): New function unit.
6836         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
6837         Add whitespace between operands of SHmedia instructions.
6838         (movdicc): Fix.
6839         (adddi3_media, addsi3_media): Adjust constraints.
6840         (subsi3) [SHmedia]: Force operand 1 into a register.
6841         (udivsi3_i1_media, udivsi3_i4_media): New.
6842         (udivsi3): Support SHmedia.
6843         (divsi3_i1_media, divsi3_i4_media): New.
6844         (divsi3): Support SHmedia.
6845         (anddi3, iordi3, xordi3): Adjust constraints.
6846         (zero_extendhidi2, zero_extendqidi2): New.
6847         (extendsidi2, extendhidi2, extendqidi2): New.
6848         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6849         (pop_e, pop_fpul, pop_4): Likewise.
6850         (movsi_media): Support FP and BT registers.
6851         (movsi_media_nofpu): New.  Adjust splits to DImode.
6852         (lduw, ldub): Renamed to zero_extend* above.
6853         (movqi_media): Fix typo.
6854         (movdi_media): Support FP and BT registers.
6855         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
6856         (movdi_const_32bit): New.
6857         (shori_media): Require immediate operand.  Use `u' for output.
6858         (movdf_media, movsf_media): Simplified.
6859         (movdf_media_nofpu, movsf_media_nofpu): New.
6860         (movdf, movsf): Adjust
6861         (movv2sf, movv2sf, movv16sf): New.
6862         (beq_media, beq_media_i): Adjust constraints.  Don't use
6863         scratch BT register.
6864         (bne_media, bne_media_i): Likewise.
6865         (bgt_media, bgt_media_i): Likewise.
6866         (bge_media, bge_media_i): Likewise.
6867         (bgtu_media, bgtu_media_i): Likewise.
6868         (bgeu_media, bgeu_media_i): Likewise.
6869         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6870         bunordered): Emit jump insn.  Force operands to registers when
6871         needed.
6872         (jump_media, jump): Simplify.
6873         (call_compact, call_compact_rettramp): New.
6874         (call_value_compact, call_value_compact_rettramp): New.
6875         (call_media, call_value_media): Simplify.
6876         (sibcall_compact, sibcall_media): New.
6877         (call, call_value): Adjust for SHmedia and SHcompact.
6878         (sibcall, sibcall_value, untyped_call): Likewise.
6879         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6880         (indirect_jump): Adjust for SHmedia.
6881         (casesi_jump_media): New.
6882         (nop): Re-enable for SHmedia.
6883         (call_site): Restrict to SH1.
6884         (casesi): Adjust for SHmedia.
6885         (casesi_shift_media, casesi_load_media): New.
6886         (return): Explicitly use PR register.  Call return trampoline
6887         on SHcompact.
6888         (return_i): Explicitly use PR register.
6889         (shcompact_return_tramp, shcompact_return_tramp_i): New.
6890         (return_media): Adjust.
6891         (shcompact_incoming_args): New.
6892         (epilogue): Adjust.
6893         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6894         (movstrsi): Disable on SH5.
6895         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6896         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6897         (subsf3, subsf3_media): Likewise.
6898         (mulsf3, mulsf3_media, mac_media): Likewise.
6899         (divsf3, divsf3_media): Likewise.
6900         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
6901         (floatsisf2, fux_truncsfsi2): Likewise.
6902         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
6903         constraints.
6904         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6905         (cmpunsf_media, cmpsf): Likewise.
6906         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6907         (abssf2, abssf2_media): Likewise.
6908         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6909         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6910         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
6911         (floatsidf2, fix_truncdfsi2): Likewise.
6912         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
6913         constraints.
6914         (cmpeqdf_media, cmpgtdf_media): Likewise.
6915         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6916         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6917         (absdf2, absdf2_media): Likewise.
6918         (extendsfdf2, extendsfdf2_media): Likewise.
6919         (truncsfdf2, truncsfdf2_media): Likewise.
6920         * config/sh/sh64.h: New file.
6921         * config/sh/t-sh64: New file.
6922         * config/sh/shmedia.h: New file.
6923         * config/sh/ushmedia.h: New file.
6924         * config/sh/sshmedia.h: New file.
6925         * configure.in: Added sh64-*-elf.
6926         * configure: Rebuilt.
6927         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
6928         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6929         (reg_class_from_letter): Use `b' for TARGET_REGS.
6930         (print_operand): Support `%M', `%m', `AND' and
6931         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
6932         (andcosts): Adjust for SHmedia.
6933         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6934         Likewise.
6935         (target_reg_operand): New function.
6936         * config/sh/sh-protos.h (target_reg_operand): Declare.
6937         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6938         FP registers on SH5.
6939         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6940         on SH4.
6941         (TARGET_REGISTER_P): New macro.
6942         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6943         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6944         (EXTRA_CONSTRAINT_S): New macro.
6945         (EXTRA_CONSTRAINT): Adjust.
6946         (FLOAT_TYPE_SIZE): Define to 32.
6947         (Pmode): DImode on SHmedia.
6948         (CONST_COSTS): Adjust for SHmedia literals.
6949         (PREDICATE_CODES): Added target_reg_operand.
6950         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6951         * config/sh/sh.md: Remove all attrs from SHmedia insns.
6952         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6953         (cmpdi): Accept SHmedia.
6954         (movdicc_false, movdicc_true): New insns.
6955         (movdicc): New expand.
6956         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6957         no_new_pseudos.
6958         (addsi3_media): Match `S' constraint.
6959         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6960         (negdi2): Expand for SHmedia.
6961         (one_cmpldi2): New expand.
6962         (zero_extendsidi2): Change from expand to insn.
6963         (extendsidi2): Add constraints.
6964         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
6965         LD/ST address.  Fix SI immediate loading split.
6966         (movhi_media, movqi_media, lduw, ldub): New insns.
6967         (movhi, movqi): Accept SHmedia.
6968         (shori_media, movdi_media): Relax input constraints.  Split
6969         symbolic constants.
6970         (movdf_media, movsf_media): New insn.  New split to movdi.
6971         (movdf, movsf): Match on SHmedia.
6972         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6973         bgeu_media): New insns and splits.  New insns with `_i' suffix.
6974         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6975         (bunordered): New expand.
6976         (jump_compact): Renamed from `jump'.
6977         (jump_media): New insn.
6978         (jump): New expand.
6979         (call_media, call_value_media): New insns.
6980         (call, call_value): Adjust.
6981         (indirect_jump_compact): Renamed from `indirect_jump'.
6982         (indirect_jump_media): New insn.
6983         (indirect_jump): New expand.
6984         (untyped_call, return): Accept SHmedia.
6985         (return_media): New insn.
6986         (prologue, epilogue, blockage): Accept SHmedia.
6987         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6988         (sunordered): New expand.
6989         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6990         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6991         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6992         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6993         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6994         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6995         abssf2_media): New insns.
6996         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6997         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6998         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6999         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7000         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7001         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7002         absdf2_media): New insns.
7003         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7004         (extendsfdf2_media, truncdfsf2_media): New insns.
7005         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7006         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7007         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7008         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7009         * config/sh/sh.md (adddi3): New expand.
7010         (adddi3_media, adddi3z_media): New insns.
7011         (adddi3_compact): Renamed from adddi3.
7012         (addsi3_media): Use add.l r63 to add constant zero.
7013         (subdi3): New expand.
7014         (subdi3_media): New insn.
7015         (subdi3_compact): Renamed from subdi3.
7016         (mulsidi3): New expand.
7017         (mulsidi3_media): New insn.
7018         (mulsidi3_compact): Renamed from mulsidi3.
7019         (umulsidi3): New expand.
7020         (umulsidi3_media): New insn.
7021         (umulsidi3_compact): Renamed from umulsidi3.
7022         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7023         (ashlsi3, ashrsi3, lshrsi3): Use them.
7024         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7025         (ashldi3, ashrdi3, lshrdi3): Use them.
7026         (zero_extendsidi2): New expand.
7027         (extendsidi2): New insn.
7028         (movsi_media): New insn.  Split to movdi to load constants.
7029         (movsi): Enable for shmedia.
7030         (movdi_media): New insn.  Use shori_media to load wide constants.
7031         (short_media): New insn.
7032         (movdi): Enable for shmedia.
7033         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7034         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7035         (SUBTARGET_CPP_SPEC): Added `!m5'.
7036         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7037         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7038         to all other SH variants.
7039         (TARGET_DEFAULT): Set to SH1_BIT.
7040         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7041         (BITS_PER_WORD): Raise to 64 on shmedia.
7042         (MAX_BITS_PER_WORD): Change to 64.
7043         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7044         (INT_TYPE_SIZE): Keep as 32.
7045         (UNITS_PER_WORD): Raise to 8 on shmedia.
7046         (MIN_UNITS_PER_WORD): Keep as 4.
7047         (POINTER_SIZE): Raise to 64 on shmedia.
7048         (CONST_OK_FOR_J): New macro.
7049         (CONST_OK_FOR_LETTER_P): Use it.
7050         (processor_type): Add PROCESSOR_SH5.
7051         * config/sh/sh.md: Conditionalize all expands, insns and
7052         splits to TARGET_SH1.
7053         (cpu): Added sh5.
7054         (addsi3_compact): Renamed from...
7055         (addsi3): Now an expand.
7056         (addsi3_media, subsi3_media): New insns.
7057         (subsi3): Don't negate constants with SHmedia.
7058
7059         * hooks.c: New file.
7060         * hooks.h: New file.
7061         * Makefile.in (HOOKS_H): New.
7062         (TARGET_DEF_H): Added $(HOOKS_H).
7063         (OBJS): Added hooks.o.
7064         (cfgcleanup.o, bb-reorder.o): Added target.h.
7065         (hooks.o): Added dependencies.
7066         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7067         (TARGET_INITIALIZER): this.
7068         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7069         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7070         * bb-reorder.c: Include target.h.
7071         (reorder_basic_blocks): Skip if cannot modify jumps.
7072         * cfgcleanup.c: Include target.h.
7073         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7074
7075 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7076
7077         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7078         Protect jump delay slot instructions with .set noreorder and
7079         .set nomacro.
7080
7081 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7082
7083         * config/mips/mips.md (casesi_internal_di): Calculate
7084         the index into the target offset table correctly.
7085
7086 2002-02-08  Richard Henderson  <rth@redhat.com>
7087
7088         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7089         * final.c (output_addr_const): Accept and discard SUBREG.
7090         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7091         mark them unknown instead.
7092         (simplify_subtraction): Handle RTX_UNKNOWN.
7093         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7094
7095 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7096
7097         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7098
7099 2002-02-08  Richard Henderson  <rth@redhat.com>
7100
7101         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7102
7103 2002-02-08  Andreas Jaeger  <aj@suse.de>
7104
7105         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7106         * config/i386/t-linux64: New file.
7107
7108 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7109
7110         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7111         * c-parse.in (compstmt): Clear last_expr_type.
7112
7113 2002-02-07  Richard Henderson  <rth@redhat.com>
7114
7115         * loop.c (strength_reduce): Sink final_value when not
7116         eliminating a biv.
7117
7118 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7119
7120         * config/sparc/freebsd.h: Fix mismatched spec {.
7121
7122 2002-02-07  Richard Henderson  <rth@redhat.com>
7123
7124         * cfgrtl.c: Include recog.h and insn-config.h.
7125         (keep_with_call_p): Fix general_operand invocation.
7126         * Makefile.in (cfgrtl.o): Update dependencies.
7127
7128 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7129
7130         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7131         comment.  Accept HImode only if TARGET_H8300.
7132
7133 2002-02-07  Eric Christopher  <echristo@redhat.com>
7134
7135         * config/mips/crtn.asm: Cleanup #ifdefs.
7136
7137 2002-02-07  Eric Christopher  <echristo@redhat.com>
7138
7139         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7140         register 7 as RA instead of $31.
7141         * config/mips/crtn.asm: Ditto.
7142         * config/mips/mips.c (mips_move_2words): Add case for
7143         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7144         (compute_frame_size): Fix typo.
7145         (save_restore_insns): Ditto.  Make documentation about using
7146         register $7 as return register more precise.
7147         (mips_expand_epilogue): Fix comment. Add code to work around not
7148         being able to add to the stack pointer directly.
7149         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7150         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7151         epilogue.
7152
7153 2002-02-07  Tom Rix  <trix@redhat.com>
7154
7155         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7156         immediates in ldu and stdu DS opcode field.
7157         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7158         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7159         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7160
7161 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7162
7163         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7164         offset for stack bias.
7165
7166 2002-02-07  H.J. Lu <hjl@gnu.org>
7167
7168         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7169
7170 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7171
7172         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7173
7174 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7175
7176         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7177         * i386.c (x86_order_regs_for_local_alloc): New global function.
7178         * i386.h (REG_ALLOC_ORDER): CLeanup.
7179         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7180
7181 2002-02-07  Richard Henderson  <rth@redhat.com>
7182
7183         PR optimization/2463
7184         * alias.c (find_base_value): Recall base values for fixed hard regs.
7185         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7186
7187 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7188
7189         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7190         length.
7191
7192 2002-02-06  Richard Henderson  <rth@redhat.com>
7193
7194         PR c/5609
7195         * stmt.c (resolve_operand_name_1): Take more care with mixed
7196         named and unnamed operands.
7197
7198 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7199             Jan Hubicka  <jh@suse.cz>
7200
7201         * loop.c (remove_constant_addition): Avoid clobbering a shared
7202         CONST expression.
7203
7204 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7205
7206         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7207         * config/s390/t-linux64: New file.
7208         * config/s390/libgcc-glibc.ver: New file.
7209
7210 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7211
7212         * config/s390/linux64.h: Delete file.
7213         * config/s390/s390x.h: New file.
7214         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7215         as target header file.
7216         * config/s390/linux.h (TARGET_VERSION): Define depending on
7217         DEFAULT_TARGET_64BIT.
7218         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7219         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7220         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7221         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7222         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7223         (EXTRA_SPEC): New define.
7224         * config/s390/s390.h (TARGET_VERSION): Define depending on
7225         DEFAULT_TARGET_64BIT.
7226         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7227
7228 2002-02-06  Jason Merrill  <jason@redhat.com>
7229
7230         * c-decl.c (finish_function): Warn about a non-void function with
7231         no return statement and no abnormal exit.
7232         (current_function_returns_abnormally): New variable.
7233         (start_function): Clear it.
7234         (struct c_language_function): Add returns_abnormally.
7235         (push_c_function_context): Save it.
7236         (pop_c_function_context): Restore it.
7237         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7238         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7239         an explicit return type.
7240         * c-tree.h: Declare current_function_returns_abnormally.
7241         (C_FUNCTION_IMPLICIT_INT): New macro.
7242         * c-typeck.c (build_function_call): Set it.
7243         (c_expand_return): Set current_function_returns_value even if the
7244         value is erroneous.
7245
7246 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7247
7248         PR c/5420:
7249         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7250         unsafe for reevaluation.
7251
7252 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7253
7254         PR c/5482:
7255         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7256         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7257
7258 2002-02-06  Richard Henderson  <rth@redhat.com>
7259
7260         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7261         be a general_operand.  Dest for function value must be a pseudo.
7262
7263 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7264
7265         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7266         as SYMBOL_REFs from the constant pool.
7267
7268 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7269
7270         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7271         passed by invisible reference.
7272
7273 2002-02-05  Richard Henderson  <rth@redhat.com>
7274
7275         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7276
7277 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7278
7279         Implement using "base addresses" in insn operands as default.
7280         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7281         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7282         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7283         used to read the rtx value.
7284         (mmix_target_asm_function_epilogue): Fix spacing.
7285         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7286         (mmix_legitimate_address): Ditto.
7287         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7288         should be loaded with a GETA insn.  Don't allocate needless extra
7289         char for nul termination and fix misleading comment.
7290         (mmix_print_operand_address): Handle constants if
7291         TARGET_BASE_ADDRESSES.
7292         (mmix_output_register_setting): Use base addressing if
7293         TARGET_BASE_ADDRESSES and the number of insns is 3.
7294         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7295         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7296         to use R as constraint, add LDA to match s.
7297         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7298         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7299         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7300         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7301         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7302         order with other fixed registers.
7303         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7304         other parameter/call-clobbered registers.
7305         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7306         -mbase-addresses, -mno-base-addresses.
7307         (MMIX Options): Ditto.
7308
7309 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7310
7311         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7312
7313 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7314
7315         * config/rs6000/altivec.h: Change elem to _S_elem.
7316
7317 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7318
7319         * config/netbsd.h (WCHAR_TYPE): Define.
7320         (WCHAR_TYPE_SIZE): Ditto.
7321         (WINT_TYPE): Ditto.
7322         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7323         (WCHAR_UNSIGNED): Ditto.
7324         (WCHAR_TYPE_SIZE): Ditto.
7325         (WINT_TYPE): Ditto.
7326         * config/arm/netbsd.h: Likewise.
7327         * config/i386/netbsd-elf.h: Likewise.
7328         * config/i386/netbsd.h: Likewise.
7329         * config/m68k/netbsd-elf.h: Likewise.
7330         * config/m68k/netbsd.h: Likewise.
7331         * config/ns32k/netbsd.h: Likewise.
7332         * config/sparc/netbsd.h: Likewise.
7333         * config/vax/netbsd.: Likewise.
7334
7335 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7336
7337         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7338         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7339         (TARGET_INITIALIZER): this.
7340         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7341         (BITFIELD_NBYTES_LIMITED): Markup fix.
7342         * tree.h (default_ms_bitfield_layout_p): Declare.
7343         (record_layout_info): Added prev_field.
7344         * tree.c (default_ms_bitfield_layout_p): New fn.
7345         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7346         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7347         * stor-layout.c: Include target.h.
7348         (start_record_layout): Initialize prev_field.
7349         (place_field): Handle MS bit-field layout, and disregard
7350         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7351         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7352         * Makefile.in (stor-layout.o): Adjust dependencies.
7353
7354 2002-02-05  Jason Merrill  <jason@redhat.com>
7355
7356         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7357
7358 2002-02-05  Andreas Jaeger  <aj@suse.de>
7359
7360         * crtstuff.c: Fix comments.
7361
7362 2002-02-05  Richard Henderson  <rth@redhat.com>
7363
7364         PR fortran/3393
7365         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7366         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7367
7368         PR fortran/3392
7369         * config/mips/mips.c (function_arg): Handle TImode.
7370         (function_arg_advance): Likewise.
7371
7372 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7373
7374         * config/rs6000/altivec.h (vec_step_help): Rename to
7375         __vec_step_help.
7376
7377 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7378
7379         * config/rs6000/altivec.h: Fix typos.
7380
7381 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7382
7383         * config/arm/netbsd.h: Correct a comment.
7384
7385 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7386
7387         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7388         building void typed builtins.
7389
7390         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7391         (vec_step): Implement for C++.
7392
7393 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7394
7395         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7396
7397 2002-02-04  Richard Henderson  <rth@redhat.com>
7398
7399         * combine.c (nonzero_bits): Re-introduce special case for
7400         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7401
7402 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7403
7404         * doc/extend.texi: Warn about unsupported usage of altivec
7405         builtins.
7406
7407         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7408         (altivec_predicate_*): New.
7409
7410         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7411         Add C++ version of vec_*() functions.
7412
7413         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7414         (bdesc_2arg): Remove altivec predicates.
7415         (altivec_expand_builtin): Handle predicates.
7416         (altivec_init_builtins): Handle predicates.
7417         (altivec_expand_predicate_builtin): New.
7418
7419 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7420
7421         * pa.c (DO_FRAME_NOTES): Move forward.
7422         (store_reg): Revise handling of frame notes.
7423         (load_reg): Likewise.
7424         (set_reg_plus_d): Likewise.
7425         (hppa_expand_prologue): Likewise.
7426         (hppa_expand_epilogue): Likewise.
7427
7428 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7429
7430         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7431
7432 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR c/4475, c++/3780:
7435         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7436         * c-common.h (SWITCH_TYPE): Define.
7437         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7438         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7439         Rename spareness variable to sparseness.
7440         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7441         if non-NULL instead of TREE_TYPE (orig_index).
7442         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7443         (expand_end_case): Define using expand_end_case_type.
7444         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7445         to expand_end_case_type.
7446         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7447
7448 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7449
7450         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7451         (BIGGEST_ALIGNMENT): Change to 128.
7452
7453 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7454
7455         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7456
7457 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7458
7459         * pa.md (call_internal_reg_64bit): Remove unused variable.
7460
7461 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7462
7463         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7464         field.
7465         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7466         * config/arm/arm.c (current_function_anonymous_args): Delete,
7467         replace uses with cfun->machine->uses_anonymous_args.
7468         (arm_reorg): Do not reset uses_anonymous_args.
7469
7470         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7471         any geenral register.
7472
7473 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7474
7475         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7476         the entry block.
7477
7478 2002-02-04  Richard Henderson  <rth@redhat.com>
7479
7480         * combine.c (force_to_mode): Remove STACK_BIAS code.
7481         (nonzero_bits): Likewise.  Replace sp/fp special case with
7482         REGNO_POINTER_ALIGN.
7483
7484         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7485         (HARD_FRAME_POINTER_REGNUM): New.
7486         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7487         (FIXED_REGS, CALL_USED_REGS): Update.
7488         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7489         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7490         (HARD_REGNO_NREGS): Update for SFP.
7491         (STACK_POINTER_OFFSET): Include bias here ...
7492         (FIRST_PARM_OFFSET): ... not here.
7493         (STACK_BIAS): Remove.
7494         (INIT_EXPANDERS): New.
7495         (STARTING_FRAME_OFFSET): Do not include bias.
7496         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7497         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7498         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7499         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7500         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7501         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7502         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7503         (MUST_SAVE_REGISTER): Likewise.
7504         (sparc_flat_function_prologue): Likewise.
7505         (sparc_flat_function_epilogue): Likewise.
7506         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7507         (sparc_init_modes): SFP is GENERAL_REGS.
7508         (sparc_builtin_saveregs): SFP does not have bias applied.
7509
7510 2002-02-04  Richard Henderson  <rth@redhat.com>
7511
7512         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7513         current_function_is_thunk.
7514         (alpha_sa_mask): Distinguish between current_function_is_thunk
7515         called from ASM_OUTPUT_MI_THUNK and not.
7516         (alpha_does_function_need_gp): Thunks always need gp.
7517         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7518         (alpha_output_mi_thunk_osf): New.
7519         * config/alpha/alpha-protos.h: Update.
7520         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7521
7522 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7523
7524         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7525         function types, not when they're taken away.
7526
7527 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7528
7529         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7530         CODE_LABEL and jump table when replacing a table jump with a
7531         simple jump.
7532
7533 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7534
7535         * config/s390/s390-protos.h (legitimize_la_operand,
7536         s390_secondary_input_reload_class, s390_plus_operand,
7537         s390_expand_plus_operand): Add prototypes.
7538
7539         config/s390/s390.c (s390_secondary_input_reload_class,
7540         s390_plus_operand, s390_expand_plus_operand): New functions.
7541
7542         (struct s390_address): New member 'pointer'.
7543         (s390_decompose_address): Compute it.
7544         (legitimate_la_operand_p): Use it.
7545         (legitimize_la_operand): New function.
7546         (movti, movdi, movdf splitters): Call it.
7547
7548         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7549         (PREDICATE_CODES): Add s390_plus_operand.
7550
7551         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7552         (la_ccclobber): Allow GENERAL_REGS as output operand.
7553
7554         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7555         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7556         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7557
7558 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7559
7560         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7561         register names for regular asm () construct.
7562
7563 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7564
7565         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7566         registers.
7567
7568 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7569
7570         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7571         pat for recog.
7572
7573 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7574
7575         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7576         constant pool to be identical by string address and index.
7577
7578 2002-02-04  Anthony Green  <green@redhat.com>
7579
7580         * output.h (SECTION_OVERRIDE): Define.
7581         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7582
7583 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7584
7585         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7586         by existing arm*-*-netbsd* (a.out) target.
7587         (ns32k-*-netbsdelf*): Likewise.
7588         (sparc-*-netbsdelf*): Likewise.
7589         (vax-*-netbsdelf*): Likewise.
7590
7591 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7592
7593         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7594         headers and libobjc headers.
7595
7596 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7597
7598         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7599         (_mingw.h): Remove duplicate include.
7600
7601 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7602
7603         * config.gcc: Set cpu_type to m68k for 68010, as well.
7604         (m68010-*-netbsdelf*): New...
7605         (m68k*-*-netbsdelf*): ...targets.
7606         * config/m68k/netbsd-elf.h: New file.
7607
7608 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7609
7610         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7611
7612 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7613
7614         * config/h8300/h8300.c (h8_push_ops): Move inside
7615         h8300_init_once.
7616         (h8_pop_ops): Likewise.
7617         (h8_move_ops): Likewise.
7618
7619 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7620
7621         * config/h8300/h8300.c (os_task): Make it static.
7622         (monitor): Likewise.
7623         (pragma_saveall): Likewise.
7624
7625 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7626
7627         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7628         constant is a valid sign-extension for Pmode.
7629
7630 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7631
7632         * config/h8300/h8300.c: Fix formatting.
7633
7634 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7635
7636         * config/h8300/h8300.md: Fix formatting.
7637
7638 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7639
7640         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7641         predicates of operands[1].  Split the patterns for each
7642         processor variant.
7643
7644 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7645
7646         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7647         of operands[1] to register_operand.
7648
7649 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7650
7651         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7652         * cpphash.c (_cpp_init_hashtable): Similarly.
7653         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7654         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7655         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7656         (cpp_handle_option): Handle the new options.
7657         * cpplex.c (cpp_interpret_charconst): Use new flag.
7658         * cpplib.h (struct cpp_options): New member signed_char.
7659         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7660         (cpp_options): Handle -fsigned-char and -funsigned-char.
7661         (static_specs): Remove signed_char_spec.
7662         (do_spec1): Don't handle %c.
7663         * system.h: Poison SIGNED_CHAR_SPEC.
7664         * tradcif.y (yylex): Use flag_signed_char.
7665         * tradcpp.h (flag_signed_char): New.
7666         * tradcpp.c (flag_signed_char): New.
7667         (main): Handle new command-line options.
7668         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7669 config:
7670         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7671         * avr/avr.h: Remove old comments.
7672         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7673         (CC1_SPEC): Pass -fsigned-char if -mic*.
7674         (SIGNED_CHAR_SPEC): Remove.
7675 doc:
7676         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7677
7678 2002-02-01  Eric Christopher  <echristo@redhat.com>
7679
7680         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7681         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7682         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7683         (ASM_OUTPUT_REG_POP): Ditto.
7684
7685 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7686
7687         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7688         patch.
7689
7690 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7691
7692         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7693
7694 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7695
7696         PR c/5304:
7697         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7698         unconditionally.
7699
7700 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7701
7702         * cfganal.c: Include tm_p.h.
7703         (keep_with_call_p): Fix the test that determines if a register holds
7704         the return value of a call.
7705
7706 2002-02-01  DJ Delorie  <dj@redhat.com>
7707
7708         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7709         we are given conflicting registers, switch to the other one we
7710         had allocated for us.
7711         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7712         as TImode so we know when the "other" register is available.
7713
7714 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7715
7716         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7717         sparc/sparc_bi.h.
7718
7719 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7720
7721         * cfganal.c (keep_with_call_p): New function.
7722         (flow_call_edges_add): Prevent splitting a block between a call and
7723         a single-set instruction that should be kept in the same block.
7724
7725 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7726
7727         * doc/install.texi (avr): Update outdated URL.
7728
7729 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7730
7731         * config/stormy16/stormy16.md (pushqi): New.
7732         (popqi): New.
7733         (pushhi): New.
7734         (pophi): New.
7735         (movhi): Remove stack operands.
7736         (movqi): Likewise.
7737         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7738         nonimmediate_nonstack_operand.
7739         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7740         New.
7741         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7742         New.
7743
7744 2002-01-31  Jason Merrill  <jason@redhat.com>
7745
7746         * Makefile.in (c-parse.c): Handle .output file.
7747         * objc/Make-lang.in (objc-parse.c): Likewise.
7748
7749 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7750
7751         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7752         the -me[lb] option is given.  Don't output the default flag
7753         twice.
7754
7755 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7756
7757         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7758         the primary source file; this has not been done yet.
7759         * c-decl.c (c_expand_body): Reset input_filename from
7760         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7761
7762 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7763
7764         * rtlanal.c (subreg_regno_offset): Do not use
7765         SUBREG_REGNO_OFFSET.
7766         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7767         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7768
7769 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7770
7771         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7772         version rather than GNATS version in --version output.
7773
7774 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7775
7776         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7777         when copying back from a temporary.
7778
7779 2002-01-30  Richard Henderson  <rth@redhat.com>
7780
7781         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7782         and new_dest are the same.
7783
7784 2002-01-30  Richard Henderson  <rth@redhat.com>
7785
7786         PR opt/5076
7787         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7788         * rtl.c (note_insn_name): Update.
7789         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7790         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7791         to perform loop rotation.
7792         (expand_exit_loop_top_cond): New.
7793         * tree.h (expand_exit_loop_top_cond): Declare it.
7794         * c-semantics.c (genrtl_while_stmt): Use it.
7795         (genrtl_for_stmt): Likewise.
7796
7797 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7798
7799         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7800         arguments to 64-bit boundaries on 64-bit ABIs.
7801
7802 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7803
7804         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7805
7806 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7807
7808         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7809         invalid type.
7810
7811 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7812
7813         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7814         * config/sparc/sparc_bi.h: Remove file.
7815         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7816
7817 2002-01-30  Richard Henderson  <rth@redhat.com>
7818
7819         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7820
7821 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7822
7823         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7824
7825 2002-01-30  Jason Merrill  <jason@redhat.com>
7826
7827         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7828         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7829         (reg_save): Use DW_CFA_offset_extended_sf instead.
7830
7831         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7832
7833 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7834
7835         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7836         in cselib_lookup.
7837
7838 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
7839
7840         * rs6000.md ("*call_value_local32"): Remove constraints.
7841         ("*call_value_local64"): Same.
7842         ("*call_value_indirect_nonlocal_aix32"): Same.
7843         ("*call_value_nonlocal_aix32"): Same.
7844         ("*call_value_indirect_nonlocal_aix64"): Same.
7845         ("*call_value_nonlocal_aix64"): Same.
7846         ("*call_value_nonlocal_sysv"): Same.
7847
7848 2002-01-29  Richard Henderson  <rth@redhat.com>
7849
7850         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7851
7852 2002-01-29  Richard Henderson  <rth@redhat.com>
7853
7854         * expr.c (force_operand): Ignore flag_pic for detecting pic
7855         address loads.
7856         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7857         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7858         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7859         instead of open-coded loop.
7860         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7861         be fixed when in use.
7862
7863 2002-01-29  Richard Henderson  <rth@redhat.com>
7864
7865         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7866         * sched-rgn.c (propagate_deps): Update them.
7867         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
7868         clobbers list when either gets too long.
7869
7870 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7871
7872         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7873         and INDEX_REGS the same as GENERAL_REGS.
7874         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7875
7876 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7877
7878         * tree.c (build_nonstandard_integer_type): Correct prototype.
7879
7880 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
7881
7882         * config/s390/s390.md (movstrsico, movstrdix_64,
7883         movstrsix_31): Remove, replace by ...
7884         (movstrdi_short, movstrsi_short, movstrdi_long,
7885         movstrsi_long): ... these.  New.
7886         (movstrdi, movstrsi): Adapt.
7887
7888         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7889         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7890         Remove unnecessary CC clobber.
7891         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7892         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7893
7894         (divmoddi4): Don't partially initialize TImode register.
7895
7896 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
7897
7898         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7899
7900 2002-01-29  Richard Henderson  <rth@redhat.com>
7901
7902         * flow.c (print_rtl_and_abort): Remove.
7903         (print_rtl_and_abort_fcn): Remove.
7904         (verify_local_live_at_start): Use dump_bb instead.
7905         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7906         (verify_wide_reg_1): Return 2 on mode test failure.
7907
7908 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7909
7910         PR c/3325, c/3326, c/2511, c/3347
7911         * c-decl.c (enum_decl_context): Remove BITFIELD.
7912         (grokdeclarator): Take bitfield width as an input.
7913         Ensure bitfields are given the correct type.  Perform
7914         bitfield width validation with build_bitfield_integer_type
7915         rather than waiting for finish_struct.
7916         (grok_typename, grok_typename_in_parm_context, start_decl,
7917         push_parmdecl, grokfield, start_function): Update calls to
7918         grokdeclarator.
7919         (build_bitfield_integer_type): New function.
7920         (finish_struct): Move bitfield validation to grokdeclarator
7921         and build_bitfield_integer_type.
7922         * tree.c (build_nonstandard_integer_type): New function.
7923         * tree.h (build_nonstandard_integer_type): New prototype.
7924 objc:
7925         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7926
7927 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7928
7929         PR other/1502:
7930         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7931         don't ignore unrecognized -W* options.
7932         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7933         * cpplib.h (cpp_handle_option): Adjust prototype.
7934         * c-decl.c (c_decode_options): Pass 0 as last argument to
7935         cpp_handle_option.
7936
7937         PR c/2896:
7938         * gcc.c (cpp_unique_options): Split from cpp_options.
7939         (cpp_options): Source cpp_unique_options.
7940         (default_compilers): Use cpp_unique_options instead of cpp_options
7941         when used together with cc1_options.
7942         (static_specs): Add cpp_unique_options.
7943         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7944         when used together with cc1_options.
7945
7946 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7947
7948         * config/h8300/h8300-protos.h: Update the prototype of
7949         output_a_shift.
7950         * config/h8300/h8300.c (output_a_shift): Remove an unused
7951         argument 'insn'.  Remove redundant code.
7952         * config/h8300/h8300.md: Adust to the new prototype of
7953         output_a_shift.
7954
7955 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7956
7957         * config/h8300/h8300-protos.h: Update the prototypes of
7958         emit_a_rotate and expand_a_rotate.
7959         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7960         first argument to 'enum rtx_code'.
7961         (expand_a_rotate): Likewise.
7962
7963 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7964
7965         * config/h8300/h8300-protos.h: Update the prototype of
7966         output_simode_bld.
7967         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7968         'log2'.
7969         * config/h8300/h8300.md: Adjust to the new prototype.
7970
7971 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7972
7973         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7974         redundant code.
7975
7976 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7977
7978         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7979         is a fixed register before returning pic_offset_table_rtx.
7980         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7981         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7982
7983 2002-01-28  Jason Merrill  <jason@redhat.com>
7984
7985         * dwarf2.h: Sync with src version.
7986
7987 2002-01-28  Paul Koning  <pkoning@equallogic.com>
7988
7989         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7990         BT_FN_VOID_PTR_VAR.
7991         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7992         * doc/extend.texi (__builtin_prefetch): Update documentation:
7993         first argument is now const void ptr.
7994
7995 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7996
7997         * config/h8300/h8300-protos.h: Remove an unused prototype.
7998
7999 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8000
8001         * toplev.c (lang_independent_init): Round up identifier size.
8002
8003 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8004
8005         * config.gcc: Revert previous change.
8006
8007 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8008
8009         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8010
8011 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8012
8013         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8014         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8015         other non-elf netbsd config frags.
8016         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8017         collect2 will does that.
8018         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8019         shared-lib frobbing will work.
8020
8021 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8022
8023         * config/h8300/h8300.h: Fix formatting.
8024         * config/h8300/h8300.md: Likewise.
8025
8026 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8027
8028         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8029         the old, removed AAA_standards fix.
8030         * fixinc/fixincl.x: Rebuilt.
8031
8032 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8033
8034         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8035         atexit call in crtbegin, hooked in after call to frame_dummy;
8036         register EH before registering __fini__start.
8037
8038 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8039
8040         * config/rs6000/altivec.h: Remove spurious semicolons.
8041
8042 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8043
8044         * config/h8300/h8300.md: Replace dead bit extraction patterns
8045         with ones that work.
8046
8047 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8048
8049         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8050         if not STRICT_ALIGNMENT.
8051         * rtl.h (MEM_ALIGN): Likewise.
8052
8053 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8054
8055         * doc/invoke.texi (-fdump-translation-unit): Revert this
8056         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8057
8058 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8059
8060         * config/h8300/h8300.md (define_constants): New.
8061         (anonymous patterns) Use defined constants appropriately.
8062
8063 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8064
8065         * config/h8300/h8300.c (function_arg): Remove redundant code.
8066
8067 2002-01-26  Richard Henderson  <rth@redhat.com>
8068
8069         * sched-deps.c (reg_pending_uses_head): New.
8070         (reg_pending_barrier): Rename from reg_pending_sets_all.
8071         (find_insn_list): Don't mark inline.
8072         (find_insn_mem_list): Remove.
8073         (add_dependence_list, add_dependence_list_and_free): New.
8074         (flush_pending_lists): Replace only_write param with separate
8075         for_read and for_write parameters.  Update all callers.  Use
8076         add_dependence_list_and_free.
8077         (sched_analyze_1): Do not add reg dependencies here; just set
8078         the pending bits.  Use add_dependence_list.
8079         (sched_analyze_2): Likewise.
8080         (sched_analyze_insn): Replace schedule_barrier_found with
8081         reg_pending_barrier.  Add all dependencies for pending reg
8082         uses, sets, and clobbers.
8083         (sched_analyze): Don't add reg dependencies for calls, just
8084         set pending bits.  Use regs_invalidated_by_call.  Treat
8085         sched_before_next_call as a normal list, not a fake insn.
8086         (init_deps): No funny init for sched_before_next_call.
8087         (free_deps): Free pending mems lists.  Don't zero reg_last.
8088         (init_deps_global): Init reg_pending_uses.
8089         (finish_deps_global): Free it.
8090         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8091         (find_insn_mem_list): Remove.
8092         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8093         (propagate_deps): Use them.  Zero temp mem lists.
8094
8095 2002-01-26  Richard Henderson  <rth@redhat.com>
8096
8097         * Makefile.in (CRTSTUFF_CFLAGS): New.
8098         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8099         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8100         crtstuff.c instead of alpha assembly version.
8101         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8102         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8103         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8104         (__do_global_dtors_aux): Mark used.
8105         (frame_dummy, __do_global_ctors_aux): Mark used.
8106         (fini_dummy, init_dummy): Remove.
8107
8108         * config/alpha/crtbegin.asm: Remove file.
8109         * config/alpha/crtend.asm: Remove file.
8110         * config/alpha/t-crtbe: Remove file.
8111         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8112         (LINK_EH_SPEC): New.
8113
8114         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8115         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8116         calling constructors.
8117         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8118
8119         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8120         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8121         CRT_END_INIT_DUMMY hack.
8122         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8123         FORCE_{INIT,FINI}_SECTION_ALIGN.
8124
8125         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8126         FORCE_{INIT,FINI}_SECTION_ALIGN.
8127
8128         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8129         invocation sequence.
8130         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8131
8132         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8133         (FORCE_CODE_SECTION_ALIGN): New.
8134
8135 2002-01-26  Richard Henderson  <rth@redhat.com>
8136
8137         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8138
8139 2002-01-26  Richard Henderson  <rth@redhat.com>
8140
8141         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8142         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8143
8144 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8145
8146         * config/h8300/h8300.md: Remove bit extraction patterns that
8147         cannot be triggered.
8148         Restrict each bit extraction pattern to a variant on which the
8149         pattern is tested.
8150
8151 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8152
8153         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8154
8155 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8156
8157         * config/h8300/h8300.md: Remove bit test patterns that cannot
8158         be triggered.
8159         Restrict each bit test pattern to a variant on which the
8160         pattern is tested.
8161
8162 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8163
8164         * builtins.c (expand_builtin_strncat): Remove redundant check for
8165         INTEGER_CST.
8166
8167 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8168
8169         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8170         default setting.
8171         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8172         existing setting.
8173
8174 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8175
8176         * dbxout.c (dbxout_init): Use assemble_name rather than just
8177         stripping off the first character.
8178         (dbxout_source_file): Likewise.
8179
8180 2002-01-25  DJ Delorie  <dj@redhat.com>
8181
8182         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8183         using rtx_equal_p, not by comparing pointers.
8184
8185 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8186
8187         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8188         for PIC_OFFSET_TABLE_REGNUM.
8189         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8190
8191 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8192
8193         * config.gcc (x86_64-*-freebsd*): New target.
8194         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8195         value.
8196         (i[34567]86-*-freebsd*): Don't include svr4.h.
8197         * config/i386/freebsd64.h: New file.
8198
8199 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8200
8201         * config/alpha/x-vms (version): Make static.
8202
8203         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8204         in previous checkin.
8205
8206         * Makefile.in (install-headers-cp): New target.
8207         * config.gcc (alpha-dec-*vms*): Install headers with
8208         install-headers-cp
8209
8210 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8211
8212         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8213         avoid it's copies.
8214
8215 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8216
8217         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8218         of compare_tree_int.
8219         (expand_builtin_strncat): Likewise.
8220         * c-decl.c (finish_struct): Use tree_low_cst.
8221         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8222         * tree.c (compare_tree_int): Likewise.
8223
8224 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8225
8226         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8227         adjustments even if they are implemented by more than two insns.
8228
8229 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8230
8231         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8232         * df.h (struct ref): Kill B.
8233         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8234
8235         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8236         * flow.c (propagate_one_insn): Use it.
8237         (mark_used_regs): Handle NIL.
8238
8239 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8240
8241         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8242         to help folding.
8243
8244 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8245
8246         * rs6000.md (prefetch): Make address V4SI mode so that the address
8247         is restricted to legitimate form for instruction.
8248
8249 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8250
8251         * doc/install.texi (xtensa-*-elf): New target.
8252         (xtensa-*-linux*): New target.
8253         * doc/contrib.texi: Add myself.
8254
8255 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8256
8257         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8258         purpose register to hold an SImode (or smaller) value.
8259
8260 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8261
8262         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8263         registry only.
8264         * crtstuff.c: Likewise.
8265
8266 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8267
8268         * config/h8300/h8300.md (negation patterns): Tighten
8269         predicates to register_operand.
8270
8271 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8272
8273         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8274         mode, not Pmode.
8275
8276         * builtins.c (expand_builtin_prefetch): Same.
8277
8278 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8279
8280         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8281         modes.
8282
8283 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8284
8285         * config/h8300/h8300.c (print_operand): Remove support for
8286         operand character 'A'.
8287         * config/h8300/h8300.md (three anonymous patterns): Replace
8288         operand character 'A' with either 'T' or 'S'.
8289
8290 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8291
8292         * config/h8300/h8300.c (print_operand): Remove support for
8293         operand character 'U'.
8294
8295 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8296
8297         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8298
8299 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8300
8301         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8302         values to be assigned to the stack pointer.
8303
8304 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8305
8306         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8307         to const_double needs to be done right for big-endian systems.
8308
8309 2002-01-24  Jason Merrill  <jason@redhat.com>
8310
8311         PR c++/2432
8312         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8313         to can_throw_internal.
8314
8315 2002-01-23  Richard Henderson  <rth@redhat.com>
8316
8317         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8318         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8319
8320 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8321
8322         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8323         (symGOT2reg): Use them, then set as GOT value as unchanging.
8324         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8325         as a temporary, if possible.
8326         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8327         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8328
8329 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8330
8331         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8332         accept to accept 0x80 as operands[2].
8333
8334 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8335
8336         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8337
8338 2002-01-23  Richard Henderson  <rth@redhat.com>
8339
8340         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8341
8342 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8343
8344         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8345         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8346         an attribute.
8347
8348 2002-01-23  Richard Henderson  <rth@redhat.com>
8349
8350         * expr.c (move_by_pieces_1): Extend size before negation.
8351
8352         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8353         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8354         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8355         * config/m68k/t-m68kelf: Likewise.
8356
8357 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8358
8359         * config/xtensa/elf.h: New file.
8360         * config/xtensa/lib1funcs.asm: New file.
8361         * config/xtensa/lib2funcs.S: New file.
8362         * config/xtensa/linux.h: New file.
8363         * config/xtensa/t-xtensa: New file.
8364         * config/xtensa/xtensa-config.h: New file.
8365         * config/xtensa/xtensa-protos.h: New file.
8366         * config/xtensa/xtensa.c: New file.
8367         * config/xtensa/xtensa.h: New file.
8368         * config/xtensa/xtensa.md: New file.
8369         * config.gcc (xtensa-*-elf*): New target.
8370         (xtensa-*-linux*): New target.
8371         * cse.c (canon_hash): Compare rtx pointers instead of register
8372         numbers.  This is required for the Xtensa port.
8373         * integrate.c (copy_insn_list): Handle case where the static
8374         chain is in memory and the memory address has to be copied to
8375         a register.
8376         * doc/invoke.texi (Option Summary): Add Xtensa options.
8377         (Xtensa Options): New node.
8378         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8379
8380 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8381
8382         * diagnostic.c (internal_error): Do ICE suppression only
8383         when ENABLE_CHECKING is not defined.
8384
8385         * c-typeck.c (require_complete_type): Return error_mark_node
8386         if type is error_mark_node.
8387
8388 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8389
8390         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8391         -Os and issue a warning.
8392
8393 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8394
8395         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8396         current (lack of) need for host configuration by hand.
8397
8398         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8399         references.  Documentation of some target macros moved from
8400         hostconfig.texi to tm.texi.
8401
8402 2002-01-23  Will Cohen  <wcohen@redhat.com>
8403
8404         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8405         defined.
8406
8407 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8408
8409         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8410         operand[3].
8411
8412 2002-01-23  Jason Merrill  <jason@redhat.com>
8413
8414         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8415
8416         * function.c (assign_parms): Don't put args of inline functions
8417         into registers when not optimizing.
8418
8419 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8420
8421         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8422         (prologue_use): New pattern.
8423         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8424         preference to gen_rtx_USE.
8425         (thumb_expand_prologue): Use gen_prologue_use in preference to
8426         gen_rtx_USE.
8427         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8428         gen_rtx_USE.
8429
8430 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8431
8432         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8433
8434 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8435
8436         PR c/3504
8437         * doc/extend.texi: Correct documentation of __alignof__.
8438
8439 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8440
8441         * params.h: Rename arguments of DEFPARAM so that it will be
8442         recognized as a translation keyword.
8443
8444 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8445
8446         * extend.texi: Document altivec functions.
8447         Fix N-bit adjectives in X86 builtin documentation.
8448
8449 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8450
8451         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8452         auto_inc_dec values.
8453
8454 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8455
8456         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8457         after backslash.
8458         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8459
8460 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8461
8462         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8463
8464 2002-01-22  Richard Henderson  <rth@redhat.com>
8465
8466         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8467         copy_insn not copy_rtx.
8468
8469 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8470
8471         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8472         "nonzero" as that might add "1" bits.  Ensure "constop" is
8473         properly sign extened.
8474         (force_to_mode): Tweak for sign extended constop.
8475
8476 2002-01-22  Richard Henderson  <rth@redhat.com>
8477
8478         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8479         for_each_rtx instead of assuming we're already looking at the MEM.
8480         (split_small_symbolic_mem_operand): Likewise.
8481         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8482         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8483
8484 2002-01-22  Richard Henderson  <rth@redhat.com>
8485
8486         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8487         sequence number for the literal.
8488         (divmoddi_internal_er): Likewise.
8489
8490 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8491
8492         PR java/4972
8493         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8494         in LIBICONV variable.
8495         * configure: Regenerated.
8496
8497 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8498
8499         * dependence.c (build_def_use): Remove array_idx.
8500
8501         * dwarfout.c (last_filename): Remove.
8502         (output_compile_unit_die): Remove last_filename.
8503
8504 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8505             Richard Henderson  <rth@redhat.com>
8506
8507         PR opt/3640
8508         * fold-const.c (fold): Optimize unsigned comparisons against
8509         UINT_MAX (and similar unsigned constants).
8510
8511 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8512
8513         * Makefile.in (loop.o): Depend on OPTABS_H.
8514         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8515         against the predicate.
8516
8517         PR target/5379
8518         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8519         for the address operand.
8520
8521 2002-01-22  Richard Henderson  <rth@redhat.com>
8522
8523         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8524
8525 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8526
8527         PR other/5450
8528         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8529         preprocessor flags.
8530
8531 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8532
8533         * config.gcc (x86_64-*-netbsd*): New target.
8534         * config/i386/netbsd64.h: New file.
8535
8536 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8537
8538         * regrename.c (kill_value): Fix typo.
8539
8540 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8541
8542         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8543
8544         * config/rs6000/rs6000.h: Same.
8545
8546         * function.c (instantiate_virtual_regs): Remove
8547         STARTING_FRAME_PHASE.
8548         (assign_stack_local_1): Same.
8549         Calculate frame phase.
8550
8551 2002-01-22  Nick Clifton  <nickc@redhat.com>
8552
8553         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8554         variable declaration to outer scope in order to simplify
8555         future extensions.
8556         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8557         arm_hard_regno_mode_ok.
8558         * config/arm/arm-protos.h: Add a prototype for
8559         arm_hard_regno_mode_ok.
8560         * config/arm/arm.c (soft_df_operand): Remove now redundant
8561         check for DImode values using IP_REGNUM.
8562         (nonimmediate_soft_df_operand): Remove now redundant check for
8563         DImode values using IP_REGNUM.
8564         (arm_hard_regno_mode_ok): New function. New check: make sure
8565         that DImode values are not stored in IP_REGNUM.
8566
8567         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8568         note with a USE.
8569         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8570
8571 2002-01-22  Jason Merrill  <jason@redhat.com>
8572
8573         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8574         consistency if this COMPOUND_STMT is scoped.
8575
8576 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8577
8578         * predict.c: Fix formatting.
8579         * print-tree.c: Likewise.
8580         * protoize.c: Likewise.
8581         * real.h: Likewise.
8582         * rtl.h: Likewise.
8583         * sbitmap.h: Likewise.
8584         * scan.c: Likewise.
8585         * sched-deps.c: Likewise.
8586         * sched-vis.c: Likewise.
8587         * sdbout.c: Likewise.
8588         * sibcall.c: Likewise.
8589         * ssa.c: Likewise.
8590         * ssa-ccp.c: Likewise.
8591         * ssa-dce.c: Likewise.
8592         * stmt.c: Likewise.
8593         * stor-layout.c: Likewise.
8594         * system.h: Likewise.
8595
8596 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8597
8598         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8599         if fits in bounds of base type.
8600
8601         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8602         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8603         (add_bound_info, default): If can't find a context, make a
8604         SAVE_EXPR.
8605         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8606
8607 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8608
8609         * c-typeck.c (parser_build_binary_op): If result from
8610         build_binary_op is ERROR_MARK just return error_mark_node without
8611         further processing.
8612
8613 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8614
8615         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8616         Split a.out-specific bits into...
8617         * config/netbsd-aout.h: ...this.
8618         * config/netbsd-elf.h: New file.
8619         * config/alpha/netbsd-elf.h: Remove.
8620         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8621         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8622         (STARTFILE_SPEC): Remove redundant definition.
8623         (ENDFILE_SPEC): Likewise.
8624         (LINK_SPEC): Likewise.
8625         (CPP_SPEC): Likewise.
8626         (ASM_SPEC): Likewise.
8627         (LIB_SPEC): Likewise.
8628         (SWITCH_TAKES_ARG): Likewise.
8629         (TARGET_MEM_FUNCTIONS): Likewise.
8630         (CPP_PREDEFINES): Redefine.
8631         (ASM_FINAL_SPEC): Remove redefinition.
8632         (ASM_COMMENT_START): Redefine.
8633         (FUNCTION_PROFILER): Define.
8634         (TARGET_VERSION): Redefine.
8635         Comment and formatting cleanup.
8636         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8637         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8638         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8639         big- or little-endian.
8640         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8641         * config.gcc (*-*-netbsd*): Add definitions common to all
8642         NetBSD configs.
8643         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8644         gnu_ld definitions.  Add netbsd-elf.h to and remove
8645         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8646         tmake_file, and don't lose previous tmake_file contents.
8647         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8648         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8649         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8650         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8651         (mipsel-*-netbsd*): Rename this to...
8652         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8653         mips/little.h to tm_file for mips*el-*.
8654         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8655         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8656         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8657
8658 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8659
8660         * pa-protos.h (reg_before_reload_operand): New function prototype.
8661         * pa.c (reg_before_reload_operand): New function implementation.
8662         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8663         contraints to "*m".
8664
8665 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8666
8667         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8668
8669 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8670
8671         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8672         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8673         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8674         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8675         (ENDFILE_SPEC): Undefine.
8676         (STARTFILE_SPEC): Redefine for PA.
8677
8678 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8679
8680         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8681
8682 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8683
8684         * config.gcc: Add entries to supported PowerPC --with-cpu
8685         types.
8686
8687 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8688
8689         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8690         true for 64-bit mode only SSE registers in 32-bit mode.
8691
8692 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8693
8694         * unwind-dw2.c: Fix formatting.
8695         * unwind-dw2-fde.c: Likewise.
8696         * unwind-dw2-fde.h: Likewise.
8697         * unwind-pe.h: Likewise.
8698         * varasm.c: Likewise.
8699         * varray.h: Likewise.
8700
8701 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8702
8703         Remove workaround for register stack overwrite bug in mmix.
8704         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8705         support for TARGET_REG_STACK_FILL_BUG.
8706         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8707         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8708         Delete.
8709         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8710         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8711         -mno-reg-stack-fill-bug-workaround.
8712         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8713         machine member has_call_without_parameters.
8714         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8715         -mreg-stack-fill-bug-workaround and
8716         -mno-reg-stack-fill-bug-workaround.
8717         (MMIX Options): Ditto.
8718
8719 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8720
8721         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8722         as appropriate.
8723         Remove redundant code.
8724
8725 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8726
8727         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8728         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8729         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8730         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8731         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8732         out target macro definitions and non-target-specific comments
8733         mostly taken from old versions of the manual.
8734
8735 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8736
8737         * config/h8300/h8300.h: Fix comment formatting.
8738         * config/ia64/aix.h: Likewise.
8739         * config/ia64/ia64-protos.h: Likewise.
8740         * config/ia64/ia64.c: Likewise.
8741         * config/ia64/ia64.h: Likewise.
8742         * config/ia64/ia64intrin.h: Likewise.
8743         * config/ia64/linux.h: Likewise.
8744         * config/ia64/unwind-aix.c: Likewise.
8745         * config/ia64/unwind-ia64.c: Likewise.
8746
8747 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8748
8749         * config/h8300/h8300.c: Revise comments about shift code.
8750
8751 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8752
8753         * config/h8300/h8300.c (function_arg): Update a comment.
8754
8755 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8756
8757         * config/h8300/h8300.md: Update the comments at the beginning
8758         of the file.
8759
8760 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8761
8762         * config/i370/i370.c: Fix comment formatting.
8763         * config/i370/i370.h: Likewise.
8764         * config/i370/i370.md: Likewise.
8765         * config/i370/linux.h: Likewise.
8766
8767 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8768
8769         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8770
8771         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8772         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8773         in incomplete case.
8774
8775 2002-01-20  Graham Stott  <grahams@redhat.com>
8776
8777         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8778
8779 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8780
8781         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8782
8783 2002-01-19  Tom Rix  <trix@redhat.com>
8784
8785         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8786
8787 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8788
8789         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8790
8791         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8792         STARTING_FRAME_PHASE.
8793         (STARTING_FRAME_PHASE): New.
8794         (instantiate_virtual_regs): Check saneness of
8795         STARTING_FRAME_PHASE.
8796
8797         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8798
8799 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8800
8801         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8802
8803 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8804
8805         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8806         be used for bootstrapping GCC 3.0.
8807
8808 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8809
8810         * config/h8300/h8300.md: Fix an insn length.
8811
8812 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8813
8814         * bitmap.h: Fix comment formatting.
8815         * combine.c: Likewise.
8816         * cppfiles.c: Likewise.
8817         * c-pragma.h: Likewise.
8818         * c-typeck.c: Likewise.
8819         * df.c: Likewise.
8820         * dwarf2out.c: Likewise.
8821         * function.c: Likewise.
8822         * gcc.c: Likewise.
8823         * genattrtab.c: Likewise.
8824         * gthr-win32.h: Likewise.
8825         * haifa-sched.c: Likewise.
8826         * predict.c: Likewise.
8827         * rtlanal.c: Likewise.
8828         * rtl.h: Likewise.
8829         * unwind-dw2-fde.h: Likewise.
8830         * unwind-pe.h: Likewise.
8831         * vmsdbgout.c: Likewise.
8832
8833 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8834
8835         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8836         if type_required and passed decl.
8837
8838 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
8839
8840         * config.gcc (cpu_type): Include altivec.h in powerpc
8841         extra_headers.
8842         Same for darwin.
8843
8844         * config/rs6000/altivec.h: New.
8845
8846 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
8847
8848         * doc/install.texi (*-ibm-aix*): Update assembler and exception
8849         handling information.
8850         * doc/trouble.texi (Interoperation): Add libstdc++ information
8851         for AIX.
8852         (Misunderstandings): Add template instantiation and static template
8853         member information for AIX.
8854
8855 2002-01-17  Jason Merrill  <jason@redhat.com>
8856
8857         * dbxout.c (dbxout_type): Support const and volatile.
8858
8859         * except.c (add_partial_entry): Remove backwards compatibility code.
8860         (end_protect_partials): Likewise.
8861
8862 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
8863
8864         * config/ia64/ia64.md (prologue_use): New.
8865         * config/ia64/ia64.c (ia64_expand_prologue): Use
8866         gen_prologue_use instead of gen_rtx_USE.
8867         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8868         as CODE_FOR_pred_rel_mutex.
8869         (ia64_sched_reorder2): Likewise.
8870
8871 2002-01-16  Eric Christopher  <echristo@redhat.com>
8872
8873         * config/mips/r3900.h: Reformat.
8874         (SUBTARGET_CPP_SIZE_SPEC): Remove.
8875         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8876         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8877         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8878         * config/mips/t-elf: Remove mips3 multilib.
8879
8880 2002-01-16  H.J. Lu <hjl@gnu.org>
8881
8882         * config/mips/linux.h: Include "mips/abi64.h".
8883
8884 2002-01-16  H.J. Lu <hjl@gnu.org>
8885
8886         * config/mips/t-linux: New.
8887
8888         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8889
8890         * config/mips/linux.h: Don't include "gofast.h".
8891         (INIT_SUBTARGET_OPTABS): Removed.
8892
8893 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8894
8895         * config/h8300/h8300-protos.h: Replace emit_a_shift with
8896         output_a_shift.
8897         * config/h8300/h8300.c: Likewise.
8898         * config/h8300/h8300.md: Likewise.
8899
8900 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8901
8902         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8903         spaces after an opcode name.
8904         (pushqi1_h8300hs): Likewise.
8905         (pushhi1_h8300hs): Likewise.
8906
8907 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8908
8909         * doc/extend.texi: Replace "option" with "attribute"
8910         appropriately.
8911
8912 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8913
8914         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8915         (and:DI () (const_int -8)).
8916         (split_small_symbolic_mem_operand): Split
8917         (mem (and:DI () (const_int -8)).
8918
8919 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8920
8921         PR target/5309:
8922         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8923         same way as TYPE_IMUL.
8924         (ultrasparc_sched_reorder): Likewise.
8925         * config/sparc/sparc.md (type): Add comment to update
8926         ultrasparc_sched_reorder when making changes.
8927
8928 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8929
8930         * doc/invoke.texi: Change the dump file name of block
8931         reordering pass from 28.bbro to 29.bbro.
8932         Mention -dk option.
8933
8934 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
8935
8936         * i386.md (minsf splitter): Fix pasto.
8937
8938 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8939
8940         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8941         to frame pointer initialisation instruction.
8942         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8943         initialisation instruction.
8944         (soft_df_operand): Do not accept the IP register.
8945         (nonimmediate_soft_df_operand): Do not accept the IP register.
8946
8947 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8948
8949         PR target/5357:
8950         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8951         MASK_V8 being both set.
8952
8953 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
8954
8955         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8956         insn for GOT register; add REG_MAYBE_DEAD notes instead.
8957         config/s390/s390.md (call, call_value): Add GOT register to
8958         CALL_INSN_FUNCTION_USAGE where needed.
8959         (call_exp, call_value_exp): New.
8960
8961 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8962
8963         * config/arm/arm.c: General formatting tidy up.
8964
8965 2002-01-16  Graham Stott  <grahams@redhat.com>
8966
8967         * calls.c (try_to_integrate): Use "(size_t)" intermediate
8968         cast and when casting an integer literal to "rtx" pointer.
8969         (expand_call): Likewise.
8970         * flow.c (try_pre_increment): Likewise.
8971         (find_use_as_address): Likewise.
8972         * integrate.c (expand_iline_function): Likewise.
8973         * regmove.c (try_auto_increment): Likewise.
8974
8975 2002-01-16  Graham Stott  <grahams@redhat.com>
8976
8977         * sched-rgn.c (passed): Use sbitmap_free.
8978         (header): Likewise.
8979         (inner): Likewise.
8980         (in_queue): Likewise.
8981         (in_stack): Likewise.
8982
8983 2002-01-15  Eric Christopher  <echristo@redhat.com>
8984
8985         * flow.c (propagate_one_insn): Change to use fatal_insn.
8986
8987 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8988
8989         * expmed.c (extract_fixed_bit_field): Remove unused code.
8990         * system.h: Poison SLOW_ZERO_EXTEND.
8991         * doc/tm.texi: Remove.
8992         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8993         * config/arm/arm.h: Likewise.
8994         * config/avr/avr.h: Likewise.
8995         * config/clipper/clipper.h: Likewise.
8996         * config/convex/convex.h: Likewise.
8997         * config/d30v/d30v.h: Likewise.
8998         * config/dsp16xx/dsp16xx.h: Likewise.
8999         * config/elxsi/elxsi.h: Likewise.
9000         * config/fr30/fr30.h: Likewise.
9001         * config/h8300/h8300.h: Likewise.
9002         * config/i370/i370.h: Likewise.
9003         * config/i386/i386.h: Likewise.
9004         * config/m68k/m68k.h: Likewise.
9005         * config/mips/mips.h: Likewise.
9006         * config/ns32k/ns32k.h: Likewise.
9007         * config/pdp11/pdp11.h: Likewise.
9008         * config/pj/pj.h: Likewise.
9009         * config/s390/s390.h: Likewise.
9010         * config/sh/sh.h: Likewise.
9011         * config/stormy16/stormy16.h: Likewise.
9012         * config/v850/v850.h: Likewise.
9013         * config/vax/vax.h: Likewise.
9014         * config/we32k/we32k.h: Likewise.
9015
9016 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9017
9018         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9019         (altivec_lvsl): Change constraint to b.
9020         (altivec_lvsr): Same.
9021         (altivec_lvebx): Same.
9022         (altivec_lvehx): Same.
9023         (altivec_lvewx): Same.
9024         (altivec_lvxl): Same.
9025         (altivec_lvx): Same.
9026         (altivec_stvx): Add parallel.
9027         (altivec_stvxl): Same.
9028         (altivec_stvehx): Same.
9029         (altivec_stvebx): Same.
9030         (altivec_stvebx): Same.
9031
9032 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9033
9034         * config.gcc: Change altivec.h to altivec-defs.h.
9035
9036         * config/rs6000/altivec.h: Delete.
9037
9038         * config/rs6000/altivec-defs.h: Add.
9039
9040 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9041
9042         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9043         and UMOD modes.
9044
9045         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9046         less than or equal to eight bytes.
9047
9048         * vax.md (andsi3): Remove constraints and change SET destination
9049         operand type to nonimmediate_operand.
9050         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9051         when it is a CONST_INT.
9052
9053 2002-01-15  Jason Merrill  <jason@redhat.com>
9054
9055         * c-common.def (FILE_STMT): New code.
9056         * c-common.c (statement_code_p): It's a statement.
9057         * c-common.h (stmt_tree_s): Add x_last_filename.
9058         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9059         (last_expr_filename): New macro.
9060         * c-semantics.c (begin_stmt_tree): Initialize it.
9061         (add_stmt): If the filename changed, also insert a
9062         FILE_STMT.
9063         (expand_stmt): Handle seeing one.
9064
9065 2002-01-15  Eric Christopher  <echristo@redhat.com>
9066
9067         * flow.c (propagate_one_insn): Add error message and print out
9068         insn for debugging.
9069
9070 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9071
9072         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9073         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9074         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9075         TRAMPOLINE_ALIGNMENT.
9076         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9077         to be in bits.
9078         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9079         PCC_BITFIELD_TYPE_MATTERS.
9080         * config/interix.h (STDC_VALUE): Remove.  Use
9081         STDC_0_IN_SYSTEM_HEADERS.
9082         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9083         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9084         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9085
9086 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9087
9088         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9089         not work on this platform currently.
9090
9091 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9092
9093         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9094         readonly_warning in _().
9095
9096 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9097
9098         * gcc.c (delete_if_ordinary): Backout previous change.
9099
9100 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9101
9102         * config/h8300/h8300.c (print_operand): Remove support for
9103         unused operand characters.
9104
9105         * read-rtl.c: Fix formatting.
9106         * real.c: Likewise.
9107         * recog.c: Likewise.
9108         * regclass.c: Likewise.
9109         * regmove.c: Likewise.
9110         * reg-stack.c: Likewise.
9111         * reload1.c: Likewise.
9112         * rtlanal.c: Likewise.
9113
9114 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9115
9116         * config/i386/i386.c: Fix formatting.
9117
9118 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9119
9120         * c-typeck.c (process_init_element): Don't save_expr
9121         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9122
9123 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9124
9125         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9126         emit optional traceback table if optimize_size or TARGET_ELF.
9127         * config/rs6000/rs6000.md (prefetch): New.
9128
9129 2002-01-15  Andreas Jaeger  <aj@suse.de>
9130
9131         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9132
9133 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9134
9135         * mips-tfile.c: Fix formatting.
9136
9137 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9138
9139         * unroll.c (final_reg_note_copy): Fix previous commit.
9140
9141 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9142
9143         * config/h8300/h8300-protos.h: Remove the prototype for
9144         eq_operator.
9145         * config/h8300/h8300.c (eq_operator): Remove.
9146
9147 2002-01-14  Richard Henderson  <rth@redhat.com>
9148
9149         * config/i386/i386.md (prefetch): Tidy.
9150         (prefetch_3dnow): Fix locality operand.
9151
9152 2002-01-14  Richard Henderson  <rth@redhat.com>
9153
9154         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9155         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9156
9157 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9158
9159         * reload1.c (reload_combine): Pass reg_sum replacement through
9160         copy_rtx in loop performing multiple changes.
9161
9162 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9163
9164         * except.c (remove_unreachable_regions): New.
9165         (free_eh_status): Clear exception_handler_labels.
9166         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9167         (find_exception_handler_labels): Don't add the same label more than
9168         once.
9169         (remove_exception_handler_label): Don't die if
9170         find_exception_handler_labels hasn't been called for the current
9171         function yet.
9172
9173 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9174
9175         * toplev.c (rest_of_compilation): Rebuild jump labels after
9176         gcse.
9177
9178 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9179
9180         * doc/extend.texi: Move documentation of X86 built-in functions
9181         here.
9182         * doc/invoke.texi: From here.
9183         * doc/sourcebuild.texi: Document location of documentation for
9184         machine built-in functions.
9185
9186 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9187
9188         * cppfiles.c (TEST_THRESHOLD): New macro.
9189         (SHOULD_MMAP): Ditto.
9190         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9191         be used.
9192
9193 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9194
9195         * unroll.c (final_reg_note_copy): Properly handle
9196         REG_LABEL
9197         (unroll_loops): Fix LOOP_CONDITION heuristics.
9198
9199 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9200
9201         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9202         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9203
9204 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9205
9206         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9207         threaded loop.
9208
9209 2002-01-14  Tom Rix  <trix@redhat.com>
9210
9211         * config/rs6000/rs6000.md: Fix typo with sradi.
9212
9213 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9214
9215         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9216         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9217         (clrstrdi, clrstrsi): Adapt callers.
9218
9219         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9220
9221         (movti splitter): Never use register 0 as base register.
9222
9223 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9224
9225         * combine.c (simplify_shift_const): Always generate new rtx
9226         for shift expression instead of reusing given expression.
9227
9228 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9229
9230         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9231         alpha_legitimize_address unless mode is Pmode.
9232
9233 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9234
9235         * doc/md.texi (Modifiers): Document the '*' constraint for the
9236         user.
9237
9238         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9239         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9240         for xstormy16 too.
9241
9242 2002-01-13  Richard Henderson  <rth@redhat.com>
9243
9244         * reload.c (find_reloads): Use a hard reg destination as reload reg
9245         for an input reload of the source.
9246
9247 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9248
9249         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9250         more generic.
9251
9252 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9253
9254         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9255         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9256
9257         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9258
9259 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9260
9261         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9262
9263 2002-01-12  Tom Rix  <trix@redhat.com>
9264
9265         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9266         TARGET_POWERPC64.
9267
9268 2002-01-12  Richard Henderson  <rth@redhat.com>
9269
9270         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9271
9272         * doc/invoke.texi: Update Alpha options.
9273
9274         * doc/invoke.texi: Update i386 built-in function lists.
9275
9276 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9277
9278         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9279         referencing outside.
9280
9281 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9282
9283         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9284         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9285         offsets, and change line folding.
9286         * optabs.c (expand_binop): Remove warnings.
9287         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9288
9289 2002-01-12  Graham Stott <grahams@redhat.com>
9290
9291         * attribs.c (handle_deprecated_attribute): constify WHAT.
9292         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9293         dangling else warning and constify WHAT.
9294         * except.h (struct function, struct inline_remap): Move
9295         struct tag forward defs before all prototypes.
9296         (duplicate_eh_regions): Whitespace.
9297
9298 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9299
9300         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9301         MODE_BASE_REG_CLASS.
9302         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9303
9304 2002-01-12  Richard Henderson  <rth@redhat.com>
9305
9306         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9307         (ix86_expand_vector_move): New.
9308         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9309         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9310         Remove old prefetch builtins.  Special case the logicals removed above.
9311         (ix86_expand_builtin): Likewise.
9312         (safe_vector_operand): Use V4SFmode, not TImode.
9313         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9314         (ix86_expand_timode_binop_builtin): New.
9315         * config/i386/i386-protos.h: Update.
9316         * config/i386/i386.h (enum ix86_builtins): Update.
9317         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9318         Use ix86_expand_vector_move in vector move expanders.
9319         (movti_internal, movti_rex64): Add xorps alternative.
9320         (sse_clrv4sf): Rename and adjust from sse_clrti.
9321         (prefetch): Don't work so hard.
9322         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9323         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9324         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9325
9326 2002-01-11  Richard Henderson  <rth@redhat.com>
9327
9328         * config/i386/mmintrin.h: New file.
9329         * config/i386/xmmintrin.h: New file.
9330         * config.gcc (i?86-*-*): Add extra_headers.
9331         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9332         truncation codes.
9333         (simplify_binary_operation): Handle saturating arithmetic codes.
9334         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9335         not the lowpart subreg.
9336         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9337         on error.
9338         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9339
9340 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9341
9342         * conflict.c (conflict_graph_compute): Free regsets when finished.
9343         * ssa.c (compute_coalesced_reg_partition): Likewise.
9344
9345 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9346
9347         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9348         every where we allocate a register.
9349
9350 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9351
9352         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9353         * lcm.c (compute_earliest, compute_farthest): Likewise.
9354
9355 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9356
9357         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9358
9359 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9360
9361         * doc/rtl.texi (Insns): Fix 2 typos.
9362
9363 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9364
9365         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9366         options.  Use @table @gcctabopt for MMIX options.  Add index
9367         entries for MMIX options.  Start new paragraph with first
9368         heading of the machine-dependent options.
9369
9370 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9371
9372         PR other/5299
9373         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9374         * combine.c (force_to_mode): Same.
9375         * reload1.c (clear_reload_reg_in_use): Same.
9376
9377 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9378
9379         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9380         and 'subtargets'.
9381
9382 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9383             Brad Lucier <lucier@math.purdue.edu>
9384
9385         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9386         mcpu.
9387
9388 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9389
9390         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9391         Protect with IN_LIBGCC.
9392         (LINK_EH_SPEC): Add required trailing space.
9393
9394 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9395
9396         * c-tree.h: Move function declarations so that they are listed
9397         under the filename which contains them.
9398         (check_identifier, finish_decl_top_level,
9399         lookup_name_current_level_global, shadow_record_fields): Remove.
9400
9401 2002-01-11  Andreas Jaeger  <aj@suse.de>
9402
9403         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9404         march.
9405
9406 2002-01-10  Richard Henderson  <rth@redhat.com>
9407
9408         * config/alpha/alpha.c (print_operand): Add 'J'.
9409         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9410         new operand with the sequence number for the lituse.  When splitting
9411         the insns, use gen_movdi_er_high_g and generate a sequence number.
9412         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9413
9414 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9415
9416         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9417         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9418         stvxl.
9419         (altivec_expand_builtin): Same.
9420         (altivec_expand_stv_builtin): New.
9421
9422         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9423
9424         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9425         ("altivec_lvehx"): New.
9426         ("altivec_lvewx"): New.
9427         ("altivec_lvxl"): New.
9428         ("altivec_lvx"): New.
9429         ("altivec_stvx"): New.
9430         ("altivec_stvebx"): New.
9431         ("altivec_stvehx"): New.
9432         ("altivec_stvewx"): New.
9433         ("altivec_stvxl"): New.
9434
9435 2002-01-10  Richard Henderson  <rth@redhat.com>
9436
9437         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9438         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9439         care not to delete instructions twice.
9440
9441 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9442
9443         * toplev.c: Don't declare environ (it's not used anywhere).
9444         * configure.in: Don't check for declaration of environ.
9445         * config/i386/xm-mingw32.h: Don't #define environ.
9446         * config.in, configure: Regenerate.
9447
9448 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9449
9450         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9451         * configure: Regenerate.
9452
9453         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9454         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9455         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9456         alpha/xm-vms.h.
9457         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9458         LIMITS_H_TEST here, not in m68k/x-next.
9459         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9460         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9461
9462         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9463         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9464         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9465
9466         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9467         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9468         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9469         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9470         replacement of quadlib.asm with quadlib.c.
9471
9472         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9473         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9474         config/rs6000/xm-beos.h: Delete file.
9475
9476         * config.gcc: Update to match above changes.
9477
9478 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9479
9480         * config/h8300/h8300.h: Fix comment typos.
9481         * config/h8300/h8300.md: Likewise.
9482         * config/h8300/lib1funcs.asm: Likewise.
9483
9484 2002-01-10  Dale Johannesen  <dalej@apple.com>
9485
9486         PR optimization/5269
9487         * unroll.c (precondition_loop_p): Make *increment be the correct
9488         sign when n_iterations known, to avoid confusing caller.
9489
9490 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9491
9492         * doc/extend.texi (deprecated): Fix a typo.
9493
9494 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9495
9496         * basic-block.h (update_br_prob_note): Declare.
9497         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9498         (try_forward_edges): Care negative frequencies and update note.
9499         (outgoing_edges_match): Tweek conditional merging heuristics.
9500         (try_crossjump_to_edge): use update_br_prob_note.
9501         * cfglayout.c (fixup_reorder_chain): Likewise.
9502         * cfrtl.c (update_br_prob_note): New.
9503         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9504
9505         * i386.c (ix86_decompose_address): Return -1 if address contains
9506         shift.
9507         (legitimate_address_p): Require ix86_decompose_address to return 1.
9508
9509         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9510         (cprop_insn): Likewise.
9511
9512 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9513
9514         * toplev.c: Fix formatting.
9515         * tree.c: Likewise.
9516         * tree-dump.c: Likewise.
9517         * unroll.c: Likewise.
9518         * unwind-dw2.c: Likewise.
9519         * unwind-dw2-fde.c: Likewise.
9520         * unwind-dw2-fde-glibc.c: Likewise.
9521         * unwind-sjlj.c: Likewise.
9522
9523 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9524
9525         * doc/invoke.texi: Document PDP-11 options.
9526
9527 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9528
9529         * config/h8300/h8300.h: Fix formatting.
9530
9531 2002-01-10  Ira Ruben   <ira@apple.com>
9532
9533         Add __attribute__ ((deprecated)).
9534         * extend.texi: Document __attribute__ ((deprecated)).
9535         * invoke.texi: Document -Wno-deprecated-declarations.
9536         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9537         * testsuite/gcc.dg/deprecated.c: New C test.
9538         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9539         (c_common_attribute_table): Add "deprecated" entry.
9540         (handle_deprecated_attribute): New function.
9541         * c-decl.c (deprecated_states): New enum.
9542         deprecated_state: State of "deprecated" handling.
9543         (start_decl): Set deprecated_state based on attributes.
9544         (grokdeclarator): Test for deprecated uses, propagate attribute.
9545         * c-typeck.c (build_component_ref): Test for deprecated fields.
9546         (build_external_ref): Test for deprecated primaries.
9547         * diagnostic.c (warn_deprecated_use) New function to issue
9548         warnings about __attribute__ ((depricated)) references.
9549         * flags.h (warn_deprecated_decl): Extern declared for
9550         -W[no-]deprecated-declarations option.
9551         * print-tree.c (print_node): Show deprecated flag status.
9552         * toplev.c (warn_deprecated_decl): Defined.
9553         (W_options): Added "deprecated-declaration".
9554         * toplev.h (warn_deprecated_use): Extern declared.
9555         * tree.h (struct tree_common): Define deprecated_flag.
9556         (TREE_DEPRECATED): New macro to access flag.
9557         * cp/call.c (build_call): Test for deprecated calls.
9558         * cp/class.c (add_implicitly_declared_members): Set global
9559         flag to tell grokdeclarator to not issue deprecated warnings.
9560         * cp/cp-tree.h: Add extern for adding_implicit_members.
9561         * cp/decl.c (deprecated_states): New enum.
9562         (start_decl): Set deprecated_state based on attributes.
9563         (grokdeclarator): Test for deprecated uses, propagate attribute.
9564         * cp/lex.c (do_identifier): Test for deprecated primaries.
9565         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9566
9567 2002-01-10  Ira Ruben   <ira@apple.com>
9568
9569         Fix to assign attributes to inline member functions.
9570         * cp/decl.c (start_method): Handle attrlist.
9571
9572 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9573
9574         * combine.c (expand_field_assignment): Use subreg_lsb().
9575
9576 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9577
9578         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9579         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9580         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9581         Recurse for any operand of AND as long as constant is non-zero.
9582
9583 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9584
9585         * config/h8300/h8300.md: Remove constraints from expanders.
9586
9587 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9588
9589         * varasm.c: Fix formatting.
9590         * varray.c: Likewise.
9591         * vmsdbgout.c: Likewise.
9592         * xcoffout.c: Likewise.
9593
9594 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9595
9596         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9597         update edge probabilities to match.
9598
9599 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9600
9601         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9602         dependencies.
9603         * doc/languages.texi, doc/sourcebuild.texi: New files.
9604         * doc/configfiles.texi: Make a subsubsection.  Update.
9605         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9606         instructions for building GCC.
9607         * doc/makefile.texi: Make a subsection.
9608         * doc/gccint.texi: Update.
9609
9610 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9611
9612         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9613
9614 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9615
9616         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9617
9618 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9619
9620         * optabs.c (expand_fix): Look for wider integer modes first.
9621
9622         * i386.md (mov?f): Avoid the fake const double trick for medium
9623         memory model.
9624         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9625         (fop_df_4): Disable for SSE compilation.
9626
9627 2002-01-10  Graham Stott  <grahams@redhat.com>
9628
9629         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9630         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9631
9632 2002-01-10  Richard Henderson  <rth@redhat.com>
9633
9634         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9635
9636 2002-01-10  Richard Henderson  <rth@redhat.com>
9637
9638         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9639         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9640
9641 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9642
9643         * combine.c (can_combine_p): Fix a comment typo.
9644
9645 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9646
9647         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9648         empty list correctly.  Change loop index $t to $f for
9649         consistency with rest of Makefile.
9650
9651 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9652
9653         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9654         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9655
9656         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9657         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9658         (altivec_init_builtins): Same.
9659         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9660         (altivec_expand_binop_builtin): Same.
9661         (altivec_expand_ternop_builtin): Same.
9662         (bdesc_dst): New.
9663
9664         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9665         ("altivec_vctuxs"): Fix typo.
9666         ("altivec_vnmsubfp"): Same.
9667         ("altivec_dssall"): New.
9668         ("altivec_mfvscr"): New.
9669         ("altivec_dss"): New.
9670         ("altivec_lvsl"): New.
9671         ("altivec_lvsr"): New.
9672         ("altivec_dstt"): New.
9673         ("altivec_dstst"): New.
9674         ("altivec_dststt"): New.
9675         ("altivec_dst"): New.
9676
9677         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9678         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9679
9680 2002-01-09  Richard Henderson  <rth@redhat.com>
9681
9682         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9683
9684 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9685
9686         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9687         function.
9688         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9689         prototype.
9690         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9691
9692 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9693
9694         * read-rtl.c: Fix formatting.
9695         * real.c: Likewise.
9696         * regclass.c: Likewise.
9697         * regrename.c: Likewise.
9698         * reg-stack.c: Likewise.
9699         * reload1.c: Likewise.
9700         * reload.c: Likewise.
9701         * rtl.c: Likewise.
9702
9703 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9704
9705         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9706         to extract items in the expr_list chain.
9707
9708 2002-01-09  Richard Henderson  <rth@redhat.com>
9709
9710         * config/vax/vax.c (vax_rtx_cost): Never abort.
9711
9712         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9713
9714 2002-01-09  Jan Hubicka  <jh@suse.cz>
9715
9716         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9717
9718 2002-01-09  Richard Henderson  <rth@redhat.com>
9719
9720         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9721         Unify code from various alternatives.
9722
9723 2002-01-09  Richard Henderson  <rth@redhat.com>
9724
9725         * regrename.c (copy_value): Ignore the copy if the source register
9726         is present in the value chain with a narrower mode.
9727
9728 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9729
9730         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9731         for the c4x target. Also improve layout.
9732
9733 2002-01-09  Richard Henderson  <rth@redhat.com>
9734
9735         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9736         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9737         to match insn patterns.
9738
9739 2002-01-09  Richard Henderson  <rth@redhat.com>
9740
9741         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9742         (copyprop_hardreg_forward_1): Likewise.
9743
9744 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9745
9746         * pa.md (decrement_and_branch_until_zero): Change predicate for
9747         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9748
9749 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9750
9751         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9752         gets undefined. For Darwin.
9753
9754 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9755
9756         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9757
9758 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9759
9760         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9761
9762 2002-01-08  Richard Henderson  <rth@redhat.com>
9763
9764         * regrename.c (copy_value): Ignore overlapping copies.
9765
9766 2002-01-08  Richard Henderson  <rth@redhat.com>
9767
9768         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9769         as needed to avoid shared structure.
9770
9771 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9772
9773         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9774         H8/300H and H8/S.
9775
9776 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9777
9778         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9779         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9780         documentation of obsolete macros.
9781         * system.h: Poison these macros.
9782         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9783         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9784         config/c4x/c4x.h, config/clipper/clipper.h,
9785         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9786         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9787         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9788         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9789         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9790         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9791         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9792         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9793         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9794         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9795         config/sparc/sparc.h, config/stormy16/stormy16.h,
9796         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9797         definitions and commented out definitions of obsolete macros.
9798         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9799         of MAX_INT_TYPE_SIZE.
9800
9801 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9802
9803         * config/s390/s390.c (s390_preferred_reload_class): Never
9804         return ADDR_REGS if it isn't a subset of the given class.
9805         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9806         FP_REGS, but all superclasses as well.
9807
9808         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9809
9810         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9811         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9812         must not be a const_int.
9813
9814 2002-01-08  Richard Henderson  <rth@redhat.com>
9815
9816         * Makefile.in (toplev.o): Depend on options.h.
9817         (gcc.o): Depend on specs.h.
9818
9819 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9820
9821         * expr.c (store_expr): Convert VOIDmode constants back to target's
9822         mode.
9823
9824 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9825
9826         * doc/invoke.texi: Markup gcc as @command.  Refer to
9827         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9828         of http://gcc.gnu.org/thanks.html.
9829
9830 2002-01-08  Dale Johannesen  <dalej@apple.com>
9831
9832         * config/rs6000/rs6000.md: Add missing int register
9833         target case to movdf_low.
9834
9835 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
9836
9837         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9838         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
9839         (cppinit.o): Depend on except.h.
9840         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9841         s-specs): New rules.
9842
9843         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9844         Don't create specs.h/options.h/gencheck.h here.  Remove
9845         unnecessary variable settings from last argument of AC_OUTPUT.
9846         * config.in, configure: Regenerate.
9847         * intl.c: Hardcode package name as "gcc".
9848
9849         * cppinit.c: Include except.h.
9850         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9851         appropriate.
9852         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9853         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9854         (!)USING_SJLJ_EXCEPTIONS.
9855         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9856
9857 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9858
9859         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9860         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9861         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9862         documentation of obsolete macros.
9863         * system.h: Poison these macros.
9864         * config/d30v/d30v.h, config/ns32k/encore.h,
9865         config/stormy16/stormy16.h: Remove definitions and commented out
9866         definitions of obsolete macros.
9867
9868 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
9869
9870         * objc/objc-act.c (handle_class_ref): Mark the declaration of
9871         %sobjc_class_ref_%s as used - to prevent unwanted compiler
9872         warnings.
9873
9874 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9875
9876         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9877         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9878         to insn adjusting stack/frame pointer.
9879         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9880         accept operands that cause the insn to be non-splittable.
9881
9882 2002-01-08  Graham Stott  <grahams@redhat.com>
9883
9884         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9885         (C_TYPE_FIELDS_VOLATILE): Likewise.
9886         (C_TYPE_BEING_DEFINED): Likewise.
9887         (C_IS_RESERVED_WORD): Likewise.
9888         (C_TYPE_VARIABLE_SIZE): Likewise.
9889         (C_DECL_VARIABLE_SIZE): Likewise.
9890         (C_MISSING_PROTOTYPE_WARNED): Likewise.
9891         (C_SET_EXP_ORIGINAL_CODE): Likewise.
9892         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9893         parenthesis.
9894         (C_DECL_ANTICIPATED): Likewise.
9895         (c_build_type_variant): Add parenthesis.
9896
9897 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9898
9899         * gcc.c (option_map): Remove --version.
9900         (process_command): Handle -fversion following the GNU Coding
9901         Standards.  Partially addresses PR other/704.
9902
9903 2002-01-08  Graham Stott  <grahams@redhat.com>
9904
9905         * combine.c (combine_instructions): Fix typo.
9906
9907 2002-01-08  Graham Stott  <grahams@redhat.com>
9908
9909         * debug.h: Use "tree" and "rtx" throughout.
9910
9911         * debug.c: Likewise.
9912
9913 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
9914
9915         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9916         constant pool, use the pool's version of the symbol instead.
9917
9918 2002-01-07  Richard Henderson  <rth@redhat.com>
9919
9920         * regrename.c (find_oldest_value_reg): Ignore the value chain if
9921         the original register was copied in a mode with a fewer number of
9922         hard registers than the desired mode.
9923         (copyprop_hardreg_forward_1): Likewise.
9924         (debug_value_data): Fix loop test.
9925         * toplev.c (parse_options_and_default_flags): Reenable
9926         -fcprop-registers at -O1.
9927
9928 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9929
9930         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9931         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9932
9933         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9934         predicates.
9935
9936         * config/rs6000/rs6000.md: Add altivec predicate patterns.
9937
9938 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9939
9940         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9941         (pa_output_function_prologue): Output local label at the beginning of
9942         the prologue when profiling.
9943         (hppa_profile_hook): Use the local label rather than the function label.
9944         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9945
9946 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9947
9948         * config/rs6000/rs6000.c (print_operand): Remove extra space.
9949         (altivec_expand_unop_builtin): Fix thinko.
9950         (altivec_expand_binop_builtin): Same.
9951         (altivec_expand_ternop_builtin): Same.
9952         (altivec_expand_builtin): Same.
9953
9954 2002-01-07  Richard Henderson  <rth@redhat.com>
9955
9956         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9957
9958 2002-01-07  Jason Merrill  <jason@redhat.com>
9959
9960         * unwind-dw2.c (execute_cfa_program): Use < again.
9961
9962 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9963
9964         * predict.c (combine_predictions_for_insn): Avoid division by zero.
9965
9966 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9967
9968         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9969         Don't allow -1 - x -> ~x simplifications in the first pass.
9970
9971 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9972
9973         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9974         arguments.
9975         (altivec_expand_binop_builtin): Same.
9976         (altivec_expand_unop_builtin): Same.
9977         (print_operand): Fix typo.
9978         (bdesc_1arg): Add vupk* variants.
9979
9980         * rs6000.h (rs6000_builtins): Add vupk* enums.
9981
9982         * rs6000.md: Add altivec_vupk* variants.
9983
9984 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9985
9986         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9987         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9988         and last update dates.
9989
9990 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
9991
9992         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9993
9994 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9995
9996         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9997         * config/avr/avr.h (CPP_SPEC): Likewise.
9998         (LINK_SPEC): Likewise.
9999         (CRT_BINUTILS_SPECS): Likewise.
10000         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10001         * doc/invoke.texi (AVR Options): Document them.
10002
10003 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10004
10005         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10006         LABEL_NUSES.
10007
10008 2002-01-07  Graham Stott  <grahams@redhat.com>
10009
10010         * config/i386/i386.h: Update copyright date.
10011         (HALF_PIC_PTR): Add parenthesis.
10012         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10013         (CONSTANT_ALIGNMENT): Add parenthesis.
10014         (DATA_ALIGNMENT): Likewise.
10015         (LOCAL_ALIGNMENT): Likewise.
10016         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10017         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10018         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10019         (HARD_REGNO_NREGS): Add paranethesis.
10020         (VALID_SSE_REG_MODE): Whitespace.
10021         (VALID_MMX_REG_MODE): Whitespace.
10022         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10023         (ix86_hard_regno_mode_ok): Add parenthesis.
10024         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10025         (RETURN_IN_MEMORY): Whitespace.
10026         (N_REG_CLASSES): Add parenthesis.
10027         (INTEGER_CLASS_P): Add parenthesis and wrap.
10028         (FLOAT_CLASS_P): Likewise.
10029         (SSE_CLASS_P): Likewise.
10030         (MMX_CLASS_P): Likewise.
10031         (MAYBE_INTEGER_CLASS_P): Likewise.
10032         (MAYBE_FLOAT_CLASS_P): Likewise.
10033         (MAYBE_SSE_CLASS_P): Likewise.
10034         (MAYBE_MMX_CLASS_P): Likewise.
10035         (Q_CLASS_P): Likewise.
10036         (GENERAL_REGNO_P): Uppercase macro parameter.
10037         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10038         (FP_REGNO_P): Likewise.
10039         (ANY_FP_REGNO_P): Uppercase macro parameter.
10040         (SSE_REGNO_P): Likewise.
10041         (SSE_REGNO): Likewise.
10042         (SSE_REG_P): Likewise.
10043         (SSE_FLOAT_MODE_P): Likewise.
10044         (MMX_REGNO_P): Likewise.
10045         (MMX_REG_P):Likewise.
10046         (STACK_REG_P): Likewise.
10047         (NON_STACK_REG_P): Likewise.
10048         (STACK_TOP_P): Likewise.
10049         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10050         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10051         (SECONDARY_MEMORY_NEEDED): Likewise.
10052         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10053         (MD_ASM_CLOBBERS): Whitespace and wrap.
10054         (MUST_PASS_IN_STACK): Whitespace and wrap.
10055         (RETURN_POPS_ARGS): Add parenthesis.
10056         (INIT_CUMULATIVE_ARGS): Likewise.
10057         (FUNCTION_ARG): Likewise.
10058         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10059         (SETUP_INCOMING_VARARGS): Likewise.
10060         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10061         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10062         parenthsis.
10063         (EXPAND_BUILTIN_VA_ARG): Likewise.
10064         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10065         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10066         (INITIAL_ELIMINATION_OFFSET): Likewise.
10067         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10068         (REGNO_OK_FOR_BASE_P): Likewise.
10069         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10070         (REGNO_OK_FOR_DIREG_P): Likewise.
10071         (REG_OK_FOR_INDEX_P): Whitespace.
10072         (REG_OK_FOR_BASE_P): Whitespace.
10073         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10074         parenthesis.
10075         (FIND_BASE_TERM): Fix typo.
10076         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10077         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10078         (SYMBOLIC_CONST; Whitespace.
10079         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10080         (ENCODE_SECTION_INFO): Whitespace.
10081         (FINALIZE_PIC): Remove do { ... } while (0).
10082         (PROMOTE_MODE): Wrap in do { ... } while (0).
10083         (CONST_COSTS): Whitespace.
10084         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10085         (REGISTER_MOVE_COST): Add parenthesis.
10086         (MEMORY_MOVE_COST): Likewise.
10087         (EXTRA_CC_MODES): Whitespace.
10088         (SELECT_CC_MODE): Add parenthesis and whitespace.
10089         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10090         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10091         (ASM_OUTPUT_LABEL): Add paramethesis.
10092         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10093         (ASM_OUTPUT_REG_POP): Likewise.
10094         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10095         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10096
10097         * config/i386/i386.c: Update copyright.
10098         (CHECK_STACK_LIMIT): Add parenthesis.
10099         (AT_BP): Uppercase macro parameter.
10100         (x86_64_int_parameter_registers): Constify.
10101         (x86_64_int_return_registers): Likewise.
10102         (ix86_compare_op0): Use rtx.
10103         (construct_container): Constify INTREG parameter.
10104         (function_arg): Use rtx.
10105
10106         * diagnostic.h: Update copyright date.
10107         (output_buffer_state): Add parenthesis.
10108         (output_buffer_format_args): Likewise.
10109
10110         * combine.c (combine_instructions): Replace XEXP (links, 0)
10111         with link.
10112
10113 2002-01-06  H.J. Lu <hjl@gnu.org>
10114
10115         * cfgcleanup.c (thread_jump): Fix 2 typos.
10116
10117 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10118
10119         * config.gcc: Add support for --enable-altivec.
10120
10121 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10122
10123         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10124
10125 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10126
10127         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10128         __objc_class_name_*.
10129
10130 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10131
10132         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10133
10134 2002-01-06  Richard Henderson  <rth@redhat.com>
10135
10136         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10137         nop them out.  Increment label reference count for REG_LABEL.
10138         (fill_slots_from_thread): Frob label reference count around
10139         delete_related_insns.
10140
10141 2002-01-05  Richard Henderson  <rth@redhat.com>
10142
10143         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10144         jump threading.
10145
10146 2002-01-05  Richard Henderson  <rth@redhat.com>
10147
10148         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10149         * integrate.c (output_inline_function): Likewise.
10150         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10151         to remove_unnecessary_notes after emitting abstract instance.
10152         Force an emitted nested function to have its parent emited as well.
10153         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10154         for null.
10155         (rtl_for_decl_location): Do not look at reload data structures
10156         before reload has run.
10157
10158 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10159
10160         * cse.c: Fix formatting.
10161         * dwarf2asm.c: Likewise.
10162         * dwarf2out.c: Likewise.
10163         * explow.c: Likewise.
10164         * expmed.c: Likewise.
10165         * function.c: Likewise.
10166         * gcov.c: Likewise.
10167         * gencheck.c: Likewise.
10168         * genrecog.c: Likewise.
10169         * ggc-common.c: Likewise.
10170         * ggc-page.c: Likewise.
10171         * global.c: Likewise.
10172
10173 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10174
10175         * combine.c: Fix formatting.
10176
10177 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10178
10179         PR middle-end/1557
10180         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10181
10182 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10183
10184         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10185         as 1 for __powerpc64__ as well.
10186
10187         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10188
10189         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10190         return it.
10191
10192 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10193
10194         * lcm.c: Revert change, due to performance regression it causes on
10195         SPEC because it's slightly more conservative (sigh, I hate
10196         edge-based LCM).
10197
10198 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10199
10200         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10201
10202 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10203
10204         * doc/cppinternals.texi: Update.
10205
10206 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10207
10208         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10209         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10210         negatives.
10211         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10212         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10213         kludge for pre-october-14th mmix versions to handle new-found bug
10214         with PUSHJ/PUSHGO and the register stack.
10215         * config/mmix/mmix.h (struct machine_function): Rename member
10216         has_call_value_without_parameters to has_call_without_parameters.
10217         All referers changed.
10218         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10219         TARGET_MASK_BRANCH_PREDICT): New macros.
10220         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10221         -mno-reg-stack-fill-bug-workaround.
10222         * config/mmix/mmix.md ("call"): Set struct machine member
10223         has_call_without_parameters.
10224
10225 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10226
10227         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10228
10229 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10230
10231         * cfgcleanup.c: Include tm_p.h
10232         (mark_effect): Fix handling of hard register; fix handling of SET
10233
10234 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10235
10236         * config/h8300/h8300.md (anonymous patterns): Check that
10237         operands are registers before using REGNO on them.
10238
10239 2002-01-03  Roland McGrath  <roland@frob.com>
10240
10241         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10242
10243 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10244
10245         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10246         * c-common.h (genrtl_expr_stmt_value): Likewise.
10247         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10248         (expand_expr_stmt_value): Add maybe_last argument.
10249         Don't warn about statement with no effect if it is the last statement
10250         in expression statement.
10251         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10252         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10253         expand_expr_stmt_value.
10254         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10255         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10256         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10257         as maybe_last to expand_expr_stmt_value.
10258
10259 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10260
10261         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10262         be passed in, do not build it.
10263         (c_begin_if_stmt): New function.
10264         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10265         * c-common.h (c_expand_start_cond): Update prototype.
10266         (c_begin_if_stmt): Prototype new function.
10267         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10268         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10269         c_begin_while_stmt and c_finish_while_stmt_cond.
10270
10271 2002-01-04  William Cohen  <wcohen@redhat.com>
10272
10273         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10274         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10275         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10276         * config/pa/som.h (ASM_FILE_START): Likewise.
10277
10278 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10279
10280         * lcm.c: Include df.h.
10281         Add available_transfer_function prototype.
10282         (compute_available): Rework to use iterative dataflow framework.
10283         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10284         with bb_info in df.h
10285         (available_transfer_function): New function.
10286
10287         * Makefile.in (lcm.o): add df.h to dependencies.
10288
10289 2002-01-04  Richard Henderson  <rth@redhat.com>
10290
10291         * config/alpha/alpha.c (some_operand): Accept HIGH.
10292         (input_operand): Likewise; accept simple references to globals.
10293         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10294         (alpha_const_double_ok_for_letter_p): Likewise.
10295         (alpha_extra_constraint): Likewise.
10296         (alpha_preferred_reload_class): Likewise.  Do not force
10297         symbolic constants to memory.
10298         (alpha_legitimate_address_p): Accept simple references
10299         to small_symbolic_operand.
10300         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10301         called when no_new_pseudos.  Emit simple symbolic references.
10302         Split integers into low, high, and rest.
10303         (alpha_expand_mov): Use alpha_legitimize_address.
10304         (some_small_symbolic_mem_operand): New.
10305         (split_small_symbolic_mem_operand): New.
10306         * config/alpha/alpha-protos.h: Update.
10307         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10308         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10309         (EXTRA_CONSTRAINT): Likewise.
10310         (PREFERRED_RELOAD_CLASS): Likewise.
10311         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10312         (PREDICATE_CODES): Update.
10313         * config/alpha/alpha.md: New post-reload splitters to convert
10314         simplfied symbolic operands to the form that references $29.
10315         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10316         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10317
10318 2002-01-03  Richard Henderson  <rth@redhat.com>
10319
10320         * local-alloc.c (function_invariant_p): Update commentary.
10321
10322 2002-01-04  H.J. Lu <hjl@gnu.org>
10323
10324         * toplev.c (rest_of_compilation): Fix a typo when calling
10325         cleanup_cfg.
10326
10327 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10328
10329         * c-common.c: Fix formatting.
10330         * diagnostic.c: Likewise.
10331         * doloop.c: Likewise.
10332         * dwarf2out.c: Likewise.
10333
10334 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10335
10336         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10337         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10338
10339 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10340
10341         * cpperror.c: Update comments and copyright.
10342         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10343         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10344
10345 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10346
10347         * collect2.c (main): Use strcmp when testing for "-shared".
10348
10349 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10350
10351         * cppmacro.c: Don't include intl.h.  Update comments.
10352         (new_number_token): Allocate enough buffer for 64-bit unsigned
10353         integers; update prototype.
10354         * cppmain.c: Update comments.
10355
10356 2002-01-03  William Cohen  <wcohen@redhat.com>
10357
10358         * function.h (struct function): Add profile.
10359         (current_function_profile): New.
10360         doc/extend.texi: Update documentation.
10361         * final.c (final_start_function): Use current_function_profile
10362         instead of profile_flag.
10363         (profile_after_prologue): Likewise.
10364         * function.c (expand_function_start): Likewise.
10365         (expand_function_start): Likewise.
10366         * config/alpha/alpha.c (direct_call_operand):
10367         (alpha_does_function_need_gp): Likewise.
10368         (alpha_expand_prologue): Likewise.
10369         * config/arm/arm.c (arm_expand_prologue): Likewise.
10370         thumb_expand_prologue: Likewise.
10371         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10372         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10373         (fr30_expand_prologue): Likewise.
10374         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10375         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10376         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10377         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10378         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10379         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10380         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10381         (m32r_expand_prologue): Likewise.
10382         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10383         (m88k_expand_prologue): Likewise.
10384         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10385         * config/mips/mips.c (compute_frame_size): Likewise.
10386         (mips_expand_prologue): Likewise.
10387         (mips_can_use_return_insn): Likewise.
10388         * config/pa/elf.h (ASM_FILE_START): Likewise.
10389         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10390         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10391         * config/pa/som.h (ASM_FILE_START): Likewise.
10392         * config/romp/romp.c (romp_using_r14): Likewise.
10393         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10394         (rs6000_stack_info): Likewise.
10395         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10396         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10397         * config/v850/v850.c (compute_register_save_size): Likewise.
10398
10399 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10400
10401         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10402         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10403
10404 2002-01-03  Turly O'Connor  <turly@apple.com>
10405
10406         * darwin.c (machopic_output_possible_stub_label): Don't generate
10407         stub routines for pseudo-stubs which we've just defined.
10408
10409 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10410
10411         * builtins.c: Fix formatting.
10412         * c-typeck.c: Likewise.
10413         * combine.c: Likewise.
10414         * expr.c: Likewise.
10415         * loop.c: Likewise.
10416
10417 2002-01-03  Andreas Schwab  <schwab@suse.de>
10418
10419         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10420         and return true if _cpp_push_next_buffer pushed a new include
10421         file.
10422         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10423         _cpp_pop_file_buffer did not push a new file.
10424         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10425
10426 2002-01-02  Eric Christopher  <echristo@redhat.com>
10427
10428         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10429         FIND_REG_INC_NOTE call. Update copyright.
10430         * loop.c (canonicalize_condition): Ditto.
10431         * reorg.c (delete_scheduled_jump): Ditto.
10432
10433 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10434
10435         * gcse.c: Fix formatting.
10436
10437 2002-01-03  Graham Stott  <grahams@redhat.com>
10438
10439         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10440         forward defs for struct tags rtx_def, union_tree, rtvec_def
10441         also output corresponding typedefs for rtx, tree, and rtvec.
10442
10443         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10444         rtvec_def along with corresponding typedefs for rtx, tree, and
10445         rtvec to config.h, hconfig.h, tconfig.h.
10446
10447 2002-01-03  Graham Stott  <grahams@redhat.com>
10448
10449         * tree.h: Update copyright date.
10450         (IS_EXPR_CODE_CLASS): Add parenthesis.
10451         (TREE_SET_CODE): Add whitespace.
10452         (TREE_CHECK): Add parenthesis.
10453         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10454         (CST_OR_CONSTRUCTOR_CHECK):
10455         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10456         (TREE_SYMBOL_REFERENCED): Whitespace.
10457         (INT_CST_LT): Likewise.
10458         (INT_CST_LT_UNSIGNED): Likewise.
10459         (tree_real_cst): Unwrap comment.
10460         (tree_string): Likewise.
10461         (tree_complex): Likewise.
10462         (IDENTIFIER_POINTER): correct cast.
10463         (SAVE_EXPR_CONTEXT): Whitespace.
10464         (EXPR_WFL_FILENAME_NODE): Likewise.
10465         (EXPR_WFL_FILENAME): Remove parenthesis.
10466         (DECL_ORIGIN): Add parenthesis.
10467         (DECL_FROM_INLINE): Use NULL_TREE.
10468         (build_int_2): Whitespace.
10469         (build_type_variant): Add parenthesis.
10470
10471         * gcc/jcf-parse.c: Update copyright date.
10472         (yyparse): Constify resource_filename.
10473
10474 2002-01-03  Graham Stott  <grahams@redhat.com>
10475
10476         * rtl.h: Update copyright date.
10477         (RTL_CHECK1): Wrap long line.
10478         (RTL_CHECK2): Likewise.
10479         (RTL_CHECKC1): Wrap long line and whitespace.
10480         (RTL_CHECKC2): Likewise.
10481         (XWINT): Whitespace.
10482         (XINT): Likewise.
10483         (XSTR): Likewise.
10484         (XEXP): Likewise.
10485         (XVEC): Likewise.
10486         (XMODE): Likewise.
10487         (XBITMAP): Likewise.
10488         (XTREE): Likewise.
10489         (XBBDEF): Likewise.
10490         (XTMPL): Likewise.
10491         (X0WINT): Likewise.
10492         (X0INT):Likewise.
10493         (X0UINT): Likewise.
10494         (X0STR): Likewise.
10495         (X0EXP): Likewise.
10496         (X0VEC): Likewise.
10497         (X0MODE): Likewise.
10498         (X0BITMAP): Likewise.
10499         (X0TREE): Likewise.
10500         (X0BBDEF): Likewise.
10501         (X0ADVFLAGS): Likewise.
10502         (X0CSELIB): Likewise.
10503         (X0MEMATTR): Likewise.
10504         (XCWINT): Likewise.
10505         (XCINT): Likewise.
10506         (XCUINT): Likewise.
10507         (XCSTR): Likewise.
10508         (XCEXP): Likewise.
10509         (XCVEC): Likewise.
10510         (XCMODE): Likewise.
10511         (XCBITMAP): Likewise.
10512         (XCTREE): Likewise.
10513         (XCBBDEF): Likewise.
10514         (XCADVFLAGS): Likewise.
10515         (XCCSELIB): Likewise.
10516         (XC2EXP): Likewise.
10517         (INSN_UID): Likewise.
10518         (PREV_INSN): Likewise.
10519         (PATTERN): Likewise.
10520         (INSN_CODE): Likewise.
10521         (PUT_REG_NOTE_KIND): Likewise.
10522         (CODE_LABEL_NUMBER): Likewise.
10523         (NOTE_SOURCE_FILE): Likewise.
10524         (NOTE_BLOCK): Likewise.
10525         (NOTE_EH_HANDLER): Likewise.
10526         (NOTE_RANGE_INFO): Likewise.
10527         (NOTE_LIVE_INFO): Likewise.
10528         (NOTE_BASIC_BLOCK): Likewise.
10529         (NOTE_EXPECTED_VALUE): Likewise.
10530         (NOTE_LINE_NUMBER): Likewise.
10531         (LABEL_NAME): Likewise.
10532         (LABEL_NUSES): Likewise.
10533         (LABEL_ALTERNATE_NAME): Likewise.
10534         (ADDRESSOF_DECL): Likewise.
10535         (JUMP_LABEL): Likewise.
10536         (LABEL_NEXTREF): Likewise.
10537         (REGNO): Likewise.
10538         (ORIGINAL_REGNO: Likewise.
10539         (HARD_REGISTER_NUM_P): Add parenthesis.
10540         (SUBREG_REG): Whitespace.
10541         (SUBREG_BYTE): Likewise.
10542         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10543         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10544         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10545         (ASM_OPERANDS_INPUT_VEC): Likewise.
10546         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10547         (ASM_OPERANDS_INPUT): Likewise.
10548         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10549         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10550         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10551         (ASM_OPERANDS_INPUT_MODE): Likewise.
10552         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10553         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10554         (MEM_SET_IN_STRUCT_P): Minor reformat.
10555         (TRAP_CONDITION): Whitespace.
10556         (TRAP_CODE): Likewise.
10557         (COND_EXEC_TEST): Likewise.
10558         (COND_EXEC_CODE): Likewise.
10559         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10560         (PHI_NODE_P): Add parenthesis.
10561         (plus_constant): Whitespace and add parenthesis.
10562
10563 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10564
10565         * config/avr/avr.c: Fix comment typos.
10566         * config/c4x/c4x.md: Likewise.
10567         * config/dsp16xx/dsp16xx.h: Likewise.
10568         * config/dsp16xx/dsp16xx.md: Likewise.
10569         * config/i386/i386.md: Likewise.
10570         * config/ia64/ia64.c: Likewise.
10571         * config/m32r/m32r.h: Likewise.
10572         * config/m68hc11/m68hc11.md: Likewise.
10573         * config/mmix/mmix.c: Likewise.
10574         * config/mn10200/mn10200.c: Likewise.
10575         * config/romp/romp.c: Likewise.
10576         * config/sh/sh.c: Likewise.
10577         * config/stormy16/stormy16.c: Likewise.
10578         * config/stormy16/stormy16.h: Likewise.
10579         * config/stormy16/stormy16.md: Likewise.
10580
10581 2002-01-03  Graham Stott  <grahams@redhat.com>
10582
10583         * loop.h: Update copyright date.
10584         (LOOP_MOVABLES): Fix typo.
10585         (LOOP_REGS): Likewise.
10586         (LOOP_IVS): Likewise.
10587
10588 2002-01-03  Graham Stott  <grahams@redhat.com>
10589
10590         * cppinit.c: Update copyright date.
10591         Don't include output.h
10592         * Makefile.in: Update copyright date.
10593         Update dependency.
10594
10595 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10596
10597         PR c/5226
10598         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10599         (-pthread) Add to RS/6000 options.
10600
10601 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10602
10603         * except.c: Fix comment typos.
10604         * loop.c: Likewise.
10605         * varasm.c: Likewise.
10606         * doc/tm.texi: Fix a typo.
10607
10608 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10609
10610         * c-typeck.c (output_init_element): Allow initializing static storage
10611         duration objects with compound literals.
10612
10613 2002-01-02  Richard Henderson  <rth@redhat.com>
10614
10615         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10616         after abusing it.
10617
10618 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10619
10620         * gcc.c (default_compilers): Const-ify.
10621         * mips-tdump.c (stab_names): Likewise.
10622         * mips-tfile.c (map_coff_types, map_coff_storage,
10623         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10624         pseudo_ops_t, pseudo_ops): Likewise.
10625         * protoize.c (default_include): Likewise
10626
10627         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10628         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10629         Add array size in declaration.
10630         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10631         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10632         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10633         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10634         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10635         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10636         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10637         emtens, make_nan): Const-ify.
10638         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10639         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10640
10641 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10642
10643         * config.gcc (ia64-*-*): Set extra_headers.
10644         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10645         * config/alpha/t-osf: Remove.
10646         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10647
10648 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10649
10650         * config/rs6000/t-aix43: Revert previous change.
10651
10652 2002-01-02  Jason Merrill  <jason@redhat.com>
10653
10654         * c-decl.c (c_expand_body): Call outlining_inline_function when
10655         emitting an inline function out of line.
10656
10657 2002-01-02  Richard Henderson  <rth@redhat.com>
10658
10659         * dwarf2out.c (limbo_die_node): Add created_for member.
10660         (new_die): New argument created_for.  Update all callers.
10661         (mark_limbo_die_list): New.
10662         (dwarf2out_init): Register limbo_die_list as a root.
10663         (dwarf2out_finish): Force insert limbo dies into their function
10664         context.
10665
10666 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10667
10668         PR c++/5089
10669         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10670
10671 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10672
10673         * config/h8300/fixunssfsi.c: Update copyright.
10674         Fix comment typos.
10675         Fix formatting.
10676         * config/h8300/h8300.c: Update copyright.
10677         Eliminate warnings.
10678
10679 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10680
10681         * config/romp/romp.c: Fix comment formatting.
10682         * config/romp/romp.h: Likewise.
10683         * config/romp/romp.md: Likewise.
10684         * config/s390/s390.c: Likewise.
10685         * config/stormy16/stormy16.c: Likewise.
10686         * config/stormy16/stormy16.h: Likewise.
10687
10688 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10689
10690         * c-common.h (genrtl_expr_stmt_value): Declare.
10691         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10692         (genrtl_goto_stmt_value): ... this new function.  Pass new
10693         argument down to expand_expr_stmt_value, taking
10694         TREE_ADDRESSABLE into account.
10695         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10696         STMT_EXPR as addressable, i.e., one whose result we want.
10697         * expr.c (expand_expr): Don't save expression statement value
10698         of labeled_blocks or loop_exprs.
10699         * stmt.c (expand_expr_stmt): Redirect to...
10700         (expand_expr_stmt_value): ... this new function.  Use new
10701         argument to tell whether to save expression value.
10702         (expand_end_stmt_expr): Reset last_expr_type and
10703         last_expr_value if we don't have either.
10704         * tree-inline.c (declare_return_variable): Mark its use
10705         statement as addressable.
10706         * tree.h: Document new use of TREE_ADDRESSABLE.
10707         (expand_expr_stmt_value): Declare.
10708
10709 2002-01-01  Tom Rix  <trix@redhat.com>
10710
10711         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10712         rs6000_emit_allocate_stack.
10713
10714 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10715
10716         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10717         ${srcdir}/ginclude/ to every entry in extra_headers.
10718         * configure: Regenerate.
10719         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10720         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10721         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10722         * ginclude/proto.h: Rename to config/convex/proto.h.
10723
10724 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10725
10726         * attribs.c (handle_vector_size_attribute): Use host_integerp
10727         and tree_int_cst; remove warnings.
10728         * caller-save.c (insert_restore): Add cast to get rid of warning.
10729         (insert_save): Likewise.
10730         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10731         * regmove.c (find_matches): Add temporary var to kill a warning.
10732
10733 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10734
10735         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10736         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10737         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10738         (vms-dwarf2eh.o): Add Makefile rule.
10739         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10740         * config/alpha/vms-dwarf2eh.asm: New file.
10741
10742         * gcc.c (delete_if_ordinary): Delete all versions.
10743
10744 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10745
10746         * config/mmix/mmix.md: Update FIXME to not mention
10747         define_constants.
10748         (MMIX_rJ_REGNUM): New define_constants constant.
10749         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10750         "*movdicc_real"): Adjust contraints formatting.
10751         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10752         for branch prediction.
10753         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10754         output template.
10755         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10756         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10757         number.  Delete related FIXMEs.
10758         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10759         from number to MMIX_rJ_REGNUM.
10760         (TARGET_MASK_BRANCH_PREDICT): New.
10761         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10762         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10763         value.  Add -mbranch-predict and -mno-branch-predict.
10764         (TARGET_VERSION): Drop date.
10765         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10766         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10767         for finding out global symbols.
10768         (mmix_asm_output_labelref): Revert condition for global symbol.
10769         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10770         (mmix_print_operand_punct_valid_p): A '+' is valid.
10771
10772 See ChangeLog.6 for earlier changes.