OSDN Git Service

2002-04-22 Joel Sherrill <joel@OARcorp.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-22      Joel Sherrill <joel@OARcorp.com>
2
3         * gthr-rtems.h: Correct prototypes to remove warnings.
4
5 2002-04-22  Richard Henderson  <rth@redhat.com>
6
7         PR c/6344
8         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9
10         * gcse.c (free_insn_expr_list_list): New.
11         (clear_modify_mem_tables): Use it.  Fix bit set usage.
12         (canon_list_insert): Use EXPR_LISTs for expressions.
13         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
14
15 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16
17         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
18         file change and include code to _cpp_pop_buffer.
19         * cpphash.h (struct pending_option): Predeclare.
20         (struct cpp_reader): New member next_include_file.
21         (_cpp_pop_file_buffer): Update.
22         (_cpp_push_next_buffer): Update, rename.
23         * cppinit.c (cpp_destroy): Free include chain and pending here.
24         (cpp_finish_options): Simplify.
25         (_cpp_push_next_buffer): Rename and clean up.
26         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
27         Clarify.
28         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
29
30 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
31
32         * config/rs6000/altivec.h (vec_xor): Add variant for both args
33         being vector signed int.
34         (vec_andc): Same.
35         (vec_xor): Add variant for both args being vector signed char.
36         Remove redundant variant.
37         (vec_andc): Same.
38
39 2002-04-21  David S. Miller  <davem@redhat.com>
40
41         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
42         compare mode in output RTL.
43
44 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
45
46         * config/rs6000/rs6000.c (rs6000_override_options): Correct
47         style and formatting of previous patch.
48
49 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
50
51         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
52         flag_pic for ABI_AIX.
53
54 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
55
56         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
57         * cppfiles.c (read_include_file): Similarly.
58         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
59         uxstrdup ustrchr, ufputs): Similarly.
60         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
61         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
62         cpp_ideq, parse_identifier, parse_number): Similarly.
63         * cpplib.c (struct directive, dequote_string, D, run_directive,
64         cpp_push_buffer): Similarly.
65         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
66         _cpp_create_definition, check_trad_stringification,
67         cpp_macro_definition): Similarly.
68
69 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
70
71         * cppmacro.c (funlike_invocation_p): Don't step back
72         over CPP_EOF.
73
74 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
75
76         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
77         labelno.
78
79 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
80
81         * doc/invoke.texi: Remove Chill references.
82         * doc/gcc.texi: Update last modified date.
83
84 2002-04-20  Kazu Hirata  <kazu@hxi.com>
85
86         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
87         push and pop.  Replace add.l with add.w.
88
89 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
90
91         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
92         multiply instructions for H8/300H case.
93
94 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
95
96         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
97         Bum three instructions from each routine.
98
99 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
100
101         * Makefile.in: Update.
102         * decl.c (push_c_function_context, pop_c_function_context,
103         mark_c_function_context): Rename for consistency.
104         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
105         * c-tree.h (push_c_function_context, pop_c_function_context,
106         mark_c_function_context): Rename for consistency.
107         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
108         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
109         * function.c (init_lang_status, save_lang_status,
110         restore_lang_status, mark_lang_status, free_lang_status):
111         Move to langhooks.h.
112         (push_function_context_to, pop_function_context_from,
113         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
114         Update.
115         * function.h (init_lang_status, save_lang_status,
116         restore_lang_status, mark_lang_status, free_lang_status):
117         Move to langhooks.h.
118         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
119         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
120         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
121         LANG_HOOKS_FUNCTION_INITIALIZER): New.
122         (LANG_HOOKS_INITIALIZER): Update.
123         (lhd_do_nothing_f): New.
124         * langhooks.h (struct lang_hooks_for_functions): New.
125         (struct lang_hooks): New hooks.
126         * langhooks.c (lhd_do_nothing_f): New.
127 objc:
128         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
129         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
130
131 2002-04-19  David S. Miller  <davem@redhat.com>
132
133         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
134         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
135
136 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
137
138         PR optimization/3756
139         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
140         x = ((int) y < 0) ? cst1 : cst2.
141
142 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
143
144         PR c/6358
145         * function.c: Reapply patch for c/6358.
146         (expand_function_end): Copy decl_rtl's mode, not
147         current_function_return_rtx mode.
148
149 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
150
151         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
152         targets.
153
154 2002-04-19  Tom Tromey  <tromey@redhat.com>
155
156         * doc/install.texi (Specific): Update status of Solaris 2.8.
157         For PR libgcj/6158.
158
159 2002-04-19  Andreas Schwab  <schwab@suse.de>
160
161         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
162         (PUT_REAL): Restore old definition.
163
164 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
165             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
166
167         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
168         binutils 2.11.2 and higher generate smaller binaries than Sun's
169         native tools.
170
171 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
172
173         PR c++/6352
174         * toplev.c (rest_of_compilation): Do not defer functions for which
175         TREE_SYMBOL_REFERENCED has already been set.
176
177 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
178
179         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
180         alternative.
181
182 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
183
184         * builtins.c: Include langhooks.h.
185         (lang_type_promotes_to): Remove.
186         (expand_builtin_va_arg): Use new hook.
187         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
188         (simple_type_promotes_to): Move to c-typeck.c.
189         * c-common.h (simple_type_promotes_to): Remove.
190         * c-decl.c (duplicate_decls, grokdeclarator): Update.
191         * c-format.c: Include langhooks.h.
192         (check_format_types): Update.
193         * c-tree.h (c_type_promotes_to): New.
194         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
195         (type_lists_compatible_p): Update.
196         * langhooks-def.h (lhd_type_promotes_to): New.
197         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
198         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
199         * langhooks.c (lhd_type_promotes_to): New.
200         * langhooks.h (struct lang_hooks_for_types): New hook.
201         * tree.h (lang_type_promotes_to): Remove.
202 objc:
203         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
204
205 2002-04-18  Richard Henderson  <rth@redhat.com>
206
207         * function.c: Revert patch for c/6358.
208
209 2002-04-18  Richard Henderson  <rth@redhat.com>
210
211         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
212         blocks.  Handle multiple references to the TRAP block.  Handle
213         non-adjacent THEN and OTHER blocks.
214
215 2002-04-18  Richard Henderson  <rth@redhat.com>
216
217         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
218         crash with no type for by-mode libcalls.
219
220         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
221
222 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
223
224         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
225         __xtensa_nonlocal_goto): Use a syscall instructions to flush
226         the register windows.
227
228 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
229
230         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
231         appropriate.  Document need for extended precision even when
232         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
233         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
234         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
235         instead of relying on later syntax error when REAL_WIDTH > 5.
236         * real.c: Define NE based only on whether or not we have a
237         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
238         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
239         define GET_REAL and PUT_REAL as simple memcpy operations; no
240         need to byteswap or round.
241         Use #error instead of #ifdef-ing out the entire file, for
242         prompt error detection.
243
244         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
245
246 2002-04-18  David S. Miller  <davem@redhat.com>
247
248         * config/sparc/sparc.h (BRANCH_COST): Define.
249
250         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
251         does it.
252
253 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
254
255         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
256         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
257         propagate_block calls after relaxation loop using new variable
258         stabilized_prop_flags.
259
260 2002-04-18  Richard Henderson  <rth@redhat.com>
261
262         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
263         (ia64_va_arg): Expect variable sized types by reference.
264         * config/ia64/ia64-protos.h: Update.
265         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
266         ia64_function_arg_pass_by_reference.
267
268 2002-04-18  Richard Henderson  <rth@redhat.com>
269
270         * ifcvt.c: Include except.h.
271         (block_has_only_trap): Break out from find_cond_trap.
272         (find_cond_trap): Use it.  Always delete the trap block.
273         (merge_if_block): Allow then block null.  Be less simplistic about
274         what insns can end a block.
275         * Makefile.in (ifcvt.o): Depend on except.h.
276
277         * config/ia64/ia64.md (trap, conditional_trap): New.
278
279 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
280
281         PR c/6358
282         * function.c (assign_parms): Assign hard current_function_return_rtx
283         register here...
284         (expand_function_end): ...not here.
285
286 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
287
288         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
289         * c-tree.h (c_incomplete_type_error): New.
290         * c-typeck.c (require_complete_type, build_component_ref): Update.
291         (incomplete_type_error): Rename.
292         * langhooks-def.h (lhd_incomplete_type_error): New.
293         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
294         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
295         * langhooks.c (lhd_incomplete_type_error): New.
296         * langhooks.h (struct lang_hooks_for_types): New hook.
297         * tree.c (size_in_bytes): Use new hook.
298         * tree.h (incomplete_type_error): Remove.
299 objc:
300         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
301
302 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
303
304         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
305         TARGET_FLOAT_FORMAT blocks.
306
307 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
308
309         * doc/install.texi (Downloading the source): Do not mention Chill
310         any longer, but mention Ada.
311         (Configuration): Do not mention Chill any longer.
312
313 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
314
315         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
316
317 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
318
319         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
320         in last patch.
321
322 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
323
324         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
325         instead of unsigned_type.
326
327 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
328
329         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
330         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
331         later.
332
333 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
334
335         * attribs.c (vector_type_node_list): New static variable.
336         (handle_vector_size_attribute): Use it to avoid generating a
337         new type node each time we are called.
338
339         * combine.c (subst): Avoid trying to make a vector mode subreg of
340         an integer constant.
341         (gen_lowpart_for_combine): Likewise.
342
343 2002-04-18  Roger Sayle  <roger@eyesopen.com>
344             Jakub Jelinek  <jakub@redhat.com>
345
346         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
347         for integer constant c (if x has unsigned type or sign bit is not
348         set in c).  This folds the zero/sign extension into the bit-wise and
349         operation.
350
351 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
352
353         PR middle-end/6205
354         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
355         otherwise xorps.
356
357 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
358
359         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
360
361 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
362
363         * gcc.c (read_specs): Detect and fail if an attempt is made to
364         rename a spec string to an already existing string.
365
366 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
367
368         * config/s390/s390.c (legitimize_pic_address): Do not generate
369         illegal address constant without CONST.
370
371 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
372
373         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
374         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
375
376 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
377
378         PR optimization/6305
379         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
380         to make sure previous reloads are taken into account.  Generate
381         better code if one operand is an in-range immediate constant.
382
383 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
384
385         * doc/install.texi (Building): libgcj requires GNU make.
386
387 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
388
389         PR bootstrap/6315
390         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
391         even if hard quad and register is not floating.
392         (movtf reg<-mem split): Disallow splitting if hard quad and
393         register is floating.
394         (movtf mem<-reg split): Likewise.
395         * config/sparc/sparc.c (fp_register_operand): New predicate.
396         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
397
398 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
399
400         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
401         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
402         (unprotoize.o): Ditto.  Build from protoize.c.  Define
403         UNPROTOIZE on command line.
404         * protoize.c: Include cppdefault.h.  Delete include_defaults.
405         (in_system_include_dir): Use cpp_include_defaults (defined in
406         cppdefault.o).
407         * unprotoize.c: Delete file.
408
409 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
410
411         * config/rs6000/altivec.h (vec_ld): Add array variants.
412         (vec_lde): Same.
413         (vec_ldl): Same.
414
415 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
416             Aldy Hernandez <aldyh@redhat.com>
417
418         * config/rs6000/altivec.h: Define __ALTIVEC__.
419         (bool): New.
420         (__pixel): New.
421         (pixel): New.
422         (vec_cfux): New.
423         (vec_vmaddfp): New.
424         (vec_vsldoi): New.
425         Add parentheses to all macro arguments.
426
427 2002-04-16  Richard Henderson  <rth@redhat.com>
428
429         PR c++/6320
430         * except.c (remove_eh_handler): Insert inner regions at beginning
431         of sibling chain.  Refactor expressions.
432
433 2002-04-16  Richard Henderson  <rth@redhat.com>
434
435         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
436         * config/sparc/sol2-gas-bi.h: New file.
437         * config.gcc (sparc*-solaris): Add it as needed.
438         * configure.in (AS_SPARC64_FLAG): Remove check.
439         * config.in, configure: Regenerate.
440
441         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
442
443 2002-04-16  Richard Henderson  <rth@redhat.com>
444
445         * config/mips/mips.c (override_options): Don't override N32 for
446         a 64-bit ISA.
447
448         PR 6202
449         * config/mips/mips.md (can_delay): Split out of existing define_delays.
450         (HILO_delay): Set can_delay false.
451
452 2002-04-16  Dale Johannesen <dalej@apple.com>
453
454         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
455         instruction addresses.
456         (rs6000_output_function_epilogue): Likewise.
457
458 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
459
460         * c-parse.in (poplevel, compstmt_start,
461         compstmt_primary_start): Add ending ';', in accordance
462         with POSIX.
463
464 2002-04-16  Richard Henderson  <rth@redhat.com>
465
466         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
467         Adjust tm_file order to get TARGET_DEFAULT set properly.
468         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
469         * doc/install.texi (sparc-solaris): Update.
470
471 2002-04-16  Dale Johannesen <dalej@apple.com>
472
473         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
474         comparison operands do not match each other or if modes of
475         conditions do not match result.
476
477 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
478
479         PR target/6305
480         * config/s390/s390.md (mulsidi3): Set both subregs of the
481         multiword register.
482
483 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
484
485         * config/rs6000/altivec.h (vec_addc): Type check.
486
487 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
488
489         PR middle-end/6279
490         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
491
492         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
493
494 2002-04-15  Richard Henderson  <rth@redhat.com>
495
496         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
497         call_really_used_regs too.
498
499 2002-04-15  Richard Henderson  <rth@redhat.com>
500
501         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
502
503 2002-04-15  David S. Miller  <davem@redhat.com>
504
505         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
506         as being CLOBBERed.
507
508 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
509
510         PR c/6290
511         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
512         CONST_VECTOR is { 0, ... 0 }.
513
514 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
515
516         * doc/install.texi (Installing GCC: Configuration): Clarify
517         the only supported ways to configure gcc.
518
519 2002-04-15  Roland McGrath  <roland@frob.com>
520
521         * config.gcc (alpha*-*-gnu*): New target configuration.
522         * config/alpha/gnu.h: New file for it.
523         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
524
525 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
526
527         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
528         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
529         * tree.h (expand_start_stmt_expr): Update prototype.
530         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
531         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
532         on the STMT_EXPR created for the inline function.
533
534 2002-04-15  Richard Henderson  <rth@redhat.com>
535
536         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
537         config/i386/linux-aout.h, config/i386/linux-oldld.h,
538         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
539         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
540         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
541         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
542         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
543         Define __gnu_linux__, not gnu_linux.
544         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
545
546 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
547
548         Remove Chill front end.
549         * gcc.c (default_compilers): Remove Chill entries.
550         * ch: Remove directory.
551         * doc/frontends.texi: Remove information about Chill.
552         * doc/sourcebuild.texi: Likewise.
553         * doc/standards.texi: Likewise.
554
555 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
556
557         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
558         (LONGLONG_STANDALONE): Define.
559
560 2002-04-15  David S. Miller  <davem@redhat.com>
561
562         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
563         Call emit_library_call with LCT_NORMAL.
564         (sparc_initialize_trampoline): Use LCT_foo instead of
565         magic constant in emit_library_call invocations.
566         (sparc64_initialize_trampoline): Likewise.
567         (sparc_profile_hook): Likewise.
568         * config/sparc/sparc.md: Likewise.
569
570         * config/sparc/sparc.c (sparc_extra_constraint_check):
571         Fix type of argument 'c'.
572         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
573         Likewise.
574
575 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
576
577         * diagnostic.h (output_buffer_state): Redefine.
578         (output_format_decoder): New macro.
579         (output_prefixing_rule): Likewise.
580         (output_line_cutoff): Likewise.
581         (diagnostic_format_decoder): Adjust.
582         (diagnostic_prefixing_rule): Likewise.
583         (diagnostic_line_cutoff): Likewise.
584         (diagnostic_state): Likewise.
585         (diagnostic_kind_count): Likewise.
586         (diagnostic_buffer): Now a macro.
587
588         * diagnostic.c (diagnostic_buffer): Remove definition.
589         (output_is_line_wrapping): Adjust.
590         (set_real_maximum_length): Likewise.
591         (output_set_maximum_length): Likewise.
592         (init_output_buffer): Likewise.
593         (lhd_print_error_function): Likewise.
594         (output_do_verbatim): Likewise.
595
596 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
597
598         * cpperror.c (print_location): Don't print include chain
599         if line == 0.
600         (cpp_begin_message): Update to use DL_ macros.
601         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
602         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
603         cpp_notice, cpp_notice_from_errno): Remove.
604         (cpp_error, cpp_error_with_line): Update to take a diagnostic
605         level.
606         (cpp_errno): New.
607         * cppexp.c (CPP_ICE): Remove.
608         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
609         lex, integer_overflow, _cpp_parse_expr): Update.
610         * cppfiles.c (read_include_file, find_include_file,
611         handle_missing_header, _cpp_read_file, remap_filename): Update.
612         * cpphash.h (enum error_type): Remove.
613         (_cpp_begin_message): Update.
614         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
615         cpp_handle_option, cpp_post_options): Update.
616         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
617         skip_whitespace, parse_identifier, parse_slow, parse_string,
618         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
619         cpp_interpret_charconst): Update.
620         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
621         lex_macro_node, do_undef, glue_header_name, parse_include,
622         do_include_common, read_flag, do_line, do_linemarker, do_ident,
623         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
624         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
625         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
626         _cpp_pop_buffer, do_diagnostic): Update.
627         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
628         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
629         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
630         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
631         cpp_notice, cpp_notice_from_errno): Remove.
632         (cpp_error, cpp_error_with_line): Update to take a diagnostic
633         level.
634         (cpp_errno): New.
635         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
636         collect_args, enter_macro_context, save_parameter, parse_params,
637         _cpp_create_definition, check_trad_stringification,
638         cpp_macro_definition): Update.
639         * cppmain.c (cpp_preprocess_file): Update.
640         * fix-header.c (read_scan_file): Update.
641
642 2002-04-14  Andreas Schwab  <schwab@suse.de>
643
644         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
645
646 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
647
648         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
649
650 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
651
652         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
653         not gnu_hurd.
654
655 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
656
657         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
658
659 2002-04-13      Joel Sherrill <joel@OARcorp.com>
660
661         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
662         sparc-elf and sparc-rtems targets.
663
664 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
665
666         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
667         defined, and __gnu_hurd__ wherever __GNU__ is defined.
668         * arm/linux-elf.h: Likewise.
669         * cris/aout.h: Likewise.
670         * cris/linux.h: Likewise.
671         * i370/linux.h: Likewise.
672         * i386/gnu.h: Likewise.
673         * i386/linux-aout.h: Likewise.
674         * i386/linux-oldld.h: Likewise.
675         * i386/linux.h: Likewise.
676         * i386/linux64.h: Likewise.
677         * ia64/linux.h: Likewise.
678         * m68k/linux-aout.h: Likewise.
679         * m68k/linux.h: Likewise.
680         * mips/linux.h: Likewise.
681         * pa/pa-linux.h: Likewise.
682         * pj/linux.h: Likewise.
683         * rs6000/sysv4.h: Likewise.
684         * s390/linux.h: Likewise.
685         * sh/linux.h: Likewise.
686         * sparc/linux-aout.h: Likewise.
687         * sparc/linux.h: Likewise.
688         * sparc/linux64.h: Likewise.
689         * xtensa/linux.h: Likewise.
690
691 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
692
693         * stmt.c (check_unique_operand_names): Expect operand names to
694         be strings rather than identifiers.  Use simple_cst_equal to
695         compare them.
696         (resolve_operand_name_1): Make same identifier to string change here.
697         * c-parse.in (asm_operand): Convert a named operand into a string.
698         * cp/parse.y (asm_operand): Likewise.
699
700 2002-04-13  Andreas Schwab  <schwab@suse.de>
701
702         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
703
704 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
705
706         Revert these changes:
707
708         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
709
710         PR c++/5571
711         * stor-layout.c (layout_decl): Reset the RTL for the decl.
712
713 2002-04-12  Richard Henderson  <rth@redhat.com>
714
715         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
716         (sparc*-*-solaris): Clean up header files.
717         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
718         and plan on generating 64-bit code.
719         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
720         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
721         * config/sparc/sol2-sld-64.h: Rename ...
722         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
723         for AS_SPARC64_FLAG not defined.
724         * config/sparc/sol2-gld-bi.h: New.
725         * config/sparc/sol2-sld.h: Remove.
726         * config/sparc/sol26-sld.h: New.
727         * config/sparc/sol2.h: Tidy comments.
728         * doc/install.texi: Document sparc-solaris configury changes.
729
730 2002-04-12  Richard Henderson  <rth@redhat.com>
731
732         * recog.c (offsettable_address_p): Match the logic in adjust_address.
733
734         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
735         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
736
737 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
738
739         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
740
741 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
742
743         * pa.c (pa_can_combine_p): Call extract_insn before calling
744         constrain_operands.
745
746 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
747
748         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
749         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
750         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
751         (CPP_PREDEFINES): Handle __declspec.
752         * config/i386/t-interix (USER_H): Remove.
753
754 2002-04-12  DJ Delorie  <dj@redhat.com>
755
756         * integrate.c (compare_blocks): Make comparisons safe for when
757         sizeof(int) < sizeof(char *).
758         (find_block): Likewise.
759
760 2002-04-12  Jan Hubicka  <jh@suse.cz>
761             David Edelsohn  <edelsohn@gnu.org>
762
763         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
764         registers.
765         (symbol_ref_operand): New.
766         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
767         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
768
769 2002-04-12  Andreas Schwab  <schwab@suse.de>
770
771         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
772         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
773         overrides the definition in config/svr4.h.
774
775 2002-04-12      Eric Norum <eric.norum@usask.ca>
776
777         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
778         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
779         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
780         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
781         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
782         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
783         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
784         definitions to config/rtems.h and make the targets more similar.
785
786 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
787
788         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
789         POINTERS_EXTEND_UNSIGNED.
790         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
791         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
792
793         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
794         not specified.
795
796 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
797
798         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
799         depends on TARGET_SHMEDIA, not TARGET_SH5.
800
801 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
802
803         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
804         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
805
806 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
807
808         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
809         no r0 clobber.
810
811 2002-04-12  Andreas Schwab  <schwab@suse.de>
812
813         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
814
815 2002-04-12  Richard Henderson  <rth@redhat.com>
816
817         PR bootstrap/4191
818         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
819
820         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
821         modes spanning multiple hard regs.
822
823         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
824
825 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
826
827         * pa.c (pa_output_function_prologue): Don't accumulate the total
828         number of code bytes when using TARGET_64BIT, or gas, SOM and not
829         the portable runtime.
830         (output_deferred_plabels): Handle 64bit plabels.
831         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
832         generating pic code using the GAS assembler for object formats that
833         are not SOM (ie., ELF32 and ELF64).
834         (output_millicode_call): Check attribute type if attribute length is 28.
835         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
836         dbr_sequence_length once.
837         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
838         dbr_sequence_length once.
839         * pa.h (TARGET_SOM): Define if not defined.
840         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
841         with GAS and not SOM.
842         (jump, call_internal_reg, call_value_internal_reg): Likewise.
843         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
844
845 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
846
847         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
848         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
849         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
850         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
851         elfos.h and dbxelf.h values are fine now.
852         * config/i386/freebsd.h, config/alpha/freebsd.h
853         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
854
855 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
856
857         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
858         or set Acpu or Amachine.  Reformat.
859         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
860         define.
861         (LINK_SPEC): Do not need to undef.
862         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
863         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
864         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
865         define.
866         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
867         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
868         (LINK_SPEC): Do not need to undef.
869         (DONT_USE_BUILTIN_SETJMP): Do not define.
870         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
871         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
872         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
873         Remove trailing spaces.
874         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
875         __ELF__, or set Acpu or Amachine.  Reformat.
876         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
877         define.
878
879 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
880
881         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
882         all other *-*-freebsd* targets.
883
884 2002-04-11  Richard Henderson  <rth@redhat.com>
885
886         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
887
888 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
889
890         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
891         Include {cpu}/{cpu}.h thru tm_file.
892         (alpha*-*-linux*ecoff): Remove target.
893         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
894         (LINK_SPEC): Remove, is not OS independent.
895         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
896         (LINK_SPEC): Do not need to #undef any longer.
897         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
898         any longer.
899         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
900         __ELF__.
901         (LINK_SPEC): Moved here from alpha/elf.h.
902         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
903         SUB_CPP_PREDEFINES.
904         * config/alpha/linux-ecoff.h: Remove.
905         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
906         (CPP_SPEC): Define _POSIX_SOURCE as needed.
907         (CPP_SUBTARGET_SPEC): Do not define.
908         (LINK_SPEC): Do not need to #undef any longer.
909         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
910         * config/alpha/vms.h: Likewise.
911
912 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
913
914         * doc/extend.texi: Remove old claim that typedefs cannot have
915         an alignment attribute.
916
917 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
918
919         PR optimization/6177
920         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
921         bitpos is 0 and bitsize CONCAT size.
922
923 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
924
925         PR c/6223
926         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
927
928 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
929
930         * config/alpha/freebsd.h: Minor reformatting.
931         (CPP_SPEC): Define ELF and add cpp_subtarget.
932         (ASM_SPEC): No longer needed.
933
934 2002-04-11  Richard Henderson  <rth@redhat.com>
935
936         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
937         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
938         (dimode mem/zero splitter): New.
939
940 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
941
942         * config/cris/cris.c (cris_override_options): Tweak error message
943         for PIC not implemented.
944
945         * config/cris/cris.h: Tweak comments related to parameter-passing.
946
947         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
948
949 2002-04-10  Richard Henderson  <rth@redhat.com>
950
951         * except.c (add_ehl_entry): Allow duplicates after landing pad
952         creation.
953
954 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
955
956         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
957
958 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
959
960         * c-decl.c (c_init_decl_processing): Move generation of
961         decls for g77_integer_type_node and friends from here ...
962         * c-common.c (c_common_nodes_and_builtins): ... to here.
963
964 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
965
966         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
967         is only used as frame pointer when frame_pointer_needed is true.
968
969 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
970
971         PR target/817
972         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
973         for the fact that the pool entry uses two words.
974         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
975         1k bytes.
976         (movdf_soft_insn): Similarly.
977         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
978         for the fact that the pool entry uses three words.
979
980 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
981
982         * config/mips/mips.c (mips_va_arg): When using the struct version
983         of the EABI va_list, allow arguments in the register save area to
984         take up less room than a stack argument.
985
986 2002-04-10  Richard Henderson  <rth@redhat.com>
987
988         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
989         if EXPAND_INITIALIZER.
990
991 2002-04-09  Richard Henderson  <rth@redhat.com>
992
993         * config/alpha/alpha.md (movdi_er_maybe_g): New.
994         * config/alpha/alpha.c (alpha_expand_mov): Use it.
995
996 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
997
998         PR optimization/6233
999         * rtlanal.c (pure_call_p): New function.
1000         * rtl.h (pure_call_p): Declare.
1001         * loop.c (prescan_loop): Use it to set has_nonconst_call.
1002         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1003
1004 2002-04-09  Eric Christopher  <echristo@redhat.com>
1005
1006         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1007         information to .comm directive.
1008
1009 2002-04-09  Richard Henderson  <rth@redhat.com>
1010
1011         PR c/5078
1012         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1013
1014 2002-04-09  Richard Henderson  <rth@redhat.com>
1015
1016         * basic-block.h (flow_delete_block_noexpunge): Declare.
1017         (expunge_block_nocompact): Declare.
1018         * cfg.c (expunge_block_nocompact): Split out from ...
1019         (expunge_block): ... here.
1020         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1021         (flow_delete_block_noexpunge): Split out from ...
1022         (flow_delete_block): ... here.
1023         * cfgcleanup.c (delete_unreachable_blocks): Compact while
1024         removing dead blocks.
1025         * except.c (exception_handler_labels): Remove.
1026         (exception_handler_label_map): New.
1027         (struct eh_region): Add aka member.
1028         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1029         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1030         (for_each_eh_label, for_each_eh_label_1): New.
1031         (init_eh): Register exception_handler_label_map.
1032         (free_eh_status): Use free_region.
1033         (find_exception_handler_labels): Use the map, not the list.
1034         (remove_exception_handler_label): Likewise.
1035         (maybe_remove_eh_handler): Likewise.
1036         (remove_eh_handler): Use the region aka bitmap.
1037         * except.h (exception_handler_labels): Remove.
1038         (for_each_eh_label): Declare.
1039         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1040         * loop.c (invalidate_loops_containing_label): New.
1041         (find_and_verify_loops): Use it.  Use for_each_eh_label.
1042         * sched-rgn.c (is_cfg_nonregular): Use
1043         current_function_has_exception_handlers.
1044
1045 2002-04-09  Richard Henderson  <rth@redhat.com>
1046
1047         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1048         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1049         Do not return changed status.
1050         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1051         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1052         New functions that do return changed status.
1053         * sbitmap.h: Update decls.
1054         * gcse.c, lcm.c: Use _cg functions as needed.
1055
1056 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1057
1058         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1059         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1060         * config/sh/embed_bb.c: New file.
1061         * config/sh/embed-elf.h: New file.
1062         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1063         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1064         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1065         __PTRDIFF_TYPE__ .
1066         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1067         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1068         Add subtarget_asm_endian_spec.
1069         (ASM_SPEC): Use subtarget_asm_endian_spec.
1070         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1071         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1072         (WCHAR_UNSIGNED): Define.
1073         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1074         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1075         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1076         Fix value.
1077         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1078         (sh_adjust_cost): Likewise.
1079         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1080         __PTRDIFF_TYPE__ .
1081         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1082         (WCHAR_TYPE_SIZE): Likewise.
1083         (ASM_SPEC): Use subtarget_asm_endian_spec.
1084         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1085         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1086         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1087         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1088         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1089         (USER_LABEL_PREFIX): Don't #undef /#define .
1090         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1091         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1092         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1093         (ASM_SPEC): Likewise.
1094         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1095         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1096         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1097         (LIB2FUNCS_EXTRA): Define.
1098         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1099         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1100         (LIB1ASMFUNCS_CACHE): Define.
1101         (LIB2FUNCS_EXTRA): Redefine empty.
1102
1103 2002-04-08  Richard Henderson  <rth@redhat.com>
1104
1105         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1106
1107 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1108
1109         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1110         and optimize for size.
1111         (__do_global_ctors): Fix pointer comparison.
1112         (__do_global_dtors): Likewise.
1113
1114 2002-04-09  David S. Miller  <davem@redhat.com>
1115
1116         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1117         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1118         allow reloading pseudos.
1119         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1120         * config/sparc/sparc-protos.h: Declare it.
1121
1122         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1123         unsigned comparison warning.
1124         (output_restore_regs): Mark leaf_function as unused.
1125
1126 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1127
1128         * expr.c (is_aligning_offset): New function.
1129         (expand_expr, case COMPONENT_EXPR): Call it.
1130
1131 2002-04-08  David S. Miller  <davem@redhat.com>
1132
1133         PR target/6082
1134         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1135
1136         Make init_priority work on Sparc when using GNU ld.
1137         * config/sparc/linux.h, config/sparc/linux64.h,
1138         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1139         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1140         * config/sparc/sol2-gld.h: New file to do the same.
1141         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1142         sparc/sol2-gld.h to tm_file.
1143
1144         PR optimization/4328
1145         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1146         * doc/md.texi: Document it.
1147         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1148         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1149         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1150         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1151         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1152
1153 2002-04-08  Andreas Jaeger  <aj@suse.de>
1154
1155         * stmt.c (expand_asm_operands): Revert last patch from Richard
1156         Henderson.
1157
1158 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1159
1160         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1161         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1162
1163 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1164
1165         * doc/contrib.texi (Contributors): Add David O'Brien.
1166
1167 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1168
1169         * configure.in (auto-build.h): Use target_alias and build_alias
1170         when running configure.
1171         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1172         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1173         * configure: Regenerate.
1174
1175 2002-04-07  David S. Miller  <davem@redhat.com>
1176
1177         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1178
1179 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1180
1181         PR 5933
1182         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1183         generating 32-bit pic code.
1184
1185 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1186
1187         * cppinit.c (cpp_create_reader): Initialize
1188         discard_comments_in_macro_exp.
1189         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1190         (cpp_handle_option): Handle "-CC" option.
1191         * cpplex.c (save_comment): If saving a C++ comment in
1192         a directive, convert it to a C comment.
1193         (_cpp_lex_direct): Pass second comment start character to
1194         save_comment to indicate comment type.
1195         * cpplib.c (_cpp_handle_directive): If processing
1196         a "#define" directive and discard_comments_in_macro_exp
1197         is false,  re-enable saving of comments.
1198         (lex_macro_node): If discard_comments_in_macro_exp is false,
1199         discard any comments before the macro identifier.
1200         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1201         member.
1202         * cppmacro.c (cpp_get_token): If expanding a macro while
1203         processing a directive, discard any comments we might encounter.
1204         (parse_params): If discard_comments_in_macro_exp is false,
1205         ignore comments in the macro parameter list.
1206         * gcc.c (cpp_unique_options): Add "-CC" option.
1207         (option_map): Map "--comments-in-macros" to "-CC".
1208         * doc/cppopts.texi: Document "-CC" option.
1209         * f/lang-specs.h: Add "-CC" option.
1210         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1211         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1212         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1213         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1214         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1215         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1216
1217 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1218
1219         PR middle-end/6180
1220         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1221
1222 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1223
1224         PR c++/5571
1225         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1226
1227         PR opt/5120
1228         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1229         RTX_UNCHANGING_P for the functions arguments when a tail call
1230         is made.
1231
1232 2002-04-06  Jason Merrill  <jason@redhat.com>
1233
1234         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1235         (parse_options_and_default_flags): Set them appropriately.
1236         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1237
1238 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1239
1240         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1241         here.
1242
1243         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1244         semicolon.
1245
1246         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1247         types come in by-reference.  Fix typo in comment.
1248
1249 2002-04-05  David S. Miller  <davem@redhat.com>
1250
1251         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1252         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1253         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1254         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1255
1256 2002-04-05  David S. Miller  <davem@redhat.com>
1257
1258         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1259         are not going to emit return instructions, emit at least a nop
1260         for the sake of sane backtraces.
1261
1262 2002-04-05  Richard Henderson  <rth@redhat.com>
1263
1264         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1265
1266 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1267
1268         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1269
1270 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1271
1272         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1273         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1274         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1275
1276 2002-04-05  Andreas Schwab  <schwab@suse.de>
1277
1278         * c-convert.c: Include c-common.h.
1279         * Makefile.in (c-convert.o): Updated.
1280
1281 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1282
1283         * mklibgcc.in: Use separate libgcc.map for each multilib.
1284         * Makefile.in (distclean): Don't remove libgcc.map here.
1285
1286 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1287
1288         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1289         genmultilib invocation.
1290
1291 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1292
1293         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1294         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1295         to num_gprs for symmetry.
1296         * config/mips/mips.c: Adjust accordingly.
1297
1298 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1299
1300         * c-common.c (truthvalue_conversion): Rename, update.
1301         * c-common.h (c_common_truthvalue_conversion): New.
1302         * c-convert.c (convert): Update.
1303         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1304         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1305         * c-typeck.c (build_binary_op, build_unary_op,
1306         build_conditional_expr): Update.
1307         * fold-const.c (constant_boolean_node, fold): Use langhook.
1308         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1309         * langhooks.h (struct lang_hooks): New hook.
1310         * stmt.c (expand_decl_cleanup): Use langhook.
1311         * tree.h (truthvalue_conversion): Remove.
1312 objc:
1313         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1314
1315 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1316
1317         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1318         Add rules to make null object file.
1319
1320 2002-04-04  Jim Blandy  <jimb@redhat.com>
1321
1322         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1323         macro formal parameter names.
1324
1325 2002-04-04  David S. Miller  <davem@redhat.com>
1326
1327         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1328
1329 2002-04-04  Richard Henderson  <rth@redhat.com>
1330
1331         PR middle-end/5099
1332         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1333         Support copies into and out of memory.  Don't accept allows_reg
1334         and allows_mem as gospel.
1335
1336 2002-04-04  Richard Henderson  <rth@redhat.com>
1337
1338         PR opt/6165
1339         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1340         (write_dependence_p): Likewise.
1341
1342 2002-04-04  Richard Henderson  <rth@redhat.com>
1343
1344         * predict.c (estimate_bb_frequencies): Do frequency calculation
1345         with a volatile temporary.
1346
1347 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1348
1349         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1350
1351 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1352
1353         PR c++/6119
1354         * final.c (final_start_function): Don't bump profile_label_no here...
1355         (final_end_function): ...but here.
1356
1357 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1358
1359         * config/sparc/sparc.md (pic): New attribute.
1360         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1361         into stack slots.
1362         (split after do_builtin_setjmp_setup): New.
1363
1364 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1365
1366         PR fortran/6106
1367         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1368         change.
1369
1370 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1371
1372         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1373         UNITS_PER_WORD for zero sized aggregates.
1374
1375 2002-04-03  David S. Miller  <davem@redhat.com>
1376
1377         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1378         one-character spec for this, just use %(link_gcc_c_sequence).
1379
1380 2002-04-03  David S. Miller  <davem@redhat.com>
1381
1382         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1383         handling.
1384
1385 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1386
1387         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1388         (DWARF_FRAME_RETURN_COLUMN): Move.
1389         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1390         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1391         * pa.c (except.h, predict.h): Include.
1392         (FRP): Delete.
1393         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1394         (output_ascii): Add cast.
1395         (store_reg_modify): Revise to add frame notes.
1396         (set_reg_plus_d): Likewise.
1397         (compute_frame_size): Include space for eh data registers in frame if
1398         the current function calls eh_return.
1399         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1400         function calls eh_return.  Save eh data registers if the current
1401         function calls eh_return.  Fix code to add frame notes.  Emit
1402         blockage to prevent insns with frame notes being scheduled in the
1403         delay slot of calls.
1404         (hppa_expand_epilogue): Restore eh data registers and do final stack
1405         adjustment if the current function calls eh_return.  Don't add frame
1406         notes.
1407         (output_call): Revise for change in length of call insn.  Don't do
1408         return pointer adjustment for an unconditional jump in the delay slot
1409         of a call when using frame notes.
1410         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1411         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1412         (ARG_POINTER_CFA_OFFSET): Define.
1413         * pa.md (return_external_pic): New pattern.
1414         (prologue): Correct formatting.  Use return_external_pic if current
1415         function calls eh_return.
1416         (call_internal_symref, call_value_internal_symref,
1417         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1418         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1419         respectively.
1420         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1421
1422         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1423         list of targets to check using "nop" insn.
1424         * configure: Rebuilt.
1425
1426 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1427
1428         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1429
1430 2002-04-03  David S. Miller  <davem@redhat.com>
1431
1432         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1433         library sequence passed to the linker.
1434         (LINK_COMMAND_SPEC): Use it.
1435         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1436         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1437         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1438
1439 2002-04-03  Jason Merrill  <jason@redhat.com>
1440
1441         * except.c (struct eh_status): Remove protect_list.
1442         (begin_protect_partials, end_protect_partials): Remove.
1443         (add_partial_entry): Remove.
1444         * except.h: Remove prototypes.
1445
1446         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1447         expand_decl_cleanup_eh.
1448
1449         PR c++/5636
1450         * tree.h (CLEANUP_EH_ONLY): New macro.
1451         * stmt.c (expand_decl_cleanup_eh): New fn.
1452         (expand_cleanups): Check CLEANUP_EH_ONLY.
1453         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1454         Use expand_decl_cleanup_eh.
1455         (expand_stmt): Adjust.
1456         * c-common.h: Adjust prototype.
1457
1458 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1459
1460         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1461         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1462         (cris_target_asm_function_epilogue): Ditto.
1463         (cris_initial_frame_pointer_offset): Ditto.
1464         (cris_simple_epilogue): Ditto.
1465         (cris_expand_builtin_va_arg): Variable-size types come in
1466         by-reference.
1467
1468 2002-04-03  David S. Miller  <davem@redhat.com>
1469
1470         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1471         little-endian.
1472         (set_fast_math): Correct 'fsr' type.
1473
1474 2002-04-03  Richard Henderson  <rth@redhat.com>
1475
1476         PR opt/3569
1477         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1478         * toplev.c (check_global_declarations): Use it.
1479         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1480         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1481         (LANG_HOOKS_DECLS): Add it.
1482         * langhooks.c (lhd_warn_unused_global_decl): New.
1483         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1484         * c-objc-common.c (c_warn_unused_global_decl): New.
1485         * c-tree.h (c_warn_unused_global_decl): Declare.
1486         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1487
1488 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1489
1490         * langhooks-def.h (lhd_set_decl_assembler_name,
1491         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1492         (LANG_HOOKS_INITIALIZER): Update.
1493         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1494         * langhooks.h (struct lang_hooks): New hook.
1495         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1496         (lang_set_decl_assembler_name): Remove.
1497         (init_obstacks): Don't set hook.
1498         (decl_assembler_name): New function.
1499         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1500         (decl_assembler_name): New.
1501         (lang_set_decl_assembler_name): Remove.
1502
1503 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1504
1505         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1506         works properly with .hidden symbols.
1507         * configure: Rebuilt.
1508         * config.in: Rebuilt.
1509         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1510         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1511         properly with .hidden symbols.
1512
1513 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1514
1515         PR middle-end/6102
1516         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1517         USE argument.
1518
1519 2002-04-03  Richard Henderson  <rth@redhat.com>
1520
1521         PR opt/4120
1522         * sched-rgn.c (sets_likely_spilled): New.
1523         (sets_likely_spilled_1): New.
1524         (add_branch_dependences): Use it.
1525
1526 2002-04-02  Richard Henderson  <rth@redhat.com>
1527
1528         PR opt/4311
1529         * loop.h (LOOP_FIRST_PASS): New.
1530         * loop.c (strength_reduce): Mind it when deciding to unroll.
1531         * toplev.c (rest_of_compilation): Set it.
1532
1533 2002-04-02  David S. Miller  <davem@redhat.com>
1534
1535         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1536         mems_ok_for_ldd_peep when the order of the loads being examined
1537         is reversed.
1538         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1539         existing comment to increase comprehension of this situation.
1540
1541 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1542
1543         * config/sh/sh.md: Don't use union real_extract.
1544
1545 2002-04-02  Richard Henderson  <rth@redhat.com>
1546
1547         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1548
1549 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1550
1551         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1552         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1553         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1554         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1555         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1556         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1557         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1558         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1559         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1560         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1561         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1562         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1563         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1564         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1565         Include as many configury headers via tm_file as possible.  This
1566         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1567         * config/openbsd-oldgas.h: New file.
1568         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1569         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1570         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1571         config/i386/i386-coff.h, config/i386/i386-interix.h,
1572         config/i386/iscdbx.h, config/i386/linux-aout.h,
1573         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1574         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1575         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1576         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1577         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1578         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1579         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1580         config/i386/vxi386.h: Do not directly include configury headers.
1581         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1582         Directly include configury headers that are no longer automatically
1583         included by the above headers.
1584         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1585         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1586         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1587         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1588         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1589         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1590         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1591         (TARGET_VERSION): Define.
1592         * config/i386/beos-elf.h, config/i386/freebsd.h,
1593         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1594         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1595         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1596         config/i386/sco5.h, config/i386/sysv4.h
1597         (TARGET_VERSION): Do not need to protect.
1598         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1599         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1600         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1601         config/i386/i386-interix.h, config/i386/linux-aout.h,
1602         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1603         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1604         (YES_UNDERSCORES): Do not define - not needed.
1605         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1606         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1607         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1608         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1609         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1610         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1611         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1612         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1613
1614 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1615             Richard Henderson  <rth@redhat.com>
1616
1617         PR c/5484
1618         * function.c (assign_temp): Accept either type or decl argument.
1619         Detect variables whose size is too large to fit into an integer.
1620         * stmt.c (expand_decl): Pass the decl, not the type.
1621
1622 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1623
1624         * protoize.c: Match include directory usage with cppdefault.c.
1625
1626 2002-04-03  Jeffrey A Law  (law@redhat.com)
1627             Hans-Peter Nilsson  <hp@bitrange.com>
1628
1629         * combine.c (simplify_comparison): Avoid narrowing a comparison
1630         with a paradoxical subreg when doing so would drop signficant bits.
1631
1632 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1633
1634         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1635         if POINTERS_EXTEND_UNSIGNED is defined.
1636
1637 2002-04-02  Richard Henderson  <rth@redhat.com>
1638
1639         PR opt/3967
1640         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1641         replace regs.
1642
1643 2002-04-02  Richard Henderson  <rth@redhat.com>
1644
1645         * doc/standards.texi: Document required freestanding libc entry points.
1646
1647 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1648
1649         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1650         associated splitter.  Remove MQ constraint.
1651         (ctrdi_internal4): Correct CCmode clobber.
1652
1653 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1654
1655         * milli64.S ($$dyncall): New function.
1656         * t-linux (LIB1ASMFUNCS): Revise module list.
1657         (LIB1ASMSRC): Use pa/milli64.S.
1658
1659 2002-04-02  Richard Henderson  <rth@redhat.com>
1660
1661         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1662         rename solaris_sys_varargs_h.
1663
1664 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1665
1666         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1667         the same mode as its component.
1668
1669 2002-04-02  Richard Henderson  <rth@redhat.com>
1670
1671         PR opt/190
1672         * final.c (this_is_asm_operands): Export.
1673         * output.h (this_is_asm_operands): Declare.
1674         * config/i386/i386.c (print_operand): Error odd asm operands.
1675
1676 2002-04-02  Richard Henderson  <rth@redhat.com>
1677
1678         PR opt/420
1679         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1680
1681 2002-04-01  Richard Henderson  <rth@redhat.com>
1682
1683         PR target/1538
1684         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1685         * fixinc/fixincl.x: Rebuild.
1686
1687 2002-04-01  Richard Henderson  <rth@redhat.com>
1688
1689         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1690         (atomic_alloc, atomic_free): New.
1691         (SIZE, MASK_FOR, PTR_IN): New.
1692         (emergency_reg_state, emergency_reg_state_free): New.
1693         (emergency_labeled_state, emergency_labeled_state_free): New.
1694         (reg_state_alloced, labeled_state_alloced): New.
1695         (alloc_reg_state, free_reg_state): New.
1696         (alloc_label_state, free_label_state, free_label_states): New.
1697         (push, pop, dup_state_stack, free_state_stack): Use them.
1698         (desc_label_state): Likewise.
1699         (uw_frame_state_for): Free label states and state stack.
1700         (uw_update_reg_address): Eliminate warnings.
1701
1702 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1703
1704         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1705         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1706
1707 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1708
1709         * c-decl.c (grokdeclarator): Update.
1710         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1711         * c-tree.h (c_mark_addressable): New.
1712         * c-typeck.c (default_function_array_conversion, build_unary_op,
1713         build_array_ref, convert_for_assignment): Update.
1714         (mark_addressable): Rename.
1715         * calls.c (try_to_integrate, expand_call): Use langhook.
1716         * expr.c (expand_expr): Use langhook.
1717         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1718         * langhooks.h (struct lang_hooks): New hook.
1719         * stmt.c (expand_asm_operands): Use langhook.
1720         * tree.h (mark_addressable): Remove.
1721 objc:
1722         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1723
1724 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1725
1726         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1727         in previous change.
1728
1729 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1730
1731         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1732         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1733
1734 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1735
1736         * c-common.c (unsigned_conversion_warning, convert_and_check,
1737         unsigned_type, signed_type, shorten_compare,
1738         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1739         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1740         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1741         New.
1742         * c-decl.c (grokdeclarator): Update.
1743         * c-format.c (check_format_types): Update.
1744         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1745         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1746         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1747         * convert.c (convert_to_integer): Use new hooks.
1748         * expmed.c (make_tree): Use new hooks.
1749         * expr.c (store_expr): Use new hooks.
1750         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1751         all_ones_mask_p, unextend, fold): Use new hooks.
1752         * langhooks.h (struct lang_hooks_for_types): New hooks.
1753         * tree.h (signed_or_unsigned_type, signed_type,
1754         unsigned_type): Remove.
1755 objc:
1756         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1757         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1758
1759 2002-03-31  Richard Henderson  <rth@redhat.com>
1760
1761         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1762         (desc_frgr_mem): Fix reference to f16-f31.
1763
1764 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1765
1766         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1767         RTVEC_ELT): Const-ify.
1768         * varray.h (VARRAY_CHECK): Const-ify.
1769         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1770         ggc_mark_rtvec, ggc_mark): Const-ify.
1771
1772 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1773
1774         * diagnostic.c: Include langhooks-def.h.
1775         * Makefile.in (diagnostic.o): Update.
1776
1777 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1778
1779         * c-common.c (c_unsafe_for_reeval): Rename.
1780         * c-common.h (c_unsafe_for_reeval): Rename.
1781         * c-decl.c (finish_incomplete_decl): Rename.
1782         (c_init_decl_processing): Don't set langhook.
1783         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1784         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1785         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1786         * c-tree.h (finish_incomplete_decl): Rename.
1787         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1788         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1789         (LANG_HOOKS_INITIALIZER): Update.
1790         * langhooks.c (lhd_unsafe_For_reeval): New.
1791         * langhooks.h (struct langhooks): New hooks.
1792         * toplev.c (incomplete_decl_finalize_hook): Remove.
1793         (wrapup_global_declarations): Update.
1794         * tree.c (lang_unsafe_for_reeval): Remove.
1795         (unsafe_for_reeval): Update.
1796         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1797         Remove.
1798 objc:
1799         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1800         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1801
1802 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1803
1804         * diagnostic.c (print_error_function): Remove.
1805         (default_print_error_function): Rename.
1806         (report_error_function): Update.
1807         * diagnostic.h (print_error_function): Remove.
1808         (default_print_error_function): Remove.
1809         * langhooks-def.h (struct diagnostic_context): Predeclare.
1810         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1811         (LANG_HOOKS_INITIALIZER): Update.
1812         * langhooks.h (struct diagnostic context): Predeclare.
1813         (struct lang_hooks): New hook.
1814
1815 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1816
1817         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1818         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1819         !flag_pic.
1820         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1821         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1822         of PIC_OFFSET_TABLE_REGNUM thruout.
1823         * config/rs6000/rs6000.md: Likewise.
1824         * config/rs6000/darwin.h: Likewise.
1825
1826 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1827
1828         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1829         unsigned HOST_WIDE_INT, not unsigned int.
1830
1831 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1832
1833         PR middle-end/6096, middle-end/6098, middle-end/6099
1834         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1835         CODE_LABELs.
1836         (fill_slots_from_thread): Likewise.
1837
1838 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1839
1840         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1841         floating fields in float regs.
1842         (function_arg_record_value_2): Likewise.
1843
1844 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1845
1846         * config/mmix/mmix.md (define_constants): Remove misleading
1847         FIXME.  Add MMIX_fp_rO_OFFSET.
1848         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1849         saved rO as part of the pattern.  Remove FIXME.
1850         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1851         here, at output-time.
1852
1853 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1854
1855         PR middle-end/6100
1856         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1857         REG_BR_PRED.
1858         (output_v9branch): Likewise.
1859
1860 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1861
1862         * gcc.c: Revert previous patch for now.
1863         * config/i386/djgpp.h: Likewise.
1864
1865 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1866
1867         * config/mmix/crti.asm (_init): Register _fini with atexit.
1868         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1869
1870 2002-03-31  Richard Henderson  <rth@redhat.com>
1871
1872         PR target/3997
1873         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1874         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1875
1876 2002-03-31  Richard Henderson  <rth@redhat.com>
1877
1878         * libgcc2.c (__bb_exit_func): Make static.
1879
1880         * config/alpha/alpha.md (trap): New.
1881
1882 2002-03-31  Richard Henderson  <rth@redhat.com>
1883
1884         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1885         promoted argument types; build trap.
1886         (expand_builtin_trap): New.
1887         (expand_builtin): Use it.
1888         * stmt.c (expand_nl_goto_receivers): Likewise.
1889         * expr.h (expand_builtin_trap): Declare.
1890         * libfuncs.h (LTI_abort, abort_libfunc): New.
1891         * optabs.c (init_optabs): Init abort_libfunc.
1892
1893 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1894
1895         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1896         (LINK_COMMAND_SPEC): ... from here.
1897         (init_gcc_specs): Duplicate it here too, omitting
1898         shared_name in the second copy.
1899         (init_spec): Test for duplicate
1900         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1901
1902 2002-03-30  David S. Miller  <davem@redhat.com>
1903
1904         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1905         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1906
1907 2002-03-30  Roger Sayle <roger@eyesopen.com>
1908             Richard Henderson  <rth@redhat.com>
1909
1910         * regmove.c (combine_stack_adjustments_for_block): Avoid
1911         emitting a stack adjustment of zero bytes.  Let delete_insn
1912         update bb->head.
1913
1914 2002-03-30  Richard Henderson  <rth@redhat.com>
1915
1916         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1917         (sparc_emitting_epilogue): New.
1918         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1919         * config/sparc/sparc-protos.h: Update.
1920         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1921         (TARGET_SWITCHES): Update.
1922         * config/sparc/sparc.md (return): Remove.
1923         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1924         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1925         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1926         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1927         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1928         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1929         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1930         Remove MASK_EPILOGUE.
1931         * doc/invoke.texi: Update.
1932
1933 2002-03-30  Daniel Berlin  <dan@dberlin.org>
1934
1935         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1936         CPP will start the file for us.
1937
1938 2002-03-30  Richard Henderson  <rth@redhat.com>
1939
1940         PR target/5446
1941         * config/ia64/ia64.c (group_barrier_needed_p): Special case
1942         prologue_allocate_stack.
1943         (ia64_single_set): Use insn codes for recognition of special
1944         cases, not rtl matching.
1945         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1946
1947 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
1948
1949         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1950
1951 2002-03-30  Richard Henderson  <rth@redhat.com>
1952
1953         PR target/6032
1954         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1955         or -fomit-frame-pointer with profiling.
1956         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1957         (FUNCTION_PROFILER): Do nothing.
1958         (PROFILE_HOOK): New.
1959         * config/sparc/sparc.c (sparc_override_options): Don't check
1960         code models for profiling.
1961         (sparc_function_profiler): Remove.
1962         (sparc_profile_hook): New.
1963         * config/sparc/sparc-protos.h: Update.
1964
1965 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1966
1967         PR optimization/6086
1968         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1969         of SUBREG of volatile MEM or because the MEM was mode dependent,
1970         return CLOBBER instead of unmodified SUBREG.
1971
1972 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1973
1974         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1975         when not optimizing.
1976
1977         * toplev.c (rest_of_compilation): Cann mark_constant_function
1978         only when optimizing.
1979
1980         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1981         are NULL.
1982
1983         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1984         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1985         (try_optimize_cfg): clear all AUX fields.
1986
1987         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1988         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1989         (ix86_address_cost): Be prepared for SUBREGed registers.
1990         (legitimate_address_p): Accept SUBREGed registers.
1991
1992 2002-03-29  Richard Henderson  <rth@redhat.com>
1993
1994         PR target/5672
1995         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1996
1997 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1998
1999         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2000         for aggregate and TFmode types.
2001
2002 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2003
2004         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2005
2006 2002-03-29  Richard Henderson  <rth@redhat.com>
2007
2008         PR target/5886
2009         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2010         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2011
2012 2002-03-29  Richard Henderson  <rth@redhat.com>
2013
2014         PR target/6041
2015         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2016         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2017         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2018         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2019         conditional.
2020         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2021
2022 2002-03-29  Dale Johannesen <dalej@apple.com>
2023
2024         * loop.c (combine_movables): Do allow combination of pseudos.
2025
2026 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
2027
2028         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2029         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2030         No functional change except ...
2031         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
2032         * doc/install.texi (*-*-freebsd*): Document port configuration.
2033
2034 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2035
2036         * Makefile.in (convert.o, calls.o, expmed.o): Update.
2037         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2038         Use new hooks.
2039         * builtin-types.def (BT_PTRMODE): Update.
2040         * c-common.c (type_for_size): Rename c_common_type_for_size.
2041         (type_for_mode): Similarly.
2042         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2043         Use new hook.
2044         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2045         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2046         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2047         Redefine.
2048         * c-typeck.c (common_type, comptypes, default_conversion):
2049         Use new hooks.
2050         * calls.c: Include langhooks.h.
2051         (emit_library_call_value_1): Use new hooks.  Avoid redundant
2052         calls.
2053         * convert.c: Include langhooks.h
2054         (convert_to_pointer, convert_to_integer): Use new hooks.
2055         * except.c (init_eh): Similarly.
2056         * expmed.c: Include langhooks.h.
2057         (expand_mult_add): Use new hooks.
2058         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2059         try_casesi): Similarly.
2060         * fold-const.c (optimize_bit_field_compare, make_range,
2061         decode_field_reference, fold_truthop, fold): Similarly.
2062         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2063         put_var_into_stack): Similarly.
2064         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2065         LANG_HOOKS_TYPE_FOR_SIZE): New.
2066         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2067         * langhooks.h (lang_hooks_for_types): New hooks.
2068         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2069         * tree.c (get_unwidened, get_narrower): Similarly.
2070         * tree.h (type_for_mode, type_for_size): Remove.
2071         * varasm.c (force_const_mem): Use new hooks.
2072         * utils2.c (nonbinary_modular_operation): Update.
2073 objc:
2074         * objc-act.c (handle_impent): Update.
2075         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2076         Redefine.
2077
2078 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2079
2080         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2081         * config/ia64/ia64.c (basereg_operand): New.
2082         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2083         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2084
2085 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2086
2087         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2088         unwind information when frame_pointer_needed.
2089         (mmix_assemble_integer): Tweak wording in comment.
2090
2091 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2092
2093         * Makefile.in (except.o): Update.
2094         * except.c: Include langhooks.h.
2095         (init_eh): Use langhook.
2096         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2097         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2098         (LANG_HOOKS_INITIALIZER): Update.
2099         * langhooks.h (lang_hooks_for_types): New.
2100         (struct lang_hooks): Add it.
2101         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2102         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2103 config:
2104         * alpha/alpha.c: Include langhooks.h.
2105         (alpha_build_va_list): Use langhook.
2106         * d30v/d30v.c: Include langhooks.h.
2107         (d30v_build_va_list): Use langhook.
2108         * i386/i386.c: Include langhooks.h.
2109         (ix86_build_va_list): Use langhook.
2110         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2111         * s390/s390.c: Include langhooks.h.
2112         (s390_build_va_list): Use langhook.
2113         * stormy16/stormy16.c: Include langhooks.h.
2114         (stormy16_build_va_list): Use langhook.
2115
2116 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2117
2118         PR c++/5964
2119         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2120         attributes.
2121         (length): Compute variable length for branches/calls/jumps here.
2122         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2123         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2124         define branch_type attribute.
2125         (divsi3_sp32): Maximum length is 6 not 7.
2126         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2127         call_address_untyped_struct_value_sp32,
2128         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2129         * config/sparc/sparc.c (empty_delay_slot): New function.
2130         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2131         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2132
2133 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2134
2135         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2136         nonzero_bits if not needed.
2137         (nonzero_bits) [XOR]: Likewise.
2138         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2139         reg_last_set_mode and mode are both MODE_INT, but not equal.
2140         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2141         in nonzero_bits_mode for MODE_INT modes.
2142
2143 2002-03-28  Richard Henderson  <rth@redhat.com>
2144
2145         PR target/5715
2146         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2147         to GAS.  Correct drift between alternatives.
2148
2149 2002-03-28  Richard Henderson  <rth@redhat.com>
2150
2151         PR target/6087
2152         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2153
2154 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2155
2156         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2157         emulation to the linker.
2158
2159 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2160
2161         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2162         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2163
2164 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2165
2166         * combine.c (simplify_and_const_int): Make sure to apply mask
2167         when force_to_mode returns a constant integer.  PR3311.
2168
2169 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2170
2171         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2172
2173 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2174
2175         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2176         and Objective-C Dialect Options.
2177
2178 2002-03-28  Richard Henderson  <rth@redhat.com>
2179
2180         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2181         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2182
2183 2002-03-28  Richard Henderson  <rth@redhat.com>
2184
2185         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2186         on to c_expand_body.
2187         * c-tree.h (finish_function): Update decl.
2188         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2189
2190 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2191
2192         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2193
2194 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2195
2196         * rtlanal.c: Include flags.h
2197         (may_trap_p): Do not mark FP operations if trapping
2198         if !flag_trapping_math
2199         * Makefile.in (rtlanal.o): Add dependency on flag.h
2200         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2201
2202 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2203
2204         * mips.md: Use dconst1, not 1.0, as first argument of
2205         REAL_VALUE_LDEXP.  Don't use union real_extract.
2206
2207 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2208
2209         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2210         rather than $target.  Heed program_prefix and
2211         program_transform_name.  Search for gas in cross-compiler case too.
2212         "test -x" rather than "test -f".
2213         (gcc_cv_ld): Likewise.
2214         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2215         (gcc_cv_objdump): Likewise.
2216         * configure: Regenerate.
2217
2218 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2219
2220         * Makefile.in (attribs.o): Update.
2221         * attribs.c: Include langhooks.h.
2222         (decl_attributes): Use langhook.
2223         * c-decl.c (insert_default_attributes): Rename.
2224         * c-tree.h (c_insert_default_attributes): New.
2225         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2226         (LANG_HOOKS_INITIALIZER): Update.
2227         * langhooks.h (struct lang_hooks): New hook.
2228         * tree.h (insert_default_attributes): Remove.
2229 objc:
2230         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2231
2232 2002-03-27  Andreas Schwab  <schwab@suse.de>
2233
2234         * config/i386/i386.c (classify_argument): Also check for
2235         QUAL_UNION_TYPE.
2236
2237 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2238
2239         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2240         any more.
2241
2242 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2243
2244         * i960.md (ret): Set PC.
2245         (nonlocal_goto): Fix expander.
2246         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2247         some jump or call.
2248
2249 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2250
2251         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2252         of libcall regions.
2253
2254 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2255
2256         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2257         assigning to BLOCK_FOR_INSN directly.
2258
2259 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2260
2261         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2262
2263 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2264
2265         * c-common.c (c_expand_expr): Fix prototype.
2266         * c-common.h (c_expand_expr): Always declare, update.
2267         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2268         * c-objc-common.c (c_objc_common_init): No global hook.
2269         * expr.c (expand_expr): Use langhook.
2270         * expr.h (enum expand_modifier): Conditionally declare.
2271         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2272         (LANG_HOOKS_INITIALIZER): Update.
2273         * langhooks.c (lhd_expand_expr): New.
2274         * langhooks.h (struct lang_hooks): New hook.
2275         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2276         (lang_independent_init): Don't default hook.
2277 objc:
2278         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2279
2280 2002-03-27  Richard Henderson  <rth@redhat.com>
2281
2282         PR target/6054
2283         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2284         TARGET_CONST_GP.  Simplify conditions.
2285
2286 2002-03-27  Richard Henderson  <rth@redhat.com>
2287
2288         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2289         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2290         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2291
2292 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2293
2294         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2295         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2296         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2297         Remove unnecessary masks.
2298         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2299         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2300         -mwindows, -mdll switches and their negations.
2301
2302 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2303
2304         * gcc-common.c (lang_mark_false_label_stack): Remove.
2305         * ggc.h (lang_mark_false_label_stack): Similarly.
2306
2307 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2308
2309         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2310
2311         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2312         or __rtems_ is defined.
2313
2314 2002-03-26  Richard Henderson  <rth@redhat.com>
2315
2316         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2317         if a non-trivial load was emitted.
2318         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2319         in high+extra+low case.
2320
2321 2002-03-26  Richard Henderson  <rth@redhat.com>
2322
2323         * config.gcc (sparc*-solaris): Use float_format=sparc.
2324
2325 2002-03-26  Richard Henderson  <rth@redhat.com>
2326
2327         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2328         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2329         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2330         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2331         (WINT_TYPE_SIZE): Fix at 32.
2332
2333 2002-03-26  Richard Henderson  <rth@redhat.com>
2334
2335         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2336         until after eh landing pad generation.
2337         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2338         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2339
2340 2002-03-26  Richard Henderson  <rth@redhat.com>
2341
2342         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2343
2344 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2345
2346         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2347         and warning switches.
2348         (cc1_options):  Likewise.
2349
2350 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2351
2352         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2353         Restore more of the signal context.  Set no_reg_stack_frame.
2354         * config/ia64/unwind-ia64.c (unw_state_record):
2355         Add no_reg_stack_frame, comments.
2356         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2357         (uw_update_context): Adjust bsp when unwinding from leaf,
2358         but not signal frame.
2359
2360 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2361
2362         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2363
2364 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2365
2366         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2367
2368 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2369
2370         PR target/5621
2371         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2372         "Add a pool_range attribute", which was lost during the ARM/Thumb
2373         merge.
2374
2375 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2376
2377         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2378         a register into the MAC16 accumulator.
2379
2380 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2381
2382         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2383         (Warning Options): Document -Wswitch-enum.
2384         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2385         -Wswitch.
2386         (warn_switch_enum): Define variables.
2387         * flags.h (warn_switch_enum): Declare variables.
2388         * stmt.c (expand_end_case_type): When warn_switch_enum /
2389         -Wswitch-enum, perform switch checks.
2390         Fix PR c/5044.
2391
2392 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2393
2394         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2395         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2396         (reload_muladdsi_compare0_scratch): Delete.
2397
2398 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2399
2400         * doc/install.texi (*-*-freebsd*): Update.
2401
2402 2002-03-26  Richard Henderson  <rth@redhat.com>
2403
2404         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2405         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2406
2407         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2408         types from the normal argument frame.
2409
2410         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2411         variable sized objects by reference.
2412         (sparc_va_arg): Receive them by reference too.
2413
2414 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2415
2416         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2417         code to not restoring global registers.
2418
2419 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2420
2421         * Makefile.in (ggc-common.o): Update.
2422         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2423         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2424         * c-tree.h (c_mark_tree): New.
2425         * ggc-common.c: Include langhooks.h.
2426         (gcc_mark_trees): Use new langhook.
2427         * ggc-callbacks.c: Delete file.
2428         * ggc.h (lang_mark_tree): Remove.
2429         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2430         (LANG_HOOKS_INITIALIZER): Update.
2431         * langhooks.h (struct lang_hooks): New hook.
2432 objc:
2433         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2434
2435 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2436
2437         * doc/cpp.texi: Exclude entire Top node from printed manual.
2438         Move option index after directive index.  Insert page breaks
2439         before GFDL and concept index.  Index environment variables
2440         with command line options.
2441         * doc/cppenv.texi: Use @vtable for environment variable list.
2442         Add paragraph explaining semantics of empty elements in path
2443         variables.  Exclude a cross-reference to Fishkill from the
2444         manpage.  Remove an unnecessary cross-reference of the entry
2445         right above the referer.  Don't use @anchor in text that goes
2446         into manpage.
2447         * doc/cppopts.texi: Cross-reference the environment variables
2448         section, not the specific environment variable, for consistency.
2449
2450 2002-03-25  Richard Henderson  <rth@redhat.com>
2451
2452         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2453         anywhere in the block.  Don't refer to insns that have been
2454         removed from the chain.  Iterate backward through the new insns.
2455         Don't refer to edges that have been removed.
2456
2457 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2458
2459         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2460         test for overflow of constant.
2461
2462 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2463
2464         PR target/2623
2465         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2466         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2467         these patterns on arm_archv4.
2468
2469 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2470
2471         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2472         int".
2473
2474 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2475
2476         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2477         float_handled, float_handler, float_signal, set_float_handler,
2478         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2479         * toplev.h: Don't prototype do_float_handler.
2480
2481         * c-lex.c: Fold parse_float into lex_number.  Make warning
2482         about portability of hex float constants more informative, and
2483         don't issue it on top of a syntax error.
2484         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2485         their callers.
2486         * real.h: Define REAL_VALUE_ABS here...
2487         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2488         simplify_unary_real, simplify_binary_real, and
2489         simplify_binary_is2orm1 into their callers.
2490         * tree.c: Fold build_real_from_int_cst_1 into caller.
2491
2492         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2493
2494         * tsystem.h: Include float.h here...
2495         * libgcc2.c: ... not here.
2496
2497 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2498
2499         Fixes for: PR bootstrap/3591, target/5676
2500         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2501         defined.  Do not disable exceptions or rtti.
2502         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2503         mcore.h.  Disable exceptions and rtti, since they are not
2504         supported by EPOC.
2505
2506 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2507
2508         * c-decl.c (maybe_build_cleanup): Remove.
2509         * expr.c (expand_expr): Use langhook.
2510         * langhooks-def.h (lhd_return_null_tree,
2511         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2512         (LANGHOOKS_INITIALIZER): Update.
2513         * langhooks.c (lhd_return_null_tree): New.
2514         * langhooks.h (struct lang_hooks): New hook.
2515         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2516         * tree.h (maybe_build_cleanup): Remove.
2517
2518 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2519
2520         * regrename.c (build_def_use): Move recog_memoized
2521         before extract_insn.
2522
2523 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2524
2525         PR target/6043
2526         * expr.c (emit_group_store): Handle storing into CONCAT.
2527
2528 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2529
2530         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2531         corresponding MATCH_DUP.
2532
2533 2002-03-24  Richard Henderson  <rth@redhat.com>
2534
2535         * unroll.c (unroll_loop): Zero label_map.
2536
2537         * gcse.c: Include except.h.
2538         * Makefile.in (gcse.o): Update.
2539
2540 2002-03-24  Richard Henderson  <rth@redhat.com>
2541
2542         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2543         Do resolve_unique_section before shared data clause.
2544
2545 2002-03-24  Richard Henderson  <rth@redhat.com>
2546
2547         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2548
2549 2002-03-24  Richard Henderson  <rth@redhat.com>
2550
2551         * recog.c (peephole2_optimize): Split blocks when EH insns are
2552         generated in the middle of a block.  Do global life update if
2553         zapped EH edges.
2554
2555 2002-03-24  Richard Henderson  <rth@redhat.com>
2556
2557         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2558
2559 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2560
2561         preprocessor/3951
2562         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2563         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2564         (init_dependency_output): Don't make no_output decision here.
2565
2566 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2567
2568         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2569         warn_switch.  Update description.
2570         (expand_end_case_type): Call check_for_full_enumeration_handling
2571         when warn_switch.
2572
2573 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2574
2575         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2576         (m68hc11_split_move): Call it to see if the source and destination
2577         operands use the same direction auto inc/dec mode, otherwise make the
2578         source an offsetable memory operand and generate an add.
2579
2580 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2581
2582         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2583         register for operand 2.
2584         ("*subsi3_zero_extendqi"): Likewise.
2585         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2586         bits so that it is compatible with a pop.
2587         ("*andhi3_gen"): Likewise.
2588         ("xorhi3"): Likewise.
2589
2590 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2591
2592         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2593         -pedantic here...
2594         (cpp_post_options): ... not here.
2595
2596 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2597             Aldy Hernandez  <aldyh@redhat.com>
2598
2599         Removal of separate preprocessor cpp0.
2600
2601         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2602         cpp0, install-common): Update.
2603         * c-common.c (flag_preprocess_only): New.
2604         (c_common_init): Preprocess for -E.
2605         * c-common.h (flag_preprocess_only): New.
2606         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2607         * c-objc-common.c (c_init_decl_processing): Exit quickly
2608         for NULL return from c_common_init.
2609         * cpplib.h (cpp_preprocess_file): New.
2610         * cppmain.c (main, general_init, pfile, progname): Remove.
2611         (do_preprocessing): Rename cpp_preprocess_file, don't call
2612         cpp_finish.  Don't close stdout here.
2613         (setup_callbacks): Update prototype.
2614         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2615         Update.
2616         * tradcpp.c (main): Ignore -quiet.
2617 objc:
2618         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2619
2620 2002-03-24  Richard Henderson  <rth@redhat.com>
2621
2622         PR optimization/5742
2623         * machmode.def: Add inner mode field to complex modes.
2624         * config/mips/mips.c (mips_function_value): Always define.  Add
2625         new argument to handle libcalls.
2626         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2627         (FUNCTION_VALUE): Likewise.
2628         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2629         * config/mips/mips-protos.h: Update.
2630
2631 2002-03-23  Richard Henderson  <rth@redhat.com>
2632
2633         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2634         * config/sparc/sparc-protos.h: Update.
2635         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2636
2637 2002-03-23  Richard Henderson  <rth@redhat.com>
2638
2639         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2640         _start or _init begins the text segment.
2641
2642 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2643
2644         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2645         not HOST_WIDEST_INT.
2646         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2647
2648 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2649
2650         PR java/5489
2651         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2652         operand argument to output_return_instruction.
2653         * arm.c (arm_print_operand, case 'd'): If the operand is
2654         const_true_rtx then just return.
2655         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2656         then abort.
2657
2658 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2659
2660         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2661         (Warning Options): Document -Wswitch-default.
2662         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2663         -Wswitch.
2664         (warn_switch_default): Define variable.
2665         (warn_switch): Update comment.
2666         * flags.h (warn_switch_default): Declare variable.
2667         (warn_switch): Update comment.
2668         * stmt.c (expand_end_case): Check for and, when
2669         warn_switch_no_default, warn of a missing default case.
2670
2671 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2672
2673         * real.h (N): Special case 128 bit doubles.
2674
2675         * combine.c (simplify_comparison): When widening modes, ignore
2676         sign extension on CONST_INTs.
2677
2678 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2679
2680         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2681         passed to adjust_address.  Fix comment formatting.
2682
2683
2684 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2685
2686         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2687         Always make REAL_VALUE_TYPE a struct containing an array of
2688         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2689         big it is.  Don't declare or use union real_extract.
2690
2691         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2692         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2693         (print_operand), config/arm/arm.c (output_move_double),
2694         config/arm/arm.md (consttable_4, consttable_8),
2695         config/romp/romp.c (output_fpops), config/s390/s390.h
2696         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2697         (xtensa_output_literal): Don't use union real_extract.
2698
2699         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2700         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2701         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2702         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2703         (PRINT_OPERAND): Don't use local version of union
2704         real_extract.
2705
2706         * config/convex/convex.c (check_float_value), config/vax/vax.c
2707         (vax_float_literal), config/m88k/m88k.md (divdf3),
2708         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2709         config/pdp11/pdp11.c (output_move_quad): Don't do host
2710         arithmetic on target floating point quantities.
2711
2712         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2713         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2714
2715         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2716         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2717
2718         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2719         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2720         INFINITY.
2721         * print-rtl.c (print_rtx): Disable code which needs
2722         floating-point emulator.
2723         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2724         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2725         depending on HOST_FLOAT_FORMAT to be defined properly.
2726
2727         * config/1750a/1750a.c (get_double, float_label): Delete.
2728         (print_operand): Delete huge commented-out chunk.  Use
2729         REAL_VALUE_TO_DECIMAL.
2730         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2731         functions.
2732         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2733         IEEE_FLOAT_FORMAT.
2734         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2735         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2736         * config/m88k/m88k.c (real_power_of_2_operand,
2737         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2738         real_extract out of the union; run the input through
2739         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2740         from that into the union.
2741         * config/pdp11/pdp11.c (output_move_double): Rearrange
2742         parentheses to make automatic indenter happy.
2743
2744         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2745         Point" and rewrite to describe current situation.  Also adjust
2746         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2747         match code.
2748         * doc/rtl.texi: Adjust cross reference.
2749
2750 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2751
2752         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2753         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2754         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2755         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2756         prevent use of sp as a reload register.
2757         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2758         non_acc_reg_operand.
2759         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2760         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2761         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2762         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2763
2764 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2765
2766         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2767         * cpplex.c (unterminated): Delete.
2768         (parse_string): No string literal may extend over multiple
2769         lines.  Suppress the error when preprocessing assembly.
2770         * cppmain.c (scan_translation_unit): Strings are single-line.
2771
2772         * doc/cpp.texi: Update to match.
2773
2774 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2775
2776         PR optimization/5854
2777         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2778         Shut up warnings.
2779         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2780         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2781         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2782         const0 if scratch register was not allocated.
2783         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2784         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2785         with GEN_INT (...).
2786         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2787         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2788         with GEN_INT (...) everywhere.  Remove constraints in define_split
2789         patterns.
2790         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2791         require scratch register for setting 0 into regs/non-pushable memory.
2792
2793 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2794
2795         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2796         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2797
2798 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2799
2800         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2801         * cppinit.c (cpp_create_reader):  On by default.
2802         (cpp_handle_option):  Handle -W[no-]endif-labels.
2803         (cpp_post_options):  Also enable if -pedantic.
2804         * cpplib.c (do_else):  Use it.
2805         (do_endif):  Likewise.
2806         * doc/cppopts.texi:  Document new option.
2807         * doc/invoke.texi:  Document new option.
2808
2809 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2810
2811         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2812         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2813
2814 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2815
2816         * flow.c (calculate_global_regs_live): Clear aux fields of
2817         ENTRY and EXIT.
2818
2819 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2820
2821         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2822         REG or MEM subregs, pass rtx * instead of rtx to it.
2823         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2824         rtx * instead of rtx to alter_subreg.
2825         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2826         * config/pj/pj.c (pj_output_rval): Likewise.
2827
2828 2002-03-22  Richard Henderson  <rth@redhat.com>
2829
2830         PR target/3177
2831         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2832         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2833         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2834         (ia64_expand_prologue): Look at int_regs, not words, for number
2835         of incomming int regs.
2836
2837 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2838
2839         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2840
2841 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2842
2843         * toplev.c (flag_loop_optimize, flag_crossjumping):
2844         New static variables.
2845         (rest_of_compilation): Conditionalize crossjumping and
2846         loop optimizer.
2847         (parse_options_and_default_flags): Default loop_optimize and
2848         crossjumping.
2849         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2850         * invoke.texi (crossjumping, loop-optimize): Document.
2851
2852 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2853
2854         * real.c (eiisneg): Move outside #ifdef NANS.
2855
2856 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2857
2858         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2859         frequencies match; avoid match on different loop depths.
2860         (try_crossjump_to_bb): Kill tests that no longer brings time
2861         savings.
2862         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2863         updating code.
2864         (split_edge): Likewise.
2865
2866         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2867         variable.
2868
2869         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2870         * cfgrtl.c: Include insn-config.h
2871         (split_block) Dirtify block in presence of conditional execution
2872
2873 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2874
2875         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2876         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2877         (function_arg): Constify CUMULATIVE_ARGS.
2878         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2879         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2880         (UNITS_PER_DOUBLE): New macro.
2881         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2882         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2883         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
2884         fp_regs and stack_words.
2885         (EABI_FLOAT_VARARGS_P): New macro.
2886         * config/mips/mips.c (struct mips_arg_info): New.
2887         (mips_arg_info): New function.
2888         (function_arg_advance): Use it.  Add adjustment instructions here
2889         rather than in function_arg.
2890         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
2891         for VOIDmode at the beginning of the function.
2892         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
2893         (function_arg_pass_by_reference): Likewise.
2894         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2895         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2896         (mips_va_start): Likewise.  Use the new stack_words field of
2897         CUMULATIVE_ARGS to set up overflow area.  Reformat.
2898         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
2899         doubles and other types, aligning the overflow pointer for non-doubles
2900         too.  Remove some code duplication.  Replace hard-coded constants.
2901
2902 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2903
2904         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2905         (CLASS_UNITS): Undefine.
2906         (CLASS_MAX_NREGS): Use FP_INC.
2907         * config/mips/mips.c (compute_frame_size): Likewise.
2908         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2909
2910 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2911
2912         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2913         prototype, and handle lexing numbers and identifiers.
2914         (parse_identifier): Update to new form of parse_slow.
2915         (parse_number): Fast path only, use parse_slow otherwise.
2916         (_cpp_lex_direct): Update calls to parse_number.
2917
2918 2002-03-21  DJ Delorie  <dj@redhat.com>
2919
2920         * bb-reorder.c (make_reorder_chain_1): Protect against
2921         when redundant edges are omitted.
2922         * predict.c (dump_prediction): Likewise.
2923
2924 2002-03-21  Richard Henderson  <rth@redhat.com>
2925
2926         PR target/5996
2927         * fixinc/inclhack.def (solaris_stdio_tag): New.
2928         * fixinc/fixincl.x: Regenerate.
2929
2930 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2931
2932         PR c/5597
2933         * c-typeck.c (process_init_element): Flag non-static
2934         initialization of a flexible array member as illegal.
2935
2936 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2937
2938         * config/rs6000/t-linux64: New.
2939         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2940         t-ppccomm.  Use t-rs6000 and t-linux64.
2941         (powerpc64-*-gnu* <tmake_file>): Likewise.
2942         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2943         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2944         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2945
2946 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
2947
2948         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2949         flag_really_no_inline instead of optimize == 0.
2950
2951         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2952
2953         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2954
2955         * flags.h (flag_really_no_inline): New.
2956
2957         * c-common.c (c_common_post_options): Initialize
2958         flag_really_no_inline.
2959
2960         * toplev.c (flag_really_no_inline): New.
2961
2962 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2963
2964         * config/avr/avr.md (length): Fix length computation for
2965         conditional branches.
2966
2967 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2968
2969         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2970         sdbout.o, profile.o): Update.
2971         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2972         langhook.
2973         * c-common.h (gettags): Move here from tree.h.
2974         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2975         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2976         * dbxout.c (dbxout_init): Use getdecls langhook.
2977         * expr.c (expand_expr): Use insert_block langhook.
2978         * fold-const.c: Include langhooks.h.
2979         (fold_range_test, fold_binary_op_with_conditional_arg,
2980         fold): Use global_bindings_p langhook.
2981         * integrate.c (expand_inline_function): Use insert_block langhook.
2982         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2983         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2984         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2985         LANG_HOOKS_GETDECLS): New.
2986         (LANG_HOOKS_INITIALIZER): Update.
2987         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2988         langhook.
2989         * langhooks.h (struct lang_hooks_for_decls): New.
2990         (struct lang_hooks): Update.
2991         * profile.c: Include langhooks.h.
2992         (output_func_start_profiler): Use new langhooks.
2993         * sdbout.c: Include langhooks.h.
2994         (sdbout_init, sdbout_finish): Use getdecls langhook.
2995         * stmt.c: Include langhooks.h.
2996         (expand_fixup, fixup_gotos): Use new langhooks.
2997         * stor-layout.c: Include langhooks.h.
2998         (variable_size): Use global_bindings_p langhook.
2999         * toplev.c (compile_file): Use getdecls langhook.
3000         * tree-inline.c (remap_block): Use insert_block langhook.
3001         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3002         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3003
3004 2002-03-21  Richard Henderson  <rth@redhat.com>
3005
3006         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3007         constants in .data when -fpic.
3008
3009 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3010
3011         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3012         where appropriate.
3013
3014 2002-03-21  Tom Tromey  <tromey@redhat.com>
3015
3016         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
3017
3018 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3019
3020         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3021
3022         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3023
3024 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3025             Richard Henderson  <rth@redhat.com>
3026
3027         PR c/5354
3028         * c-common.c (c_expand_expr): Preserve result of a statement
3029         expression if needed.
3030
3031 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3032
3033         PR bootstrap/4195
3034         * genrecog.c (maybe_both_true_mode): Remove.
3035         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3036         * machmode.def (Pmode): Likewise.
3037
3038 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
3039
3040         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3041         (nonlocal_mentioned_p_1): New function.
3042         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3043         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3044         (mark_constant_function): Recognize pure functions.
3045         * rtl.h (global_reg_mentioned_p): New prototype.
3046         * rtlanal.c (global_reg_mentioned_p,
3047         global_reg_mentioned_p_1): New function.
3048
3049 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3050
3051         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3052         UNIX assert.h.
3053         * fixinc/fixincl.x: Regenerate.
3054
3055 2002-03-20  Jason Merrill  <jason@redhat.com>
3056
3057         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3058
3059 2002-03-20  Michael Meissner  <meissner@redhat.com>
3060
3061         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3062         -fstrict-aliasing.
3063
3064 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3065
3066         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3067         ".literal_position" directive before the constant pool.
3068
3069 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3070
3071         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3072         Add Craig Rodrigues.
3073         Add Brad Lucier to testers.
3074
3075 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3076
3077         PR target/4792
3078         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3079         to if_then_else.
3080         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3081         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3082         instead of insn_extract.
3083
3084 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3085
3086         PR bootstrap/4192
3087         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3088
3089         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3090         stmt if some case has been output.
3091
3092 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3093
3094         PR c/5972
3095         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3096         movsfcc_1, movdfcc_1): Add %O2.
3097         * config/i386/i386.c (print_operand): Handle %ON.
3098         Print . before float condition codes in Sun as cmov syntax.
3099         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3100         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3101         no longer true.
3102
3103 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3104
3105         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3106         return instruction if PC was popped.
3107
3108 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3109
3110         * config/xtensa/xtensa.md: Remove unused type attributes.
3111         (adddi_carry, subddi_carry): Change type attribute to "multi".
3112
3113 2002-03-19  Dale Johannesen  <dalej@apple.com>
3114
3115         PR optimization/5999, middle-end/5731
3116         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3117         multiplications by reciprocals.
3118
3119 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3120
3121         * Makefile.in: Update.
3122         * c-common.c: Include langhooks.h.
3123         (inline_forbidden_p): Use new hook.
3124         * diagnostic.c: Include langhooks.h.
3125         (format_with_decl, announce_function,
3126         default_print_error_function): Use new hook.
3127         * dwarf2out.c (dwarf2_name): Use new hook.
3128         * function.c: Include langhooks.h.
3129         (init_function_start): Use new hook.
3130         * langhooks-def.h (lhd_decl_printable_name): New.
3131         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3132         (LANGHOOKS_INITIALIZER): Update.
3133         * langhooks.c (lhd_decl_printable_name): New.
3134         * langhooks.h (struct lang_hooks): New hook.
3135         * toplev.c (decl_name, decl_printable_name): Remove.
3136         (open_dump_file): Use new hook.
3137         (process_options): Remove old hook.
3138         * tree.h (decl_printable_name): Remove.
3139 objc:
3140         * objc-act.c (objc_init): Remove old hook.
3141         (objc_printable_name): Export.
3142         * objc-act.h (objc_printable_name): New.
3143         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3144
3145 2002-03-19  Jim Blandy  <jimb@redhat.com>
3146
3147         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3148         the start_source_file debug hook, not the current line number.
3149
3150 2002-03-19  Richard Henderson  <rth@redhat.com>
3151
3152         * flow.c (EH_USES): Provide default.
3153         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3154         * doc/tm.texi (EH_USES): New.
3155
3156         * config/ia64/ia64.c (ia64_eh_uses): New.
3157         * config/ia64/ia64-protos.h: Update.
3158         * config/ia64/ia64.h (EH_USES): New.
3159
3160 2002-03-19  Richard Henderson  <rth@redhat.com>
3161
3162         * varasm.c (output_constant_def): Fix stupid typo.
3163
3164 2002-03-19  Richard Henderson  <rth@redhat.com>
3165
3166         PR 5879
3167         * except.c (current_function_has_exception_handlers): New.
3168         * except.h: Declare it.
3169         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3170         Combine tests that disable all sibcalls for the function.
3171
3172 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3173
3174         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3175         for INTEGER_CST.
3176
3177 2002-03-19  Richard Henderson  <rth@redhat.com>
3178
3179         PR 5977, 5991
3180         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3181         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3182
3183 2002-03-19  Jim Blandy  <jimb@redhat.com>
3184
3185         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3186         name, even if the replacement list contains no tokens, as required
3187         by Dwarf.
3188
3189 2002-03-19  Jason Merrill  <jason@redhat.com>
3190
3191         * varasm.c (globalize_decl): Get the name from the RTL, not
3192         DECL_ASSEMBLER_NAME.
3193
3194         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3195
3196 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3197
3198         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3199         subdi_carry): Define.
3200
3201 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3202
3203         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3204         about -fpic/-fPIC if extra_warnings set.
3205
3206 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3207
3208         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3209         TREE_STRING_POINTER.
3210         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3211
3212 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3213
3214         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3215         in favor of SP if FRAME_POINTER_REQUIRED is false.
3216
3217 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3218
3219         * emit-rtl.c (gen_int_mode): New function.
3220         * rtl.h: Prototype for it.
3221         * combine.c (make_extraction, simplify_comparison), expmed.c
3222         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3223         (convert_modes, store_field), optabs.c (expand_fix),
3224         simplify-rtx.c (neg_const_int, simplify_unary_real),
3225
3226         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3227         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3228
3229 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3230
3231         PR c/5656
3232         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3233         convert_parm_for_inlining.
3234         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3235         Define.
3236         * langhooks-def.h: Likewise.
3237         * objc/objc-lang.c: Likewise.
3238         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3239         function.
3240         * tree-inline.c (initialize_inlined_parameters):
3241         Call convert_parm_for_inlining lang hook if needed.
3242         * c-typeck.c (c_convert_parm_for_inlining): New function.
3243         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3244
3245 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3246
3247         * calls.c (precompute_arguments): Do not assume that temporaries
3248         can be destroyed after expanding the argument.
3249         (expand_call): Likewise.
3250
3251 2002-03-15  Eric Christopher  <echristo@redhat.com>
3252
3253         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3254         Fix register preference on last change.
3255         * config/mips/mips.c (mips_return_in_memory): New function.
3256         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3257         * config/mips/mips-protos.h: Declare.
3258         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3259         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3260
3261 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3262
3263         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3264         a register too.
3265         (anddi3, iorsi3): Likewise.
3266
3267         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3268         use %gprel for symbols that are going to be placed in linkonce
3269         sections.
3270
3271         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3272         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3273         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3274         not needed.  Disregard leaf_function_p().
3275         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3276         mips16 frame pointer.
3277         * config/mips/mips.md (store ra): Only to small SP offsets.
3278         2001-08-22  Graham Stott  <grahams@redhat.com>
3279         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3280         return a REG rtx for the return address register.
3281
3282 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3283
3284         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3285         constant-pool addresses as "mode-dependent".
3286         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3287
3288 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3289
3290         PR target/5740
3291         * expr.c (emit_group_load): Use extract_bit_field if
3292         needed for CONCAT arguments.
3293
3294 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3295
3296         PR target/4863
3297         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3298         offset to the base of the table.
3299         (thumb_tablejump): Matcher for Thumb tablejump insn.
3300         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3301         as the difference of two labels.
3302         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3303         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3304         tables in the code.
3305         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3306         * arm.c (get_jump_table_size): If the table is not in the text
3307         section, return zero.
3308
3309 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3310
3311         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3312         of gen_rtx_SUBREG.
3313         (arm_reload_out_hi): Use gen_lowpart instead of
3314         gen_rtx_SUBREG to access QImode components.
3315         * config/arm/arm.md: Disable zero_extend split for QImode
3316         subregs in BIG_ENDIAN mode.
3317         (storehi_bigend): Match use of least significant byte.
3318         (storeinthi): Remove extraneous SUBREG.
3319         Add missing construction of operands[2].
3320         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3321         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3322         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3323
3324 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3325
3326         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3327         any_operand.
3328
3329 2002-03-17  Richard Henderson  <rth@redhat.com>
3330
3331         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3332         explicitly.
3333
3334 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3335
3336         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3337         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3338
3339 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3340
3341         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3342
3343         * predict.c (estimate_bb_frequencies): Delete unused variables.
3344
3345 2002-03-17  Richard Henderson  <rth@redhat.com>
3346
3347         * config/ia64/ia64.c (ia64_attribute_table): Move before
3348         targetm definition.  Make static.
3349
3350 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3351
3352         * c-common.h (yyparse, c_common_parse_file): New.
3353         * c-lang.c: Include c-common.h.
3354         (LANG_HOOKS_PARSE_FILE): Redefine.
3355         * c-lex.c: Include c-common.h.
3356         (yyparse): Rename c_common_parse_file.  Call yyparse.
3357         * c-parse.in (yyparse): Remove macro.
3358         * c-tree.h (yyparse_1): Remove.
3359         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3360         (LANG_HOOKS_INITIALIZER): Update.
3361         * langhooks.h (struct lang_hoooks): New hook parse_file.
3362         * toplev.c (compile_file): Use parse_file hook.
3363         * tree.h (yyparse): Remove.
3364         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3365
3366 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3367
3368         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3369         float_truncate, not fix.
3370         ("*truncdfsf2_real"): Ditto.
3371         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3372
3373         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3374
3375 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3376
3377         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3378         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3379         where appropriate.  Make the second reference to
3380         leaf_function_p a function call, as intended.  Reindented.
3381
3382         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3383         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3384
3385         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3386         add register to non-constant into sp.
3387
3388         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3389         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3390         (mips16_gp_pseudo_rtx): Lose.
3391         (INIT_EXPANDERS): Deleted.
3392         * config/mips/mips.c (mips_init_machine_status): New.
3393         (mips_free_machine_status): New.
3394         (mips_mark_machine_status): New.
3395         (override_options): Set them.
3396         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3397         (struct machine_function): ... new.  Replaced all references.
3398         (mips_add_gc_roots): Don't mark them.
3399         (embedded_pic_fnaddr_reg): New, extracted from...
3400         (embedded_pic_offset): ... here.
3401         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3402         (movsi): Likewise.
3403
3404 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3405
3406         * cppinit.c: Revert -MD removal.
3407
3408 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3409
3410         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3411         soft registers by default for 68HC12.
3412         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3413         when compiling with -fomit-frame-pointer.
3414         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3415         (expand_epilogue): Likewise.
3416         (m68hc11_gen_rotate): Use exg when rotating by 8.
3417
3418 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3419
3420         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3421         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3422         (splits): Remove unused add splits.
3423         ("*addhi3_68hc12"): Tune constraints.
3424         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3425         constant fits in 8-bits and D is dead use abx/aby instructions.
3426         ("*addhi3"): Remove extern declaration of ix_reg.
3427         ("*subsi3"): Optimize and provide new split.
3428         ("subhi3"): Cleanup.
3429         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3430         (arith splits): For 68hc12 save the address register on the stack
3431         and do the arithmetic operation with a pop.
3432
3433 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3434
3435         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3436         allocating QImode in address registers.
3437         ("*movqi_m68hc11"): Likewise.
3438
3439 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3440
3441         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3442
3443 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3444
3445         * cppinit.c (print_help): Display -MD and -MMD.
3446         Don't display usage string.  Update assertion syntax and
3447         typo.
3448         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3449         (cpp_handle_option): Update.
3450
3451 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3452
3453         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3454         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3455         and define it so that regardless of target CPU size,
3456         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3457         of "int" rather than "long."
3458
3459 2002-03-15  Richard Henderson  <rth@redhat.com>
3460
3461         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3462         size as a tree.
3463
3464 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3465
3466         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3467         ("tstqi" split): Avoid using memory for tstqi on address register.
3468         (splits): Remove constraints.
3469         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3470         ("cmpdf", "cmpsf"): Remove since not used.
3471         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3472         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3473
3474 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3475
3476         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3477         ("neghi2"): Tighten constraints.
3478         ("one_cmplsi2"): Optimize and simplify split.
3479         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3480
3481 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3482
3483         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3484         and split of AND operation to clear the upper bits.
3485         ("*logicalsi3_zextqi"): Likewise.
3486         ("*logicallhi3_zexthi_ashift8"): Likewise.
3487         ("*logicalsi3_silshr16"): Likewise.
3488         ("logicalsi3_silshl16"): Likewise.
3489         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3490
3491 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3492
3493         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3494         (m68hc11_indirect_p): New function.
3495         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3496         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3497         TARGET_M6812.
3498         (asm_print_register): Likewise.
3499         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3500         (m68hc11_indirect_p): Declare.
3501         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3502         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3503         (TARGET_SWITCHES): New option -mrelax.
3504         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3505         destination.
3506         ("iorsi3", "xorsi3"): Likewise.
3507         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3508         ("*andhi3_mem"): New to handle destination in memory with bclr
3509         and a scratch register.
3510         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3511         ("*andhi3_const"): New when operand2 is constant.
3512         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3513         ("*andhi3_gen"): Cleanup of the old "andhi3".
3514         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3515         ("xorqi3"): Update constraints.
3516
3517 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3518
3519         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3520         for reg_equiv_memory_loc when the operand is a register that does
3521         not get a hard register (stack location).
3522         (tst_operand): After reload, accept all memory operand.
3523         (symbolic_memory_operand): Fix detection of symbolic references.
3524         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3525         accept symbols and any constant.
3526
3527 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3528
3529         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3530         note on the insn that sets the soft frame register.
3531         (must_parenthesize): ix and iy are also reserved names.
3532         (print_operand_address): One more place where parenthesis are required
3533         to avoid confusion with register names.
3534         (m68hc11_gen_movhi): Allow push of stack pointer.
3535         (m68hc11_check_z_replacement): Fix handling of parallel with a
3536         clobber.
3537         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3538         the replacement register is.
3539         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3540         and D8_REGS classes.
3541         (MODES_TIEABLE_P): All modes are tieable except QImode.
3542
3543 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3544
3545         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3546         (___subdi3): Likewise.
3547         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3548         (__map_data_section): Optimize 68hc11 case.
3549
3550 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3551
3552         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3553         than a shift to avoid adding a register with itself.
3554         (m68hc11_memory_move_cost): Take into account NO_REGS.
3555         (m68hc11_register_move_cost): Update and use memory move cost
3556         for soft registers.
3557         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3558         it gives more opportunities to cse to optimize.
3559         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3560         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3561
3562 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3563
3564         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3565         * c-common.def (CLEANUP_STMT): New tree node.
3566         * c-common.h (CLEANUP_DECL): New macro.
3567         (CLEANUP_EXPR): Likewise.
3568         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3569         * expr.c (expand_expr): Tidy.
3570         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3571         * tree-inline.c (initialize_inlined_parameters): Clean up
3572         new local variables.
3573
3574 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3575
3576         PR bootstrap/4128
3577         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3578         before movrXX only, use reg_overlap_mentioned_p.
3579         Only special case NE if just one insn can be generated.
3580
3581 2002-03-15  Jason Merrill  <jason@redhat.com>
3582
3583         * varasm.c (assemble_variable): Call resolve_unique_section before
3584         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3585         of error_mark_node.
3586
3587 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3588
3589         PR target/5170
3590         * arm.md (split pattern for thumb shiftable immediates): Add comment
3591         explaining non-obvious test.
3592
3593 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3594
3595         PR target/5712
3596         * arm.md (movaddr, movaddr_insn): Delete.
3597
3598 2002-03-15  Jason Merrill  <jason@redhat.com>
3599
3600         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3601         -fkeep-static-consts doesn't apply to comdats.
3602
3603 2002-03-14  Richard Henderson  <rth@redhat.com>
3604
3605         * c-decl.c: Include c-pragma.h.
3606         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3607         (finish_function): Tidy.
3608         * c-pragma.c: Include c-common.h.
3609         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3610         (handle_pragma_weak): Use them.
3611         (init_pragma): Register pending_weaks.
3612         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3613         * print-tree.c (print_node): Print DECL_WEAK.
3614         * varasm.c (mark_weak_decls): Remove.
3615         (remove_from_pending_weak_list): Remove.
3616         (add_weak): Remove.
3617         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3618         (weak_decls): Make a tree_list.
3619         (declare_weak): Cons weak_decls directly.
3620         (globalize_decl): Remove weak_decls elements directly.
3621         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3622         symbols.  Don't pretend to handle aliases.
3623         (init_varasm_once): Update weak_decls registry.
3624         * Makefile.in: Update dependencies.
3625
3626 2002-03-14  Richard Henderson  <rth@redhat.com>
3627
3628         PR target/5312
3629         * config/ia64/ia64.c: Include tm_p.h last.
3630         (gen_nop_type): Remove duplicate definition.
3631         (cycle_end_fill_slots): Set sched_data for second L slot.
3632         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3633         (nop_cycles_until): Fix typos.
3634
3635 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3636
3637         PR optimization/5891
3638         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3639
3640 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3641
3642         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3643           descriptors correctly.
3644
3645 2002-03-14  Michael Meissner  <meissner@redhat.com>
3646
3647         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3648         100, allowing MAX_UNROLLED_INSNS to be overridden.
3649
3650         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3651         --param.
3652
3653         * unroll.c (params.h): Include.
3654         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3655
3656         * doc/invoke.texi (--param max-unroll-insns): Document.
3657
3658         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3659
3660 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3661
3662         * arm.md: Fix warnings about constraints in peepholes and splits.
3663
3664 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3665
3666         * cpphash.h (struct lexer_state): Remove line_extension member.
3667         * cpplib.c (dequote_string, do_linemarker): New functions.
3668         (linemarker_dir): New data object.
3669         (DIRECTIVE_TABLE): No longer need to interpret #line in
3670         preprocessed source.  Delete obsolete comment about return
3671         values of handlers.
3672         (end_directive, directive_diagnostics, _cpp_handle_directive):
3673         Don't muck with line_extension.
3674         (directive_diagnostics): No need to issue warnings for
3675         linemarkers here.
3676         (_cpp_handle_directive): Issue warnings for linemarkers here,
3677         when appropriate.  Dispatch linemarkers to do_linemarker, not
3678         do_line.
3679         (do_line): Code to handle linemarkers split out to do_linemarker.
3680         Convert escape sequences in filename argument, both places.
3681
3682         * cppmacro.c (quote_string): Rename cpp_quote_string and
3683         export.  All callers changed.
3684         * cpplib.h (cpp_quote_string): Prototype.
3685         * cppmain.c (print_line): Call cpp_quote_string on to_file
3686         before printing it.
3687
3688         * doc/cpp.texi: Document that escapes are now interpreted in
3689         #line and in linemarkers, and that non-printing characters are
3690         converted to octal escapes when linemarkers are generated.
3691
3692 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3693
3694         * emit-rtl.c (try_split): Use delete_insns.
3695         * recog.c (split_all_insns): Fix terminating condition.
3696
3697 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3698             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3699
3700         PR target/5828
3701         * arm.c (arm_output_epilogue): Fix floating-point register save
3702         adjustment when using a frame pointer.
3703
3704 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3705
3706         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3707         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3708         (save_restore_insns, mips_expand_epilogue): And here.
3709         (build_mips16_call_stub): And here.
3710         (mips_function_value): Use the new macros to decide whether a single
3711         or complex float can be returned in floating-point registers.  Return
3712         a parallel rtx in the complex case.
3713
3714 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3715
3716         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3717         call after liveness analysis.
3718
3719         * recog.c (split_insn): Use delete_insn_and_edges.
3720
3721         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3722         instructions to have branch prediction notes.
3723         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3724
3725 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3726
3727         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3728         that doesn't support it.
3729         * configure: Regenerate.
3730
3731 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3732
3733         PR target/5626
3734         * config/sparc/sparc.md (normal_branch, inverted_branch,
3735         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3736         inverted_fp_branch): Adjust calls to output_cbranch.
3737         Set length attribute.
3738         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3739         output_v9branch.  Set length attribute.
3740         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3741         predicates.
3742         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3743         (output_cbranch): Likewise.  Handle far branches.
3744         (output_v9branch): Handle far branches.
3745         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3746         Adjust prototypes.
3747         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3748         noov_compare64_op predicates.
3749
3750 2002-03-13  Jason Merrill  <jason@redhat.com>
3751
3752         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3753         into the function and constify it.
3754         * gthr-dce.h, gthr-solaris.h: Likewise.
3755
3756 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3757
3758         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3759         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3760         std_expand_builtin_va_arg if not ABI_V4.
3761
3762 2002-03-13  Jason Merrill  <jason@redhat.com>
3763
3764         * varasm.c (globalize_decl): New fn.
3765         (assemble_start_function): Use it.
3766         (asm_emit_uninitialized): Use it.
3767         (assemble_alias): Use it.
3768         (assemble_variable): Use it.
3769
3770 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3771
3772         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3773         2002-03-12 internal visibility change.
3774         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3775         visibility into SYMBOL_REF_FLAG.
3776
3777 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3778
3779         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3780         VOIDmode operand.  Add compile-time optimization for constant results.
3781
3782 2002-03-12  Jason Merrill  <jason@redhat.com>
3783
3784         * c-typeck.c (convert_for_assignment): Don't allow conversions
3785         between pointers and references.  Only allow lvalues to convert to
3786         reference.
3787
3788 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3789
3790         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3791         before prologue, to avoid scheduling problems.
3792
3793 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3794
3795         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3796         (ELIMINABLE_REGS): Add sfp->sp.
3797         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3798
3799 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3800
3801         PR optimization/5892
3802         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3803
3804 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3805
3806         * loop.c (basic_induction_var): Don't call convert_modes if mode
3807         classes are different.
3808
3809 2002-03-12  Richard Henderson  <rth@redhat.com>
3810
3811         PR optimization/5901
3812         * function.c (reposition_prologue_and_epilogue_notes): Position
3813         the markers after/before the last/first insn not deleted.
3814
3815 2002-03-12  Richard Henderson  <rth@redhat.com>
3816
3817         PR optimization/5878
3818         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3819         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3820         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3821
3822         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3823         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3824         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3825
3826         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3827         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3828         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3829         also.  Don't set it if not flag_pic.
3830         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3831         to be INVALID_REGNUM when not used.
3832
3833 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3834
3835         * expmed.c (store_bit_field): Reset alias set for memory.
3836         (extract_bit_field): Same.
3837
3838 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3839
3840         * c-common.c (c_tree_code_type, c_tree_code_length,
3841         c_tree_code_name, add_c_tree_codes): Delete.
3842         * c-common.h (add_c_tree_codes): Delete.
3843         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3844         Define.
3845         * c-objc-common.c (c_objc_common_init): Don't call
3846         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3847         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3848         objc_tree_code_name, add_objc_tree_codes): Delete.
3849         (objc_init): Don't call add_objc_tree_codes.
3850         * objc/objc-lang.c (tree_code_type, tree_code_length,
3851         tree_code_name): Define.
3852         * toplev.c (lang_independent_init): Don't set
3853         tree_code_length[IDENTIFIER_NODE].
3854         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3855         Delete definitions, moved to language front-ends.
3856         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3857         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3858         Const-ify.
3859         (tree_code_length): Change type to unsigned char.
3860
3861 2002-03-12  Richard Henderson  <rth@redhat.com>
3862
3863         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3864         internal visibility change.
3865
3866 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3867
3868         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3869         validize_mem() instead of change_address to avoid clobbering
3870         memory attributes.
3871
3872 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3873
3874         * c-lex.h (position_after_whitespace): Remove.
3875
3876 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3877
3878         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3879         (lex_string): Use unsigned char pointers.
3880
3881 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3882
3883         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3884         is not a valid memory_operand.
3885
3886 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3887
3888         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3889         * config/xtensa/lib1funcs.asm: Fix copyright to include
3890         special case for libgcc files.
3891         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3892         (__divsi3): Likewise.
3893         (__umodsi3): Likewise.
3894         (__modsi3): Likewise.
3895         * config/xtensa/lib2funcs.S: Fix copyright to include
3896         special case for libgcc files.
3897
3898 2002-03-12  Tom Rix  <trix@redhat.com>
3899
3900         * collect2.c (resolve_lib_name): Move outside of
3901         OBJECT_FORMAT_COFF ifdef.
3902         (ignore_library): Same.
3903
3904 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3905
3906         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3907
3908 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3909
3910         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3911         to function_section before writing out the constant pool.
3912
3913 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
3914
3915         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3916         zero_constant.
3917         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3918
3919 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
3920
3921         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3922         (adddi3): Likewise.
3923         (movdf): Likewise.
3924         (movdi): Likewise.
3925         (cmpsi splitter): Likewise.
3926         (modsi3): Fail if <= 0.
3927         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3928         redundant test when HOST_BITS_PER_WIDE_INT != 32.
3929         (reg_or_sub_cint64_operand): Likewise.
3930         (num_insns_constant_wide): Optimize sign extension.
3931         (rs6000_legitimize_address): Likewise.
3932
3933 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3934
3935         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3936         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3937
3938 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
3939
3940         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3941         address calculation.
3942
3943 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3944
3945         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3946         scratch register to DImode / TImode.
3947         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3948         register used does not overlap the target.
3949
3950 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3951
3952         * Makefile.in (debug.o): Depend on debug.h.
3953         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3954         * debug.c (do_nothing_debug_hooks): Likewise.
3955         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3956         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3957         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3958         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3959         * dwarfout.c (dwarf_debug_hooks): Likewise.
3960         * integrate.c (output_inline_function): Likewise.
3961         * objc/objc-act.c (synth_module_prologue): Likewise.
3962         * sdbout.c (sdb_debug_hooks): Likewise.
3963         * toplev.c (debug_hooks): Likewise.
3964         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3965
3966 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3967
3968         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3969         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3970         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3971         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3972         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3973         * defaults.h (POINTER_SIZE): Define.
3974         * doc/tm.texi (POINTER_SIZE): Document default.
3975
3976 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3977
3978         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3979
3980 2002-03-11  Richard Henderson  <rth@redhat.com>
3981
3982         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3983         if rebuild_label_notes_after_reload.
3984
3985 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3986
3987         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3988         emit pic register load if "internal" visibility.
3989         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3990         (cris_expand_builtin_va_arg): Do all computations on trees.
3991
3992 2002-03-11  Richard Henderson  <rth@redhat.com>
3993
3994         * rtlanal.c: Include recog.h.
3995         (keep_with_call_p): Fix thinko.
3996         * Makefile.in (rtlanal.o): Update dependencies.
3997
3998 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3999
4000         * genflags.c (gen_insn): Use IS_VSPACE.
4001         * genoutput.c (output_insn_data): Likewise.
4002         (process_template): Likewise.
4003
4004 2002-03-11  Richard Henderson  <rth@redhat.com>
4005
4006         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4007
4008 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4009
4010         * Makefile.in: Update.
4011         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4012         Update documentation.
4013         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4014         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4015
4016 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
4017
4018         * Makefile.in: Give texi2pod its input file as a command line
4019         argument, not on stdin.
4020
4021 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
4022             Daniel Berlin  <dan@dberlin.org>
4023
4024         C++ alias analysis improvement.
4025         * alias.c (record_component_aliases): Record aliases for base
4026         classes too.
4027
4028 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
4029
4030         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4031
4032 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4033
4034         * toplev.c (vms_fopen): Remove, not needed.
4035
4036         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4037
4038         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4039
4040         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4041         for FP, already done later.
4042
4043         * toplev.c (debug_args): Add entry for VMS_DEBUG.
4044         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4045
4046 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
4047
4048         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4049         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4050         LARGEST_EXPONENT_IS_NORMAL for the given mode.
4051         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4052         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4053         (ediv, emul, eldexp, esqrt): Likewise.
4054         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4055         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4056         (saturate): New function.
4057         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4058         (make_nan): Use a saturation value instead of a NaN if
4059         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4060         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4061         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4062         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4063         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4064         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4065         !ROUND_TOWARDS_ZERO.
4066         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4067         (ROUND_TOWARDS_ZERO): Document.
4068
4069 2002-03-11  Andreas Jaeger  <aj@suse.de>
4070
4071         * cfg.c (dump_flow_info): Remove unused variable.
4072
4073 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4074
4075         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4076         computations on trees.
4077
4078 2002-03-10  Richard Henderson  <rth@redhat.com>
4079
4080         PR 5693:
4081         * reload.c (copy_replacements_1): New.
4082         (copy_replacements): Use it to recurse through the rtx.
4083
4084 2002-03-10  Richard Henderson  <rth@redhat.com>
4085
4086         * loop.c (strength_reduce): Compute number of iterations as
4087         unsigned HOST_WIDE_INT.
4088
4089 2002-03-10  Richard Henderson  <rth@redhat.com>
4090
4091         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4092         to move away from the end of the block.
4093
4094 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4095
4096         PR preprocessor/5899
4097         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4098
4099 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4100
4101         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4102
4103         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4104
4105 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4106
4107         * config/mmix/mmix.c: Improve comments.
4108         (mmix_target_asm_function_prologue): Drop variable
4109         empty_stack_frame.  Don't allocate unused slot above fp.
4110         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4111         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4112         brace in first column.
4113         (enum reg_class): Ditto.
4114         (FIRST_PARM_OFFSET): Now 0.
4115         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4116
4117 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4118
4119         * combine.c (make_extraction): Fix error in last change.
4120
4121 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4122
4123         * c4x.c (c4x_fp_reglist): Const-ify.
4124         * cris.c (cris_print_operand): Likewise.
4125         * i386.c (ix86_va_arg): Likewise.
4126         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4127         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4128         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4129         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4130         * mcore.h (regno_reg_class): Likewise.
4131         * mips.c (gen_int_relational): Likewise.
4132         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4133         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4134         * pdp11.c (move_costs): Likewise.
4135         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4136         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4137         Likewise.
4138         * s390.h (regclass_map): Likewise.
4139         * sh.c (shift_amounts): Likewise.
4140         * sh.md (rotlsi3): Likewise.
4141
4142 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4143
4144         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4145         (ne0+5): Use new clobber to generate proper shift pattern.
4146         Patch by Michael Matz <matz@kde.org>.
4147
4148 2002-03-09  Andreas Schwab  <schwab@suse.de>
4149
4150         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4151
4152 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4153
4154         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4155
4156 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4157
4158         PR middle-end/5877
4159         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4160         even for non-representable constants.
4161
4162 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4163
4164         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4165         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4166         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4167         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4168         (pop_function_context): Compute MAY_SHARE parameter for
4169         fixup_var_refs.
4170         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4171         (gen_mem_addressof): Call fixup_var_refs with new parm.
4172
4173         * combine.c (make_extraction): Don't make extension of CONST_INT.
4174
4175 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4176
4177         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4178         in o32 and o64 ABIs.
4179         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4180         but getting fixed-size structs passed in registers regardless of
4181         padding in o32 and o64 ABIs.
4182
4183         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4184         offset before loading address of argument passed by transparent
4185         reference.
4186
4187 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4188
4189         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4190
4191 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4192
4193         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4194         marker such that registers after it are saved.
4195
4196 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4197
4198         * sparc.c (arith_4096_operand): Fix error in last change.
4199
4200 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4201
4202         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4203         defaults for MEABI.
4204
4205 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4206
4207         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4208         vectors.
4209
4210 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4211
4212         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4213
4214 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4215
4216         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4217         removed; fix return value.
4218         * combine.c (combine_instructions): Dirtify blocks where we failed to
4219         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4220         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4221
4222 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4223
4224         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4225
4226 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4227
4228         * recog.c (peephole2_optimize): Re-distribute EH edges.
4229
4230 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4231
4232         * expr.c (expand_expr): Use unsave lang hook.
4233         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4234         (LANG_HOOKS_INITIALIZER): Update.
4235         * langhooks.h (struct lang_hooks): New hook unsave.
4236         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4237         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4238         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4239         (unsave_expr_now): Remove.
4240         * tree.h (unsave_expr_now, lang_unsave,
4241         lang_unsave_expr_now): Remove.
4242         (lhd_unsave): New.
4243
4244 2002-03-08  Andreas Jaeger  <aj@suse.de>
4245
4246         * flow.c (propagate_block_delete_insn): Remove unused variable.
4247
4248 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4249
4250         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4251         insn length for memory load/store.
4252
4253 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4254
4255         * doc/install.texi (--with-libiconv-prefix): Document.
4256
4257 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4258
4259         * doc/sourcebuild.texi: Fix typo.
4260
4261 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4262
4263         PR c/3711
4264         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4265         trees.
4266
4267 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4268
4269         * rtl.c (copy_most_rtx): Move from here ...
4270         * emit-rtl.c (copy_most_rtx): ... to here.
4271
4272 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4273
4274         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4275         SUBTARGET_CPP_SIZE_SPEC.
4276         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4277
4278         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4279
4280 2002-03-07  Matt Hiller  <hiller@redhat.com>
4281
4282         * gensupport.c (first_dir_md_include): Renamed from include;
4283         change all references.
4284         (last_dir_md_include): Renamed from last_include; change all
4285         references.
4286         (init_md_reader): Unconditionally initialize base_dir whether or
4287         not filename is a relative path.
4288
4289 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4290
4291         * config/fp-bit.c (_unord_f2): Compile it in even if
4292         US_SOFTWARE_GOFAST is enabled.
4293
4294         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4295         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4296         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4297         NULL_RTX, try reversing the comparison and the operands.
4298
4299 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4300
4301         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4302         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4303         and MATCH_OP_DUP.
4304
4305 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4306
4307         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4308
4309 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4310
4311         * basic-block.h (fixup_abnormal_edges): Declare.
4312         * reload1.c (fixup_abnormal_edges): New function.
4313         * reg-stack.c (convert_regs): Use it.
4314
4315         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4316
4317         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4318
4319 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4320
4321         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4322         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4323         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4324         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4325         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4326         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4327         unless x and y could be infinite.
4328         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4329         Check that the common type of both arguments is a real, even for
4330         targets without unordered comparisons.  Allow an integer argument
4331         to be compared against a real.
4332         (expand_tree_builtin): Use expand_unordered_cmp.
4333         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4334         * cse.c (fold_rtx): Likewise.  Fix indentation.
4335         * fold-const.c (fold_real_zero_addition_p): New.
4336         (fold): Use it, and the new HONOR_... macros.
4337         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4338         * jump.c (reversed_comparison_code_parts): After searching for
4339         the true comparison mode, use HONOR_NANS to decide whether it
4340         can be safely reversed.
4341         (reverse_condition_maybe_unordered): Remove IEEE check.
4342         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4343         to decide which simplifications are valid.  Allow the following
4344         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4345         and (a - -b) to (a + b).
4346         (simplify_relational_operation): Use HONOR_NANS.
4347         * doc/tm.texi: Document the MODE_HAS_... macros.
4348
4349 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4350
4351         * combine.c (simplify_comparison): If simplifying a logical shift
4352         right and compare with constant, force the comparison to unsigned.
4353
4354 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4355
4356         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4357
4358         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4359         -mabi=no-altivec
4360         (alt_reg_names): Remove % for vrsave.
4361
4362 2002-03-06  Richard Henderson  <rth@redhat.com>
4363
4364         PR optimization/5844
4365         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4366         if used indicates we've already emitted one copy of an operand.
4367         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4368         (gen_split): Supply a non-null used.
4369
4370 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4371
4372         * reload1.c (reload): Unshare all rtl after reload is done.
4373
4374         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4375         but simply fail if the expression is too complex to simplify.
4376         (simplify_gen_binary): Handle simplify_plus_minus failures.
4377
4378 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4379
4380         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4381         consistently call delete_trivially_dead_insns after CSE and GCSE;
4382         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4383         after liveness2; update comment in last crossjumping.
4384         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4385
4386 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4387
4388         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4389         after completing fast dead code elimination.
4390
4391         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4392         COMPARE operator.
4393
4394 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4395
4396         * version.c:  Fix misplaced leading blanks on first line.
4397
4398 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4399
4400         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4401
4402 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4403
4404         * cfgcleanup.c (mentions_nonequal_regs): New function.
4405         (thread_jump): Use it.
4406         * toplev.c (rest_of_compilation): Run jump threading after
4407         liveness.
4408
4409 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4410
4411         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4412         patch.
4413
4414 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4415
4416         * predict.c (estimate_bb_frequencies): Do not reload the
4417         frequencies from notes.
4418
4419 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4420
4421         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4422         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4423
4424         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4425         delete_noop_moves): Return indeger.
4426         * flow.c (ndead): New variable.
4427         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4428         BB argument; update callers.
4429         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4430         (life_analysis): Do not call purge_all_dead_edges.
4431         (update_life_info): Return number of deleted insns; print statistics.
4432         (update_life_info_in_dirty_blocks): likewise.
4433         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4434         return number of insns deleted.
4435
4436         * cse.c: Include timevar.h
4437         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4438         iterate until stabilizes; print statistics; return number of killed
4439         insns.
4440         * Makefile.in: (cse.o): Add timevar.h dependency
4441         * rtl.h (delete_trivially_dead_insns): New.
4442         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4443         * toplev.c (rest_of_compilation): Update callers.
4444
4445         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4446         (try_optimize_cfg): Do not update liveness.
4447         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4448         removal stabilizes; use delete_trivially_dead_insns.
4449
4450         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4451
4452 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4453
4454         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4455         callbacks when processing assembly language.
4456
4457 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4458
4459         * pa.h (ASM_FILE_END): Define.
4460         * som.h (ASM_FILE_END): Delete.
4461
4462         * pa.c (function_arg): Don't pass floats in general registers in
4463         indirect calls if TARGET_ELF32.
4464
4465 2002-03-05  Richard Henderson  <rth@redhat.com>
4466
4467         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4468
4469 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4470
4471         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4472
4473 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4474
4475         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4476         -r command line.  Don't hide any symbols if not building
4477         shared libgcc.
4478
4479 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4480
4481         * cfg.c (dump_flow_info): Warn about profile mismatches.
4482         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4483         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4484
4485 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4486
4487         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4488         wide volatile memory by parts.
4489
4490 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4491
4492         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4493         is NULL.
4494
4495 2002-03-05  Richard Henderson  <rth@redhat.com>
4496
4497         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4498
4499 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4500
4501         * toplev.c (documented_lang_options): Document more
4502         language-specific options.
4503         * doc/invoke.texi (Warning Options): Correct documentation for
4504         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4505         * c-decl.c (c_decode_option): Use a table to handle warning options.
4506
4507 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4508
4509         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4510         parameter to mmix_encode_section_info.
4511         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4512         relocatably.  Always produce ELF, not mmo if linking relocatably.
4513         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4514         first is non-zero, don't add symbol prefix.
4515         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4516         prototype accordingly.
4517
4518 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4519
4520         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4521
4522 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4523
4524         * configure.in: Increase required makeinfo version to 4.1.
4525         * configure: Regenerate.
4526
4527 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4528
4529         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4530         elsewhere now.
4531
4532 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4533
4534         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4535         * doc/invoke.texi: Fix @math uses.
4536
4537 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4538
4539         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4540         removal
4541
4542 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4543
4544         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4545         (powerpc-*-eabisimaltivec*): Same.
4546
4547         * config/rs6000/t-ppcendian: New.
4548
4549 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4550
4551         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4552         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4553         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4554
4555 2002-03-03  Richard Henderson  <rth@redhat.com>
4556
4557         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4558
4559 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4560
4561         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4562         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4563         tree.c, config/m68k/m68k.c:
4564         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4565         REAL_ARITHMETIC blocks unconditional.  Delete some further
4566         #ifdef blocks predicated on REAL_ARITHMETIC.
4567         * flags.h, toplev.c: Delete remaining references to
4568         flag_pretend_float.
4569
4570         * doc/invoke.texi: Remove documentation of -fpretend-float.
4571         * doc/tm.texi: Describe the various REAL_* macros as provided by
4572         real.h, not by the target configuration files.
4573
4574         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4575         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4576         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4577         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4578         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4579         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4580         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4581         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4582         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4583         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4584         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4585         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4586         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4587         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4588         config/xtensa/xtensa.h:
4589         Do not define, undefine, or mention in comments any of
4590         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4591         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4592         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4593         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4594         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4595         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4596         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4597         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4598         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4599
4600 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4601
4602         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4603         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4604         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4605         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4606         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4607         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4608         Delete.
4609         * defaults.h (BITS_PER_WORD): Define.
4610         * doc/tm.texi (BITS_PER_WORD): Document default value.
4611
4612         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4613         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4614         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4615
4616 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4617
4618         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4619         lieu of explicit sizeof/sizeof.
4620         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4621         ix86_expand_builtin): Likewise.
4622         * mips.c (mips_add_gc_roots): Likewise.
4623         * mmix.c (mmix_output_condition): Likewise.
4624         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4625         altivec_init_builtins): Likewise.
4626         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4627         * cppexp.c (Nsuff, parse_number): Likewise.
4628         * cppinit.c (builtin_array_end): Likewise.
4629         * gcc.c (n_default_compilers, process_command): Likewise.
4630         * genpreds.c (output_predicate_decls): Likewise.
4631         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4632         * lcm.c (N_ENTITIES): Likewise.
4633         * stor-layout.c (set_sizetype): Likewise.
4634
4635 2002-03-03  Richard Henderson  <rth@redhat.com>
4636
4637         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4638         for types or labels.
4639
4640 2002-03-03  Richard Henderson  <rth@redhat.com>
4641
4642         * c-decl.c (start_decl): Initialized variables are not common.
4643
4644 2002-03-02  Per Bothner  <per@bothner.com>
4645
4646         * gcc.c (option_map):  Suport new --bootclasspath option.
4647         --CLASSPATH is now just an alias for --classpath.
4648
4649 2002-03-02  Richard Henderson  <rth@redhat.com>
4650
4651         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4652         load if "internal" visibility.
4653         * doc/extend.texi: Document visibility meanings.
4654
4655 2002-03-02  Richard Henderson  <rth@redhat.com>
4656
4657         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4658         to functions as well.
4659
4660 2002-03-02  Richard Henderson  <rth@redhat.com>
4661
4662         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4663         (handle_visibility_attribute): Don't call assemble_visibility.
4664         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4665         without asmspec.  Invoke assemble_alias when needed.
4666         * varasm.c (maybe_assemble_visibility): New.
4667         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4668
4669 2002-03-02  Richard Henderson  <rth@redhat.com>
4670
4671         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4672         invoke ENCODE_SECTION_INFO with first call flag.
4673
4674         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4675         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4676         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4677         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4678         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4679         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4680         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4681         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4682         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4683         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4684         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4685         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4686         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4687         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4688         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4689         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4690         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4691         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4692         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4693         config/sh/sh.h, config/sparc/sparc.h,
4694         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4695         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4696         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4697         FIRST argument.  As needed, examine it and do nothing.
4698
4699         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4700         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4701         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4702
4703         * config/arm/t-pe (pe.o): Add dependencies.
4704
4705 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4706
4707         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4708         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4709         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4710         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4711         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4712         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4713         * defaults.h (BITS_PER_UNIT): Define.
4714         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4715
4716 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4717
4718         * config/h8300/h8300-protos.h: Add a prototype for
4719         compute_a_shift_length.
4720         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4721         (compute_a_shift_length): Likewise.
4722         (h8300_adjust_insn_length): Do not adjust insn length of shift
4723         insns.
4724         * config/h8300/h8300.md (anonymous shift patterns): Use
4725         compute_a_shift_length.
4726
4727 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4728
4729         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4730         trunc_int_for_mode.
4731
4732         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4733
4734 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4735
4736         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4737         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4738         * flags.h (flag_zero_initialized_in_bss): Declare.
4739         * toplev.c (flag_zero_initialized_in_bss): New flag.
4740         (lang_independent_options): Add flag_zero_initialized_in_bss.
4741         * tree.c (initializer_zerop): New function.
4742         * tree.h (initializer_zerop): Declare.
4743         * varasm.c (assemble_variable): If we can emit bss, put zero
4744         initializers in the bss section.
4745
4746 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4747
4748         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4749         like more than one symbol per .weak directive.
4750
4751 2002-03-01  Richard Henderson  <rth@redhat.com>
4752
4753         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4754         adjust argument_pointer by pretend_args_size.
4755         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4756
4757 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4758
4759         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4760
4761 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4762
4763         * toplev.c (rest_of_compilation): Delete dead jumptables before
4764         loop.
4765         * flow.c (delete_dead_jumptables): Make global.
4766         * rtl.h (delete_dead_jumptables): Declare.
4767
4768 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4769
4770         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4771         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4772         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4773
4774 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4775
4776         * config/h8300/h8300-protos.h: Fix formatting.
4777         * config/h8300/h8300.c: Likewise.
4778         * config/h8300/h8300.h: Likewise.
4779
4780 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4781
4782         * config/h8300/h8300.c (print_operand): Support 16-bit
4783         constant addresses.
4784         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4785
4786 2002-02-28  Richard Henderson  <rth@redhat.com>
4787
4788         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4789         pun complex values as integers; use gen_lowpart instead of
4790         gen_rtx_SUBREG.
4791         (extract_bit_field): Likewise.
4792
4793 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4794             David Edelsohn  <edelsohn@gnu.org>
4795
4796         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4797         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4798         (SUPPORTS_WEAK): Likewise.
4799         * output.h (add_weak): Add tree param.
4800         * varasm.c (add_weak): Likewise.  Save decl.
4801         (struct weak_syms): Add decl field.
4802         (mark_weak_decls): New function.
4803         (init_varasm_once): ggc_add_root mark_weak_decls.
4804         (assemble_start_function): Use ASM_WEAKEN_DECL.
4805         (assemble_variable): Likewise.
4806         (assemble_alias): Likewise.
4807         (declare_weak): Pass decl to add_weak.
4808         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4809         (remove_from_pending_weak_list): Declare and define for
4810         ASM_WEAKEN_DECL.
4811         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4812         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4813         * defaults.h (SUPPORTS_WEAK): Likewise.
4814         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4815         .weak for code sym.  Do emit .size for descriptor sym.
4816         (ASM_DECLARE_FUNCTION_SIZE): Define.
4817         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4818         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4819         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4820         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4821         .weak for code sym.
4822         (HANDLE_PRAGMA_WEAK): Remove.
4823         (ASM_WEAKEN_LABEL): Remove.
4824         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4825
4826 2002-03-01  Jason Merrill  <jason@redhat.com>
4827
4828         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4829         (TARGET_EXPR_CLEANUP): New macro.
4830
4831 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4832
4833         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4834         to take ptr_extend into account as third type of extension.
4835         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4836         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4837         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4838         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4839         * calls.c (precompute_arguments): Use new macro.
4840         (expand_call): Ditto.
4841         * combine.c (nonzero_bits): Ditto.
4842         (record_promoted_value): Ditto.
4843         * expr.c (store_expr): Ditto.
4844         (expand_expr): Ditto.
4845         * function.c (assign_parms): Ditto.
4846
4847 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4848
4849         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4850         override -shared and -shared-libgcc.
4851
4852 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4853
4854         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4855         of "ultrasparc".
4856         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4857         to be broken.
4858
4859 2002-02-28  Richard Henderson  <rth@redhat.com>
4860
4861         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4862         4 cycle latency from MM producers.
4863         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4864
4865 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4866
4867         * mklibgcc.in: Don't use GNU make extension.
4868
4869 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4870
4871         * c-parse.in (STATIC): New terminal.
4872         (scspec): New non-terminal.  Update productions accordingly.
4873         (program): Remove bogus ifc / end ifc.
4874         (array_declarator): Simplify production using STATIC.
4875
4876 2002-02-28  Jim Meyering  <meyering@lucent.com>
4877
4878         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4879         \a still means TARGET_BELL.
4880
4881 2002-02-28  Richard Henderson  <rth@redhat.com>
4882
4883         * haifa-sched.c (sched_emit_insn): New.
4884         (schedule_block): Use last_scheduled_insn to track last insn.
4885         * sched-int.h (sched_emit_insn): Prototype.
4886         * config/ia64/ia64.c (last_issued): Remove.
4887         (ia64_variable_issue): Don't set it.
4888         (nop_cycles_until): Use sched_emit_insn.
4889
4890 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
4891
4892         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4893         extended constants.
4894
4895 2002-02-28  Kazu Hirata  <kazu@hxi.com>
4896
4897         * config/h8300/h8300.c: Fix formatting.
4898         * config/h8300/h8300.h: Likewise.
4899
4900 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4901
4902         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4903         which may overwrite the high byte of the frame pointer.
4904
4905 2002-02-28  Bo Thorsen  <bo@suse.de>
4906
4907         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4908         (STARTFILE_SPEC): Add 64 bit files.
4909         (ENDFILE_SPEC): Likewise.
4910
4911 2002-02-28  Jason Merrill  <jason@redhat.com>
4912
4913         * c-decl.c (finish_function): Only warn about missing return
4914         statement with -Wreturn-type.
4915
4916 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4917
4918         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4919
4920         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4921         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4922
4923 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4924
4925         * basic-block.h (BB_REACHABLE): Renumber.
4926         (BB_DIRTY, BB_NEW): New flags.
4927         (clear_bb_flags): Declare.
4928         (update_life_info_in_dirty_blocks): Declare.
4929         * cfg.c (clear_bb_flags): New function.
4930         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4931         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4932         reorder_insns, emit_insn_after): Mark block as dirty.
4933         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4934         (update_life_info_in_dirty_blocks): New function.
4935         * recog.c (apply_change_group): Dirtify block.
4936
4937         * cse.c (cse_insn): Reorder emitting of jump insn to keep
4938         cfg consistent.
4939         * gcse.c (delete_null_pointer_checks): Likewise.
4940
4941         * toplev.c (dump_file_index): Move cse2 after bp,
4942         add DFI_null
4943         (dump_file_info): Similary.
4944         (rest_of_compilation): Avoid most of CFG rebuilds;
4945         do first if converision after null pointer checks, do cse2
4946         after branch prediction; avoid full liveness rebuild after
4947         initializing subregs.
4948         * invoke.texi (-d options): Document -du, renumber.
4949
4950         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4951         (notice_new_block): Do not set BB_UPDATE_LIFE.
4952         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4953          merge_blocks_move_successor_nojumps, merge_blocks,
4954          try_crossjump_to_edge): Likewise.
4955         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4956         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4957         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4958         (merge_of_block): Do not use life_data_ok.
4959         (find_if_case_1): Do not use SET_UPDATE_LIFE.
4960         (if_convert): Use BB_DIRTY mechanizm to update life.
4961         * lcm.c (optimize_mode_switching): Update
4962         update_life_info_in_dirty_blocks
4963
4964 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4965
4966         * Makefile.in (integrate.o): Update.
4967         * c-decl.c (copy_lang_decl): Rename.
4968         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4969         * integrate.c: Include langhooks.h.
4970         (copy_decl_for_inlining): Update to use langhook.
4971         * langhooks-def.h (lhd_do_nothing_t,
4972         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4973         (LANG_HOOKS_INITIALIZER): Update.
4974         * langhooks.c (lhd_do_nothing_t): New.
4975         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4976         * tree.h (copy_lang_decl): Remove.
4977 objc:
4978         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4979
4980 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4981
4982         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4983         POST_DEC, and POST_MODIFY.
4984
4985 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4986
4987         * c-typeck.c (digest_init): Remove unused parameter; all
4988         callers changed.
4989
4990 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4991
4992         * expmed.c (expand_shift): Correctly test for low part of a
4993         subreg.
4994
4995 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4996
4997         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4998         insn UIDs with insn addresses.
4999
5000 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5001
5002         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5003         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5004         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5005         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5006         gcc.c, toplev.c: Delete code implementing -traditional mode.
5007
5008         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5009         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5010         Document removal of -traditional mode for compilation, and
5011         remove documentation only relevant to that mode.
5012
5013         * config/nextstep.h, config/ptx4.h, config/svr4.h,
5014         config/convex/convex.h, config/d30v/d30v.h,
5015         config/i386/dgux.h, config/i386/osf1elf.h,
5016         config/i386/osfelf.h, config/i386/osfrose.h,
5017         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5018         config/m68k/hp310.h, config/m88k/dgux.h,
5019         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5020         config/m88k/m88k.h, config/m88k/openbsd.h,
5021         config/mips/abi64.h, config/mips/osfrose.h,
5022         config/mips/svr4-5.h, config/mips/svr4-t.h,
5023         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5024         config/stormy16/stormy16.h: Remove all references to
5025         -traditional from target specs.  Delete all mention of the
5026         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
5027         delete a couple of commented-out definitions of
5028         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5029         to -traditional.
5030
5031         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5032         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5033
5034 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5035
5036         * mklibgcc.in: Don't use \n in a line subject to
5037         interpretation by echo.
5038
5039 2002-02-27  Graham Stott  <grahams@redhat.com>
5040
5041         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5042         Constify NAME.
5043
5044         * loop.c (prescan_loop): Handle PARALLEL.
5045
5046         * unroll.c (loop_iterations): Return 0 if the add_val for
5047         a BIV is REG.
5048
5049         * final.c (output_operand_lossage): Constify PFX_STR.
5050
5051         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5052
5053 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5054
5055         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5056         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5057
5058 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5059
5060         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5061
5062 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5063
5064         * cpplex.c (_cpp_lex_token): Handle directives in macro
5065         arguments.
5066         * cpplib.c (_cpp_handle_directive): Save and restore state
5067         if parsing macro args when entering a directive.
5068         * cppmacro.c (collect_args): No need to handle directives
5069         in macro arguments.
5070         (enter_macro_context, replace_args): Use the original macro
5071         definition in case it was redefined whilst collecting arguments.
5072 doc:
5073         * cpp.texi: Update.
5074
5075 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5076
5077         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5078         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5079         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5080         method on AIX.
5081         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5082         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5083         (load_toc_v4_PIC_2): Same.
5084
5085 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5086
5087         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5088
5089 2002-02-26  Richard Henderson  <rth@redhat.com>
5090
5091         * config/alpha/alpha.md (ashldi_se): Re-enable.
5092
5093 2002-02-26  Richard Henderson  <rth@redhat.com>
5094
5095         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5096         MODULE_LOCAL_P; improve commentary.
5097
5098 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5099
5100         * doc/cpp.texi: Clarify documentation of relationship between
5101         #line and #include.
5102
5103 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5104
5105         * config/h8300/h8300-protos.h: Update the prototype for
5106         compute_logical_op_length.  Add the prototype for
5107         compute_logical_op_cc.
5108         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5109         code from operands.
5110         (compute_logical_op_cc): New.
5111         * config/h8300/h8300.md: Combine all the logical op patterns
5112         in HImode and SImode.  Use compute_logical_op_cc.
5113
5114 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5115
5116         * config/i386/i386.c (print_operand): Don't append ATT-style
5117         length suffixs to x87 opcodes when in Intel mode.
5118
5119 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5120
5121         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5122         (init_emit_once): Update calls.
5123         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5124         (init_syntax_once): Prototype.
5125
5126 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5127
5128         * pa-linux.h (LIB_SPEC): Update definition.
5129         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5130
5131 2002-02-26  Richard Henderson  <rth@redhat.com>
5132
5133         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5134         if we emitted a stop bit.
5135
5136 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5137
5138         * configure.in (libgcc_visibility): Substitute.
5139         * configure: Rebuilt.
5140         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5141         defined symbols .hidden.
5142
5143 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5144
5145         * attribs.c (c_common_attribute_table): Add visibility.
5146         (handle_visibility_attribute): New function.
5147         * varasm.c (assemble_visibility): New function.
5148         * output.h (assemble_visibility): Add prototype.
5149         * tree.h (MODULE_LOCAL_P): Define.
5150         * crtstuff.c (__dso_handle): Use visibility attribute.
5151         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5152         for MODULE_LOCAL_P symbols too.
5153         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5154         MODULE_LOCAL_P symbols the same way as local symbols.
5155         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5156         into .sdata/.sbss by the user.
5157         * doc/extend.texi (Function Attributes): Document visibility
5158         attribute.
5159
5160 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5161
5162         PR debug/5770
5163         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5164         STRING_CST initializer spanning the whole variable without
5165         embedded zeros.
5166         If expand_expr returned MEM, don't use it.
5167
5168 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5169
5170         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5171         generate a die for the lexical block.
5172
5173 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5174
5175         * config/h8300/h8300-protos.h: Add a prototype for
5176         compute_logical_op_length.
5177         * config/h8300/h8300.c (compute_logical_op_length): New.
5178         * config/h8300/h8300.md (anonymous logical patterns): Use
5179         compute_logical_op_length for length.
5180
5181 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5182
5183         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5184         for vectors.
5185         (gen_type_die): Same.
5186
5187         * attribs.c (handle_vector_size_attribute): Set debug information.
5188
5189 2002-02-26  Daniel Egger  <degger@fhm.edu>
5190
5191         * config/rs6000/rs6000.md: Swap define_insn attributes to
5192         fix incorrect generation of merge high instructions instead
5193         of merge low.
5194
5195 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5196
5197         * c-typeck.c (really_start_incremental_init): Use
5198         bitsize_zero_node for vectors.
5199
5200 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5201
5202         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5203         ("*set_vrsave_internal"): Same.
5204
5205 2002-02-25  Richard Henderson  <rth@redhat.com>
5206
5207         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5208         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5209
5210 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5211
5212         PR target/5755
5213         * config/i386/i386.c (ix86_return_pops_args): Only pop
5214         fake structure return argument if it was passed on the stack.
5215
5216 2002-02-25  Jason Merrill  <jason@redhat.com>
5217
5218         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5219         RESULT_DECL.
5220
5221 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5222
5223         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5224         link with shared_name only.
5225         * doc/invoke.texi (Link Options): Document new behavior.
5226
5227 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5228
5229         * c-typeck.c (push_init_level): Handle vectors.
5230
5231 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5232
5233         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5234         operands of SPARC_SETHI_P.
5235         (input_operand): Likewise.
5236         (sparc_emit_set_const32): Likewise.
5237         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5238         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5239         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5240         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5241         (movdi_insn_sp64_vis): Likewise.
5242         (movdi split, movdf split): Use SETHI32.
5243         * doc/md.texi: Document SPARC constraints L, M and N.
5244
5245 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5246
5247         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5248         ("*set_vrsave_internal"): use mfspr for Darwin.
5249
5250         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5251         gen_get_vrsave_internal.
5252
5253 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5254
5255         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5256
5257 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5258
5259         * cpplex.c (cpp_interpret_charconst): Get signedness or
5260         otherwise of wide character constants correct.
5261         * cppexp.c (lex): Get signedness of wide charconsts correct.
5262
5263 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5264
5265         * optabs.c (widen_operand): Only call convert_modes for
5266         promoted SUBREG if signedness matches.
5267         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5268
5269 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5270
5271         * cpplib.c (glue_header_name): Use local buffer to build up
5272         header name.
5273
5274 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5275
5276         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5277
5278 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5279
5280         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5281         H8/300[HS] separately.
5282         * config/h8300/h8300.md: Remove the early clobber constraint
5283         from bit field patterns.
5284
5285 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5286
5287         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5288         register_operand.
5289         (mulhisi3): Likewise.
5290         (umulqisi3): Likewise.
5291         (umulhisi3): Likewise.
5292
5293 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5294
5295         * cppinit.c (output_deps): Correct test for stdout output.
5296         (init_dependency_output): Cure warning.
5297
5298 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5299
5300         * expr.c (store_expr): When converting expression to promoted
5301         equivalent type, allow using SUBREG_REG of TARGET as the target
5302         of the expansion of EXP.
5303         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5304         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5305         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5306         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5307         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5308
5309 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5310
5311         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5312         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5313         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5314
5315 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5316
5317         PR optimization/5747
5318         * loop.c (scan_loop): Update reg info if move_movables created new
5319         pseudos.
5320
5321 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5322
5323         * gcc.c (init_gcc_spec): Revert last change.
5324
5325 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5326
5327         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5328         gpc_reg_operand constraint.
5329
5330 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5331
5332         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5333         Simplify comparison of `low'.
5334         (add_operand): Fix formatting.
5335         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5336         (mask_operand): Disallow mask to wrap in 64-bit mode.
5337         (rs6000_stack_info): Remove redundant test setting push_p.
5338         (output_toc): Fix formatting.
5339         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5340         cc_reg_not_cr0_operand constraint.
5341         (booldi3, boolcdi3 splitters): Same.
5342
5343 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5344
5345         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5346
5347 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5348
5349         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5350         gcc invoked with -shared-libgcc.
5351
5352 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5353
5354         PR c++/5748
5355         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5356         decl if any of elements was TREE_USED.
5357
5358 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5359
5360         * config/sparc/sol2.h: Don't include sys/mman.h.
5361         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5362         (arith_4096_operand): Don't throw high bits away.
5363         (const64_operand): Take sign extension of CONST_INTs into account.
5364         (const64_high_operand, sparc_emit_set_const32): Likewise.
5365         (GEN_HIGHINT64): Likewise.
5366         (sparc_emit_set_const64_quick1): Likewise.
5367         (const64_is_2insns): Likewise.
5368         (print_operand): Use trunc_int_for_mode for sign extension.
5369         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5370         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5371         chars.  Assume CONST_INT is already properly sign-extended.
5372         (movdi split): Sign-extend each SImode part.
5373         (andsi3 split): Don't mask high bits off, so that result
5374         remains properly sign-extend.
5375         (iorsi3 split): Likewise.
5376         (xorsi3 split): Likewise.
5377
5378 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5379
5380         * fold-const.c (fold): Fix typo in comments.
5381
5382 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5383
5384         * Makefile.in (langhooks.o): Update dependencies.
5385
5386 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5387
5388         * langhooks.c: Include flags.h.
5389
5390 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5391
5392         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5393
5394         * c-common.c (c_common_post_options): Set inline trees by
5395         default.
5396
5397         * doc/extend.texi (Function Attributes): Document always_inline
5398         attribute.
5399         Update documentation about inlining when not optimizing.
5400
5401         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5402
5403         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5404         unless DECL_ALWAYS_INLINE.
5405
5406         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5407         unless DECL_ALWAYS_INLINE.
5408         (c_disregard_inline_limits): Disregard if always_inline set.
5409
5410         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5411         Disregard if always_inline set.
5412         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5413         unless DECL_ALWAYS_INLINE.
5414
5415         * attribs.c (handle_always_inline_attribute): New.
5416         (c_common_attribute_table): Add always_inline.
5417
5418         * config/rs6000/altivec.h: Add prototypes for builtins
5419         requiring the always_inline attribute.
5420
5421 2002-02-21  Eric Christopher  <echristo@redhat.com>
5422
5423         * expmed.c (store_bit_field): Try to simplify the subreg
5424         before generating a new one when when the mode size of
5425         value is less than maxmode.
5426
5427 2002-02-21  Richard Henderson  <rth@redhat.com>
5428
5429         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5430         than gen_rtx_PLUS to form the sum.
5431         * explow.c (force_reg): Rearrange to not allocate new pseudo
5432         when force_operand returns a register.
5433         * expr.c (expand_assignment): Allow offset_rtx expansion to
5434         return a sum.  Do not force addresses into registers.
5435         (expand_expr): Likewise.
5436         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5437         to canonicalize arithmetic that didn't simpify.
5438         (simplify_plus_minus): New argument force; update
5439         all callers.  Don't split CONST unless we can do something with it,
5440         and wouldn't lose the constness of the operands.
5441
5442         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5443         that we generated earlier.
5444
5445 2002-02-21  Tom Tromey  <tromey@redhat.com>
5446
5447         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5448         (output_line_info): Use constant `1', with a long explanatory
5449         comment.
5450         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5451
5452 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5453
5454         * jump.c (redirect_jump): If old label has no UID, don't try to
5455         delete it.
5456
5457 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5458
5459         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5460         If input is constant, do shifts at compile time.
5461
5462 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5463
5464         * doc/extend.texi: Fix some more overfull hboxes.
5465
5466 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5467
5468         PR optimization/4994
5469         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5470         register moves.
5471
5472 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5473
5474         PR c++/4574
5475         * expr.h (expand_and): Add mode argument.
5476         * expmed.c (expand_and): Add mode argument.
5477         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5478         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5479         * except.c (expand_builtin_extract_return_addr): Likewise.
5480         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5481         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5482         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5483         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5484         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5485         gen_rtx (CONST_INT, VOIDmode, x).
5486
5487 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5488
5489         PR c/4697:
5490         * stmt.c (warn_if_unused_value): Move side effects test once more.
5491
5492 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5493
5494         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5495         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5496
5497 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5498
5499         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5500         SUBREG or ZERO_EXTEND.
5501
5502 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5503
5504         * sh.h (current_function_anonymous_args): Remove.
5505         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5506         of current_function_varargs and current_function_stdarg is set.
5507         * sh.c (sh_expand_prologue): Check current_function_varargs /
5508         current_function_stdarg / TARGET_SH5 instead of
5509         current_function_anonymous_args.
5510
5511         * sh64.h (TARGET_VERSION): Define.
5512
5513 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5514
5515         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5516         VRSAVE_REGNO on TARGET_ALTIVEC.
5517
5518 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5519
5520         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5521         bits of SImode const_int.
5522         (includes_rshift_p): Likewise.
5523         (print_operand): Call mask_operand and mask64_operand with correct
5524         mode.
5525         (rs6000_output_function_epilogue): Pad traceback table to word.
5526         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5527         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5528         mask64_operand with correct mode.
5529         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5530
5531 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5532
5533         PR debug/4461
5534         * varasm.c (get_pool_constant_mark): New.
5535         * rtl.h (get_pool_constant_mark): Add prototype.
5536         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5537         be represented if it has not been output.
5538
5539 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5540
5541         * combine.c (do_SUBST): Sanity check substitutions of
5542         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5543         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5544         CONST_INT into its operand.
5545         (known_cond): Likewise, for ZERO_EXTEND.
5546         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5547         allow for simplification of wide modes.  Reject CONST_INTs in
5548         ZERO_EXTEND when their actual mode is not given.
5549
5550 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5551
5552         * c-decl.c (pushdecl): If no global declaration is found for an
5553         extern declaration in block scope, try a limbo one.
5554
5555 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5556
5557         PR c++/4401
5558         * c-common.c (pointer_int_sum): Moved from...
5559         * c-typeck.c (pointer_int_sum): ...here.
5560         * c-common.h (pointer_int_sum): Add prototype.
5561
5562 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5563
5564         PR c++/5713
5565         * c-decl.c (duplicate_decls): Return 0 if issued error about
5566         redeclaration.
5567
5568 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5569             Jakub Jelinek  <jakub@redhat.com>
5570
5571         PR c/4389
5572         * tree.c (host_integerp): Ensure that the constant integer is
5573         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5574         when pos is zero or non-zero respectively.  Clarify comment.
5575         * c-format.c (check_format_info_recurse): Fix host_integerp
5576         usage; the pos argument should be zero when assigning to a
5577         signed HOST_WIDE_INT.
5578
5579 2002-02-20  Richard Henderson  <rth@redhat.com>
5580
5581         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5582         of the operand, rather than assuming TImode.
5583         (ix86_expand_binop_builtin): Cope with commutative patterns
5584         using nonimmediate_operand for both operands.
5585         (ix86_expand_timode_binop_builtin): Likewise.
5586         (ix86_expand_store_builtin): Validate operand 1.
5587         (ix86_expand_unop1_builtin): Likewise.
5588
5589 2002-02-20  Philip Blundell  <philb@gnu.org>
5590
5591         PR 5705
5592         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5593
5594 2002-02-20  Richard Henderson  <rth@redhat.com>
5595
5596         PR c/5615
5597         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5598
5599 2002-02-20  Tom Tromey  <tromey@redhat.com>
5600
5601         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5602         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5603         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5604         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5605         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5606         unconditionally.
5607
5608 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5609
5610         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5611           for (const_int 0) in X not just INTVAL.
5612
5613 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5614
5615         * doc/extend.texi: Avoid or reduce overfull hboxes.
5616
5617 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5618
5619         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5620         operations if the field does not start at a mode boundary.
5621
5622 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5623
5624         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5625         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5626         Also done for -Acpu and -Amachine.
5627
5628 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5629
5630         * cppinit.c (init_dependency_output): Take deps output file
5631         from -o if none given with -MF.  Suppress normal output.
5632         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5633         * doc/cpp.texi, doc/invoke.texi: Update.
5634
5635 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5636
5637         * toplev.c (output_quoted_string): Write unprintable
5638         characters with octal escapes.
5639
5640 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5641
5642         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5643         really_call_used[VRSAVE_REGNO] if not Altivec.
5644
5645 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5646
5647         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5648         MODE_MASK.
5649         (constant_pool_expr_1): Fix formatting.
5650         (rs6000_legitimize_reload_address): Likewise.
5651
5652 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5653
5654         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5655         now that we have one.
5656
5657 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5658
5659         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5660         end of first block of bitfields (which was only seven bits);
5661         rename dummy to unused_1; remove comment which is no longer true.
5662
5663 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5664
5665         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5666
5667 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5668
5669         PR 5399
5670         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5671         if generating PIC.
5672
5673         PR 5054
5674         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5675         arm_is_longcall_p rather than inspecting call-type cookie
5676         directly.
5677         (call_value_insn) [TARGET_THUMB]: Likewise.
5678
5679 2002-02-19  Graham Stott  <grahams@redhat.com>
5680
5681         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5682
5683 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5684
5685         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5686         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5687         (FP_SAVE_INLINE): Delete.
5688
5689         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5690         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5691         * config/rs6000/t-ppccomm: Build crtsavres.o.
5692         * config/rs6000/crtsavres.asm: New file.
5693
5694 2002-02-19  Philip Blundell  <philb@gnu.org>
5695
5696         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5697         functions.
5698         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5699         (output_return_instruction): Allow interrupt functions to return with
5700         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5701         (arm_expand_prologue): Subtract 4 before stacking LR in an
5702         interrupt function.
5703
5704 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5705
5706         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5707         decl, not just FUNCTION_DECL.
5708         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5709         (arm_assemble_integer): Likewise.
5710         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5711         marked local.
5712
5713 2002-02-19  matthew green  <mrg@eterna.com.au>
5714
5715         * config.gcc (sparc-*-netbsdelf*): Enable target.
5716         (sparc64-*-netbsd*): New target.
5717         * config/sparc/netbsd-elf.h: New file.
5718         * config/sparc/t-netbsd64: New file.
5719
5720 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5721
5722         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5723
5724 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5725
5726         * doc/invoke.texi: explicitly list the style guidelines that
5727         -Weffc++ checks for.
5728
5729 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5730
5731         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5732
5733 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5734
5735         PR other/5718
5736         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5737         only if not -E.  If -E, pass -o through to the preprocessor.
5738
5739 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5740
5741         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5742         register number with an appropriate macro.
5743
5744 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5745
5746         * doc/rtl.texi (Constants): Close @code tag.
5747
5748 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5749
5750         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5751         ("mmx_uavgv4hi3"): Same.
5752         ("pmulhrwv4hi3"): Same.
5753
5754         * tree-inline.c (walk_tree): Handle vectors.
5755
5756         * c-common.c (constant_expression_warning): Handle vectors.
5757         (overflow_warning): Same.
5758
5759         * sched-deps.c (sched_analyze_2): Handle vectors.
5760
5761         * rtlanal.c (rtx_unstable_p): Handle vectors.
5762         (rtx_varies_p): Same.
5763         (count_occurrences): Same.
5764         (regs_set_between_p): Same.
5765         (modified_between_p): Same.
5766         (modified_in_p): Same.
5767         (volatile_insn_p): Same.
5768         (volatile_refs_p): Same.
5769         (side_effects_p): Same.
5770         (may_trap_p): Same.
5771         (inequality_comparisons_p): Same.
5772         (replace_regs): Same.
5773         (computed_jump_p_1): Same.
5774
5775         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5776         argument.
5777         (inner_mode_array): New.
5778         (copy_rtx): Handle vectors.
5779         (copy_most_rtx): Same.
5780         (rtx_equal_p): Same.
5781         (get_mode_alignment): Adjust for vectors.
5782
5783         * resource.c (mark_referenced_resources): Handle vectors.
5784         (mark_set_resources): Same.
5785
5786         * reload1.c (eliminate_regs): Handle vectors.
5787         (elimination_effects): Same.
5788         (scan_paradoxical_subregs): Same.
5789
5790         * reload.c (subst_reg_equivs): Handle vectors.
5791
5792         * regrename.c (scan_rtx): Handle vectors.
5793
5794         * regclass.c (reg_scan_mark_refs): Handle vectors.
5795
5796         * recog.c (find_single_use_1): Handle vectors.
5797
5798         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5799         (contains_replace_regs): Same.
5800         (memref_referenced_p): Same.
5801
5802         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5803         (subst_constants): Same.
5804
5805         * genattrtab.c (attr_copy_rtx): Handle vectors.
5806         (encode_units_mask): Same.
5807         (clear_struct_flag): Same.
5808         (count_sub_rtxs): Same.
5809
5810         * gcse.c (want_to_gcse_p): Handle vectors.
5811         (oprs_unchanged_p): Same.
5812         (hash_expr_1): Same.
5813         (oprs_not_set_p): Same.
5814         (expr_killed_p): Same.
5815         (compute_transp): Same.
5816         (store_ops_ok): Same.
5817
5818         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5819         of vectors.
5820         (fixup_var_refs_1): Same.
5821         (instantiate_virtual_regs_1): Same.
5822
5823         * fold-const.c (operand_equal_p): Handle vectors.
5824         (fold): Same.
5825         (rtl_expr_nonnegative_p): Same.
5826
5827         * flow.c (mark_used_regs): Handle vectors.
5828
5829         * df.c (df_uses_record): Handle vectors.
5830
5831         * cselib.c (cselib_subst_to_values): Handle vectors.
5832         (cselib_mem_conflict_p): Same.
5833         (hash_rtx): Same.
5834
5835         * cse.c (canon_reg): Handle vectors.
5836         (fold_rt): Same.
5837         (cse_process_notes): Same.
5838         (count_reg_usage): Same.
5839         (canon_hash): Same.
5840
5841         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5842
5843         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5844
5845         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5846         (gen_rtx): Handle CONST_VECTOR.
5847         (gen_const_vector_0): New.
5848         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5849         (reset_used_flags): Same.
5850         (copy_insn_1): Same.
5851         (initializer_constant_valid_p): Handle VECTOR_CST.
5852
5853         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5854
5855         * doc/rtl.texi (Constants): Document const_vector.
5856         (CONST0_RTX): Update for vectors.
5857         (RTL sharing): Same.
5858
5859         * print-tree.c (print_node): Add case for VECTOR_CST.
5860
5861         * tree.h (TREE_VECTOR_CST_ELTS): New.
5862         (struct tree_vector): New.
5863         (union tree_node): Add vector node.
5864         (build_vector): Add prototype.
5865
5866         * tree.def (VECTOR_CST): New.
5867
5868         * tree.c (build_vector): New.
5869
5870         * expmed.c (make_tree): Handle CONST_VECTOR.
5871
5872         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5873         (CONST_VECTOR_ELT): New.
5874         (CONST_VECTOR_NUNITS): New.
5875
5876         * machmode.h (GET_MODE_INNER): New.
5877         (DEF_MACHMODE): Accept 8th arg.
5878
5879         * machmode.def: Add 8th argument for vector inner mode.
5880         Add inner vector modes for vectors.
5881
5882         * rtl.def (VEC_CONST): Remove.
5883         (CONST_VECTOR): New.
5884
5885         * expr.c (clear_storage): Allow vectors.
5886         (is_zeros_p): Handle VECTOR_CST.
5887
5888         * varasm.c (output_constant_pool): Handle vectors.
5889         (rtx_const): Add veclo and vechi fields.
5890         (kind): Add RTX_VECTOR.
5891         (decode_rtx_const): Add case for vector.
5892
5893         * config/rs6000/rs6000-protos.h: Add zero_constant.
5894
5895         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5896         constants.  Force easy vector constants into memory.
5897         (easy_vector_constant): New.
5898         (emit_easy_vector_constant): New.
5899         (rs6000_legitimize_reload_address): Do not generate bad reloads on
5900         darwin.
5901
5902         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5903         instruction does.
5904         ("altivec_lvxl"): Same.
5905         (altivec_lvebx): Same.
5906         (altivec_lvehx): Same.
5907         (altivec_lvewx): Same.
5908         ("*movv4si_const0"): New.
5909         ("*movv4sf_const0"): New.
5910         ("*movv8hi_const0"): New.
5911         ("*movv16qi_const0"): New.
5912
5913 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5914
5915         * config/h8300/h8300.c (notice_update_cc): Use
5916         cc_status.value2.
5917
5918 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5919
5920         * config/h8300/h8300.md (divmod patterns): Change the
5921         constraints for operands[1] to register_operand.
5922
5923 2002-02-18  Kazu Hirata  <kazu@hxi.com>
5924
5925         * config/h8300/h8300-protos.h: Remove the prototype for
5926         p_operand.
5927         * config/h8300/h8300.c (p_operand): Remove.
5928         * config/h8300/h8300.md: Replace p_operand with
5929         const_int_operand.
5930
5931 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5932
5933         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5934         comment.
5935         (output_return_instruction): Allow use of LDR to unstack
5936         return addresss even for interrupt handlers or when
5937         interworking.  If compiling for ARMv5, use interworking-safe
5938         return instructions by default.  Remove duplicated code and
5939         lengthy "strcat" sequences.
5940
5941 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5942
5943         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5944         (LINK_EH_SPEC): Define.
5945         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5946
5947 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
5948
5949         * config/s390/s390.c (s390_emit_prologue): Do not set the
5950         frame_related flag for call-clobbered registers.
5951
5952 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5953
5954         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5955         (construct_container): Fix handling of SSE operands.
5956         (ix86_expand_builtin): Fix handling of 64bit pointers.
5957         (mmx_maskmovq_rex): New pattern.
5958
5959 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5960
5961         * regrename.c (kill_set_value): Handle subregs properly.
5962
5963 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5964
5965         * objc/objc-act.c (handle_impent): Remove leading '*'
5966         from objc_class_name.
5967
5968 2002-02-17  Richard Henderson  <rth@redhat.com>
5969
5970         * config/alpha/alpha.c (some_small_symbolic_operand,
5971         some_small_symbolic_operand_1, split_small_symbolic_operand,
5972         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5973         Handle small SYMBOL_REFs anywhere, not just inside memories.
5974         * config/alpha/alpha-protos.h: Update.
5975         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5976         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5977
5978 2002-02-17  Roland McGrath  <roland@frob.com>
5979
5980         * config.gcc (powerpc-*-gnu-gnualtivec*,
5981         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5982         * config/rs6000/gnu.h: New file.
5983         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5984         Grok "gnu" in rs6000_abi_name.
5985         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5986         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5987         Grok -mcall-gnu analogous to -mcall-linux et al.
5988         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5989         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5990         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5991
5992 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5993
5994         PR c/3444:
5995         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5996         shortening.
5997
5998 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5999
6000         * config/cris/cris.h: Undefine STARTFILE_SPEC and
6001         ENDFILE_SPEC before (re)defining them.
6002
6003 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6004
6005         * config/h8300/h8300.c: Fix formatting.
6006         * config/h8300/h8300.h: Likewise.
6007
6008 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6009
6010         * doc/tm.texi: Explain why empty strings should not be
6011         marked for translation.
6012
6013 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6014
6015         * final.c (output_operand_lossage): Changed to accept
6016         printf style arguments. Change calls where necessary.
6017         * output.h (output_operand_lossage): Change declaration
6018         accordingly. Update copyright.
6019         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6020         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6021         Update copyright date where necessary.
6022
6023         * config/i386/i386.c (print_operand): Likewise. Remove use of
6024         sprintf.
6025
6026         * config/cris/cris.c (cris_operand_lossage): Likewise.
6027         Rename parameter so that exgettext recognizes it as
6028         translatable message.
6029         (LOSE_AND_RETURN): Rename parameter to msgid.
6030
6031 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6032
6033         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6034         hard coded register number with an appropriate macro.
6035         (HARD_REGNO_MODE_OK): Likewise.
6036         (ARG_POINTER_REGNUM): Likewise.
6037         (STATIC_CHAIN_REGNUM): Likewise.
6038         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6039         * config/h8300/h8300.md (define_constants): Define more
6040         register numbers.
6041
6042 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6043
6044         * config/i386/i386.h: Don't mark empty strings for translation.
6045
6046 2002-02-16  H.J. Lu <hjl@gnu.org>
6047
6048         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6049
6050 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6051
6052         * cppinit.c (merge_include_chains): Check for brack being
6053         NULL before attempting to merge it with qtail.
6054
6055 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6056
6057         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6058         DBX_DEBUG.
6059
6060 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6061
6062         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6063
6064 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6065
6066         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6067         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6068         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6069
6070 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6071
6072         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6073         now only if !TARGET_FIX.
6074         (*movsi_nt_vms_fix): New pattern.
6075
6076 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6077
6078         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6079         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6080         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6081         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6082         (alpha_start_function, alpha_expand_epilogue): Likewise.
6083         (unicosmk_gen_dsib): Likewise.
6084
6085 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6086
6087         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6088
6089 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6090
6091         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6092         check_and_change_labels, s390_final_chunkify): Delete.
6093         (s390_split_branches, s390_chunkify_pool): New functions.
6094         (s390_function_prologue): Call them.
6095
6096         * config/s390/s390.h (S390_REL_MAX): Delete.
6097         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6098
6099         * config/s390/s390.md (cjump, icjump, jump): Fix length
6100         attribute calculation.
6101
6102
6103 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6104
6105         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6106         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6107
6108 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6109
6110         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6111         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6112         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6113
6114 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6115
6116         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6117
6118 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6119
6120         * reload.c (find_dummy_reload): Check that an output register
6121         is valid for its mode.
6122
6123 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6124
6125         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6126         to simplify it.
6127
6128         * function.c (assign_parms): Demote promoted argument passed by
6129         transparent reference.
6130
6131 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6132
6133         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6134         -Acpu() and -Amachine() to eliminate warnings.
6135
6136 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6137
6138         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6139
6140 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6141
6142         * config/h8300/h8300-protos.h: Update the prototype for
6143         const_costs.
6144         * config/h8300/h8300.c (const_costs): Treat SET as a little
6145         more expensive operation.
6146         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6147         reference to const_costs.
6148
6149 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6150
6151         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6152
6153 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6154
6155         PR c/5503:
6156         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6157         use arguments from newtype.
6158
6159 2002-02-13  Eric Christopher  <echristo@redhat.com>
6160
6161         * config/mips/mips.c (override_options): Add check for march/mipsX
6162         on the same command line. Fix error message in cpu processing.
6163         Remove architecture and ISA checks.
6164
6165 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6166
6167         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6168
6169         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6170
6171 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6172
6173         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6174         alternatives.
6175         ("*movv8hi_internal1"): Same.
6176         ("*movv16qi_internal1"): Same.
6177         ("*movv4sf_internal1"): Same.
6178
6179         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6180         not push_reload for altivec modes.
6181
6182 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6183
6184         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6185         all RTEMS targets including removal of #includes from config/*/rtems*.h
6186         file and adding them to tm_file setting. Added xm_defines=POSIX to
6187         many targets.
6188         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6189         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6190         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6191         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6192         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6193         config/m68k/rtemself.h: Ditto.
6194         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6195         config/mips/rtems64.h: Ditto.
6196         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6197         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6198         Ditto.
6199         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6200         config/sparc/rtemself.h: Ditto.
6201         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6202         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6203         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6204         more like arm-elf.
6205         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6206         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6207         target made more similar to i386-elf.
6208         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6209         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6210         be similar to config/m68k/t-m68kelf.
6211         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6212
6213 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6214
6215         * regmove.c (kill_value): Handle subregs.
6216
6217 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6218
6219         * i386.md (mul patterns): Allow memory operand to be first;
6220         add expanders where needed; fix constraints.
6221         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6222         Allow memory operand to be the first.
6223
6224         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6225         operands.
6226
6227 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6228
6229         PR c/5681:
6230         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6231         GET_MODE (x).
6232
6233 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6234
6235         PR optimization/5547:
6236         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6237         all valid IA-32 address modes involving non-scaled %ebx and
6238         GOT/GOTOFF as displacement.
6239
6240 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6241
6242         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6243         after emitting ltorg insns.
6244
6245         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6246         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6247         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6248         *abssf2): Fix "op_type" attribute.
6249
6250 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6251
6252         * mkconfig.sh: Avoid using a subshell redirect.
6253         ($output.T): Change to $(output)T.
6254         (ENABLE_NLS): Remove unneeded undef.
6255
6256         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6257         * config/alpha/x-vms (libsubdir): Define.
6258
6259         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6260         register frame procedures. Optimize retrieving context.
6261
6262         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6263         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6264         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6265
6266 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6267
6268         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6269         Make same change as for find_base_value.
6270
6271 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6272
6273         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6274         of QImode and SImode.
6275
6276 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6277
6278         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6279         length computation of movsi.
6280         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6281
6282 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6283
6284         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6285         operands[2] to register_operand.
6286
6287 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6288
6289         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6290
6291 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6292
6293         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6294         for altivec_lvx* and altivec_stvx*.
6295         ("*movv4si_internal"): Add constraint for loading from GPRs.
6296         ("*movv8hi_internal1"): Same.
6297         ("*movv16qi_internal1"): Same.
6298         ("*movv4sf_internal1"): Same.
6299
6300         * config/rs6000/rs6000.c (altivec_register_operand): New.
6301
6302         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6303         altivec_register_operand.
6304
6305 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6306
6307         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6308         handle SYMBOL_REF.
6309
6310 2002-02-13  Stan Shebs  <shebs@apple.com>
6311
6312         * c-typeck.c (digest_init): Handle vectors.
6313         (really_start_incremental_init): Same.
6314         (pop_init_level): Same.
6315         (process_init_element): Same.
6316
6317         * varasm.c (output_constant): Same.
6318
6319         * expr.c (clear_storage): Same.
6320         (store_constructor): Same.
6321
6322 2002-02-12  Eric Christopher  <echristo@redhat.com>
6323
6324         * explow.c (hard_function_value): Add comment explaining
6325         signed/unsigned comparison.
6326
6327 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6328
6329         * jump.c (never_reached_warning): Add finish argument.
6330         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6331         real insn after end.
6332         * rtl.h (never_reached_warning): Adjust prototype.
6333         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6334         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6335         never_reached_warning.
6336
6337 2002-02-12  Graham Stott  <grahams@redhat.com>
6338
6339         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6340
6341 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6342
6343         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6344         logical shifts on H8/300.
6345         (shift_alg_si): Improve several shifts on H8/300.
6346         (get_shift_alg): Likewise.
6347
6348 2002-02-12  Graham Stott  <grahams@redhat.com>
6349
6350         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6351
6352 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6353
6354         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6355         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6356
6357 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6358
6359         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6360         non-CONST_INT through default_assemble_integer.
6361         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6362         <case 8>: Abort for CONST_DOUBLE.
6363
6364 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6365
6366         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6367         is specified.
6368         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6369         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6370
6371 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6372
6373         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6374
6375 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6376
6377         * regrename.c (regrename_optimize): Don't accept a
6378         part-clobbered register if the replaced register is not part
6379         clobbered.
6380
6381         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6382         take padding into account when computing the argument value.
6383
6384         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6385
6386         * combine.c (try_combine): Apply substitutions in
6387         CALL_INSN_FUNCTION_USAGE too.
6388
6389 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6390
6391         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6392         __builtin_altivec_abs*.
6393         (bdesc_abs): New.
6394
6395         * config/rs6000/rs6000.h (rs6000_builtins): Add
6396         ALTIVEC_BUILTIN_ABS*.
6397
6398         * config/rs6000/altivec.h: Use const char for builtins expecting
6399         literals.
6400         (vec_abs): New versions for C and C++.
6401         (vec_abss): Same.
6402
6403 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6404
6405         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6406         using Pmode.
6407
6408 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6409
6410         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6411         constant definition from h8300.md.
6412         (FRAME_POINTER_REGNUM): Likewise.
6413         * config/h8300/h8300.md (define_constants): Add FP_REG.
6414
6415 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6416
6417         * config/h8300/h8300.c (print_operand): Remove redundant code.
6418
6419 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6420
6421         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6422         * config/h8300/h8300.c (byte_reg): Make it static.
6423
6424 2002-02-10  Richard Henderson  <rth@redhat.com>
6425
6426         PR c/5623
6427         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6428
6429 2002-02-10  Richard Henderson  <rth@redhat.com>
6430
6431         PR c++/5624
6432         * tree.c (append_random_chars): Don't abort if main_input_filename
6433         does not exist.
6434
6435 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6436
6437         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6438
6439 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6440
6441         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6442         (pushhi1): Likewise.
6443
6444 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6445
6446         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6447         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6448
6449 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6450
6451         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6452         remove MASK_VIS.
6453         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6454
6455 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6456
6457         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6458         a half of an SImode register on H8/300.
6459
6460 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6461
6462         * i386.md (movdi_2): Add missing '!'.
6463
6464 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6465
6466         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6467         definitions.
6468
6469 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6470
6471         * config/h8300/h8300.md (length): Correct the distance valid
6472         for the short branch.
6473
6474 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6475
6476         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6477
6478 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6479
6480         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6481         registers in SImode.
6482         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6483         part-clobbered.
6484
6485         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6486         patch.
6487
6488         Contribute sh64-elf.
6489         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6490         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6491         (sh_cannot_modify_jumps_p): New function.
6492         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6493         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6494         (sh_ms_bitfield_layout_p): New function.
6495         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6496                     Zack Weinberg  <zack@codesourcery.com>
6497         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6498         expand_simple_binop instead of expand_binop.
6499         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6500         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6501         use of .quad and .uaquad.
6502         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6503         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6504         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6505         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6506         movdi_const_16bit): Make sure all CONSTs have modes.
6507         (sym2PIC): Ditto, but by adjusting all callers.
6508         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6509         if the prologue calls the SHmedia argument decoder or register
6510         saver.
6511         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6512         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6513         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6514         (sh_expand_epilogue): Don't emit USE of return target register.
6515         (prepare_move_operands): Legitimize DImode PIC addresses.
6516         (sh_media_register_for_return): Skip tr0, used to initialize the
6517         PIC register.
6518         (sh_expand_prologue): Remove explicit USE of return register.
6519         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6520         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6521         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6522         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6523         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6524         EXTRA_CONSTRAINT_T.
6525         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6526         (MOVI_SHORI_BASE_OPERAND_P): New.
6527         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6528         (EXTRA_CONSTRAINT_T): Define in terms of them.
6529         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6530         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6531         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6532         alternatives supporting TARGET_REGS.
6533         (UNSPEC_GOTPLT): New constant.
6534         (movdi split): Move incrementing of LABEL_NUSES...
6535         (movdi_const, movdi_const_32bit): Here.  Use
6536         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6537         (movdi_const_16bit): New.
6538         (call, call_value) [flag_pic]: Use GOTPLT.
6539         (call_pop, call_value_pop): New expands.
6540         (call_pop_compact, call_pop_rettramp): New insns.
6541         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6542         (sibcall) [flag_pic]: Use GOT.
6543         (builtint_setjmp_receiver): Remove bogus, unused expand.
6544         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6545         (*pt, *ptb, ptrel): New insns.
6546         (sym2GOT): Handle DImode GOT.
6547         (sym2GOTPLT, symGOTPLT2reg): New expands.
6548         (sym2PIC): New expand.
6549         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6550         (shcompact_return_tramp_i): Use return register explicitly.
6551         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6552         disable flag_reorder_blocks.
6553         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6554         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6555         clobbers, for clarity.
6556         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6557         restoring of r0 in macl as MAYBE_DEAD.
6558         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6559         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6560         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6561         alter_subreg all over.
6562         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6563         reload, instead of emitting instructions that would require
6564         reloading.
6565         (casesi_load_media): Add missing modes.
6566         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6567         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6568         as used if the argument decoder is called.
6569         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6570         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6571         Pmode, then extend it to DImode if necessary.
6572         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6573         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6574         constants in FPU-enabled SHmedia, let them be loaded from memory.
6575         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6576         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6577         Adjust whitespace in assembly output templates.
6578         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6579         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6580         mode of if_then_else.
6581         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6582         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6583         sh.h.
6584         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6585                     Joern Rennecke <amylaar@redhat.com>
6586         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6587         (SUBTARGET_CPP_PTR_SPEC): New.
6588         (SUBTARGET_CPP_SPEC): Remove.
6589         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6590         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6591         Fix typo in previous checkin.
6592         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6593         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6594         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6595                     Alexandre Oliva  <aoliva@redhat.com>
6596         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6597         what single FP register can hold for SHmedia target.
6598         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6599                     Alexandre Oliva  <aoliva@redhat.com>
6600         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6601         Do not split into SUBREG.
6602         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6603         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6604         and added new functions as specified in SH5 ABI r9.
6605         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6606         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6607         8-byte boundary.
6608         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6609         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6610         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6611         and consttable_window_ends.
6612         2001-06-03  Graham Stott  <grahams@redhat,com>
6613         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6614         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6615         * config/sh/sh.c (print_operand): Handle floating-point pair,
6616         vector and matrix registers.
6617         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6618         vector modes into account.
6619         * config/sh/sh.md (movv2sf): Split move between registers into
6620         movdf.
6621         (movv4sf, movv16sf): Introduce insns that get split only after
6622         reload.
6623         * config/sh/shmedia.h: Fix Copyright dates.
6624         * config/sh/ushmedia.h: Likewise.  Move loop counter
6625         declarations into conditionals that uses them.
6626         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6627         loop boundary.
6628         * config/sh/sshmedia.h: Fix Copyright dates.
6629         (sh_media_PUTCFG): Fix constraints.
6630         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6631         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6632         ptrmemfunc_vbit_in_delta for SH5.
6633         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6634         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6635         * invoke.texi: Likewise.
6636         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6637         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6638         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6639         GCC_pop_shmedia_regs_nofpu): New global symbols.
6640         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6641         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6642         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6643         compact function with nonlocal labels.
6644         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6645         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6646         (initial_elimination_offset): Account for their stack space.
6647         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6648         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6649         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6650         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6651         least one of the operands to be a register.
6652         (movv2sf): Likewise.  Renamed to movv2sf_i.
6653         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6654         prepare_move_operands() before emitting SHmedia insns.
6655         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6656         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6657         Don't save nor initialize r12.  Don't mis-align the stack.
6658         Pad the code with a nop.
6659         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6660         stack.
6661         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6662         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6663         [__SHMEDIA__]: Implement.
6664         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6665         * config/sh/sh.md: Set latency of `pt' closer to reality.
6666         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6667         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6668         Set move, load and store type attributes.
6669         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6670         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6671         profiling.
6672         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6673         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6674         * config/sh/sh.c (sh_media_register_for_return): New function.
6675         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6676         branch-target register.
6677         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6678         * config/sh/sh.md (return_media_i): Use any call-clobbered
6679         branch-target register.
6680         (return_media): If r18 wasn't copied in the prologue, copy it
6681         here.
6682         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6683         Clear class FP0_REGS.
6684         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6685         from elf.h.
6686         2001-03-08  DJ Delorie  <dj@redhat.com>
6687         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6688         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6689         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6690         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6691         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6692         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6693         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6694         return value correctly for call_cookie.
6695         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6696         * config/sh/crt1.asm (start): Modified so as to call
6697         ___setup_argv_and_call_main.
6698         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6699         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6700         SHmedia mode.
6701         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6702         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6703         (STRIP_NAME_ENCODING): Use it.
6704         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6705         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6706         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6707         prepare_scc_operands().
6708         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6709         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6710         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6711         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6712         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6713         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6714         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6715         used in shcompact_incoming_args.
6716         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6717         change.
6718         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6719         mode.
6720         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6721         Adjust accordingly.
6722         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6723         Simplify.  Adjust.  Add sanity check.
6724         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6725         FPU_SINGLE_BIT.
6726         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6727         TARGET_SHCOMPACT.
6728         (udivsi3, divsi3): Use them.
6729         (force_mode_for_call): New insn.
6730         (call, call_value, sibcall_value): Emit it before SHcompact
6731         calls.
6732         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6733         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6734         call cookie is non-NULL before taking its value.
6735         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6736         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6737         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6738         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6739         block.
6740         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6741         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6742         temporary for stack adjusts.  Use MACL and MACH to pass
6743         arguments to shcompact_incoming_args.
6744         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6745         clobber r1.
6746         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6747         (nested_trampoline): Load static chain address into r1.
6748         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6749         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6750         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6751         fp_arith_reg_operand().
6752         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6753         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6754         and use signed compares for them.
6755         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6756         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6757         ones properly aligned.
6758         (find_barrier): Account for extra alignment needed for 8-byte wide
6759         constants.
6760         (machine_dependent_reorg): Require a label for the second 4-byte
6761         constant after an 8-byte one.
6762         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6763         change.
6764         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6765         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6766         last_float when switching float modes.
6767         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6768         auto-increment for general-purpose registers.
6769         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6770         result.
6771         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6772         for stack adjust.
6773         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6774         registers for varargs.
6775         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6776         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6777         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6778         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6779         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6780         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6781         call_cookie accordingly.
6782         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6783         (SHCOMPACT_BYREF): Likewise.
6784         (SHCOMPACT_FORCE_ON_STACK): New macro.
6785         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6786         (sh_builtin_saveregs): Likewise.
6787         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6788         shcompact_incoming_args): Use new shift values.  Support
6789         sequences of consecutive and non-consecutive pushes/pops.
6790         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6791         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6792         * config/sh/sh.h (TEXT_SECTION): Define.
6793         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6794         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6795         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6796         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6797         return values on FPU-enabled SHmedia.
6798         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6799         FPU-enabled SHmedia.
6800         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6801         value is returned in a non-FP reg and is not returned by
6802         reference.
6803         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6804         jump_ind.
6805         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6806         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6807         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6808         quad-aligned to be passed by callee-copy reference.
6809         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6810         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6811         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6812         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6813         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6814         copying low-numbered FP regs to r7 and r8.
6815         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6816         FP regs to general-purpose regs only if the copy was passed on the
6817         stack.
6818         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6819         copying FP reg to r9.
6820         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6821         copy FP regs to general-purpose regs only in outgoing calls.
6822         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6823         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6824         HOST_WIDE_INT.
6825         * config/sh/sh.h (struct sh_args): Document all fields.
6826         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6827         passed partially on the stack should not consider making
6828         sibcalls.
6829         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6830         stack_regs only for incoming calls.  When passing FP args,
6831         make sure there are FP regs available before modifying
6832         call_cookie.
6833         (SHCOMPACT_BYREF): Pass double args in general-purpose
6834         registers by reference.
6835         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6836         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6837         attempt to generate sibcalls if the caller got any arguments
6838         by reference.
6839         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6840         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6841         to 8-byte boundaries.
6842         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6843         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6844         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6845         stored in the stack.
6846         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6847         for the offsets to have the ISA bit set.
6848         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6849         invocation.  Use beq instead of bgt to mark end of sequence of
6850         loads.
6851         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6852         bgt to mark end of sequence of stores.
6853         * config/sh/sh.c (arith_operand): Don't check whether
6854         CONST_OK_FOR_J for now.
6855         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6856         instead of long for conversion.
6857         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6858         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6859         before passing it to fprintf.
6860         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6861         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6862         Call set_fpscr before reading/writing SR.
6863         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6864         Call set_fpscr.
6865         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6866         SHmedia code.
6867         (FMOVD_WORKS): Define on SH5 with FPU.
6868         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6869         setting.
6870         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6871         _fpscr_values.
6872         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6873         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6874         address.
6875         (ia_main_table): Ditto.
6876         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6877         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6878         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6879         the definitions from sh.h.
6880         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6881         TARGET_SH5.
6882         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6883         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6884         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6885         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
6886         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6887         Increment LABEL_NUSES.
6888
6889         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6890         TARGET_SH5.
6891         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6892         defined.
6893         * config/sh/elf.h (SIZE_TYPE): Likewise.
6894         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6895         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6896         shcompact_incoming_args): Load switch table addresses using
6897         datalabel.
6898         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6899         (NO_BUILTIN_SIZE_TYPE): Define.
6900         (SIZE_TYPE): Don't define.
6901         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6902         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6903         definition of __SH5__=32 for -m5-compact-nofpu.
6904         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6905         ADDR_DIFF_VEC.
6906         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
6907         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6908         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
6909         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6910         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6911         (INSN_LENGTH_ALIGNMENT): Likewise.
6912         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6913         * config/sh/sh.md (call, call_value, sibcall): Simplify
6914         copying of non-branch-target register.
6915         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6916         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
6917         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6918         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
6919         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6920         floating-point values as structs.
6921         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6922         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6923         general-purpose register.
6924         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6925         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6926         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6927         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6928         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6929         (ENCODE_SECTION_INFO): Enclose variables and constants in
6930         DATALABEL unspecs.
6931         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6932         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6933         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6934         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6935         only for LABEL_REFs.  For SYMBOL_REFs, prepend
6936         SH_DATALABEL_ENCODING to the symbol name.
6937         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6938         convert_mode().
6939         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
6940         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6941         UNSPEC_DATALABEL.
6942         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6943         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6944         (DATALABEL_REF_P): Don't require CONST.
6945         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6946         REL label.
6947         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
6948         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6949         right.
6950         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6951         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6952         Use shallow_copy_rtx and PUT_MODE to change the mode of
6953         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6954         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6955         on SHmedia using GENERAL_REGs.
6956         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6957         bltu_media_i): Fix reversion of conditions.
6958         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
6959         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6960         * config/sh/sh.c (output_far_jump): Save r13 in macl.
6961         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
6962         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6963         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6964         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6965         (GCC_nested_trampoline): Likewise.
6966         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6967         * config/sh/sh.c (gen_datalabel_ref): Define.
6968         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6969         (INITIALIZE_TRAMPOLINE): Likewise.
6970         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6971         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6972         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6973         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6974         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6975         (ic_invalidate): Adjust for SH5.
6976         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6977         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6978         _nested_trampoline.
6979         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6980         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6981         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6982         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6983         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6984         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6985         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6986         * config/sh/sh.c (target_reg_operand): Match only target-branch
6987         registers and pseudos that aren't virtual registers.
6988         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6989         Copy operands that don't match target_reg_operand to pseudos.
6990         (call_media, call_value_media, sibcall_media): Use
6991         target_reg_operand instead of target_operand.
6992         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6993         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6994         * config/sh/sh.c (target_reg_operand): Match hardware registers
6995         other than branch-target registers.
6996         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6997         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6998         (fpscr_values) [SH5 == 32]: Define.
6999         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7000         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7001         Handle function addresses coming in SUBREGs.
7002         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
7003         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7004         shcompact_return_trampoline): Use datalabel where appropriate.
7005         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
7006         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7007         general-purpose register to copy one branch-target register to
7008         another.
7009         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7010         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7011         SYMBOL_REFs with VOIDmode.
7012         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7013         bltu_media_i): New insns.
7014         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7015         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7016         (INIT_CUMULATIVE_ARGS): Likewise.
7017         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7018         * machmode.def (V16SFmode): New mode.
7019         * c-common.c (type_for_mode): Support V2SF and V16SF.
7020         * tree.c (build_common_tree_nodes_2): Likewise.
7021         * tree.h (tree_index): Likewise.
7022         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7023         callers.  Introduce CALL_POPS_ARGS.
7024         * tm.texi (CALL_POPS_ARGS): Document.
7025         * config/sh/crt1.asm: Implement in SHmedia mode.
7026         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7027         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7028         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7029         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7030         Implement divsi and udivsi in SHmedia mode.  Introduce
7031         SHcompact trampolines.
7032         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7033         only in SHmedia64.
7034         (regno_reg_class): Rewrite.
7035         (fp_reg_names): Remove.
7036         (sh_register_names, sh_additional_register_names): New.
7037         (print_operand): Added `u'.  Support SUBREGs in addresses.
7038         Add parentheses around shifted CONSTs.
7039         (output_file_start): Output .mode and .abi directives.
7040         (shiftcosts, addsubcosts, multcosts): Adjust.
7041         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7042         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7043         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7044         bytes, not registers.  Take into account the need for the
7045         SHcompact incoming args trampoline.  Adjust all callers.
7046         (sh_expand_prologue): Take stack_regs into account.  Call
7047         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7048         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7049         stack aligned as per SH5 ABI.
7050         (sh_builtin_saveregs): Support SH5 ABI.
7051         (sh_build_va_list, sh_va_start): Likewise.
7052         (initial_elimination_offset): Take alignment into account.
7053         Compute location of PR according to the SH5 stack frame.
7054         (arith_reg_operand): Reject branch-target registers.
7055         (shmedia_6bit_operand): New.
7056         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7057         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7058         (target_operand): New.
7059         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7060         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7061         SIBCALL_REGS for SHmedia.
7062         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7063         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7064         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7065         (TARGET_SWITCHES): New SH5 flags.
7066         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7067         VALID_REGISTER_P to disable unsupported registers.
7068         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7069         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7070         (FUNCTION_ARG_PADDING): Define.
7071         (FASTEST_ALIGNMENT): Adjust.
7072         (SH_REGISTER_NAMES_INITIALIZER): New.
7073         (sh_register_names): Declare.
7074         (DEBUG_REGISTER_NAMES): Define.
7075         (REGISTER_NAMES): Define based on sh_register_names.
7076         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7077         (sh_additional_register_names): Declare.
7078         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7079         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7080         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7081         (REGISTER_NATURAL_MODE): Define.
7082         (FIRST_PSEUDO_REGISTER): Adjust.
7083         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7084         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7085         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7086         (VECTOR_MODE_SUPPORTED_P): Define.
7087         (REG_CLASS_CONTENTS): Adjust.
7088         (SMALL_REGISTER_CLASSES): Adjust.
7089         (REG_ALLOC_ORDER): Adjust.
7090         (INDEX_REG_CLASS): Adjust.
7091         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7092         (CONST_OK_FOR_LETTER_P): Adjust.
7093         (PREFERRED_RELOAD_CLASS): Adjust.
7094         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7095         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7096         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7097         (FIRST_FP_PARM_REG): Adjust.
7098         (CALL_POPS_ARGS): Define.
7099         (FUNCTION_ARG_REGNO_P): Adjust.
7100         (struct sh_args): New fields.
7101         (GET_SH_ARG_CLASS): Adjust.
7102         (INIT_CUMULATIVE_ARGS): Adjust.
7103         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7104         (FUNCTION_ARG_ADVANCE): Adjust.
7105         (FUNCTION_ARG): Adjust.
7106         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7107         (FUNCTION_ARG_CALLEE_COPIES): Define.
7108         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7109         (STRICT_ARGUMENT_NAMING): Define.
7110         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7111         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7112         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7113         (SETUP_INCOMING_VARARGS): Adjust.
7114         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7115         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7116         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7117         (SUBREG_OK_FOR_INDEX_P): Adjust.
7118         (EXTRA_CONSTRAINT_S): Update.
7119         (EXTRA_CONSTRAINT_T): New.
7120         (EXTRA_CONSTRAINT): Adjust.
7121         (GO_IF_LEGITIMATE_INDEX): Adjust.
7122         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7123         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7124         (MOVE_MAX): Adjust.
7125         (MAX_MOVE_MAX): Define.
7126         (Pmode): Adjust.
7127         (CONST_COSTS): Adjust.
7128         (REGISTER_MOVE_COST): Adjust.
7129         (BRANCH_COST): Adjust.
7130         (TEXT_SECTION_ASM_OP): Adjust.
7131         (DBX_REGISTER_NUMBER): Adjust.
7132         (ASM_OUTPUT_DOUBLE_INT): New.
7133         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7134         (PREDICATE_CODES): Adjust.
7135         (PROMOTE_MODE): Adjust.
7136         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7137         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7138         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7139         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7140         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7141         (TR0_REG, TR1_REG, TR2_REG): New.
7142         (XD0_REG): Renumber.
7143         (UNSPEC_COMPACT_ARGS): New.
7144         (type): Added pt and ptabs.
7145         (length): Default to 4 on SHmedia.  Default pt length to 12
7146         and     20 on SHmedia32 and SHmedia64, respectively.
7147         (pt): New function unit.
7148         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7149         Add whitespace between operands of SHmedia instructions.
7150         (movdicc): Fix.
7151         (adddi3_media, addsi3_media): Adjust constraints.
7152         (subsi3) [SHmedia]: Force operand 1 into a register.
7153         (udivsi3_i1_media, udivsi3_i4_media): New.
7154         (udivsi3): Support SHmedia.
7155         (divsi3_i1_media, divsi3_i4_media): New.
7156         (divsi3): Support SHmedia.
7157         (anddi3, iordi3, xordi3): Adjust constraints.
7158         (zero_extendhidi2, zero_extendqidi2): New.
7159         (extendsidi2, extendhidi2, extendqidi2): New.
7160         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7161         (pop_e, pop_fpul, pop_4): Likewise.
7162         (movsi_media): Support FP and BT registers.
7163         (movsi_media_nofpu): New.  Adjust splits to DImode.
7164         (lduw, ldub): Renamed to zero_extend* above.
7165         (movqi_media): Fix typo.
7166         (movdi_media): Support FP and BT registers.
7167         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7168         (movdi_const_32bit): New.
7169         (shori_media): Require immediate operand.  Use `u' for output.
7170         (movdf_media, movsf_media): Simplified.
7171         (movdf_media_nofpu, movsf_media_nofpu): New.
7172         (movdf, movsf): Adjust
7173         (movv2sf, movv2sf, movv16sf): New.
7174         (beq_media, beq_media_i): Adjust constraints.  Don't use
7175         scratch BT register.
7176         (bne_media, bne_media_i): Likewise.
7177         (bgt_media, bgt_media_i): Likewise.
7178         (bge_media, bge_media_i): Likewise.
7179         (bgtu_media, bgtu_media_i): Likewise.
7180         (bgeu_media, bgeu_media_i): Likewise.
7181         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7182         bunordered): Emit jump insn.  Force operands to registers when
7183         needed.
7184         (jump_media, jump): Simplify.
7185         (call_compact, call_compact_rettramp): New.
7186         (call_value_compact, call_value_compact_rettramp): New.
7187         (call_media, call_value_media): Simplify.
7188         (sibcall_compact, sibcall_media): New.
7189         (call, call_value): Adjust for SHmedia and SHcompact.
7190         (sibcall, sibcall_value, untyped_call): Likewise.
7191         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7192         (indirect_jump): Adjust for SHmedia.
7193         (casesi_jump_media): New.
7194         (nop): Re-enable for SHmedia.
7195         (call_site): Restrict to SH1.
7196         (casesi): Adjust for SHmedia.
7197         (casesi_shift_media, casesi_load_media): New.
7198         (return): Explicitly use PR register.  Call return trampoline
7199         on SHcompact.
7200         (return_i): Explicitly use PR register.
7201         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7202         (return_media): Adjust.
7203         (shcompact_incoming_args): New.
7204         (epilogue): Adjust.
7205         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7206         (movstrsi): Disable on SH5.
7207         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7208         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7209         (subsf3, subsf3_media): Likewise.
7210         (mulsf3, mulsf3_media, mac_media): Likewise.
7211         (divsf3, divsf3_media): Likewise.
7212         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7213         (floatsisf2, fux_truncsfsi2): Likewise.
7214         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7215         constraints.
7216         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7217         (cmpunsf_media, cmpsf): Likewise.
7218         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7219         (abssf2, abssf2_media): Likewise.
7220         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7221         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7222         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7223         (floatsidf2, fix_truncdfsi2): Likewise.
7224         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7225         constraints.
7226         (cmpeqdf_media, cmpgtdf_media): Likewise.
7227         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7228         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7229         (absdf2, absdf2_media): Likewise.
7230         (extendsfdf2, extendsfdf2_media): Likewise.
7231         (truncsfdf2, truncsfdf2_media): Likewise.
7232         * config/sh/sh64.h: New file.
7233         * config/sh/t-sh64: New file.
7234         * config/sh/shmedia.h: New file.
7235         * config/sh/ushmedia.h: New file.
7236         * config/sh/sshmedia.h: New file.
7237         * configure.in: Added sh64-*-elf.
7238         * configure: Rebuilt.
7239         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7240         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7241         (reg_class_from_letter): Use `b' for TARGET_REGS.
7242         (print_operand): Support `%M', `%m', `AND' and
7243         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7244         (andcosts): Adjust for SHmedia.
7245         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7246         Likewise.
7247         (target_reg_operand): New function.
7248         * config/sh/sh-protos.h (target_reg_operand): Declare.
7249         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7250         FP registers on SH5.
7251         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7252         on SH4.
7253         (TARGET_REGISTER_P): New macro.
7254         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7255         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7256         (EXTRA_CONSTRAINT_S): New macro.
7257         (EXTRA_CONSTRAINT): Adjust.
7258         (FLOAT_TYPE_SIZE): Define to 32.
7259         (Pmode): DImode on SHmedia.
7260         (CONST_COSTS): Adjust for SHmedia literals.
7261         (PREDICATE_CODES): Added target_reg_operand.
7262         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7263         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7264         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7265         (cmpdi): Accept SHmedia.
7266         (movdicc_false, movdicc_true): New insns.
7267         (movdicc): New expand.
7268         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7269         no_new_pseudos.
7270         (addsi3_media): Match `S' constraint.
7271         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7272         (negdi2): Expand for SHmedia.
7273         (one_cmpldi2): New expand.
7274         (zero_extendsidi2): Change from expand to insn.
7275         (extendsidi2): Add constraints.
7276         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7277         LD/ST address.  Fix SI immediate loading split.
7278         (movhi_media, movqi_media, lduw, ldub): New insns.
7279         (movhi, movqi): Accept SHmedia.
7280         (shori_media, movdi_media): Relax input constraints.  Split
7281         symbolic constants.
7282         (movdf_media, movsf_media): New insn.  New split to movdi.
7283         (movdf, movsf): Match on SHmedia.
7284         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7285         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7286         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7287         (bunordered): New expand.
7288         (jump_compact): Renamed from `jump'.
7289         (jump_media): New insn.
7290         (jump): New expand.
7291         (call_media, call_value_media): New insns.
7292         (call, call_value): Adjust.
7293         (indirect_jump_compact): Renamed from `indirect_jump'.
7294         (indirect_jump_media): New insn.
7295         (indirect_jump): New expand.
7296         (untyped_call, return): Accept SHmedia.
7297         (return_media): New insn.
7298         (prologue, epilogue, blockage): Accept SHmedia.
7299         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7300         (sunordered): New expand.
7301         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7302         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7303         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7304         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7305         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7306         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7307         abssf2_media): New insns.
7308         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7309         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7310         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7311         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7312         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7313         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7314         absdf2_media): New insns.
7315         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7316         (extendsfdf2_media, truncdfsf2_media): New insns.
7317         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7318         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7319         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7320         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7321         * config/sh/sh.md (adddi3): New expand.
7322         (adddi3_media, adddi3z_media): New insns.
7323         (adddi3_compact): Renamed from adddi3.
7324         (addsi3_media): Use add.l r63 to add constant zero.
7325         (subdi3): New expand.
7326         (subdi3_media): New insn.
7327         (subdi3_compact): Renamed from subdi3.
7328         (mulsidi3): New expand.
7329         (mulsidi3_media): New insn.
7330         (mulsidi3_compact): Renamed from mulsidi3.
7331         (umulsidi3): New expand.
7332         (umulsidi3_media): New insn.
7333         (umulsidi3_compact): Renamed from umulsidi3.
7334         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7335         (ashlsi3, ashrsi3, lshrsi3): Use them.
7336         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7337         (ashldi3, ashrdi3, lshrdi3): Use them.
7338         (zero_extendsidi2): New expand.
7339         (extendsidi2): New insn.
7340         (movsi_media): New insn.  Split to movdi to load constants.
7341         (movsi): Enable for shmedia.
7342         (movdi_media): New insn.  Use shori_media to load wide constants.
7343         (short_media): New insn.
7344         (movdi): Enable for shmedia.
7345         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7346         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7347         (SUBTARGET_CPP_SPEC): Added `!m5'.
7348         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7349         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7350         to all other SH variants.
7351         (TARGET_DEFAULT): Set to SH1_BIT.
7352         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7353         (BITS_PER_WORD): Raise to 64 on shmedia.
7354         (MAX_BITS_PER_WORD): Change to 64.
7355         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7356         (INT_TYPE_SIZE): Keep as 32.
7357         (UNITS_PER_WORD): Raise to 8 on shmedia.
7358         (MIN_UNITS_PER_WORD): Keep as 4.
7359         (POINTER_SIZE): Raise to 64 on shmedia.
7360         (CONST_OK_FOR_J): New macro.
7361         (CONST_OK_FOR_LETTER_P): Use it.
7362         (processor_type): Add PROCESSOR_SH5.
7363         * config/sh/sh.md: Conditionalize all expands, insns and
7364         splits to TARGET_SH1.
7365         (cpu): Added sh5.
7366         (addsi3_compact): Renamed from...
7367         (addsi3): Now an expand.
7368         (addsi3_media, subsi3_media): New insns.
7369         (subsi3): Don't negate constants with SHmedia.
7370
7371         * hooks.c: New file.
7372         * hooks.h: New file.
7373         * Makefile.in (HOOKS_H): New.
7374         (TARGET_DEF_H): Added $(HOOKS_H).
7375         (OBJS): Added hooks.o.
7376         (cfgcleanup.o, bb-reorder.o): Added target.h.
7377         (hooks.o): Added dependencies.
7378         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7379         (TARGET_INITIALIZER): this.
7380         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7381         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7382         * bb-reorder.c: Include target.h.
7383         (reorder_basic_blocks): Skip if cannot modify jumps.
7384         * cfgcleanup.c: Include target.h.
7385         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7386
7387 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7388
7389         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7390         Protect jump delay slot instructions with .set noreorder and
7391         .set nomacro.
7392
7393 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7394
7395         * config/mips/mips.md (casesi_internal_di): Calculate
7396         the index into the target offset table correctly.
7397
7398 2002-02-08  Richard Henderson  <rth@redhat.com>
7399
7400         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7401         * final.c (output_addr_const): Accept and discard SUBREG.
7402         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7403         mark them unknown instead.
7404         (simplify_subtraction): Handle RTX_UNKNOWN.
7405         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7406
7407 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7408
7409         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7410
7411 2002-02-08  Richard Henderson  <rth@redhat.com>
7412
7413         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7414
7415 2002-02-08  Andreas Jaeger  <aj@suse.de>
7416
7417         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7418         * config/i386/t-linux64: New file.
7419
7420 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7421
7422         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7423         * c-parse.in (compstmt): Clear last_expr_type.
7424
7425 2002-02-07  Richard Henderson  <rth@redhat.com>
7426
7427         * loop.c (strength_reduce): Sink final_value when not
7428         eliminating a biv.
7429
7430 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7431
7432         * config/sparc/freebsd.h: Fix mismatched spec {.
7433
7434 2002-02-07  Richard Henderson  <rth@redhat.com>
7435
7436         * cfgrtl.c: Include recog.h and insn-config.h.
7437         (keep_with_call_p): Fix general_operand invocation.
7438         * Makefile.in (cfgrtl.o): Update dependencies.
7439
7440 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7441
7442         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7443         comment.  Accept HImode only if TARGET_H8300.
7444
7445 2002-02-07  Eric Christopher  <echristo@redhat.com>
7446
7447         * config/mips/crtn.asm: Cleanup #ifdefs.
7448
7449 2002-02-07  Eric Christopher  <echristo@redhat.com>
7450
7451         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7452         register 7 as RA instead of $31.
7453         * config/mips/crtn.asm: Ditto.
7454         * config/mips/mips.c (mips_move_2words): Add case for
7455         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7456         (compute_frame_size): Fix typo.
7457         (save_restore_insns): Ditto.  Make documentation about using
7458         register $7 as return register more precise.
7459         (mips_expand_epilogue): Fix comment. Add code to work around not
7460         being able to add to the stack pointer directly.
7461         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7462         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7463         epilogue.
7464
7465 2002-02-07  Tom Rix  <trix@redhat.com>
7466
7467         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7468         immediates in ldu and stdu DS opcode field.
7469         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7470         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7471         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7472
7473 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7474
7475         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7476         offset for stack bias.
7477
7478 2002-02-07  H.J. Lu <hjl@gnu.org>
7479
7480         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7481
7482 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7483
7484         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7485
7486 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7487
7488         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7489         * i386.c (x86_order_regs_for_local_alloc): New global function.
7490         * i386.h (REG_ALLOC_ORDER): CLeanup.
7491         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7492
7493 2002-02-07  Richard Henderson  <rth@redhat.com>
7494
7495         PR optimization/2463
7496         * alias.c (find_base_value): Recall base values for fixed hard regs.
7497         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7498
7499 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7500
7501         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7502         length.
7503
7504 2002-02-06  Richard Henderson  <rth@redhat.com>
7505
7506         PR c/5609
7507         * stmt.c (resolve_operand_name_1): Take more care with mixed
7508         named and unnamed operands.
7509
7510 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7511             Jan Hubicka  <jh@suse.cz>
7512
7513         * loop.c (remove_constant_addition): Avoid clobbering a shared
7514         CONST expression.
7515
7516 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7517
7518         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7519         * config/s390/t-linux64: New file.
7520         * config/s390/libgcc-glibc.ver: New file.
7521
7522 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7523
7524         * config/s390/linux64.h: Delete file.
7525         * config/s390/s390x.h: New file.
7526         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7527         as target header file.
7528         * config/s390/linux.h (TARGET_VERSION): Define depending on
7529         DEFAULT_TARGET_64BIT.
7530         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7531         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7532         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7533         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7534         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7535         (EXTRA_SPEC): New define.
7536         * config/s390/s390.h (TARGET_VERSION): Define depending on
7537         DEFAULT_TARGET_64BIT.
7538         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7539
7540 2002-02-06  Jason Merrill  <jason@redhat.com>
7541
7542         * c-decl.c (finish_function): Warn about a non-void function with
7543         no return statement and no abnormal exit.
7544         (current_function_returns_abnormally): New variable.
7545         (start_function): Clear it.
7546         (struct c_language_function): Add returns_abnormally.
7547         (push_c_function_context): Save it.
7548         (pop_c_function_context): Restore it.
7549         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7550         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7551         an explicit return type.
7552         * c-tree.h: Declare current_function_returns_abnormally.
7553         (C_FUNCTION_IMPLICIT_INT): New macro.
7554         * c-typeck.c (build_function_call): Set it.
7555         (c_expand_return): Set current_function_returns_value even if the
7556         value is erroneous.
7557
7558 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7559
7560         PR c/5420:
7561         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7562         unsafe for reevaluation.
7563
7564 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7565
7566         PR c/5482:
7567         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7568         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7569
7570 2002-02-06  Richard Henderson  <rth@redhat.com>
7571
7572         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7573         be a general_operand.  Dest for function value must be a pseudo.
7574
7575 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7576
7577         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7578         as SYMBOL_REFs from the constant pool.
7579
7580 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7581
7582         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7583         passed by invisible reference.
7584
7585 2002-02-05  Richard Henderson  <rth@redhat.com>
7586
7587         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7588
7589 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7590
7591         Implement using "base addresses" in insn operands as default.
7592         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7593         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7594         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7595         used to read the rtx value.
7596         (mmix_target_asm_function_epilogue): Fix spacing.
7597         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7598         (mmix_legitimate_address): Ditto.
7599         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7600         should be loaded with a GETA insn.  Don't allocate needless extra
7601         char for nul termination and fix misleading comment.
7602         (mmix_print_operand_address): Handle constants if
7603         TARGET_BASE_ADDRESSES.
7604         (mmix_output_register_setting): Use base addressing if
7605         TARGET_BASE_ADDRESSES and the number of insns is 3.
7606         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7607         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7608         to use R as constraint, add LDA to match s.
7609         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7610         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7611         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7612         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7613         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7614         order with other fixed registers.
7615         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7616         other parameter/call-clobbered registers.
7617         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7618         -mbase-addresses, -mno-base-addresses.
7619         (MMIX Options): Ditto.
7620
7621 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7622
7623         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7624
7625 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7626
7627         * config/rs6000/altivec.h: Change elem to _S_elem.
7628
7629 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7630
7631         * config/netbsd.h (WCHAR_TYPE): Define.
7632         (WCHAR_TYPE_SIZE): Ditto.
7633         (WINT_TYPE): Ditto.
7634         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7635         (WCHAR_UNSIGNED): Ditto.
7636         (WCHAR_TYPE_SIZE): Ditto.
7637         (WINT_TYPE): Ditto.
7638         * config/arm/netbsd.h: Likewise.
7639         * config/i386/netbsd-elf.h: Likewise.
7640         * config/i386/netbsd.h: Likewise.
7641         * config/m68k/netbsd-elf.h: Likewise.
7642         * config/m68k/netbsd.h: Likewise.
7643         * config/ns32k/netbsd.h: Likewise.
7644         * config/sparc/netbsd.h: Likewise.
7645         * config/vax/netbsd.: Likewise.
7646
7647 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7648
7649         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7650         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7651         (TARGET_INITIALIZER): this.
7652         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7653         (BITFIELD_NBYTES_LIMITED): Markup fix.
7654         * tree.h (default_ms_bitfield_layout_p): Declare.
7655         (record_layout_info): Added prev_field.
7656         * tree.c (default_ms_bitfield_layout_p): New fn.
7657         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7658         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7659         * stor-layout.c: Include target.h.
7660         (start_record_layout): Initialize prev_field.
7661         (place_field): Handle MS bit-field layout, and disregard
7662         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7663         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7664         * Makefile.in (stor-layout.o): Adjust dependencies.
7665
7666 2002-02-05  Jason Merrill  <jason@redhat.com>
7667
7668         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7669
7670 2002-02-05  Andreas Jaeger  <aj@suse.de>
7671
7672         * crtstuff.c: Fix comments.
7673
7674 2002-02-05  Richard Henderson  <rth@redhat.com>
7675
7676         PR fortran/3393
7677         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7678         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7679
7680         PR fortran/3392
7681         * config/mips/mips.c (function_arg): Handle TImode.
7682         (function_arg_advance): Likewise.
7683
7684 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7685
7686         * config/rs6000/altivec.h (vec_step_help): Rename to
7687         __vec_step_help.
7688
7689 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7690
7691         * config/rs6000/altivec.h: Fix typos.
7692
7693 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7694
7695         * config/arm/netbsd.h: Correct a comment.
7696
7697 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7698
7699         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7700         building void typed builtins.
7701
7702         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7703         (vec_step): Implement for C++.
7704
7705 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7706
7707         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7708
7709 2002-02-04  Richard Henderson  <rth@redhat.com>
7710
7711         * combine.c (nonzero_bits): Re-introduce special case for
7712         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7713
7714 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7715
7716         * doc/extend.texi: Warn about unsupported usage of altivec
7717         builtins.
7718
7719         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7720         (altivec_predicate_*): New.
7721
7722         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7723         Add C++ version of vec_*() functions.
7724
7725         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7726         (bdesc_2arg): Remove altivec predicates.
7727         (altivec_expand_builtin): Handle predicates.
7728         (altivec_init_builtins): Handle predicates.
7729         (altivec_expand_predicate_builtin): New.
7730
7731 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7732
7733         * pa.c (DO_FRAME_NOTES): Move forward.
7734         (store_reg): Revise handling of frame notes.
7735         (load_reg): Likewise.
7736         (set_reg_plus_d): Likewise.
7737         (hppa_expand_prologue): Likewise.
7738         (hppa_expand_epilogue): Likewise.
7739
7740 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7741
7742         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7743
7744 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7745
7746         PR c/4475, c++/3780:
7747         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7748         * c-common.h (SWITCH_TYPE): Define.
7749         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7750         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7751         Rename spareness variable to sparseness.
7752         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7753         if non-NULL instead of TREE_TYPE (orig_index).
7754         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7755         (expand_end_case): Define using expand_end_case_type.
7756         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7757         to expand_end_case_type.
7758         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7759
7760 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7761
7762         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7763         (BIGGEST_ALIGNMENT): Change to 128.
7764
7765 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7766
7767         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7768
7769 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7770
7771         * pa.md (call_internal_reg_64bit): Remove unused variable.
7772
7773 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7774
7775         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7776         field.
7777         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7778         * config/arm/arm.c (current_function_anonymous_args): Delete,
7779         replace uses with cfun->machine->uses_anonymous_args.
7780         (arm_reorg): Do not reset uses_anonymous_args.
7781
7782         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7783         any geenral register.
7784
7785 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7786
7787         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7788         the entry block.
7789
7790 2002-02-04  Richard Henderson  <rth@redhat.com>
7791
7792         * combine.c (force_to_mode): Remove STACK_BIAS code.
7793         (nonzero_bits): Likewise.  Replace sp/fp special case with
7794         REGNO_POINTER_ALIGN.
7795
7796         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7797         (HARD_FRAME_POINTER_REGNUM): New.
7798         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7799         (FIXED_REGS, CALL_USED_REGS): Update.
7800         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7801         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7802         (HARD_REGNO_NREGS): Update for SFP.
7803         (STACK_POINTER_OFFSET): Include bias here ...
7804         (FIRST_PARM_OFFSET): ... not here.
7805         (STACK_BIAS): Remove.
7806         (INIT_EXPANDERS): New.
7807         (STARTING_FRAME_OFFSET): Do not include bias.
7808         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7809         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7810         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7811         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7812         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7813         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7814         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7815         (MUST_SAVE_REGISTER): Likewise.
7816         (sparc_flat_function_prologue): Likewise.
7817         (sparc_flat_function_epilogue): Likewise.
7818         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7819         (sparc_init_modes): SFP is GENERAL_REGS.
7820         (sparc_builtin_saveregs): SFP does not have bias applied.
7821
7822 2002-02-04  Richard Henderson  <rth@redhat.com>
7823
7824         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7825         current_function_is_thunk.
7826         (alpha_sa_mask): Distinguish between current_function_is_thunk
7827         called from ASM_OUTPUT_MI_THUNK and not.
7828         (alpha_does_function_need_gp): Thunks always need gp.
7829         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7830         (alpha_output_mi_thunk_osf): New.
7831         * config/alpha/alpha-protos.h: Update.
7832         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7833
7834 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7835
7836         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7837         function types, not when they're taken away.
7838
7839 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7840
7841         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7842         CODE_LABEL and jump table when replacing a table jump with a
7843         simple jump.
7844
7845 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7846
7847         * config/s390/s390-protos.h (legitimize_la_operand,
7848         s390_secondary_input_reload_class, s390_plus_operand,
7849         s390_expand_plus_operand): Add prototypes.
7850
7851         config/s390/s390.c (s390_secondary_input_reload_class,
7852         s390_plus_operand, s390_expand_plus_operand): New functions.
7853
7854         (struct s390_address): New member 'pointer'.
7855         (s390_decompose_address): Compute it.
7856         (legitimate_la_operand_p): Use it.
7857         (legitimize_la_operand): New function.
7858         (movti, movdi, movdf splitters): Call it.
7859
7860         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7861         (PREDICATE_CODES): Add s390_plus_operand.
7862
7863         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7864         (la_ccclobber): Allow GENERAL_REGS as output operand.
7865
7866         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7867         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7868         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7869
7870 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7871
7872         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7873         register names for regular asm () construct.
7874
7875 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7876
7877         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7878         registers.
7879
7880 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7881
7882         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7883         pat for recog.
7884
7885 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
7886
7887         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7888         constant pool to be identical by string address and index.
7889
7890 2002-02-04  Anthony Green  <green@redhat.com>
7891
7892         * output.h (SECTION_OVERRIDE): Define.
7893         * varasm.c (named_section): Obey SECTION_OVERRIDE.
7894
7895 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7896
7897         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7898         by existing arm*-*-netbsd* (a.out) target.
7899         (ns32k-*-netbsdelf*): Likewise.
7900         (sparc-*-netbsdelf*): Likewise.
7901         (vax-*-netbsdelf*): Likewise.
7902
7903 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
7904
7905         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7906         headers and libobjc headers.
7907
7908 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
7909
7910         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7911         (_mingw.h): Remove duplicate include.
7912
7913 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
7914
7915         * config.gcc: Set cpu_type to m68k for 68010, as well.
7916         (m68010-*-netbsdelf*): New...
7917         (m68k*-*-netbsdelf*): ...targets.
7918         * config/m68k/netbsd-elf.h: New file.
7919
7920 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7921
7922         * config/h8300/h8300.c (hand_list): Move inside function_arg.
7923
7924 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7925
7926         * config/h8300/h8300.c (h8_push_ops): Move inside
7927         h8300_init_once.
7928         (h8_pop_ops): Likewise.
7929         (h8_move_ops): Likewise.
7930
7931 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7932
7933         * config/h8300/h8300.c (os_task): Make it static.
7934         (monitor): Likewise.
7935         (pragma_saveall): Likewise.
7936
7937 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
7938
7939         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7940         constant is a valid sign-extension for Pmode.
7941
7942 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7943
7944         * config/h8300/h8300.c: Fix formatting.
7945
7946 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7947
7948         * config/h8300/h8300.md: Fix formatting.
7949
7950 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7951
7952         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7953         predicates of operands[1].  Split the patterns for each
7954         processor variant.
7955
7956 2002-02-02  Kazu Hirata  <kazu@hxi.com>
7957
7958         * config/h8300/h8300.md (xor patterns): Tighten the predicates
7959         of operands[1] to register_operand.
7960
7961 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7962
7963         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7964         * cpphash.c (_cpp_init_hashtable): Similarly.
7965         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7966         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7967         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7968         (cpp_handle_option): Handle the new options.
7969         * cpplex.c (cpp_interpret_charconst): Use new flag.
7970         * cpplib.h (struct cpp_options): New member signed_char.
7971         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7972         (cpp_options): Handle -fsigned-char and -funsigned-char.
7973         (static_specs): Remove signed_char_spec.
7974         (do_spec1): Don't handle %c.
7975         * system.h: Poison SIGNED_CHAR_SPEC.
7976         * tradcif.y (yylex): Use flag_signed_char.
7977         * tradcpp.h (flag_signed_char): New.
7978         * tradcpp.c (flag_signed_char): New.
7979         (main): Handle new command-line options.
7980         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7981 config:
7982         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7983         * avr/avr.h: Remove old comments.
7984         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7985         (CC1_SPEC): Pass -fsigned-char if -mic*.
7986         (SIGNED_CHAR_SPEC): Remove.
7987 doc:
7988         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7989
7990 2002-02-01  Eric Christopher  <echristo@redhat.com>
7991
7992         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7993         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7994         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7995         (ASM_OUTPUT_REG_POP): Ditto.
7996
7997 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7998
7999         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8000         patch.
8001
8002 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8003
8004         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8005
8006 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8007
8008         PR c/5304:
8009         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8010         unconditionally.
8011
8012 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8013
8014         * cfganal.c: Include tm_p.h.
8015         (keep_with_call_p): Fix the test that determines if a register holds
8016         the return value of a call.
8017
8018 2002-02-01  DJ Delorie  <dj@redhat.com>
8019
8020         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8021         we are given conflicting registers, switch to the other one we
8022         had allocated for us.
8023         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8024         as TImode so we know when the "other" register is available.
8025
8026 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8027
8028         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8029         sparc/sparc_bi.h.
8030
8031 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8032
8033         * cfganal.c (keep_with_call_p): New function.
8034         (flow_call_edges_add): Prevent splitting a block between a call and
8035         a single-set instruction that should be kept in the same block.
8036
8037 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8038
8039         * doc/install.texi (avr): Update outdated URL.
8040
8041 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8042
8043         * config/stormy16/stormy16.md (pushqi): New.
8044         (popqi): New.
8045         (pushhi): New.
8046         (pophi): New.
8047         (movhi): Remove stack operands.
8048         (movqi): Likewise.
8049         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8050         nonimmediate_nonstack_operand.
8051         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8052         New.
8053         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8054         New.
8055
8056 2002-01-31  Jason Merrill  <jason@redhat.com>
8057
8058         * Makefile.in (c-parse.c): Handle .output file.
8059         * objc/Make-lang.in (objc-parse.c): Likewise.
8060
8061 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8062
8063         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8064         the -me[lb] option is given.  Don't output the default flag
8065         twice.
8066
8067 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8068
8069         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8070         the primary source file; this has not been done yet.
8071         * c-decl.c (c_expand_body): Reset input_filename from
8072         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8073
8074 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8075
8076         * rtlanal.c (subreg_regno_offset): Do not use
8077         SUBREG_REGNO_OFFSET.
8078         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8079         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8080
8081 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8082
8083         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8084         version rather than GNATS version in --version output.
8085
8086 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8087
8088         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8089         when copying back from a temporary.
8090
8091 2002-01-30  Richard Henderson  <rth@redhat.com>
8092
8093         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8094         and new_dest are the same.
8095
8096 2002-01-30  Richard Henderson  <rth@redhat.com>
8097
8098         PR opt/5076
8099         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8100         * rtl.c (note_insn_name): Update.
8101         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8102         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8103         to perform loop rotation.
8104         (expand_exit_loop_top_cond): New.
8105         * tree.h (expand_exit_loop_top_cond): Declare it.
8106         * c-semantics.c (genrtl_while_stmt): Use it.
8107         (genrtl_for_stmt): Likewise.
8108
8109 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8110
8111         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8112         arguments to 64-bit boundaries on 64-bit ABIs.
8113
8114 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8115
8116         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8117
8118 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8119
8120         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8121         invalid type.
8122
8123 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8124
8125         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8126         * config/sparc/sparc_bi.h: Remove file.
8127         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8128
8129 2002-01-30  Richard Henderson  <rth@redhat.com>
8130
8131         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8132
8133 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8134
8135         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8136
8137 2002-01-30  Jason Merrill  <jason@redhat.com>
8138
8139         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8140         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8141         (reg_save): Use DW_CFA_offset_extended_sf instead.
8142
8143         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8144
8145 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8146
8147         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8148         in cselib_lookup.
8149
8150 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8151
8152         * rs6000.md ("*call_value_local32"): Remove constraints.
8153         ("*call_value_local64"): Same.
8154         ("*call_value_indirect_nonlocal_aix32"): Same.
8155         ("*call_value_nonlocal_aix32"): Same.
8156         ("*call_value_indirect_nonlocal_aix64"): Same.
8157         ("*call_value_nonlocal_aix64"): Same.
8158         ("*call_value_nonlocal_sysv"): Same.
8159
8160 2002-01-29  Richard Henderson  <rth@redhat.com>
8161
8162         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8163
8164 2002-01-29  Richard Henderson  <rth@redhat.com>
8165
8166         * expr.c (force_operand): Ignore flag_pic for detecting pic
8167         address loads.
8168         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8169         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8170         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8171         instead of open-coded loop.
8172         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8173         be fixed when in use.
8174
8175 2002-01-29  Richard Henderson  <rth@redhat.com>
8176
8177         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8178         * sched-rgn.c (propagate_deps): Update them.
8179         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8180         clobbers list when either gets too long.
8181
8182 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8183
8184         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8185         and INDEX_REGS the same as GENERAL_REGS.
8186         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8187
8188 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8189
8190         * tree.c (build_nonstandard_integer_type): Correct prototype.
8191
8192 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8193
8194         * config/s390/s390.md (movstrsico, movstrdix_64,
8195         movstrsix_31): Remove, replace by ...
8196         (movstrdi_short, movstrsi_short, movstrdi_long,
8197         movstrsi_long): ... these.  New.
8198         (movstrdi, movstrsi): Adapt.
8199
8200         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8201         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8202         Remove unnecessary CC clobber.
8203         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8204         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8205
8206         (divmoddi4): Don't partially initialize TImode register.
8207
8208 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8209
8210         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8211
8212 2002-01-29  Richard Henderson  <rth@redhat.com>
8213
8214         * flow.c (print_rtl_and_abort): Remove.
8215         (print_rtl_and_abort_fcn): Remove.
8216         (verify_local_live_at_start): Use dump_bb instead.
8217         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8218         (verify_wide_reg_1): Return 2 on mode test failure.
8219
8220 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8221
8222         PR c/3325, c/3326, c/2511, c/3347
8223         * c-decl.c (enum_decl_context): Remove BITFIELD.
8224         (grokdeclarator): Take bitfield width as an input.
8225         Ensure bitfields are given the correct type.  Perform
8226         bitfield width validation with build_bitfield_integer_type
8227         rather than waiting for finish_struct.
8228         (grok_typename, grok_typename_in_parm_context, start_decl,
8229         push_parmdecl, grokfield, start_function): Update calls to
8230         grokdeclarator.
8231         (build_bitfield_integer_type): New function.
8232         (finish_struct): Move bitfield validation to grokdeclarator
8233         and build_bitfield_integer_type.
8234         * tree.c (build_nonstandard_integer_type): New function.
8235         * tree.h (build_nonstandard_integer_type): New prototype.
8236 objc:
8237         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8238
8239 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8240
8241         PR other/1502:
8242         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8243         don't ignore unrecognized -W* options.
8244         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8245         * cpplib.h (cpp_handle_option): Adjust prototype.
8246         * c-decl.c (c_decode_options): Pass 0 as last argument to
8247         cpp_handle_option.
8248
8249         PR c/2896:
8250         * gcc.c (cpp_unique_options): Split from cpp_options.
8251         (cpp_options): Source cpp_unique_options.
8252         (default_compilers): Use cpp_unique_options instead of cpp_options
8253         when used together with cc1_options.
8254         (static_specs): Add cpp_unique_options.
8255         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8256         when used together with cc1_options.
8257
8258 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8259
8260         * config/h8300/h8300-protos.h: Update the prototype of
8261         output_a_shift.
8262         * config/h8300/h8300.c (output_a_shift): Remove an unused
8263         argument 'insn'.  Remove redundant code.
8264         * config/h8300/h8300.md: Adust to the new prototype of
8265         output_a_shift.
8266
8267 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8268
8269         * config/h8300/h8300-protos.h: Update the prototypes of
8270         emit_a_rotate and expand_a_rotate.
8271         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8272         first argument to 'enum rtx_code'.
8273         (expand_a_rotate): Likewise.
8274
8275 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8276
8277         * config/h8300/h8300-protos.h: Update the prototype of
8278         output_simode_bld.
8279         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8280         'log2'.
8281         * config/h8300/h8300.md: Adjust to the new prototype.
8282
8283 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8284
8285         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8286         redundant code.
8287
8288 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8289
8290         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8291         is a fixed register before returning pic_offset_table_rtx.
8292         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8293         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8294
8295 2002-01-28  Jason Merrill  <jason@redhat.com>
8296
8297         * dwarf2.h: Sync with src version.
8298
8299 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8300
8301         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8302         BT_FN_VOID_PTR_VAR.
8303         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8304         * doc/extend.texi (__builtin_prefetch): Update documentation:
8305         first argument is now const void ptr.
8306
8307 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8308
8309         * config/h8300/h8300-protos.h: Remove an unused prototype.
8310
8311 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8312
8313         * toplev.c (lang_independent_init): Round up identifier size.
8314
8315 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8316
8317         * config.gcc: Revert previous change.
8318
8319 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8320
8321         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8322
8323 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8324
8325         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8326         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8327         other non-elf netbsd config frags.
8328         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8329         collect2 will does that.
8330         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8331         shared-lib frobbing will work.
8332
8333 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8334
8335         * config/h8300/h8300.h: Fix formatting.
8336         * config/h8300/h8300.md: Likewise.
8337
8338 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8339
8340         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8341         the old, removed AAA_standards fix.
8342         * fixinc/fixincl.x: Rebuilt.
8343
8344 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8345
8346         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8347         atexit call in crtbegin, hooked in after call to frame_dummy;
8348         register EH before registering __fini__start.
8349
8350 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8351
8352         * config/rs6000/altivec.h: Remove spurious semicolons.
8353
8354 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8355
8356         * config/h8300/h8300.md: Replace dead bit extraction patterns
8357         with ones that work.
8358
8359 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8360
8361         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8362         if not STRICT_ALIGNMENT.
8363         * rtl.h (MEM_ALIGN): Likewise.
8364
8365 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8366
8367         * doc/invoke.texi (-fdump-translation-unit): Revert this
8368         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8369
8370 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8371
8372         * config/h8300/h8300.md (define_constants): New.
8373         (anonymous patterns) Use defined constants appropriately.
8374
8375 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8376
8377         * config/h8300/h8300.c (function_arg): Remove redundant code.
8378
8379 2002-01-26  Richard Henderson  <rth@redhat.com>
8380
8381         * sched-deps.c (reg_pending_uses_head): New.
8382         (reg_pending_barrier): Rename from reg_pending_sets_all.
8383         (find_insn_list): Don't mark inline.
8384         (find_insn_mem_list): Remove.
8385         (add_dependence_list, add_dependence_list_and_free): New.
8386         (flush_pending_lists): Replace only_write param with separate
8387         for_read and for_write parameters.  Update all callers.  Use
8388         add_dependence_list_and_free.
8389         (sched_analyze_1): Do not add reg dependencies here; just set
8390         the pending bits.  Use add_dependence_list.
8391         (sched_analyze_2): Likewise.
8392         (sched_analyze_insn): Replace schedule_barrier_found with
8393         reg_pending_barrier.  Add all dependencies for pending reg
8394         uses, sets, and clobbers.
8395         (sched_analyze): Don't add reg dependencies for calls, just
8396         set pending bits.  Use regs_invalidated_by_call.  Treat
8397         sched_before_next_call as a normal list, not a fake insn.
8398         (init_deps): No funny init for sched_before_next_call.
8399         (free_deps): Free pending mems lists.  Don't zero reg_last.
8400         (init_deps_global): Init reg_pending_uses.
8401         (finish_deps_global): Free it.
8402         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8403         (find_insn_mem_list): Remove.
8404         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8405         (propagate_deps): Use them.  Zero temp mem lists.
8406
8407 2002-01-26  Richard Henderson  <rth@redhat.com>
8408
8409         * Makefile.in (CRTSTUFF_CFLAGS): New.
8410         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8411         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8412         crtstuff.c instead of alpha assembly version.
8413         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8414         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8415         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8416         (__do_global_dtors_aux): Mark used.
8417         (frame_dummy, __do_global_ctors_aux): Mark used.
8418         (fini_dummy, init_dummy): Remove.
8419
8420         * config/alpha/crtbegin.asm: Remove file.
8421         * config/alpha/crtend.asm: Remove file.
8422         * config/alpha/t-crtbe: Remove file.
8423         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8424         (LINK_EH_SPEC): New.
8425
8426         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8427         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8428         calling constructors.
8429         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8430
8431         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8432         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8433         CRT_END_INIT_DUMMY hack.
8434         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8435         FORCE_{INIT,FINI}_SECTION_ALIGN.
8436
8437         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8438         FORCE_{INIT,FINI}_SECTION_ALIGN.
8439
8440         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8441         invocation sequence.
8442         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8443
8444         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8445         (FORCE_CODE_SECTION_ALIGN): New.
8446
8447 2002-01-26  Richard Henderson  <rth@redhat.com>
8448
8449         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8450
8451 2002-01-26  Richard Henderson  <rth@redhat.com>
8452
8453         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8454         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8455
8456 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8457
8458         * config/h8300/h8300.md: Remove bit extraction patterns that
8459         cannot be triggered.
8460         Restrict each bit extraction pattern to a variant on which the
8461         pattern is tested.
8462
8463 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8464
8465         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8466
8467 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8468
8469         * config/h8300/h8300.md: Remove bit test patterns that cannot
8470         be triggered.
8471         Restrict each bit test pattern to a variant on which the
8472         pattern is tested.
8473
8474 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8475
8476         * builtins.c (expand_builtin_strncat): Remove redundant check for
8477         INTEGER_CST.
8478
8479 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8480
8481         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8482         default setting.
8483         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8484         existing setting.
8485
8486 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8487
8488         * dbxout.c (dbxout_init): Use assemble_name rather than just
8489         stripping off the first character.
8490         (dbxout_source_file): Likewise.
8491
8492 2002-01-25  DJ Delorie  <dj@redhat.com>
8493
8494         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8495         using rtx_equal_p, not by comparing pointers.
8496
8497 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8498
8499         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8500         for PIC_OFFSET_TABLE_REGNUM.
8501         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8502
8503 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8504
8505         * config.gcc (x86_64-*-freebsd*): New target.
8506         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8507         value.
8508         (i[34567]86-*-freebsd*): Don't include svr4.h.
8509         * config/i386/freebsd64.h: New file.
8510
8511 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8512
8513         * config/alpha/x-vms (version): Make static.
8514
8515         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8516         in previous checkin.
8517
8518         * Makefile.in (install-headers-cp): New target.
8519         * config.gcc (alpha-dec-*vms*): Install headers with
8520         install-headers-cp
8521
8522 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8523
8524         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8525         avoid it's copies.
8526
8527 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8528
8529         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8530         of compare_tree_int.
8531         (expand_builtin_strncat): Likewise.
8532         * c-decl.c (finish_struct): Use tree_low_cst.
8533         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8534         * tree.c (compare_tree_int): Likewise.
8535
8536 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8537
8538         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8539         adjustments even if they are implemented by more than two insns.
8540
8541 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8542
8543         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8544         * df.h (struct ref): Kill B.
8545         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8546
8547         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8548         * flow.c (propagate_one_insn): Use it.
8549         (mark_used_regs): Handle NIL.
8550
8551 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8552
8553         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8554         to help folding.
8555
8556 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8557
8558         * rs6000.md (prefetch): Make address V4SI mode so that the address
8559         is restricted to legitimate form for instruction.
8560
8561 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8562
8563         * doc/install.texi (xtensa-*-elf): New target.
8564         (xtensa-*-linux*): New target.
8565         * doc/contrib.texi: Add myself.
8566
8567 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8568
8569         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8570         purpose register to hold an SImode (or smaller) value.
8571
8572 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8573
8574         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8575         registry only.
8576         * crtstuff.c: Likewise.
8577
8578 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8579
8580         * config/h8300/h8300.md (negation patterns): Tighten
8581         predicates to register_operand.
8582
8583 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8584
8585         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8586         mode, not Pmode.
8587
8588         * builtins.c (expand_builtin_prefetch): Same.
8589
8590 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8591
8592         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8593         modes.
8594
8595 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8596
8597         * config/h8300/h8300.c (print_operand): Remove support for
8598         operand character 'A'.
8599         * config/h8300/h8300.md (three anonymous patterns): Replace
8600         operand character 'A' with either 'T' or 'S'.
8601
8602 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8603
8604         * config/h8300/h8300.c (print_operand): Remove support for
8605         operand character 'U'.
8606
8607 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8608
8609         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8610
8611 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8612
8613         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8614         values to be assigned to the stack pointer.
8615
8616 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8617
8618         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8619         to const_double needs to be done right for big-endian systems.
8620
8621 2002-01-24  Jason Merrill  <jason@redhat.com>
8622
8623         PR c++/2432
8624         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8625         to can_throw_internal.
8626
8627 2002-01-23  Richard Henderson  <rth@redhat.com>
8628
8629         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8630         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8631
8632 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8633
8634         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8635         (symGOT2reg): Use them, then set as GOT value as unchanging.
8636         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8637         as a temporary, if possible.
8638         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8639         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8640
8641 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8642
8643         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8644         accept to accept 0x80 as operands[2].
8645
8646 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8647
8648         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8649
8650 2002-01-23  Richard Henderson  <rth@redhat.com>
8651
8652         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8653
8654 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8655
8656         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8657         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8658         an attribute.
8659
8660 2002-01-23  Richard Henderson  <rth@redhat.com>
8661
8662         * expr.c (move_by_pieces_1): Extend size before negation.
8663
8664         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8665         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8666         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8667         * config/m68k/t-m68kelf: Likewise.
8668
8669 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8670
8671         * config/xtensa/elf.h: New file.
8672         * config/xtensa/lib1funcs.asm: New file.
8673         * config/xtensa/lib2funcs.S: New file.
8674         * config/xtensa/linux.h: New file.
8675         * config/xtensa/t-xtensa: New file.
8676         * config/xtensa/xtensa-config.h: New file.
8677         * config/xtensa/xtensa-protos.h: New file.
8678         * config/xtensa/xtensa.c: New file.
8679         * config/xtensa/xtensa.h: New file.
8680         * config/xtensa/xtensa.md: New file.
8681         * config.gcc (xtensa-*-elf*): New target.
8682         (xtensa-*-linux*): New target.
8683         * cse.c (canon_hash): Compare rtx pointers instead of register
8684         numbers.  This is required for the Xtensa port.
8685         * integrate.c (copy_insn_list): Handle case where the static
8686         chain is in memory and the memory address has to be copied to
8687         a register.
8688         * doc/invoke.texi (Option Summary): Add Xtensa options.
8689         (Xtensa Options): New node.
8690         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8691
8692 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8693
8694         * diagnostic.c (internal_error): Do ICE suppression only
8695         when ENABLE_CHECKING is not defined.
8696
8697         * c-typeck.c (require_complete_type): Return error_mark_node
8698         if type is error_mark_node.
8699
8700 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8701
8702         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8703         -Os and issue a warning.
8704
8705 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8706
8707         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8708         current (lack of) need for host configuration by hand.
8709
8710         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8711         references.  Documentation of some target macros moved from
8712         hostconfig.texi to tm.texi.
8713
8714 2002-01-23  Will Cohen  <wcohen@redhat.com>
8715
8716         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8717         defined.
8718
8719 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8720
8721         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8722         operand[3].
8723
8724 2002-01-23  Jason Merrill  <jason@redhat.com>
8725
8726         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8727
8728         * function.c (assign_parms): Don't put args of inline functions
8729         into registers when not optimizing.
8730
8731 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8732
8733         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8734         (prologue_use): New pattern.
8735         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8736         preference to gen_rtx_USE.
8737         (thumb_expand_prologue): Use gen_prologue_use in preference to
8738         gen_rtx_USE.
8739         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8740         gen_rtx_USE.
8741
8742 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8743
8744         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8745
8746 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8747
8748         PR c/3504
8749         * doc/extend.texi: Correct documentation of __alignof__.
8750
8751 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8752
8753         * params.h: Rename arguments of DEFPARAM so that it will be
8754         recognized as a translation keyword.
8755
8756 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8757
8758         * extend.texi: Document altivec functions.
8759         Fix N-bit adjectives in X86 builtin documentation.
8760
8761 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8762
8763         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8764         auto_inc_dec values.
8765
8766 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8767
8768         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8769         after backslash.
8770         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8771
8772 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8773
8774         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8775
8776 2002-01-22  Richard Henderson  <rth@redhat.com>
8777
8778         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8779         copy_insn not copy_rtx.
8780
8781 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8782
8783         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8784         "nonzero" as that might add "1" bits.  Ensure "constop" is
8785         properly sign extened.
8786         (force_to_mode): Tweak for sign extended constop.
8787
8788 2002-01-22  Richard Henderson  <rth@redhat.com>
8789
8790         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8791         for_each_rtx instead of assuming we're already looking at the MEM.
8792         (split_small_symbolic_mem_operand): Likewise.
8793         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8794         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8795
8796 2002-01-22  Richard Henderson  <rth@redhat.com>
8797
8798         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8799         sequence number for the literal.
8800         (divmoddi_internal_er): Likewise.
8801
8802 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8803
8804         PR java/4972
8805         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8806         in LIBICONV variable.
8807         * configure: Regenerated.
8808
8809 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8810
8811         * dependence.c (build_def_use): Remove array_idx.
8812
8813         * dwarfout.c (last_filename): Remove.
8814         (output_compile_unit_die): Remove last_filename.
8815
8816 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8817             Richard Henderson  <rth@redhat.com>
8818
8819         PR opt/3640
8820         * fold-const.c (fold): Optimize unsigned comparisons against
8821         UINT_MAX (and similar unsigned constants).
8822
8823 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8824
8825         * Makefile.in (loop.o): Depend on OPTABS_H.
8826         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8827         against the predicate.
8828
8829         PR target/5379
8830         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8831         for the address operand.
8832
8833 2002-01-22  Richard Henderson  <rth@redhat.com>
8834
8835         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8836
8837 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8838
8839         PR other/5450
8840         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8841         preprocessor flags.
8842
8843 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8844
8845         * config.gcc (x86_64-*-netbsd*): New target.
8846         * config/i386/netbsd64.h: New file.
8847
8848 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8849
8850         * regrename.c (kill_value): Fix typo.
8851
8852 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8853
8854         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8855
8856         * config/rs6000/rs6000.h: Same.
8857
8858         * function.c (instantiate_virtual_regs): Remove
8859         STARTING_FRAME_PHASE.
8860         (assign_stack_local_1): Same.
8861         Calculate frame phase.
8862
8863 2002-01-22  Nick Clifton  <nickc@redhat.com>
8864
8865         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8866         variable declaration to outer scope in order to simplify
8867         future extensions.
8868         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8869         arm_hard_regno_mode_ok.
8870         * config/arm/arm-protos.h: Add a prototype for
8871         arm_hard_regno_mode_ok.
8872         * config/arm/arm.c (soft_df_operand): Remove now redundant
8873         check for DImode values using IP_REGNUM.
8874         (nonimmediate_soft_df_operand): Remove now redundant check for
8875         DImode values using IP_REGNUM.
8876         (arm_hard_regno_mode_ok): New function. New check: make sure
8877         that DImode values are not stored in IP_REGNUM.
8878
8879         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8880         note with a USE.
8881         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8882
8883 2002-01-22  Jason Merrill  <jason@redhat.com>
8884
8885         * c-semantics.c (genrtl_compound_stmt): Only check nesting
8886         consistency if this COMPOUND_STMT is scoped.
8887
8888 2002-01-22  Kazu Hirata  <kazu@hxi.com>
8889
8890         * predict.c: Fix formatting.
8891         * print-tree.c: Likewise.
8892         * protoize.c: Likewise.
8893         * real.h: Likewise.
8894         * rtl.h: Likewise.
8895         * sbitmap.h: Likewise.
8896         * scan.c: Likewise.
8897         * sched-deps.c: Likewise.
8898         * sched-vis.c: Likewise.
8899         * sdbout.c: Likewise.
8900         * sibcall.c: Likewise.
8901         * ssa.c: Likewise.
8902         * ssa-ccp.c: Likewise.
8903         * ssa-dce.c: Likewise.
8904         * stmt.c: Likewise.
8905         * stor-layout.c: Likewise.
8906         * system.h: Likewise.
8907
8908 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8909
8910         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8911         if fits in bounds of base type.
8912
8913         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8914         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8915         (add_bound_info, default): If can't find a context, make a
8916         SAVE_EXPR.
8917         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8918
8919 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
8920
8921         * c-typeck.c (parser_build_binary_op): If result from
8922         build_binary_op is ERROR_MARK just return error_mark_node without
8923         further processing.
8924
8925 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
8926
8927         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8928         Split a.out-specific bits into...
8929         * config/netbsd-aout.h: ...this.
8930         * config/netbsd-elf.h: New file.
8931         * config/alpha/netbsd-elf.h: Remove.
8932         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8933         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8934         (STARTFILE_SPEC): Remove redundant definition.
8935         (ENDFILE_SPEC): Likewise.
8936         (LINK_SPEC): Likewise.
8937         (CPP_SPEC): Likewise.
8938         (ASM_SPEC): Likewise.
8939         (LIB_SPEC): Likewise.
8940         (SWITCH_TAKES_ARG): Likewise.
8941         (TARGET_MEM_FUNCTIONS): Likewise.
8942         (CPP_PREDEFINES): Redefine.
8943         (ASM_FINAL_SPEC): Remove redefinition.
8944         (ASM_COMMENT_START): Redefine.
8945         (FUNCTION_PROFILER): Define.
8946         (TARGET_VERSION): Redefine.
8947         Comment and formatting cleanup.
8948         * config/i386/netbsd.h: Include <netbsd-aout.h>.
8949         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8950         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8951         big- or little-endian.
8952         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8953         * config.gcc (*-*-netbsd*): Add definitions common to all
8954         NetBSD configs.
8955         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8956         gnu_ld definitions.  Add netbsd-elf.h to and remove
8957         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
8958         tmake_file, and don't lose previous tmake_file contents.
8959         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8960         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8961         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
8962         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8963         (mipsel-*-netbsd*): Rename this to...
8964         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8965         mips/little.h to tm_file for mips*el-*.
8966         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8967         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8968         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8969
8970 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8971
8972         * pa-protos.h (reg_before_reload_operand): New function prototype.
8973         * pa.c (reg_before_reload_operand): New function implementation.
8974         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8975         contraints to "*m".
8976
8977 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8978
8979         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8980
8981 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8982
8983         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8984         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8985         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8986         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8987         (ENDFILE_SPEC): Undefine.
8988         (STARTFILE_SPEC): Redefine for PA.
8989
8990 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8991
8992         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8993
8994 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8995
8996         * config.gcc: Add entries to supported PowerPC --with-cpu
8997         types.
8998
8999 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
9000
9001         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9002         true for 64-bit mode only SSE registers in 32-bit mode.
9003
9004 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9005
9006         * unwind-dw2.c: Fix formatting.
9007         * unwind-dw2-fde.c: Likewise.
9008         * unwind-dw2-fde.h: Likewise.
9009         * unwind-pe.h: Likewise.
9010         * varasm.c: Likewise.
9011         * varray.h: Likewise.
9012
9013 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9014
9015         Remove workaround for register stack overwrite bug in mmix.
9016         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9017         support for TARGET_REG_STACK_FILL_BUG.
9018         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9019         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9020         Delete.
9021         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9022         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9023         -mno-reg-stack-fill-bug-workaround.
9024         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9025         machine member has_call_without_parameters.
9026         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9027         -mreg-stack-fill-bug-workaround and
9028         -mno-reg-stack-fill-bug-workaround.
9029         (MMIX Options): Ditto.
9030
9031 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9032
9033         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9034         as appropriate.
9035         Remove redundant code.
9036
9037 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9038
9039         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9040         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9041         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9042         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9043         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9044         out target macro definitions and non-target-specific comments
9045         mostly taken from old versions of the manual.
9046
9047 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9048
9049         * config/h8300/h8300.h: Fix comment formatting.
9050         * config/ia64/aix.h: Likewise.
9051         * config/ia64/ia64-protos.h: Likewise.
9052         * config/ia64/ia64.c: Likewise.
9053         * config/ia64/ia64.h: Likewise.
9054         * config/ia64/ia64intrin.h: Likewise.
9055         * config/ia64/linux.h: Likewise.
9056         * config/ia64/unwind-aix.c: Likewise.
9057         * config/ia64/unwind-ia64.c: Likewise.
9058
9059 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9060
9061         * config/h8300/h8300.c: Revise comments about shift code.
9062
9063 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9064
9065         * config/h8300/h8300.c (function_arg): Update a comment.
9066
9067 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9068
9069         * config/h8300/h8300.md: Update the comments at the beginning
9070         of the file.
9071
9072 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9073
9074         * config/i370/i370.c: Fix comment formatting.
9075         * config/i370/i370.h: Likewise.
9076         * config/i370/i370.md: Likewise.
9077         * config/i370/linux.h: Likewise.
9078
9079 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9080
9081         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9082
9083         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9084         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9085         in incomplete case.
9086
9087 2002-01-20  Graham Stott  <grahams@redhat.com>
9088
9089         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9090
9091 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9092
9093         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9094
9095 2002-01-19  Tom Rix  <trix@redhat.com>
9096
9097         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9098
9099 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9100
9101         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9102
9103         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9104         STARTING_FRAME_PHASE.
9105         (STARTING_FRAME_PHASE): New.
9106         (instantiate_virtual_regs): Check saneness of
9107         STARTING_FRAME_PHASE.
9108
9109         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9110
9111 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9112
9113         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9114
9115 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9116
9117         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9118         be used for bootstrapping GCC 3.0.
9119
9120 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9121
9122         * config/h8300/h8300.md: Fix an insn length.
9123
9124 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9125
9126         * bitmap.h: Fix comment formatting.
9127         * combine.c: Likewise.
9128         * cppfiles.c: Likewise.
9129         * c-pragma.h: Likewise.
9130         * c-typeck.c: Likewise.
9131         * df.c: Likewise.
9132         * dwarf2out.c: Likewise.
9133         * function.c: Likewise.
9134         * gcc.c: Likewise.
9135         * genattrtab.c: Likewise.
9136         * gthr-win32.h: Likewise.
9137         * haifa-sched.c: Likewise.
9138         * predict.c: Likewise.
9139         * rtlanal.c: Likewise.
9140         * rtl.h: Likewise.
9141         * unwind-dw2-fde.h: Likewise.
9142         * unwind-pe.h: Likewise.
9143         * vmsdbgout.c: Likewise.
9144
9145 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9146
9147         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9148         if type_required and passed decl.
9149
9150 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9151
9152         * config.gcc (cpu_type): Include altivec.h in powerpc
9153         extra_headers.
9154         Same for darwin.
9155
9156         * config/rs6000/altivec.h: New.
9157
9158 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9159
9160         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9161         handling information.
9162         * doc/trouble.texi (Interoperation): Add libstdc++ information
9163         for AIX.
9164         (Misunderstandings): Add template instantiation and static template
9165         member information for AIX.
9166
9167 2002-01-17  Jason Merrill  <jason@redhat.com>
9168
9169         * dbxout.c (dbxout_type): Support const and volatile.
9170
9171         * except.c (add_partial_entry): Remove backwards compatibility code.
9172         (end_protect_partials): Likewise.
9173
9174 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9175
9176         * config/ia64/ia64.md (prologue_use): New.
9177         * config/ia64/ia64.c (ia64_expand_prologue): Use
9178         gen_prologue_use instead of gen_rtx_USE.
9179         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9180         as CODE_FOR_pred_rel_mutex.
9181         (ia64_sched_reorder2): Likewise.
9182
9183 2002-01-16  Eric Christopher  <echristo@redhat.com>
9184
9185         * config/mips/r3900.h: Reformat.
9186         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9187         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9188         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9189         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9190         * config/mips/t-elf: Remove mips3 multilib.
9191
9192 2002-01-16  H.J. Lu <hjl@gnu.org>
9193
9194         * config/mips/linux.h: Include "mips/abi64.h".
9195
9196 2002-01-16  H.J. Lu <hjl@gnu.org>
9197
9198         * config/mips/t-linux: New.
9199
9200         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9201
9202         * config/mips/linux.h: Don't include "gofast.h".
9203         (INIT_SUBTARGET_OPTABS): Removed.
9204
9205 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9206
9207         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9208         output_a_shift.
9209         * config/h8300/h8300.c: Likewise.
9210         * config/h8300/h8300.md: Likewise.
9211
9212 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9213
9214         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9215         spaces after an opcode name.
9216         (pushqi1_h8300hs): Likewise.
9217         (pushhi1_h8300hs): Likewise.
9218
9219 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9220
9221         * doc/extend.texi: Replace "option" with "attribute"
9222         appropriately.
9223
9224 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9225
9226         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9227         (and:DI () (const_int -8)).
9228         (split_small_symbolic_mem_operand): Split
9229         (mem (and:DI () (const_int -8)).
9230
9231 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9232
9233         PR target/5309:
9234         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9235         same way as TYPE_IMUL.
9236         (ultrasparc_sched_reorder): Likewise.
9237         * config/sparc/sparc.md (type): Add comment to update
9238         ultrasparc_sched_reorder when making changes.
9239
9240 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9241
9242         * doc/invoke.texi: Change the dump file name of block
9243         reordering pass from 28.bbro to 29.bbro.
9244         Mention -dk option.
9245
9246 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9247
9248         * i386.md (minsf splitter): Fix pasto.
9249
9250 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9251
9252         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9253         to frame pointer initialisation instruction.
9254         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9255         initialisation instruction.
9256         (soft_df_operand): Do not accept the IP register.
9257         (nonimmediate_soft_df_operand): Do not accept the IP register.
9258
9259 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9260
9261         PR target/5357:
9262         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9263         MASK_V8 being both set.
9264
9265 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9266
9267         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9268         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9269         config/s390/s390.md (call, call_value): Add GOT register to
9270         CALL_INSN_FUNCTION_USAGE where needed.
9271         (call_exp, call_value_exp): New.
9272
9273 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9274
9275         * config/arm/arm.c: General formatting tidy up.
9276
9277 2002-01-16  Graham Stott  <grahams@redhat.com>
9278
9279         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9280         cast and when casting an integer literal to "rtx" pointer.
9281         (expand_call): Likewise.
9282         * flow.c (try_pre_increment): Likewise.
9283         (find_use_as_address): Likewise.
9284         * integrate.c (expand_iline_function): Likewise.
9285         * regmove.c (try_auto_increment): Likewise.
9286
9287 2002-01-16  Graham Stott  <grahams@redhat.com>
9288
9289         * sched-rgn.c (passed): Use sbitmap_free.
9290         (header): Likewise.
9291         (inner): Likewise.
9292         (in_queue): Likewise.
9293         (in_stack): Likewise.
9294
9295 2002-01-15  Eric Christopher  <echristo@redhat.com>
9296
9297         * flow.c (propagate_one_insn): Change to use fatal_insn.
9298
9299 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9300
9301         * expmed.c (extract_fixed_bit_field): Remove unused code.
9302         * system.h: Poison SLOW_ZERO_EXTEND.
9303         * doc/tm.texi: Remove.
9304         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9305         * config/arm/arm.h: Likewise.
9306         * config/avr/avr.h: Likewise.
9307         * config/clipper/clipper.h: Likewise.
9308         * config/convex/convex.h: Likewise.
9309         * config/d30v/d30v.h: Likewise.
9310         * config/dsp16xx/dsp16xx.h: Likewise.
9311         * config/elxsi/elxsi.h: Likewise.
9312         * config/fr30/fr30.h: Likewise.
9313         * config/h8300/h8300.h: Likewise.
9314         * config/i370/i370.h: Likewise.
9315         * config/i386/i386.h: Likewise.
9316         * config/m68k/m68k.h: Likewise.
9317         * config/mips/mips.h: Likewise.
9318         * config/ns32k/ns32k.h: Likewise.
9319         * config/pdp11/pdp11.h: Likewise.
9320         * config/pj/pj.h: Likewise.
9321         * config/s390/s390.h: Likewise.
9322         * config/sh/sh.h: Likewise.
9323         * config/stormy16/stormy16.h: Likewise.
9324         * config/v850/v850.h: Likewise.
9325         * config/vax/vax.h: Likewise.
9326         * config/we32k/we32k.h: Likewise.
9327
9328 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9329
9330         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9331         (altivec_lvsl): Change constraint to b.
9332         (altivec_lvsr): Same.
9333         (altivec_lvebx): Same.
9334         (altivec_lvehx): Same.
9335         (altivec_lvewx): Same.
9336         (altivec_lvxl): Same.
9337         (altivec_lvx): Same.
9338         (altivec_stvx): Add parallel.
9339         (altivec_stvxl): Same.
9340         (altivec_stvehx): Same.
9341         (altivec_stvebx): Same.
9342         (altivec_stvebx): Same.
9343
9344 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9345
9346         * config.gcc: Change altivec.h to altivec-defs.h.
9347
9348         * config/rs6000/altivec.h: Delete.
9349
9350         * config/rs6000/altivec-defs.h: Add.
9351
9352 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9353
9354         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9355         and UMOD modes.
9356
9357         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9358         less than or equal to eight bytes.
9359
9360         * vax.md (andsi3): Remove constraints and change SET destination
9361         operand type to nonimmediate_operand.
9362         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9363         when it is a CONST_INT.
9364
9365 2002-01-15  Jason Merrill  <jason@redhat.com>
9366
9367         * c-common.def (FILE_STMT): New code.
9368         * c-common.c (statement_code_p): It's a statement.
9369         * c-common.h (stmt_tree_s): Add x_last_filename.
9370         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9371         (last_expr_filename): New macro.
9372         * c-semantics.c (begin_stmt_tree): Initialize it.
9373         (add_stmt): If the filename changed, also insert a
9374         FILE_STMT.
9375         (expand_stmt): Handle seeing one.
9376
9377 2002-01-15  Eric Christopher  <echristo@redhat.com>
9378
9379         * flow.c (propagate_one_insn): Add error message and print out
9380         insn for debugging.
9381
9382 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9383
9384         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9385         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9386         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9387         TRAMPOLINE_ALIGNMENT.
9388         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9389         to be in bits.
9390         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9391         PCC_BITFIELD_TYPE_MATTERS.
9392         * config/interix.h (STDC_VALUE): Remove.  Use
9393         STDC_0_IN_SYSTEM_HEADERS.
9394         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9395         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9396         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9397
9398 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9399
9400         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9401         not work on this platform currently.
9402
9403 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9404
9405         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9406         readonly_warning in _().
9407
9408 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9409
9410         * gcc.c (delete_if_ordinary): Backout previous change.
9411
9412 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9413
9414         * config/h8300/h8300.c (print_operand): Remove support for
9415         unused operand characters.
9416
9417         * read-rtl.c: Fix formatting.
9418         * real.c: Likewise.
9419         * recog.c: Likewise.
9420         * regclass.c: Likewise.
9421         * regmove.c: Likewise.
9422         * reg-stack.c: Likewise.
9423         * reload1.c: Likewise.
9424         * rtlanal.c: Likewise.
9425
9426 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9427
9428         * config/i386/i386.c: Fix formatting.
9429
9430 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9431
9432         * c-typeck.c (process_init_element): Don't save_expr
9433         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9434
9435 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9436
9437         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9438         emit optional traceback table if optimize_size or TARGET_ELF.
9439         * config/rs6000/rs6000.md (prefetch): New.
9440
9441 2002-01-15  Andreas Jaeger  <aj@suse.de>
9442
9443         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9444
9445 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9446
9447         * mips-tfile.c: Fix formatting.
9448
9449 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9450
9451         * unroll.c (final_reg_note_copy): Fix previous commit.
9452
9453 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9454
9455         * config/h8300/h8300-protos.h: Remove the prototype for
9456         eq_operator.
9457         * config/h8300/h8300.c (eq_operator): Remove.
9458
9459 2002-01-14  Richard Henderson  <rth@redhat.com>
9460
9461         * config/i386/i386.md (prefetch): Tidy.
9462         (prefetch_3dnow): Fix locality operand.
9463
9464 2002-01-14  Richard Henderson  <rth@redhat.com>
9465
9466         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9467         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9468
9469 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9470
9471         * reload1.c (reload_combine): Pass reg_sum replacement through
9472         copy_rtx in loop performing multiple changes.
9473
9474 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9475
9476         * except.c (remove_unreachable_regions): New.
9477         (free_eh_status): Clear exception_handler_labels.
9478         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9479         (find_exception_handler_labels): Don't add the same label more than
9480         once.
9481         (remove_exception_handler_label): Don't die if
9482         find_exception_handler_labels hasn't been called for the current
9483         function yet.
9484
9485 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9486
9487         * toplev.c (rest_of_compilation): Rebuild jump labels after
9488         gcse.
9489
9490 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9491
9492         * doc/extend.texi: Move documentation of X86 built-in functions
9493         here.
9494         * doc/invoke.texi: From here.
9495         * doc/sourcebuild.texi: Document location of documentation for
9496         machine built-in functions.
9497
9498 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9499
9500         * cppfiles.c (TEST_THRESHOLD): New macro.
9501         (SHOULD_MMAP): Ditto.
9502         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9503         be used.
9504
9505 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9506
9507         * unroll.c (final_reg_note_copy): Properly handle
9508         REG_LABEL
9509         (unroll_loops): Fix LOOP_CONDITION heuristics.
9510
9511 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9512
9513         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9514         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9515
9516 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9517
9518         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9519         threaded loop.
9520
9521 2002-01-14  Tom Rix  <trix@redhat.com>
9522
9523         * config/rs6000/rs6000.md: Fix typo with sradi.
9524
9525 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9526
9527         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9528         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9529         (clrstrdi, clrstrsi): Adapt callers.
9530
9531         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9532
9533         (movti splitter): Never use register 0 as base register.
9534
9535 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9536
9537         * combine.c (simplify_shift_const): Always generate new rtx
9538         for shift expression instead of reusing given expression.
9539
9540 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9541
9542         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9543         alpha_legitimize_address unless mode is Pmode.
9544
9545 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9546
9547         * doc/md.texi (Modifiers): Document the '*' constraint for the
9548         user.
9549
9550         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9551         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9552         for xstormy16 too.
9553
9554 2002-01-13  Richard Henderson  <rth@redhat.com>
9555
9556         * reload.c (find_reloads): Use a hard reg destination as reload reg
9557         for an input reload of the source.
9558
9559 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9560
9561         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9562         more generic.
9563
9564 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9565
9566         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9567         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9568
9569         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9570
9571 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9572
9573         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9574
9575 2002-01-12  Tom Rix  <trix@redhat.com>
9576
9577         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9578         TARGET_POWERPC64.
9579
9580 2002-01-12  Richard Henderson  <rth@redhat.com>
9581
9582         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9583
9584         * doc/invoke.texi: Update Alpha options.
9585
9586         * doc/invoke.texi: Update i386 built-in function lists.
9587
9588 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9589
9590         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9591         referencing outside.
9592
9593 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9594
9595         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9596         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9597         offsets, and change line folding.
9598         * optabs.c (expand_binop): Remove warnings.
9599         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9600
9601 2002-01-12  Graham Stott <grahams@redhat.com>
9602
9603         * attribs.c (handle_deprecated_attribute): constify WHAT.
9604         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9605         dangling else warning and constify WHAT.
9606         * except.h (struct function, struct inline_remap): Move
9607         struct tag forward defs before all prototypes.
9608         (duplicate_eh_regions): Whitespace.
9609
9610 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9611
9612         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9613         MODE_BASE_REG_CLASS.
9614         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9615
9616 2002-01-12  Richard Henderson  <rth@redhat.com>
9617
9618         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9619         (ix86_expand_vector_move): New.
9620         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9621         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9622         Remove old prefetch builtins.  Special case the logicals removed above.
9623         (ix86_expand_builtin): Likewise.
9624         (safe_vector_operand): Use V4SFmode, not TImode.
9625         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9626         (ix86_expand_timode_binop_builtin): New.
9627         * config/i386/i386-protos.h: Update.
9628         * config/i386/i386.h (enum ix86_builtins): Update.
9629         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9630         Use ix86_expand_vector_move in vector move expanders.
9631         (movti_internal, movti_rex64): Add xorps alternative.
9632         (sse_clrv4sf): Rename and adjust from sse_clrti.
9633         (prefetch): Don't work so hard.
9634         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9635         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9636         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9637
9638 2002-01-11  Richard Henderson  <rth@redhat.com>
9639
9640         * config/i386/mmintrin.h: New file.
9641         * config/i386/xmmintrin.h: New file.
9642         * config.gcc (i?86-*-*): Add extra_headers.
9643         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9644         truncation codes.
9645         (simplify_binary_operation): Handle saturating arithmetic codes.
9646         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9647         not the lowpart subreg.
9648         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9649         on error.
9650         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9651
9652 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9653
9654         * conflict.c (conflict_graph_compute): Free regsets when finished.
9655         * ssa.c (compute_coalesced_reg_partition): Likewise.
9656
9657 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9658
9659         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9660         every where we allocate a register.
9661
9662 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9663
9664         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9665         * lcm.c (compute_earliest, compute_farthest): Likewise.
9666
9667 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9668
9669         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9670
9671 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9672
9673         * doc/rtl.texi (Insns): Fix 2 typos.
9674
9675 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9676
9677         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9678         options.  Use @table @gcctabopt for MMIX options.  Add index
9679         entries for MMIX options.  Start new paragraph with first
9680         heading of the machine-dependent options.
9681
9682 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9683
9684         PR other/5299
9685         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9686         * combine.c (force_to_mode): Same.
9687         * reload1.c (clear_reload_reg_in_use): Same.
9688
9689 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9690
9691         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9692         and 'subtargets'.
9693
9694 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9695             Brad Lucier <lucier@math.purdue.edu>
9696
9697         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9698         mcpu.
9699
9700 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9701
9702         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9703         Protect with IN_LIBGCC.
9704         (LINK_EH_SPEC): Add required trailing space.
9705
9706 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9707
9708         * c-tree.h: Move function declarations so that they are listed
9709         under the filename which contains them.
9710         (check_identifier, finish_decl_top_level,
9711         lookup_name_current_level_global, shadow_record_fields): Remove.
9712
9713 2002-01-11  Andreas Jaeger  <aj@suse.de>
9714
9715         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9716         march.
9717
9718 2002-01-10  Richard Henderson  <rth@redhat.com>
9719
9720         * config/alpha/alpha.c (print_operand): Add 'J'.
9721         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9722         new operand with the sequence number for the lituse.  When splitting
9723         the insns, use gen_movdi_er_high_g and generate a sequence number.
9724         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9725
9726 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9727
9728         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9729         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9730         stvxl.
9731         (altivec_expand_builtin): Same.
9732         (altivec_expand_stv_builtin): New.
9733
9734         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9735
9736         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9737         ("altivec_lvehx"): New.
9738         ("altivec_lvewx"): New.
9739         ("altivec_lvxl"): New.
9740         ("altivec_lvx"): New.
9741         ("altivec_stvx"): New.
9742         ("altivec_stvebx"): New.
9743         ("altivec_stvehx"): New.
9744         ("altivec_stvewx"): New.
9745         ("altivec_stvxl"): New.
9746
9747 2002-01-10  Richard Henderson  <rth@redhat.com>
9748
9749         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9750         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9751         care not to delete instructions twice.
9752
9753 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9754
9755         * toplev.c: Don't declare environ (it's not used anywhere).
9756         * configure.in: Don't check for declaration of environ.
9757         * config/i386/xm-mingw32.h: Don't #define environ.
9758         * config.in, configure: Regenerate.
9759
9760 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9761
9762         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9763         * configure: Regenerate.
9764
9765         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9766         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9767         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9768         alpha/xm-vms.h.
9769         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9770         LIMITS_H_TEST here, not in m68k/x-next.
9771         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9772         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9773
9774         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9775         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9776         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9777
9778         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9779         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9780         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9781         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9782         replacement of quadlib.asm with quadlib.c.
9783
9784         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9785         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9786         config/rs6000/xm-beos.h: Delete file.
9787
9788         * config.gcc: Update to match above changes.
9789
9790 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9791
9792         * config/h8300/h8300.h: Fix comment typos.
9793         * config/h8300/h8300.md: Likewise.
9794         * config/h8300/lib1funcs.asm: Likewise.
9795
9796 2002-01-10  Dale Johannesen  <dalej@apple.com>
9797
9798         PR optimization/5269
9799         * unroll.c (precondition_loop_p): Make *increment be the correct
9800         sign when n_iterations known, to avoid confusing caller.
9801
9802 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9803
9804         * doc/extend.texi (deprecated): Fix a typo.
9805
9806 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9807
9808         * basic-block.h (update_br_prob_note): Declare.
9809         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9810         (try_forward_edges): Care negative frequencies and update note.
9811         (outgoing_edges_match): Tweek conditional merging heuristics.
9812         (try_crossjump_to_edge): use update_br_prob_note.
9813         * cfglayout.c (fixup_reorder_chain): Likewise.
9814         * cfrtl.c (update_br_prob_note): New.
9815         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9816
9817         * i386.c (ix86_decompose_address): Return -1 if address contains
9818         shift.
9819         (legitimate_address_p): Require ix86_decompose_address to return 1.
9820
9821         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9822         (cprop_insn): Likewise.
9823
9824 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9825
9826         * toplev.c: Fix formatting.
9827         * tree.c: Likewise.
9828         * tree-dump.c: Likewise.
9829         * unroll.c: Likewise.
9830         * unwind-dw2.c: Likewise.
9831         * unwind-dw2-fde.c: Likewise.
9832         * unwind-dw2-fde-glibc.c: Likewise.
9833         * unwind-sjlj.c: Likewise.
9834
9835 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9836
9837         * doc/invoke.texi: Document PDP-11 options.
9838
9839 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9840
9841         * config/h8300/h8300.h: Fix formatting.
9842
9843 2002-01-10  Ira Ruben   <ira@apple.com>
9844
9845         Add __attribute__ ((deprecated)).
9846         * extend.texi: Document __attribute__ ((deprecated)).
9847         * invoke.texi: Document -Wno-deprecated-declarations.
9848         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9849         * testsuite/gcc.dg/deprecated.c: New C test.
9850         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9851         (c_common_attribute_table): Add "deprecated" entry.
9852         (handle_deprecated_attribute): New function.
9853         * c-decl.c (deprecated_states): New enum.
9854         deprecated_state: State of "deprecated" handling.
9855         (start_decl): Set deprecated_state based on attributes.
9856         (grokdeclarator): Test for deprecated uses, propagate attribute.
9857         * c-typeck.c (build_component_ref): Test for deprecated fields.
9858         (build_external_ref): Test for deprecated primaries.
9859         * diagnostic.c (warn_deprecated_use) New function to issue
9860         warnings about __attribute__ ((depricated)) references.
9861         * flags.h (warn_deprecated_decl): Extern declared for
9862         -W[no-]deprecated-declarations option.
9863         * print-tree.c (print_node): Show deprecated flag status.
9864         * toplev.c (warn_deprecated_decl): Defined.
9865         (W_options): Added "deprecated-declaration".
9866         * toplev.h (warn_deprecated_use): Extern declared.
9867         * tree.h (struct tree_common): Define deprecated_flag.
9868         (TREE_DEPRECATED): New macro to access flag.
9869         * cp/call.c (build_call): Test for deprecated calls.
9870         * cp/class.c (add_implicitly_declared_members): Set global
9871         flag to tell grokdeclarator to not issue deprecated warnings.
9872         * cp/cp-tree.h: Add extern for adding_implicit_members.
9873         * cp/decl.c (deprecated_states): New enum.
9874         (start_decl): Set deprecated_state based on attributes.
9875         (grokdeclarator): Test for deprecated uses, propagate attribute.
9876         * cp/lex.c (do_identifier): Test for deprecated primaries.
9877         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9878
9879 2002-01-10  Ira Ruben   <ira@apple.com>
9880
9881         Fix to assign attributes to inline member functions.
9882         * cp/decl.c (start_method): Handle attrlist.
9883
9884 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9885
9886         * combine.c (expand_field_assignment): Use subreg_lsb().
9887
9888 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
9889
9890         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9891         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9892         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9893         Recurse for any operand of AND as long as constant is non-zero.
9894
9895 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9896
9897         * config/h8300/h8300.md: Remove constraints from expanders.
9898
9899 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9900
9901         * varasm.c: Fix formatting.
9902         * varray.c: Likewise.
9903         * vmsdbgout.c: Likewise.
9904         * xcoffout.c: Likewise.
9905
9906 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9907
9908         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9909         update edge probabilities to match.
9910
9911 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9912
9913         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9914         dependencies.
9915         * doc/languages.texi, doc/sourcebuild.texi: New files.
9916         * doc/configfiles.texi: Make a subsubsection.  Update.
9917         * doc/configterms.texi: Add @node.  Remove warning that this isn't
9918         instructions for building GCC.
9919         * doc/makefile.texi: Make a subsection.
9920         * doc/gccint.texi: Update.
9921
9922 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
9923
9924         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9925
9926 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9927
9928         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9929
9930 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
9931
9932         * optabs.c (expand_fix): Look for wider integer modes first.
9933
9934         * i386.md (mov?f): Avoid the fake const double trick for medium
9935         memory model.
9936         (min?f*/max?f*): Prohibit memory operands for i387 variant.
9937         (fop_df_4): Disable for SSE compilation.
9938
9939 2002-01-10  Graham Stott  <grahams@redhat.com>
9940
9941         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9942         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9943
9944 2002-01-10  Richard Henderson  <rth@redhat.com>
9945
9946         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9947
9948 2002-01-10  Richard Henderson  <rth@redhat.com>
9949
9950         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9951         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
9952
9953 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9954
9955         * combine.c (can_combine_p): Fix a comment typo.
9956
9957 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
9958
9959         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9960         empty list correctly.  Change loop index $t to $f for
9961         consistency with rest of Makefile.
9962
9963 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9964
9965         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9966         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9967
9968         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9969         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9970         (altivec_init_builtins): Same.
9971         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9972         (altivec_expand_binop_builtin): Same.
9973         (altivec_expand_ternop_builtin): Same.
9974         (bdesc_dst): New.
9975
9976         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9977         ("altivec_vctuxs"): Fix typo.
9978         ("altivec_vnmsubfp"): Same.
9979         ("altivec_dssall"): New.
9980         ("altivec_mfvscr"): New.
9981         ("altivec_dss"): New.
9982         ("altivec_lvsl"): New.
9983         ("altivec_lvsr"): New.
9984         ("altivec_dstt"): New.
9985         ("altivec_dstst"): New.
9986         ("altivec_dststt"): New.
9987         ("altivec_dst"): New.
9988
9989         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9990         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9991
9992 2002-01-09  Richard Henderson  <rth@redhat.com>
9993
9994         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9995
9996 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9997
9998         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9999         function.
10000         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10001         prototype.
10002         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10003
10004 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10005
10006         * read-rtl.c: Fix formatting.
10007         * real.c: Likewise.
10008         * regclass.c: Likewise.
10009         * regrename.c: Likewise.
10010         * reg-stack.c: Likewise.
10011         * reload1.c: Likewise.
10012         * reload.c: Likewise.
10013         * rtl.c: Likewise.
10014
10015 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10016
10017         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10018         to extract items in the expr_list chain.
10019
10020 2002-01-09  Richard Henderson  <rth@redhat.com>
10021
10022         * config/vax/vax.c (vax_rtx_cost): Never abort.
10023
10024         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10025
10026 2002-01-09  Jan Hubicka  <jh@suse.cz>
10027
10028         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10029
10030 2002-01-09  Richard Henderson  <rth@redhat.com>
10031
10032         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10033         Unify code from various alternatives.
10034
10035 2002-01-09  Richard Henderson  <rth@redhat.com>
10036
10037         * regrename.c (copy_value): Ignore the copy if the source register
10038         is present in the value chain with a narrower mode.
10039
10040 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10041
10042         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10043         for the c4x target. Also improve layout.
10044
10045 2002-01-09  Richard Henderson  <rth@redhat.com>
10046
10047         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10048         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10049         to match insn patterns.
10050
10051 2002-01-09  Richard Henderson  <rth@redhat.com>
10052
10053         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10054         (copyprop_hardreg_forward_1): Likewise.
10055
10056 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10057
10058         * pa.md (decrement_and_branch_until_zero): Change predicate for
10059         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10060
10061 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10062
10063         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10064         gets undefined. For Darwin.
10065
10066 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10067
10068         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10069
10070 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10071
10072         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10073
10074 2002-01-08  Richard Henderson  <rth@redhat.com>
10075
10076         * regrename.c (copy_value): Ignore overlapping copies.
10077
10078 2002-01-08  Richard Henderson  <rth@redhat.com>
10079
10080         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10081         as needed to avoid shared structure.
10082
10083 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10084
10085         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10086         H8/300H and H8/S.
10087
10088 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10089
10090         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10091         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10092         documentation of obsolete macros.
10093         * system.h: Poison these macros.
10094         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10095         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10096         config/c4x/c4x.h, config/clipper/clipper.h,
10097         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10098         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10099         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10100         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10101         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10102         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10103         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10104         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10105         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10106         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10107         config/sparc/sparc.h, config/stormy16/stormy16.h,
10108         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10109         definitions and commented out definitions of obsolete macros.
10110         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10111         of MAX_INT_TYPE_SIZE.
10112
10113 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10114
10115         * config/s390/s390.c (s390_preferred_reload_class): Never
10116         return ADDR_REGS if it isn't a subset of the given class.
10117         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10118         FP_REGS, but all superclasses as well.
10119
10120         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10121
10122         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10123         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10124         must not be a const_int.
10125
10126 2002-01-08  Richard Henderson  <rth@redhat.com>
10127
10128         * Makefile.in (toplev.o): Depend on options.h.
10129         (gcc.o): Depend on specs.h.
10130
10131 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10132
10133         * expr.c (store_expr): Convert VOIDmode constants back to target's
10134         mode.
10135
10136 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10137
10138         * doc/invoke.texi: Markup gcc as @command.  Refer to
10139         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10140         of http://gcc.gnu.org/thanks.html.
10141
10142 2002-01-08  Dale Johannesen  <dalej@apple.com>
10143
10144         * config/rs6000/rs6000.md: Add missing int register
10145         target case to movdf_low.
10146
10147 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10148
10149         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10150         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10151         (cppinit.o): Depend on except.h.
10152         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10153         s-specs): New rules.
10154
10155         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10156         Don't create specs.h/options.h/gencheck.h here.  Remove
10157         unnecessary variable settings from last argument of AC_OUTPUT.
10158         * config.in, configure: Regenerate.
10159         * intl.c: Hardcode package name as "gcc".
10160
10161         * cppinit.c: Include except.h.
10162         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10163         appropriate.
10164         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10165         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10166         (!)USING_SJLJ_EXCEPTIONS.
10167         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10168
10169 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10170
10171         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10172         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10173         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10174         documentation of obsolete macros.
10175         * system.h: Poison these macros.
10176         * config/d30v/d30v.h, config/ns32k/encore.h,
10177         config/stormy16/stormy16.h: Remove definitions and commented out
10178         definitions of obsolete macros.
10179
10180 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10181
10182         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10183         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10184         warnings.
10185
10186 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10187
10188         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10189         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10190         to insn adjusting stack/frame pointer.
10191         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10192         accept operands that cause the insn to be non-splittable.
10193
10194 2002-01-08  Graham Stott  <grahams@redhat.com>
10195
10196         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10197         (C_TYPE_FIELDS_VOLATILE): Likewise.
10198         (C_TYPE_BEING_DEFINED): Likewise.
10199         (C_IS_RESERVED_WORD): Likewise.
10200         (C_TYPE_VARIABLE_SIZE): Likewise.
10201         (C_DECL_VARIABLE_SIZE): Likewise.
10202         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10203         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10204         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10205         parenthesis.
10206         (C_DECL_ANTICIPATED): Likewise.
10207         (c_build_type_variant): Add parenthesis.
10208
10209 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10210
10211         * gcc.c (option_map): Remove --version.
10212         (process_command): Handle -fversion following the GNU Coding
10213         Standards.  Partially addresses PR other/704.
10214
10215 2002-01-08  Graham Stott  <grahams@redhat.com>
10216
10217         * combine.c (combine_instructions): Fix typo.
10218
10219 2002-01-08  Graham Stott  <grahams@redhat.com>
10220
10221         * debug.h: Use "tree" and "rtx" throughout.
10222
10223         * debug.c: Likewise.
10224
10225 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10226
10227         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10228         constant pool, use the pool's version of the symbol instead.
10229
10230 2002-01-07  Richard Henderson  <rth@redhat.com>
10231
10232         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10233         the original register was copied in a mode with a fewer number of
10234         hard registers than the desired mode.
10235         (copyprop_hardreg_forward_1): Likewise.
10236         (debug_value_data): Fix loop test.
10237         * toplev.c (parse_options_and_default_flags): Reenable
10238         -fcprop-registers at -O1.
10239
10240 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10241
10242         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10243         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10244
10245         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10246         predicates.
10247
10248         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10249
10250 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10251
10252         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10253         (pa_output_function_prologue): Output local label at the beginning of
10254         the prologue when profiling.
10255         (hppa_profile_hook): Use the local label rather than the function label.
10256         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10257
10258 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10259
10260         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10261         (altivec_expand_unop_builtin): Fix thinko.
10262         (altivec_expand_binop_builtin): Same.
10263         (altivec_expand_ternop_builtin): Same.
10264         (altivec_expand_builtin): Same.
10265
10266 2002-01-07  Richard Henderson  <rth@redhat.com>
10267
10268         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10269
10270 2002-01-07  Jason Merrill  <jason@redhat.com>
10271
10272         * unwind-dw2.c (execute_cfa_program): Use < again.
10273
10274 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10275
10276         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10277
10278 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10279
10280         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10281         Don't allow -1 - x -> ~x simplifications in the first pass.
10282
10283 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10284
10285         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10286         arguments.
10287         (altivec_expand_binop_builtin): Same.
10288         (altivec_expand_unop_builtin): Same.
10289         (print_operand): Fix typo.
10290         (bdesc_1arg): Add vupk* variants.
10291
10292         * rs6000.h (rs6000_builtins): Add vupk* enums.
10293
10294         * rs6000.md: Add altivec_vupk* variants.
10295
10296 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10297
10298         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10299         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10300         and last update dates.
10301
10302 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10303
10304         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10305
10306 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10307
10308         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10309         * config/avr/avr.h (CPP_SPEC): Likewise.
10310         (LINK_SPEC): Likewise.
10311         (CRT_BINUTILS_SPECS): Likewise.
10312         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10313         * doc/invoke.texi (AVR Options): Document them.
10314
10315 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10316
10317         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10318         LABEL_NUSES.
10319
10320 2002-01-07  Graham Stott  <grahams@redhat.com>
10321
10322         * config/i386/i386.h: Update copyright date.
10323         (HALF_PIC_PTR): Add parenthesis.
10324         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10325         (CONSTANT_ALIGNMENT): Add parenthesis.
10326         (DATA_ALIGNMENT): Likewise.
10327         (LOCAL_ALIGNMENT): Likewise.
10328         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10329         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10330         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10331         (HARD_REGNO_NREGS): Add paranethesis.
10332         (VALID_SSE_REG_MODE): Whitespace.
10333         (VALID_MMX_REG_MODE): Whitespace.
10334         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10335         (ix86_hard_regno_mode_ok): Add parenthesis.
10336         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10337         (RETURN_IN_MEMORY): Whitespace.
10338         (N_REG_CLASSES): Add parenthesis.
10339         (INTEGER_CLASS_P): Add parenthesis and wrap.
10340         (FLOAT_CLASS_P): Likewise.
10341         (SSE_CLASS_P): Likewise.
10342         (MMX_CLASS_P): Likewise.
10343         (MAYBE_INTEGER_CLASS_P): Likewise.
10344         (MAYBE_FLOAT_CLASS_P): Likewise.
10345         (MAYBE_SSE_CLASS_P): Likewise.
10346         (MAYBE_MMX_CLASS_P): Likewise.
10347         (Q_CLASS_P): Likewise.
10348         (GENERAL_REGNO_P): Uppercase macro parameter.
10349         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10350         (FP_REGNO_P): Likewise.
10351         (ANY_FP_REGNO_P): Uppercase macro parameter.
10352         (SSE_REGNO_P): Likewise.
10353         (SSE_REGNO): Likewise.
10354         (SSE_REG_P): Likewise.
10355         (SSE_FLOAT_MODE_P): Likewise.
10356         (MMX_REGNO_P): Likewise.
10357         (MMX_REG_P):Likewise.
10358         (STACK_REG_P): Likewise.
10359         (NON_STACK_REG_P): Likewise.
10360         (STACK_TOP_P): Likewise.
10361         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10362         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10363         (SECONDARY_MEMORY_NEEDED): Likewise.
10364         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10365         (MD_ASM_CLOBBERS): Whitespace and wrap.
10366         (MUST_PASS_IN_STACK): Whitespace and wrap.
10367         (RETURN_POPS_ARGS): Add parenthesis.
10368         (INIT_CUMULATIVE_ARGS): Likewise.
10369         (FUNCTION_ARG): Likewise.
10370         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10371         (SETUP_INCOMING_VARARGS): Likewise.
10372         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10373         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10374         parenthsis.
10375         (EXPAND_BUILTIN_VA_ARG): Likewise.
10376         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10377         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10378         (INITIAL_ELIMINATION_OFFSET): Likewise.
10379         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10380         (REGNO_OK_FOR_BASE_P): Likewise.
10381         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10382         (REGNO_OK_FOR_DIREG_P): Likewise.
10383         (REG_OK_FOR_INDEX_P): Whitespace.
10384         (REG_OK_FOR_BASE_P): Whitespace.
10385         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10386         parenthesis.
10387         (FIND_BASE_TERM): Fix typo.
10388         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10389         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10390         (SYMBOLIC_CONST; Whitespace.
10391         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10392         (ENCODE_SECTION_INFO): Whitespace.
10393         (FINALIZE_PIC): Remove do { ... } while (0).
10394         (PROMOTE_MODE): Wrap in do { ... } while (0).
10395         (CONST_COSTS): Whitespace.
10396         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10397         (REGISTER_MOVE_COST): Add parenthesis.
10398         (MEMORY_MOVE_COST): Likewise.
10399         (EXTRA_CC_MODES): Whitespace.
10400         (SELECT_CC_MODE): Add parenthesis and whitespace.
10401         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10402         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10403         (ASM_OUTPUT_LABEL): Add paramethesis.
10404         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10405         (ASM_OUTPUT_REG_POP): Likewise.
10406         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10407         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10408
10409         * config/i386/i386.c: Update copyright.
10410         (CHECK_STACK_LIMIT): Add parenthesis.
10411         (AT_BP): Uppercase macro parameter.
10412         (x86_64_int_parameter_registers): Constify.
10413         (x86_64_int_return_registers): Likewise.
10414         (ix86_compare_op0): Use rtx.
10415         (construct_container): Constify INTREG parameter.
10416         (function_arg): Use rtx.
10417
10418         * diagnostic.h: Update copyright date.
10419         (output_buffer_state): Add parenthesis.
10420         (output_buffer_format_args): Likewise.
10421
10422         * combine.c (combine_instructions): Replace XEXP (links, 0)
10423         with link.
10424
10425 2002-01-06  H.J. Lu <hjl@gnu.org>
10426
10427         * cfgcleanup.c (thread_jump): Fix 2 typos.
10428
10429 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10430
10431         * config.gcc: Add support for --enable-altivec.
10432
10433 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10434
10435         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10436
10437 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10438
10439         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10440         __objc_class_name_*.
10441
10442 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10443
10444         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10445
10446 2002-01-06  Richard Henderson  <rth@redhat.com>
10447
10448         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10449         nop them out.  Increment label reference count for REG_LABEL.
10450         (fill_slots_from_thread): Frob label reference count around
10451         delete_related_insns.
10452
10453 2002-01-05  Richard Henderson  <rth@redhat.com>
10454
10455         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10456         jump threading.
10457
10458 2002-01-05  Richard Henderson  <rth@redhat.com>
10459
10460         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10461         * integrate.c (output_inline_function): Likewise.
10462         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10463         to remove_unnecessary_notes after emitting abstract instance.
10464         Force an emitted nested function to have its parent emited as well.
10465         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10466         for null.
10467         (rtl_for_decl_location): Do not look at reload data structures
10468         before reload has run.
10469
10470 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10471
10472         * cse.c: Fix formatting.
10473         * dwarf2asm.c: Likewise.
10474         * dwarf2out.c: Likewise.
10475         * explow.c: Likewise.
10476         * expmed.c: Likewise.
10477         * function.c: Likewise.
10478         * gcov.c: Likewise.
10479         * gencheck.c: Likewise.
10480         * genrecog.c: Likewise.
10481         * ggc-common.c: Likewise.
10482         * ggc-page.c: Likewise.
10483         * global.c: Likewise.
10484
10485 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10486
10487         * combine.c: Fix formatting.
10488
10489 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10490
10491         PR middle-end/1557
10492         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10493
10494 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10495
10496         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10497         as 1 for __powerpc64__ as well.
10498
10499         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10500
10501         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10502         return it.
10503
10504 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10505
10506         * lcm.c: Revert change, due to performance regression it causes on
10507         SPEC because it's slightly more conservative (sigh, I hate
10508         edge-based LCM).
10509
10510 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10511
10512         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10513
10514 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10515
10516         * doc/cppinternals.texi: Update.
10517
10518 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10519
10520         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10521         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10522         negatives.
10523         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10524         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10525         kludge for pre-october-14th mmix versions to handle new-found bug
10526         with PUSHJ/PUSHGO and the register stack.
10527         * config/mmix/mmix.h (struct machine_function): Rename member
10528         has_call_value_without_parameters to has_call_without_parameters.
10529         All referers changed.
10530         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10531         TARGET_MASK_BRANCH_PREDICT): New macros.
10532         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10533         -mno-reg-stack-fill-bug-workaround.
10534         * config/mmix/mmix.md ("call"): Set struct machine member
10535         has_call_without_parameters.
10536
10537 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10538
10539         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10540
10541 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10542
10543         * cfgcleanup.c: Include tm_p.h
10544         (mark_effect): Fix handling of hard register; fix handling of SET
10545
10546 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10547
10548         * config/h8300/h8300.md (anonymous patterns): Check that
10549         operands are registers before using REGNO on them.
10550
10551 2002-01-03  Roland McGrath  <roland@frob.com>
10552
10553         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10554
10555 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10556
10557         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10558         * c-common.h (genrtl_expr_stmt_value): Likewise.
10559         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10560         (expand_expr_stmt_value): Add maybe_last argument.
10561         Don't warn about statement with no effect if it is the last statement
10562         in expression statement.
10563         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10564         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10565         expand_expr_stmt_value.
10566         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10567         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10568         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10569         as maybe_last to expand_expr_stmt_value.
10570
10571 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10572
10573         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10574         be passed in, do not build it.
10575         (c_begin_if_stmt): New function.
10576         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10577         * c-common.h (c_expand_start_cond): Update prototype.
10578         (c_begin_if_stmt): Prototype new function.
10579         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10580         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10581         c_begin_while_stmt and c_finish_while_stmt_cond.
10582
10583 2002-01-04  William Cohen  <wcohen@redhat.com>
10584
10585         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10586         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10587         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10588         * config/pa/som.h (ASM_FILE_START): Likewise.
10589
10590 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10591
10592         * lcm.c: Include df.h.
10593         Add available_transfer_function prototype.
10594         (compute_available): Rework to use iterative dataflow framework.
10595         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10596         with bb_info in df.h
10597         (available_transfer_function): New function.
10598
10599         * Makefile.in (lcm.o): add df.h to dependencies.
10600
10601 2002-01-04  Richard Henderson  <rth@redhat.com>
10602
10603         * config/alpha/alpha.c (some_operand): Accept HIGH.
10604         (input_operand): Likewise; accept simple references to globals.
10605         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10606         (alpha_const_double_ok_for_letter_p): Likewise.
10607         (alpha_extra_constraint): Likewise.
10608         (alpha_preferred_reload_class): Likewise.  Do not force
10609         symbolic constants to memory.
10610         (alpha_legitimate_address_p): Accept simple references
10611         to small_symbolic_operand.
10612         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10613         called when no_new_pseudos.  Emit simple symbolic references.
10614         Split integers into low, high, and rest.
10615         (alpha_expand_mov): Use alpha_legitimize_address.
10616         (some_small_symbolic_mem_operand): New.
10617         (split_small_symbolic_mem_operand): New.
10618         * config/alpha/alpha-protos.h: Update.
10619         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10620         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10621         (EXTRA_CONSTRAINT): Likewise.
10622         (PREFERRED_RELOAD_CLASS): Likewise.
10623         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10624         (PREDICATE_CODES): Update.
10625         * config/alpha/alpha.md: New post-reload splitters to convert
10626         simplfied symbolic operands to the form that references $29.
10627         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10628         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10629
10630 2002-01-03  Richard Henderson  <rth@redhat.com>
10631
10632         * local-alloc.c (function_invariant_p): Update commentary.
10633
10634 2002-01-04  H.J. Lu <hjl@gnu.org>
10635
10636         * toplev.c (rest_of_compilation): Fix a typo when calling
10637         cleanup_cfg.
10638
10639 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10640
10641         * c-common.c: Fix formatting.
10642         * diagnostic.c: Likewise.
10643         * doloop.c: Likewise.
10644         * dwarf2out.c: Likewise.
10645
10646 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10647
10648         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10649         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10650
10651 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10652
10653         * cpperror.c: Update comments and copyright.
10654         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10655         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10656
10657 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10658
10659         * collect2.c (main): Use strcmp when testing for "-shared".
10660
10661 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10662
10663         * cppmacro.c: Don't include intl.h.  Update comments.
10664         (new_number_token): Allocate enough buffer for 64-bit unsigned
10665         integers; update prototype.
10666         * cppmain.c: Update comments.
10667
10668 2002-01-03  William Cohen  <wcohen@redhat.com>
10669
10670         * function.h (struct function): Add profile.
10671         (current_function_profile): New.
10672         doc/extend.texi: Update documentation.
10673         * final.c (final_start_function): Use current_function_profile
10674         instead of profile_flag.
10675         (profile_after_prologue): Likewise.
10676         * function.c (expand_function_start): Likewise.
10677         (expand_function_start): Likewise.
10678         * config/alpha/alpha.c (direct_call_operand):
10679         (alpha_does_function_need_gp): Likewise.
10680         (alpha_expand_prologue): Likewise.
10681         * config/arm/arm.c (arm_expand_prologue): Likewise.
10682         thumb_expand_prologue: Likewise.
10683         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10684         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10685         (fr30_expand_prologue): Likewise.
10686         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10687         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10688         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10689         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10690         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10691         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10692         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10693         (m32r_expand_prologue): Likewise.
10694         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10695         (m88k_expand_prologue): Likewise.
10696         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10697         * config/mips/mips.c (compute_frame_size): Likewise.
10698         (mips_expand_prologue): Likewise.
10699         (mips_can_use_return_insn): Likewise.
10700         * config/pa/elf.h (ASM_FILE_START): Likewise.
10701         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10702         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10703         * config/pa/som.h (ASM_FILE_START): Likewise.
10704         * config/romp/romp.c (romp_using_r14): Likewise.
10705         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10706         (rs6000_stack_info): Likewise.
10707         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10708         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10709         * config/v850/v850.c (compute_register_save_size): Likewise.
10710
10711 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10712
10713         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10714         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10715
10716 2002-01-03  Turly O'Connor  <turly@apple.com>
10717
10718         * darwin.c (machopic_output_possible_stub_label): Don't generate
10719         stub routines for pseudo-stubs which we've just defined.
10720
10721 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10722
10723         * builtins.c: Fix formatting.
10724         * c-typeck.c: Likewise.
10725         * combine.c: Likewise.
10726         * expr.c: Likewise.
10727         * loop.c: Likewise.
10728
10729 2002-01-03  Andreas Schwab  <schwab@suse.de>
10730
10731         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10732         and return true if _cpp_push_next_buffer pushed a new include
10733         file.
10734         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10735         _cpp_pop_file_buffer did not push a new file.
10736         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10737
10738 2002-01-02  Eric Christopher  <echristo@redhat.com>
10739
10740         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10741         FIND_REG_INC_NOTE call. Update copyright.
10742         * loop.c (canonicalize_condition): Ditto.
10743         * reorg.c (delete_scheduled_jump): Ditto.
10744
10745 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10746
10747         * gcse.c: Fix formatting.
10748
10749 2002-01-03  Graham Stott  <grahams@redhat.com>
10750
10751         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10752         forward defs for struct tags rtx_def, union_tree, rtvec_def
10753         also output corresponding typedefs for rtx, tree, and rtvec.
10754
10755         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10756         rtvec_def along with corresponding typedefs for rtx, tree, and
10757         rtvec to config.h, hconfig.h, tconfig.h.
10758
10759 2002-01-03  Graham Stott  <grahams@redhat.com>
10760
10761         * tree.h: Update copyright date.
10762         (IS_EXPR_CODE_CLASS): Add parenthesis.
10763         (TREE_SET_CODE): Add whitespace.
10764         (TREE_CHECK): Add parenthesis.
10765         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10766         (CST_OR_CONSTRUCTOR_CHECK):
10767         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10768         (TREE_SYMBOL_REFERENCED): Whitespace.
10769         (INT_CST_LT): Likewise.
10770         (INT_CST_LT_UNSIGNED): Likewise.
10771         (tree_real_cst): Unwrap comment.
10772         (tree_string): Likewise.
10773         (tree_complex): Likewise.
10774         (IDENTIFIER_POINTER): correct cast.
10775         (SAVE_EXPR_CONTEXT): Whitespace.
10776         (EXPR_WFL_FILENAME_NODE): Likewise.
10777         (EXPR_WFL_FILENAME): Remove parenthesis.
10778         (DECL_ORIGIN): Add parenthesis.
10779         (DECL_FROM_INLINE): Use NULL_TREE.
10780         (build_int_2): Whitespace.
10781         (build_type_variant): Add parenthesis.
10782
10783         * gcc/jcf-parse.c: Update copyright date.
10784         (yyparse): Constify resource_filename.
10785
10786 2002-01-03  Graham Stott  <grahams@redhat.com>
10787
10788         * rtl.h: Update copyright date.
10789         (RTL_CHECK1): Wrap long line.
10790         (RTL_CHECK2): Likewise.
10791         (RTL_CHECKC1): Wrap long line and whitespace.
10792         (RTL_CHECKC2): Likewise.
10793         (XWINT): Whitespace.
10794         (XINT): Likewise.
10795         (XSTR): Likewise.
10796         (XEXP): Likewise.
10797         (XVEC): Likewise.
10798         (XMODE): Likewise.
10799         (XBITMAP): Likewise.
10800         (XTREE): Likewise.
10801         (XBBDEF): Likewise.
10802         (XTMPL): Likewise.
10803         (X0WINT): Likewise.
10804         (X0INT):Likewise.
10805         (X0UINT): Likewise.
10806         (X0STR): Likewise.
10807         (X0EXP): Likewise.
10808         (X0VEC): Likewise.
10809         (X0MODE): Likewise.
10810         (X0BITMAP): Likewise.
10811         (X0TREE): Likewise.
10812         (X0BBDEF): Likewise.
10813         (X0ADVFLAGS): Likewise.
10814         (X0CSELIB): Likewise.
10815         (X0MEMATTR): Likewise.
10816         (XCWINT): Likewise.
10817         (XCINT): Likewise.
10818         (XCUINT): Likewise.
10819         (XCSTR): Likewise.
10820         (XCEXP): Likewise.
10821         (XCVEC): Likewise.
10822         (XCMODE): Likewise.
10823         (XCBITMAP): Likewise.
10824         (XCTREE): Likewise.
10825         (XCBBDEF): Likewise.
10826         (XCADVFLAGS): Likewise.
10827         (XCCSELIB): Likewise.
10828         (XC2EXP): Likewise.
10829         (INSN_UID): Likewise.
10830         (PREV_INSN): Likewise.
10831         (PATTERN): Likewise.
10832         (INSN_CODE): Likewise.
10833         (PUT_REG_NOTE_KIND): Likewise.
10834         (CODE_LABEL_NUMBER): Likewise.
10835         (NOTE_SOURCE_FILE): Likewise.
10836         (NOTE_BLOCK): Likewise.
10837         (NOTE_EH_HANDLER): Likewise.
10838         (NOTE_RANGE_INFO): Likewise.
10839         (NOTE_LIVE_INFO): Likewise.
10840         (NOTE_BASIC_BLOCK): Likewise.
10841         (NOTE_EXPECTED_VALUE): Likewise.
10842         (NOTE_LINE_NUMBER): Likewise.
10843         (LABEL_NAME): Likewise.
10844         (LABEL_NUSES): Likewise.
10845         (LABEL_ALTERNATE_NAME): Likewise.
10846         (ADDRESSOF_DECL): Likewise.
10847         (JUMP_LABEL): Likewise.
10848         (LABEL_NEXTREF): Likewise.
10849         (REGNO): Likewise.
10850         (ORIGINAL_REGNO: Likewise.
10851         (HARD_REGISTER_NUM_P): Add parenthesis.
10852         (SUBREG_REG): Whitespace.
10853         (SUBREG_BYTE): Likewise.
10854         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10855         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10856         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10857         (ASM_OPERANDS_INPUT_VEC): Likewise.
10858         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10859         (ASM_OPERANDS_INPUT): Likewise.
10860         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10861         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10862         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10863         (ASM_OPERANDS_INPUT_MODE): Likewise.
10864         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10865         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10866         (MEM_SET_IN_STRUCT_P): Minor reformat.
10867         (TRAP_CONDITION): Whitespace.
10868         (TRAP_CODE): Likewise.
10869         (COND_EXEC_TEST): Likewise.
10870         (COND_EXEC_CODE): Likewise.
10871         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10872         (PHI_NODE_P): Add parenthesis.
10873         (plus_constant): Whitespace and add parenthesis.
10874
10875 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10876
10877         * config/avr/avr.c: Fix comment typos.
10878         * config/c4x/c4x.md: Likewise.
10879         * config/dsp16xx/dsp16xx.h: Likewise.
10880         * config/dsp16xx/dsp16xx.md: Likewise.
10881         * config/i386/i386.md: Likewise.
10882         * config/ia64/ia64.c: Likewise.
10883         * config/m32r/m32r.h: Likewise.
10884         * config/m68hc11/m68hc11.md: Likewise.
10885         * config/mmix/mmix.c: Likewise.
10886         * config/mn10200/mn10200.c: Likewise.
10887         * config/romp/romp.c: Likewise.
10888         * config/sh/sh.c: Likewise.
10889         * config/stormy16/stormy16.c: Likewise.
10890         * config/stormy16/stormy16.h: Likewise.
10891         * config/stormy16/stormy16.md: Likewise.
10892
10893 2002-01-03  Graham Stott  <grahams@redhat.com>
10894
10895         * loop.h: Update copyright date.
10896         (LOOP_MOVABLES): Fix typo.
10897         (LOOP_REGS): Likewise.
10898         (LOOP_IVS): Likewise.
10899
10900 2002-01-03  Graham Stott  <grahams@redhat.com>
10901
10902         * cppinit.c: Update copyright date.
10903         Don't include output.h
10904         * Makefile.in: Update copyright date.
10905         Update dependency.
10906
10907 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10908
10909         PR c/5226
10910         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10911         (-pthread) Add to RS/6000 options.
10912
10913 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10914
10915         * except.c: Fix comment typos.
10916         * loop.c: Likewise.
10917         * varasm.c: Likewise.
10918         * doc/tm.texi: Fix a typo.
10919
10920 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
10921
10922         * c-typeck.c (output_init_element): Allow initializing static storage
10923         duration objects with compound literals.
10924
10925 2002-01-02  Richard Henderson  <rth@redhat.com>
10926
10927         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10928         after abusing it.
10929
10930 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10931
10932         * gcc.c (default_compilers): Const-ify.
10933         * mips-tdump.c (stab_names): Likewise.
10934         * mips-tfile.c (map_coff_types, map_coff_storage,
10935         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10936         pseudo_ops_t, pseudo_ops): Likewise.
10937         * protoize.c (default_include): Likewise
10938
10939         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10940         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10941         Add array size in declaration.
10942         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10943         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10944         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10945         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10946         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10947         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10948         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10949         emtens, make_nan): Const-ify.
10950         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10951         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10952
10953 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
10954
10955         * config.gcc (ia64-*-*): Set extra_headers.
10956         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
10957         * config/alpha/t-osf: Remove.
10958         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10959
10960 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
10961
10962         * config/rs6000/t-aix43: Revert previous change.
10963
10964 2002-01-02  Jason Merrill  <jason@redhat.com>
10965
10966         * c-decl.c (c_expand_body): Call outlining_inline_function when
10967         emitting an inline function out of line.
10968
10969 2002-01-02  Richard Henderson  <rth@redhat.com>
10970
10971         * dwarf2out.c (limbo_die_node): Add created_for member.
10972         (new_die): New argument created_for.  Update all callers.
10973         (mark_limbo_die_list): New.
10974         (dwarf2out_init): Register limbo_die_list as a root.
10975         (dwarf2out_finish): Force insert limbo dies into their function
10976         context.
10977
10978 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10979
10980         PR c++/5089
10981         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10982
10983 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10984
10985         * config/h8300/fixunssfsi.c: Update copyright.
10986         Fix comment typos.
10987         Fix formatting.
10988         * config/h8300/h8300.c: Update copyright.
10989         Eliminate warnings.
10990
10991 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10992
10993         * config/romp/romp.c: Fix comment formatting.
10994         * config/romp/romp.h: Likewise.
10995         * config/romp/romp.md: Likewise.
10996         * config/s390/s390.c: Likewise.
10997         * config/stormy16/stormy16.c: Likewise.
10998         * config/stormy16/stormy16.h: Likewise.
10999
11000 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
11001
11002         * c-common.h (genrtl_expr_stmt_value): Declare.
11003         * c-semantics.c (genrtl_goto_stmt): Redirect to...
11004         (genrtl_goto_stmt_value): ... this new function.  Pass new
11005         argument down to expand_expr_stmt_value, taking
11006         TREE_ADDRESSABLE into account.
11007         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11008         STMT_EXPR as addressable, i.e., one whose result we want.
11009         * expr.c (expand_expr): Don't save expression statement value
11010         of labeled_blocks or loop_exprs.
11011         * stmt.c (expand_expr_stmt): Redirect to...
11012         (expand_expr_stmt_value): ... this new function.  Use new
11013         argument to tell whether to save expression value.
11014         (expand_end_stmt_expr): Reset last_expr_type and
11015         last_expr_value if we don't have either.
11016         * tree-inline.c (declare_return_variable): Mark its use
11017         statement as addressable.
11018         * tree.h: Document new use of TREE_ADDRESSABLE.
11019         (expand_expr_stmt_value): Declare.
11020
11021 2002-01-01  Tom Rix  <trix@redhat.com>
11022
11023         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11024         rs6000_emit_allocate_stack.
11025
11026 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11027
11028         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11029         ${srcdir}/ginclude/ to every entry in extra_headers.
11030         * configure: Regenerate.
11031         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11032         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11033         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11034         * ginclude/proto.h: Rename to config/convex/proto.h.
11035
11036 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11037
11038         * attribs.c (handle_vector_size_attribute): Use host_integerp
11039         and tree_int_cst; remove warnings.
11040         * caller-save.c (insert_restore): Add cast to get rid of warning.
11041         (insert_save): Likewise.
11042         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11043         * regmove.c (find_matches): Add temporary var to kill a warning.
11044
11045 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11046
11047         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11048         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11049         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11050         (vms-dwarf2eh.o): Add Makefile rule.
11051         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11052         * config/alpha/vms-dwarf2eh.asm: New file.
11053
11054         * gcc.c (delete_if_ordinary): Delete all versions.
11055
11056 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11057
11058         * config/mmix/mmix.md: Update FIXME to not mention
11059         define_constants.
11060         (MMIX_rJ_REGNUM): New define_constants constant.
11061         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11062         "*movdicc_real"): Adjust contraints formatting.
11063         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11064         for branch prediction.
11065         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11066         output template.
11067         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11068         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11069         number.  Delete related FIXMEs.
11070         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11071         from number to MMIX_rJ_REGNUM.
11072         (TARGET_MASK_BRANCH_PREDICT): New.
11073         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11074         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11075         value.  Add -mbranch-predict and -mno-branch-predict.
11076         (TARGET_VERSION): Drop date.
11077         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11078         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11079         for finding out global symbols.
11080         (mmix_asm_output_labelref): Revert condition for global symbol.
11081         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11082         (mmix_print_operand_punct_valid_p): A '+' is valid.
11083
11084 See ChangeLog.6 for earlier changes.