OSDN Git Service

* i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
2
3         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
4         workaround.
5         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6         (ix86_expand_clrstr): Fix typo.
7         * loop.c (gen_load_of_final_value): New.
8         (loop_givs_rescan, strength_reduce, check_dbra_loop):
9         Use it.
10
11 2002-04-23  Roger Sayle  <roger@eyesopen.com>
12
13         * builtins.c (builtin_memset_gen_str): New function.
14         (expand_builtin_memset): Optimize the case of constant length, but
15         unknown value.
16
17 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
18
19         * config/rs6000/altivec.h (vec_step): Remove extraneous
20         parentheses.
21         (vec_ctu): Cast return.
22
23 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
24
25         PR target/6413
26         * function.h: (struct function): Add profile_label_no field.
27         (current_function_profile_label_no): Define.
28         * function.c: (profile_label_no): New static var.
29         (expand_function_start): Increment it, and copy to
30         current_function_profile_label_no.
31         * output.h (profile_label_no): Delete.
32         * final.c (profile_label_no): Delete.
33         (profile_function): Use current_function_profile_label_no.
34         (final_end_function): Don't increment profile_label_no here.
35         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
36         profile_label_no with current_function_profile_label_no.
37         * config/pa/pa.c (current_function_number): Delete.
38         (pa_output_function_prologue): Don't output profile label here.
39         (hppa_profile_hook): Use label_no param rather than
40         current_function_number.
41         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
42         * config/pa/pa.h: .. here.
43         (FUNCTION_PROFILER): Output profile label here.
44
45 2002-04-22  Eric Christopher  <echristo@redhat.com>
46
47         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
48         patch of 2002-04-09 due to binutils issues.
49         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
50
51 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
52
53         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
54         constraint to 'o' for m=r and r=m alternatives.
55         ("*movv8hi_internal1"): Same.
56         ("*movv16qi_internal1"): Same.
57         ("*movv4sf_internal1"): Same.
58
59 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
60
61         * rtl.h (RTX_FLAG): New macro.
62         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
63         * final.c (alter_subreg): Use macro to access rtx flag.
64         * integrate.c (copy_rtx_and_substitute): Use new access macro.
65         * print-rtl.c (print_rtx): Use new access macro.
66
67         * cse.c (insert): Check rtx code before accessing flag.
68
69         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
70         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
71         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
72         convert_const_symbol_ref, make_canonical, make_alternative_compare,
73         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
74         simplify_test_exp, optimize_attrs, simplify_by_exploding,
75         find_and_mark_used_attributes, unmark_used_attributes,
76         add_values_to_cover, simplify_with_current_value,
77         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
78         copy_rtx_unchanging, main): Use new access macros.
79
80 2002-04-22  Tom Rix  <trix@redhat.com>
81
82         * expmed.c (init_expmed): Generate shifted constant once.
83
84 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
85
86         * c-lex.c (lex_charconst): Call convert to get constant in
87         proper type; don't just smash the type field.
88         Fixes PR c/6300.
89
90         * config.gcc: Add list of obsolete configurations.  Disallow
91         building these without --enable-obsolete.
92         * doc/install.texi: Document --enable-obsolete and obsoletion
93         policy.  Mention obsoletion of individual targets in
94         appropriate places.
95
96 2002-04-22  Richard Henderson  <rth@redhat.com>
97
98         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
99
100 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
101
102         PR f/6138.
103         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
104         (walk_fixup_memory_subreg): Likewise.
105         (fixup_var_refs_insn): Adjust accordingly.
106         (fixup_var_refs_1): Likewise.
107
108 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
109
110         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
111         LIBPATH_ARCH64_SPEC): Define.
112         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
113         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
114         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
115         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
116
117 2002-04-22      Joel Sherrill <joel@OARcorp.com>
118
119         * gthr-rtems.h: Correct prototypes to remove warnings.
120
121 2002-04-22  Richard Henderson  <rth@redhat.com>
122
123         PR c/6344
124         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
125
126         * gcse.c (free_insn_expr_list_list): New.
127         (clear_modify_mem_tables): Use it.  Fix bit set usage.
128         (canon_list_insert): Use EXPR_LISTs for expressions.
129         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
130
131 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
132
133         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
134         file change and include code to _cpp_pop_buffer.
135         * cpphash.h (struct pending_option): Predeclare.
136         (struct cpp_reader): New member next_include_file.
137         (_cpp_pop_file_buffer): Update.
138         (_cpp_push_next_buffer): Update, rename.
139         * cppinit.c (cpp_destroy): Free include chain and pending here.
140         (cpp_finish_options): Simplify.
141         (_cpp_push_next_buffer): Rename and clean up.
142         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
143         Clarify.
144         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
145
146 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
147
148         * config/rs6000/altivec.h (vec_xor): Add variant for both args
149         being vector signed int.
150         (vec_andc): Same.
151         (vec_xor): Add variant for both args being vector signed char.
152         Remove redundant variant.
153         (vec_andc): Same.
154
155 2002-04-21  David S. Miller  <davem@redhat.com>
156
157         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
158         compare mode in output RTL.
159
160 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
161
162         * config/rs6000/rs6000.c (rs6000_override_options): Correct
163         style and formatting of previous patch.
164
165 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
166
167         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
168         flag_pic for ABI_AIX.
169
170 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
171
172         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
173         * cppfiles.c (read_include_file): Similarly.
174         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
175         uxstrdup ustrchr, ufputs): Similarly.
176         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
177         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
178         cpp_ideq, parse_identifier, parse_number): Similarly.
179         * cpplib.c (struct directive, dequote_string, D, run_directive,
180         cpp_push_buffer): Similarly.
181         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
182         _cpp_create_definition, check_trad_stringification,
183         cpp_macro_definition): Similarly.
184
185 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
186
187         * cppmacro.c (funlike_invocation_p): Don't step back
188         over CPP_EOF.
189
190 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
191
192         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
193         labelno.
194
195 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
196
197         * doc/invoke.texi: Remove Chill references.
198         * doc/gcc.texi: Update last modified date.
199
200 2002-04-20  Kazu Hirata  <kazu@hxi.com>
201
202         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
203         push and pop.  Replace add.l with add.w.
204
205 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
206
207         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
208         multiply instructions for H8/300H case.
209
210 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
211
212         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
213         Bum three instructions from each routine.
214
215 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
216
217         * Makefile.in: Update.
218         * decl.c (push_c_function_context, pop_c_function_context,
219         mark_c_function_context): Rename for consistency.
220         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
221         * c-tree.h (push_c_function_context, pop_c_function_context,
222         mark_c_function_context): Rename for consistency.
223         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
224         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
225         * function.c (init_lang_status, save_lang_status,
226         restore_lang_status, mark_lang_status, free_lang_status):
227         Move to langhooks.h.
228         (push_function_context_to, pop_function_context_from,
229         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
230         Update.
231         * function.h (init_lang_status, save_lang_status,
232         restore_lang_status, mark_lang_status, free_lang_status):
233         Move to langhooks.h.
234         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
235         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
236         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
237         LANG_HOOKS_FUNCTION_INITIALIZER): New.
238         (LANG_HOOKS_INITIALIZER): Update.
239         (lhd_do_nothing_f): New.
240         * langhooks.h (struct lang_hooks_for_functions): New.
241         (struct lang_hooks): New hooks.
242         * langhooks.c (lhd_do_nothing_f): New.
243 objc:
244         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
245         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
246
247 2002-04-19  David S. Miller  <davem@redhat.com>
248
249         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
250         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
251
252 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
253
254         PR optimization/3756
255         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
256         x = ((int) y < 0) ? cst1 : cst2.
257
258 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
259
260         PR c/6358
261         * function.c: Reapply patch for c/6358.
262         (expand_function_end): Copy decl_rtl's mode, not
263         current_function_return_rtx mode.
264
265 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
266
267         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
268         targets.
269
270 2002-04-19  Tom Tromey  <tromey@redhat.com>
271
272         * doc/install.texi (Specific): Update status of Solaris 2.8.
273         For PR libgcj/6158.
274
275 2002-04-19  Andreas Schwab  <schwab@suse.de>
276
277         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
278         (PUT_REAL): Restore old definition.
279
280 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
281             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
282
283         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
284         binutils 2.11.2 and higher generate smaller binaries than Sun's
285         native tools.
286
287 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
288
289         PR c++/6352
290         * toplev.c (rest_of_compilation): Do not defer functions for which
291         TREE_SYMBOL_REFERENCED has already been set.
292
293 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
294
295         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
296         alternative.
297
298 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
299
300         * builtins.c: Include langhooks.h.
301         (lang_type_promotes_to): Remove.
302         (expand_builtin_va_arg): Use new hook.
303         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
304         (simple_type_promotes_to): Move to c-typeck.c.
305         * c-common.h (simple_type_promotes_to): Remove.
306         * c-decl.c (duplicate_decls, grokdeclarator): Update.
307         * c-format.c: Include langhooks.h.
308         (check_format_types): Update.
309         * c-tree.h (c_type_promotes_to): New.
310         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
311         (type_lists_compatible_p): Update.
312         * langhooks-def.h (lhd_type_promotes_to): New.
313         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
314         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
315         * langhooks.c (lhd_type_promotes_to): New.
316         * langhooks.h (struct lang_hooks_for_types): New hook.
317         * tree.h (lang_type_promotes_to): Remove.
318 objc:
319         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
320
321 2002-04-18  Richard Henderson  <rth@redhat.com>
322
323         * function.c: Revert patch for c/6358.
324
325 2002-04-18  Richard Henderson  <rth@redhat.com>
326
327         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
328         blocks.  Handle multiple references to the TRAP block.  Handle
329         non-adjacent THEN and OTHER blocks.
330
331 2002-04-18  Richard Henderson  <rth@redhat.com>
332
333         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
334         crash with no type for by-mode libcalls.
335
336         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
337
338 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
339
340         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
341         __xtensa_nonlocal_goto): Use a syscall instructions to flush
342         the register windows.
343
344 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
345
346         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
347         appropriate.  Document need for extended precision even when
348         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
349         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
350         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
351         instead of relying on later syntax error when REAL_WIDTH > 5.
352         * real.c: Define NE based only on whether or not we have a
353         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
354         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
355         define GET_REAL and PUT_REAL as simple memcpy operations; no
356         need to byteswap or round.
357         Use #error instead of #ifdef-ing out the entire file, for
358         prompt error detection.
359
360         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
361
362 2002-04-18  David S. Miller  <davem@redhat.com>
363
364         * config/sparc/sparc.h (BRANCH_COST): Define.
365
366         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
367         does it.
368
369 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
370
371         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
372         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
373         propagate_block calls after relaxation loop using new variable
374         stabilized_prop_flags.
375
376 2002-04-18  Richard Henderson  <rth@redhat.com>
377
378         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
379         (ia64_va_arg): Expect variable sized types by reference.
380         * config/ia64/ia64-protos.h: Update.
381         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
382         ia64_function_arg_pass_by_reference.
383
384 2002-04-18  Richard Henderson  <rth@redhat.com>
385
386         * ifcvt.c: Include except.h.
387         (block_has_only_trap): Break out from find_cond_trap.
388         (find_cond_trap): Use it.  Always delete the trap block.
389         (merge_if_block): Allow then block null.  Be less simplistic about
390         what insns can end a block.
391         * Makefile.in (ifcvt.o): Depend on except.h.
392
393         * config/ia64/ia64.md (trap, conditional_trap): New.
394
395 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
396
397         PR c/6358
398         * function.c (assign_parms): Assign hard current_function_return_rtx
399         register here...
400         (expand_function_end): ...not here.
401
402 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
403
404         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
405         * c-tree.h (c_incomplete_type_error): New.
406         * c-typeck.c (require_complete_type, build_component_ref): Update.
407         (incomplete_type_error): Rename.
408         * langhooks-def.h (lhd_incomplete_type_error): New.
409         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
410         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
411         * langhooks.c (lhd_incomplete_type_error): New.
412         * langhooks.h (struct lang_hooks_for_types): New hook.
413         * tree.c (size_in_bytes): Use new hook.
414         * tree.h (incomplete_type_error): Remove.
415 objc:
416         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
417
418 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
419
420         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
421         TARGET_FLOAT_FORMAT blocks.
422
423 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
424
425         * doc/install.texi (Downloading the source): Do not mention Chill
426         any longer, but mention Ada.
427         (Configuration): Do not mention Chill any longer.
428
429 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
430
431         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
432
433 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
434
435         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
436         in last patch.
437
438 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
439
440         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
441         instead of unsigned_type.
442
443 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
444
445         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
446         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
447         later.
448
449 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
450
451         * attribs.c (vector_type_node_list): New static variable.
452         (handle_vector_size_attribute): Use it to avoid generating a
453         new type node each time we are called.
454
455         * combine.c (subst): Avoid trying to make a vector mode subreg of
456         an integer constant.
457         (gen_lowpart_for_combine): Likewise.
458
459 2002-04-18  Roger Sayle  <roger@eyesopen.com>
460             Jakub Jelinek  <jakub@redhat.com>
461
462         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
463         for integer constant c (if x has unsigned type or sign bit is not
464         set in c).  This folds the zero/sign extension into the bit-wise and
465         operation.
466
467 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
468
469         PR middle-end/6205
470         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
471         otherwise xorps.
472
473 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
474
475         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
476
477 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
478
479         * gcc.c (read_specs): Detect and fail if an attempt is made to
480         rename a spec string to an already existing string.
481
482 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
483
484         * config/s390/s390.c (legitimize_pic_address): Do not generate
485         illegal address constant without CONST.
486
487 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
488
489         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
490         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
491
492 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
493
494         PR optimization/6305
495         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
496         to make sure previous reloads are taken into account.  Generate
497         better code if one operand is an in-range immediate constant.
498
499 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
500
501         * doc/install.texi (Building): libgcj requires GNU make.
502
503 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
504
505         PR bootstrap/6315
506         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
507         even if hard quad and register is not floating.
508         (movtf reg<-mem split): Disallow splitting if hard quad and
509         register is floating.
510         (movtf mem<-reg split): Likewise.
511         * config/sparc/sparc.c (fp_register_operand): New predicate.
512         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
513
514 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
515
516         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
517         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
518         (unprotoize.o): Ditto.  Build from protoize.c.  Define
519         UNPROTOIZE on command line.
520         * protoize.c: Include cppdefault.h.  Delete include_defaults.
521         (in_system_include_dir): Use cpp_include_defaults (defined in
522         cppdefault.o).
523         * unprotoize.c: Delete file.
524
525 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
526
527         * config/rs6000/altivec.h (vec_ld): Add array variants.
528         (vec_lde): Same.
529         (vec_ldl): Same.
530
531 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
532             Aldy Hernandez <aldyh@redhat.com>
533
534         * config/rs6000/altivec.h: Define __ALTIVEC__.
535         (bool): New.
536         (__pixel): New.
537         (pixel): New.
538         (vec_cfux): New.
539         (vec_vmaddfp): New.
540         (vec_vsldoi): New.
541         Add parentheses to all macro arguments.
542
543 2002-04-16  Richard Henderson  <rth@redhat.com>
544
545         PR c++/6320
546         * except.c (remove_eh_handler): Insert inner regions at beginning
547         of sibling chain.  Refactor expressions.
548
549 2002-04-16  Richard Henderson  <rth@redhat.com>
550
551         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
552         * config/sparc/sol2-gas-bi.h: New file.
553         * config.gcc (sparc*-solaris): Add it as needed.
554         * configure.in (AS_SPARC64_FLAG): Remove check.
555         * config.in, configure: Regenerate.
556
557         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
558
559 2002-04-16  Richard Henderson  <rth@redhat.com>
560
561         * config/mips/mips.c (override_options): Don't override N32 for
562         a 64-bit ISA.
563
564         PR 6202
565         * config/mips/mips.md (can_delay): Split out of existing define_delays.
566         (HILO_delay): Set can_delay false.
567
568 2002-04-16  Dale Johannesen <dalej@apple.com>
569
570         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
571         instruction addresses.
572         (rs6000_output_function_epilogue): Likewise.
573
574 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
575
576         * c-parse.in (poplevel, compstmt_start,
577         compstmt_primary_start): Add ending ';', in accordance
578         with POSIX.
579
580 2002-04-16  Richard Henderson  <rth@redhat.com>
581
582         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
583         Adjust tm_file order to get TARGET_DEFAULT set properly.
584         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
585         * doc/install.texi (sparc-solaris): Update.
586
587 2002-04-16  Dale Johannesen <dalej@apple.com>
588
589         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
590         comparison operands do not match each other or if modes of
591         conditions do not match result.
592
593 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
594
595         PR target/6305
596         * config/s390/s390.md (mulsidi3): Set both subregs of the
597         multiword register.
598
599 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
600
601         * config/rs6000/altivec.h (vec_addc): Type check.
602
603 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
604
605         PR middle-end/6279
606         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
607
608         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
609
610 2002-04-15  Richard Henderson  <rth@redhat.com>
611
612         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
613         call_really_used_regs too.
614
615 2002-04-15  Richard Henderson  <rth@redhat.com>
616
617         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
618
619 2002-04-15  David S. Miller  <davem@redhat.com>
620
621         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
622         as being CLOBBERed.
623
624 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
625
626         PR c/6290
627         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
628         CONST_VECTOR is { 0, ... 0 }.
629
630 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
631
632         * doc/install.texi (Installing GCC: Configuration): Clarify
633         the only supported ways to configure gcc.
634
635 2002-04-15  Roland McGrath  <roland@frob.com>
636
637         * config.gcc (alpha*-*-gnu*): New target configuration.
638         * config/alpha/gnu.h: New file for it.
639         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
640
641 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
642
643         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
644         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
645         * tree.h (expand_start_stmt_expr): Update prototype.
646         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
647         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
648         on the STMT_EXPR created for the inline function.
649
650 2002-04-15  Richard Henderson  <rth@redhat.com>
651
652         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
653         config/i386/linux-aout.h, config/i386/linux-oldld.h,
654         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
655         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
656         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
657         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
658         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
659         Define __gnu_linux__, not gnu_linux.
660         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
661
662 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
663
664         Remove Chill front end.
665         * gcc.c (default_compilers): Remove Chill entries.
666         * ch: Remove directory.
667         * doc/frontends.texi: Remove information about Chill.
668         * doc/sourcebuild.texi: Likewise.
669         * doc/standards.texi: Likewise.
670
671 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
672
673         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
674         (LONGLONG_STANDALONE): Define.
675
676 2002-04-15  David S. Miller  <davem@redhat.com>
677
678         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
679         Call emit_library_call with LCT_NORMAL.
680         (sparc_initialize_trampoline): Use LCT_foo instead of
681         magic constant in emit_library_call invocations.
682         (sparc64_initialize_trampoline): Likewise.
683         (sparc_profile_hook): Likewise.
684         * config/sparc/sparc.md: Likewise.
685
686         * config/sparc/sparc.c (sparc_extra_constraint_check):
687         Fix type of argument 'c'.
688         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
689         Likewise.
690
691 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
692
693         * diagnostic.h (output_buffer_state): Redefine.
694         (output_format_decoder): New macro.
695         (output_prefixing_rule): Likewise.
696         (output_line_cutoff): Likewise.
697         (diagnostic_format_decoder): Adjust.
698         (diagnostic_prefixing_rule): Likewise.
699         (diagnostic_line_cutoff): Likewise.
700         (diagnostic_state): Likewise.
701         (diagnostic_kind_count): Likewise.
702         (diagnostic_buffer): Now a macro.
703
704         * diagnostic.c (diagnostic_buffer): Remove definition.
705         (output_is_line_wrapping): Adjust.
706         (set_real_maximum_length): Likewise.
707         (output_set_maximum_length): Likewise.
708         (init_output_buffer): Likewise.
709         (lhd_print_error_function): Likewise.
710         (output_do_verbatim): Likewise.
711
712 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
713
714         * cpperror.c (print_location): Don't print include chain
715         if line == 0.
716         (cpp_begin_message): Update to use DL_ macros.
717         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
718         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
719         cpp_notice, cpp_notice_from_errno): Remove.
720         (cpp_error, cpp_error_with_line): Update to take a diagnostic
721         level.
722         (cpp_errno): New.
723         * cppexp.c (CPP_ICE): Remove.
724         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
725         lex, integer_overflow, _cpp_parse_expr): Update.
726         * cppfiles.c (read_include_file, find_include_file,
727         handle_missing_header, _cpp_read_file, remap_filename): Update.
728         * cpphash.h (enum error_type): Remove.
729         (_cpp_begin_message): Update.
730         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
731         cpp_handle_option, cpp_post_options): Update.
732         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
733         skip_whitespace, parse_identifier, parse_slow, parse_string,
734         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
735         cpp_interpret_charconst): Update.
736         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
737         lex_macro_node, do_undef, glue_header_name, parse_include,
738         do_include_common, read_flag, do_line, do_linemarker, do_ident,
739         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
740         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
741         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
742         _cpp_pop_buffer, do_diagnostic): Update.
743         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
744         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
745         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
746         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
747         cpp_notice, cpp_notice_from_errno): Remove.
748         (cpp_error, cpp_error_with_line): Update to take a diagnostic
749         level.
750         (cpp_errno): New.
751         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
752         collect_args, enter_macro_context, save_parameter, parse_params,
753         _cpp_create_definition, check_trad_stringification,
754         cpp_macro_definition): Update.
755         * cppmain.c (cpp_preprocess_file): Update.
756         * fix-header.c (read_scan_file): Update.
757
758 2002-04-14  Andreas Schwab  <schwab@suse.de>
759
760         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
761
762 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
763
764         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
765
766 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
767
768         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
769         not gnu_hurd.
770
771 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
772
773         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
774
775 2002-04-13      Joel Sherrill <joel@OARcorp.com>
776
777         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
778         sparc-elf and sparc-rtems targets.
779
780 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
781
782         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
783         defined, and __gnu_hurd__ wherever __GNU__ is defined.
784         * arm/linux-elf.h: Likewise.
785         * cris/aout.h: Likewise.
786         * cris/linux.h: Likewise.
787         * i370/linux.h: Likewise.
788         * i386/gnu.h: Likewise.
789         * i386/linux-aout.h: Likewise.
790         * i386/linux-oldld.h: Likewise.
791         * i386/linux.h: Likewise.
792         * i386/linux64.h: Likewise.
793         * ia64/linux.h: Likewise.
794         * m68k/linux-aout.h: Likewise.
795         * m68k/linux.h: Likewise.
796         * mips/linux.h: Likewise.
797         * pa/pa-linux.h: Likewise.
798         * pj/linux.h: Likewise.
799         * rs6000/sysv4.h: Likewise.
800         * s390/linux.h: Likewise.
801         * sh/linux.h: Likewise.
802         * sparc/linux-aout.h: Likewise.
803         * sparc/linux.h: Likewise.
804         * sparc/linux64.h: Likewise.
805         * xtensa/linux.h: Likewise.
806
807 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
808
809         * stmt.c (check_unique_operand_names): Expect operand names to
810         be strings rather than identifiers.  Use simple_cst_equal to
811         compare them.
812         (resolve_operand_name_1): Make same identifier to string change here.
813         * c-parse.in (asm_operand): Convert a named operand into a string.
814         * cp/parse.y (asm_operand): Likewise.
815
816 2002-04-13  Andreas Schwab  <schwab@suse.de>
817
818         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
819
820 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
821
822         Revert these changes:
823
824         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
825
826         PR c++/5571
827         * stor-layout.c (layout_decl): Reset the RTL for the decl.
828
829 2002-04-12  Richard Henderson  <rth@redhat.com>
830
831         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
832         (sparc*-*-solaris): Clean up header files.
833         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
834         and plan on generating 64-bit code.
835         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
836         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
837         * config/sparc/sol2-sld-64.h: Rename ...
838         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
839         for AS_SPARC64_FLAG not defined.
840         * config/sparc/sol2-gld-bi.h: New.
841         * config/sparc/sol2-sld.h: Remove.
842         * config/sparc/sol26-sld.h: New.
843         * config/sparc/sol2.h: Tidy comments.
844         * doc/install.texi: Document sparc-solaris configury changes.
845
846 2002-04-12  Richard Henderson  <rth@redhat.com>
847
848         * recog.c (offsettable_address_p): Match the logic in adjust_address.
849
850         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
851         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
852
853 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
854
855         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
856
857 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
858
859         * pa.c (pa_can_combine_p): Call extract_insn before calling
860         constrain_operands.
861
862 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
863
864         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
865         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
866         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
867         (CPP_PREDEFINES): Handle __declspec.
868         * config/i386/t-interix (USER_H): Remove.
869
870 2002-04-12  DJ Delorie  <dj@redhat.com>
871
872         * integrate.c (compare_blocks): Make comparisons safe for when
873         sizeof(int) < sizeof(char *).
874         (find_block): Likewise.
875
876 2002-04-12  Jan Hubicka  <jh@suse.cz>
877             David Edelsohn  <edelsohn@gnu.org>
878
879         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
880         registers.
881         (symbol_ref_operand): New.
882         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
883         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
884
885 2002-04-12  Andreas Schwab  <schwab@suse.de>
886
887         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
888         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
889         overrides the definition in config/svr4.h.
890
891 2002-04-12      Eric Norum <eric.norum@usask.ca>
892
893         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
894         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
895         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
896         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
897         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
898         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
899         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
900         definitions to config/rtems.h and make the targets more similar.
901
902 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
903
904         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
905         POINTERS_EXTEND_UNSIGNED.
906         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
907         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
908
909         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
910         not specified.
911
912 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
913
914         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
915         depends on TARGET_SHMEDIA, not TARGET_SH5.
916
917 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
918
919         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
920         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
921
922 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
923
924         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
925         no r0 clobber.
926
927 2002-04-12  Andreas Schwab  <schwab@suse.de>
928
929         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
930
931 2002-04-12  Richard Henderson  <rth@redhat.com>
932
933         PR bootstrap/4191
934         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
935
936         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
937         modes spanning multiple hard regs.
938
939         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
940
941 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
942
943         * pa.c (pa_output_function_prologue): Don't accumulate the total
944         number of code bytes when using TARGET_64BIT, or gas, SOM and not
945         the portable runtime.
946         (output_deferred_plabels): Handle 64bit plabels.
947         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
948         generating pic code using the GAS assembler for object formats that
949         are not SOM (ie., ELF32 and ELF64).
950         (output_millicode_call): Check attribute type if attribute length is 28.
951         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
952         dbr_sequence_length once.
953         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
954         dbr_sequence_length once.
955         * pa.h (TARGET_SOM): Define if not defined.
956         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
957         with GAS and not SOM.
958         (jump, call_internal_reg, call_value_internal_reg): Likewise.
959         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
960
961 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
962
963         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
964         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
965         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
966         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
967         elfos.h and dbxelf.h values are fine now.
968         * config/i386/freebsd.h, config/alpha/freebsd.h
969         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
970
971 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
972
973         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
974         or set Acpu or Amachine.  Reformat.
975         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
976         define.
977         (LINK_SPEC): Do not need to undef.
978         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
979         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
980         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
981         define.
982         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
983         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
984         (LINK_SPEC): Do not need to undef.
985         (DONT_USE_BUILTIN_SETJMP): Do not define.
986         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
987         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
988         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
989         Remove trailing spaces.
990         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
991         __ELF__, or set Acpu or Amachine.  Reformat.
992         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
993         define.
994
995 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
996
997         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
998         all other *-*-freebsd* targets.
999
1000 2002-04-11  Richard Henderson  <rth@redhat.com>
1001
1002         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1003
1004 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1005
1006         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1007         Include {cpu}/{cpu}.h thru tm_file.
1008         (alpha*-*-linux*ecoff): Remove target.
1009         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1010         (LINK_SPEC): Remove, is not OS independent.
1011         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1012         (LINK_SPEC): Do not need to #undef any longer.
1013         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1014         any longer.
1015         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1016         __ELF__.
1017         (LINK_SPEC): Moved here from alpha/elf.h.
1018         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1019         SUB_CPP_PREDEFINES.
1020         * config/alpha/linux-ecoff.h: Remove.
1021         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1022         (CPP_SPEC): Define _POSIX_SOURCE as needed.
1023         (CPP_SUBTARGET_SPEC): Do not define.
1024         (LINK_SPEC): Do not need to #undef any longer.
1025         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1026         * config/alpha/vms.h: Likewise.
1027
1028 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
1029
1030         * doc/extend.texi: Remove old claim that typedefs cannot have
1031         an alignment attribute.
1032
1033 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1034
1035         PR optimization/6177
1036         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1037         bitpos is 0 and bitsize CONCAT size.
1038
1039 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1040
1041         PR c/6223
1042         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1043
1044 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
1045
1046         * config/alpha/freebsd.h: Minor reformatting.
1047         (CPP_SPEC): Define ELF and add cpp_subtarget.
1048         (ASM_SPEC): No longer needed.
1049
1050 2002-04-11  Richard Henderson  <rth@redhat.com>
1051
1052         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1053         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
1054         (dimode mem/zero splitter): New.
1055
1056 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
1057
1058         * config/cris/cris.c (cris_override_options): Tweak error message
1059         for PIC not implemented.
1060
1061         * config/cris/cris.h: Tweak comments related to parameter-passing.
1062
1063         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1064
1065 2002-04-10  Richard Henderson  <rth@redhat.com>
1066
1067         * except.c (add_ehl_entry): Allow duplicates after landing pad
1068         creation.
1069
1070 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
1071
1072         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1073
1074 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
1075
1076         * c-decl.c (c_init_decl_processing): Move generation of
1077         decls for g77_integer_type_node and friends from here ...
1078         * c-common.c (c_common_nodes_and_builtins): ... to here.
1079
1080 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
1081
1082         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1083         is only used as frame pointer when frame_pointer_needed is true.
1084
1085 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
1086
1087         PR target/817
1088         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1089         for the fact that the pool entry uses two words.
1090         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
1091         1k bytes.
1092         (movdf_soft_insn): Similarly.
1093         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1094         for the fact that the pool entry uses three words.
1095
1096 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
1097
1098         * config/mips/mips.c (mips_va_arg): When using the struct version
1099         of the EABI va_list, allow arguments in the register save area to
1100         take up less room than a stack argument.
1101
1102 2002-04-10  Richard Henderson  <rth@redhat.com>
1103
1104         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1105         if EXPAND_INITIALIZER.
1106
1107 2002-04-09  Richard Henderson  <rth@redhat.com>
1108
1109         * config/alpha/alpha.md (movdi_er_maybe_g): New.
1110         * config/alpha/alpha.c (alpha_expand_mov): Use it.
1111
1112 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
1113
1114         PR optimization/6233
1115         * rtlanal.c (pure_call_p): New function.
1116         * rtl.h (pure_call_p): Declare.
1117         * loop.c (prescan_loop): Use it to set has_nonconst_call.
1118         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1119
1120 2002-04-09  Eric Christopher  <echristo@redhat.com>
1121
1122         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1123         information to .comm directive.
1124
1125 2002-04-09  Richard Henderson  <rth@redhat.com>
1126
1127         PR c/5078
1128         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1129
1130 2002-04-09  Richard Henderson  <rth@redhat.com>
1131
1132         * basic-block.h (flow_delete_block_noexpunge): Declare.
1133         (expunge_block_nocompact): Declare.
1134         * cfg.c (expunge_block_nocompact): Split out from ...
1135         (expunge_block): ... here.
1136         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1137         (flow_delete_block_noexpunge): Split out from ...
1138         (flow_delete_block): ... here.
1139         * cfgcleanup.c (delete_unreachable_blocks): Compact while
1140         removing dead blocks.
1141         * except.c (exception_handler_labels): Remove.
1142         (exception_handler_label_map): New.
1143         (struct eh_region): Add aka member.
1144         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1145         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1146         (for_each_eh_label, for_each_eh_label_1): New.
1147         (init_eh): Register exception_handler_label_map.
1148         (free_eh_status): Use free_region.
1149         (find_exception_handler_labels): Use the map, not the list.
1150         (remove_exception_handler_label): Likewise.
1151         (maybe_remove_eh_handler): Likewise.
1152         (remove_eh_handler): Use the region aka bitmap.
1153         * except.h (exception_handler_labels): Remove.
1154         (for_each_eh_label): Declare.
1155         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1156         * loop.c (invalidate_loops_containing_label): New.
1157         (find_and_verify_loops): Use it.  Use for_each_eh_label.
1158         * sched-rgn.c (is_cfg_nonregular): Use
1159         current_function_has_exception_handlers.
1160
1161 2002-04-09  Richard Henderson  <rth@redhat.com>
1162
1163         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1164         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1165         Do not return changed status.
1166         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1167         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1168         New functions that do return changed status.
1169         * sbitmap.h: Update decls.
1170         * gcse.c, lcm.c: Use _cg functions as needed.
1171
1172 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1173
1174         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1175         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1176         * config/sh/embed_bb.c: New file.
1177         * config/sh/embed-elf.h: New file.
1178         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1179         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1180         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1181         __PTRDIFF_TYPE__ .
1182         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1183         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1184         Add subtarget_asm_endian_spec.
1185         (ASM_SPEC): Use subtarget_asm_endian_spec.
1186         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1187         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1188         (WCHAR_UNSIGNED): Define.
1189         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1190         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1191         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1192         Fix value.
1193         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1194         (sh_adjust_cost): Likewise.
1195         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1196         __PTRDIFF_TYPE__ .
1197         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1198         (WCHAR_TYPE_SIZE): Likewise.
1199         (ASM_SPEC): Use subtarget_asm_endian_spec.
1200         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1201         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1202         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1203         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1204         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1205         (USER_LABEL_PREFIX): Don't #undef /#define .
1206         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1207         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1208         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1209         (ASM_SPEC): Likewise.
1210         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1211         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1212         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1213         (LIB2FUNCS_EXTRA): Define.
1214         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1215         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1216         (LIB1ASMFUNCS_CACHE): Define.
1217         (LIB2FUNCS_EXTRA): Redefine empty.
1218
1219 2002-04-08  Richard Henderson  <rth@redhat.com>
1220
1221         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1222
1223 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1224
1225         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1226         and optimize for size.
1227         (__do_global_ctors): Fix pointer comparison.
1228         (__do_global_dtors): Likewise.
1229
1230 2002-04-09  David S. Miller  <davem@redhat.com>
1231
1232         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1233         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1234         allow reloading pseudos.
1235         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1236         * config/sparc/sparc-protos.h: Declare it.
1237
1238         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1239         unsigned comparison warning.
1240         (output_restore_regs): Mark leaf_function as unused.
1241
1242 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1243
1244         * expr.c (is_aligning_offset): New function.
1245         (expand_expr, case COMPONENT_EXPR): Call it.
1246
1247 2002-04-08  David S. Miller  <davem@redhat.com>
1248
1249         PR target/6082
1250         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1251
1252         Make init_priority work on Sparc when using GNU ld.
1253         * config/sparc/linux.h, config/sparc/linux64.h,
1254         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1255         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1256         * config/sparc/sol2-gld.h: New file to do the same.
1257         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1258         sparc/sol2-gld.h to tm_file.
1259
1260         PR optimization/4328
1261         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1262         * doc/md.texi: Document it.
1263         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1264         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1265         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1266         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1267         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1268
1269 2002-04-08  Andreas Jaeger  <aj@suse.de>
1270
1271         * stmt.c (expand_asm_operands): Revert last patch from Richard
1272         Henderson.
1273
1274 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1275
1276         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1277         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1278
1279 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1280
1281         * doc/contrib.texi (Contributors): Add David O'Brien.
1282
1283 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1284
1285         * configure.in (auto-build.h): Use target_alias and build_alias
1286         when running configure.
1287         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1288         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1289         * configure: Regenerate.
1290
1291 2002-04-07  David S. Miller  <davem@redhat.com>
1292
1293         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1294
1295 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1296
1297         PR 5933
1298         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1299         generating 32-bit pic code.
1300
1301 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1302
1303         * cppinit.c (cpp_create_reader): Initialize
1304         discard_comments_in_macro_exp.
1305         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1306         (cpp_handle_option): Handle "-CC" option.
1307         * cpplex.c (save_comment): If saving a C++ comment in
1308         a directive, convert it to a C comment.
1309         (_cpp_lex_direct): Pass second comment start character to
1310         save_comment to indicate comment type.
1311         * cpplib.c (_cpp_handle_directive): If processing
1312         a "#define" directive and discard_comments_in_macro_exp
1313         is false,  re-enable saving of comments.
1314         (lex_macro_node): If discard_comments_in_macro_exp is false,
1315         discard any comments before the macro identifier.
1316         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1317         member.
1318         * cppmacro.c (cpp_get_token): If expanding a macro while
1319         processing a directive, discard any comments we might encounter.
1320         (parse_params): If discard_comments_in_macro_exp is false,
1321         ignore comments in the macro parameter list.
1322         * gcc.c (cpp_unique_options): Add "-CC" option.
1323         (option_map): Map "--comments-in-macros" to "-CC".
1324         * doc/cppopts.texi: Document "-CC" option.
1325         * f/lang-specs.h: Add "-CC" option.
1326         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1327         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1328         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1329         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1330         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1331         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1332
1333 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1334
1335         PR middle-end/6180
1336         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1337
1338 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1339
1340         PR c++/5571
1341         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1342
1343         PR opt/5120
1344         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1345         RTX_UNCHANGING_P for the functions arguments when a tail call
1346         is made.
1347
1348 2002-04-06  Jason Merrill  <jason@redhat.com>
1349
1350         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1351         (parse_options_and_default_flags): Set them appropriately.
1352         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1353
1354 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1355
1356         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1357         here.
1358
1359         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1360         semicolon.
1361
1362         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1363         types come in by-reference.  Fix typo in comment.
1364
1365 2002-04-05  David S. Miller  <davem@redhat.com>
1366
1367         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1368         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1369         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1370         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1371
1372 2002-04-05  David S. Miller  <davem@redhat.com>
1373
1374         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1375         are not going to emit return instructions, emit at least a nop
1376         for the sake of sane backtraces.
1377
1378 2002-04-05  Richard Henderson  <rth@redhat.com>
1379
1380         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1381
1382 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1383
1384         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1385
1386 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1387
1388         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1389         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1390         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1391
1392 2002-04-05  Andreas Schwab  <schwab@suse.de>
1393
1394         * c-convert.c: Include c-common.h.
1395         * Makefile.in (c-convert.o): Updated.
1396
1397 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1398
1399         * mklibgcc.in: Use separate libgcc.map for each multilib.
1400         * Makefile.in (distclean): Don't remove libgcc.map here.
1401
1402 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1403
1404         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1405         genmultilib invocation.
1406
1407 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1408
1409         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1410         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1411         to num_gprs for symmetry.
1412         * config/mips/mips.c: Adjust accordingly.
1413
1414 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1415
1416         * c-common.c (truthvalue_conversion): Rename, update.
1417         * c-common.h (c_common_truthvalue_conversion): New.
1418         * c-convert.c (convert): Update.
1419         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1420         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1421         * c-typeck.c (build_binary_op, build_unary_op,
1422         build_conditional_expr): Update.
1423         * fold-const.c (constant_boolean_node, fold): Use langhook.
1424         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1425         * langhooks.h (struct lang_hooks): New hook.
1426         * stmt.c (expand_decl_cleanup): Use langhook.
1427         * tree.h (truthvalue_conversion): Remove.
1428 objc:
1429         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1430
1431 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1432
1433         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1434         Add rules to make null object file.
1435
1436 2002-04-04  Jim Blandy  <jimb@redhat.com>
1437
1438         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1439         macro formal parameter names.
1440
1441 2002-04-04  David S. Miller  <davem@redhat.com>
1442
1443         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1444
1445 2002-04-04  Richard Henderson  <rth@redhat.com>
1446
1447         PR middle-end/5099
1448         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1449         Support copies into and out of memory.  Don't accept allows_reg
1450         and allows_mem as gospel.
1451
1452 2002-04-04  Richard Henderson  <rth@redhat.com>
1453
1454         PR opt/6165
1455         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1456         (write_dependence_p): Likewise.
1457
1458 2002-04-04  Richard Henderson  <rth@redhat.com>
1459
1460         * predict.c (estimate_bb_frequencies): Do frequency calculation
1461         with a volatile temporary.
1462
1463 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1464
1465         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1466
1467 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1468
1469         PR c++/6119
1470         * final.c (final_start_function): Don't bump profile_label_no here...
1471         (final_end_function): ...but here.
1472
1473 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1474
1475         * config/sparc/sparc.md (pic): New attribute.
1476         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1477         into stack slots.
1478         (split after do_builtin_setjmp_setup): New.
1479
1480 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1481
1482         PR fortran/6106
1483         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1484         change.
1485
1486 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1487
1488         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1489         UNITS_PER_WORD for zero sized aggregates.
1490
1491 2002-04-03  David S. Miller  <davem@redhat.com>
1492
1493         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1494         one-character spec for this, just use %(link_gcc_c_sequence).
1495
1496 2002-04-03  David S. Miller  <davem@redhat.com>
1497
1498         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1499         handling.
1500
1501 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1502
1503         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1504         (DWARF_FRAME_RETURN_COLUMN): Move.
1505         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1506         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1507         * pa.c (except.h, predict.h): Include.
1508         (FRP): Delete.
1509         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1510         (output_ascii): Add cast.
1511         (store_reg_modify): Revise to add frame notes.
1512         (set_reg_plus_d): Likewise.
1513         (compute_frame_size): Include space for eh data registers in frame if
1514         the current function calls eh_return.
1515         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1516         function calls eh_return.  Save eh data registers if the current
1517         function calls eh_return.  Fix code to add frame notes.  Emit
1518         blockage to prevent insns with frame notes being scheduled in the
1519         delay slot of calls.
1520         (hppa_expand_epilogue): Restore eh data registers and do final stack
1521         adjustment if the current function calls eh_return.  Don't add frame
1522         notes.
1523         (output_call): Revise for change in length of call insn.  Don't do
1524         return pointer adjustment for an unconditional jump in the delay slot
1525         of a call when using frame notes.
1526         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1527         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1528         (ARG_POINTER_CFA_OFFSET): Define.
1529         * pa.md (return_external_pic): New pattern.
1530         (prologue): Correct formatting.  Use return_external_pic if current
1531         function calls eh_return.
1532         (call_internal_symref, call_value_internal_symref,
1533         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1534         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1535         respectively.
1536         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1537
1538         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1539         list of targets to check using "nop" insn.
1540         * configure: Rebuilt.
1541
1542 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1543
1544         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1545
1546 2002-04-03  David S. Miller  <davem@redhat.com>
1547
1548         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1549         library sequence passed to the linker.
1550         (LINK_COMMAND_SPEC): Use it.
1551         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1552         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1553         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1554
1555 2002-04-03  Jason Merrill  <jason@redhat.com>
1556
1557         * except.c (struct eh_status): Remove protect_list.
1558         (begin_protect_partials, end_protect_partials): Remove.
1559         (add_partial_entry): Remove.
1560         * except.h: Remove prototypes.
1561
1562         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1563         expand_decl_cleanup_eh.
1564
1565         PR c++/5636
1566         * tree.h (CLEANUP_EH_ONLY): New macro.
1567         * stmt.c (expand_decl_cleanup_eh): New fn.
1568         (expand_cleanups): Check CLEANUP_EH_ONLY.
1569         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1570         Use expand_decl_cleanup_eh.
1571         (expand_stmt): Adjust.
1572         * c-common.h: Adjust prototype.
1573
1574 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1575
1576         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1577         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1578         (cris_target_asm_function_epilogue): Ditto.
1579         (cris_initial_frame_pointer_offset): Ditto.
1580         (cris_simple_epilogue): Ditto.
1581         (cris_expand_builtin_va_arg): Variable-size types come in
1582         by-reference.
1583
1584 2002-04-03  David S. Miller  <davem@redhat.com>
1585
1586         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1587         little-endian.
1588         (set_fast_math): Correct 'fsr' type.
1589
1590 2002-04-03  Richard Henderson  <rth@redhat.com>
1591
1592         PR opt/3569
1593         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1594         * toplev.c (check_global_declarations): Use it.
1595         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1596         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1597         (LANG_HOOKS_DECLS): Add it.
1598         * langhooks.c (lhd_warn_unused_global_decl): New.
1599         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1600         * c-objc-common.c (c_warn_unused_global_decl): New.
1601         * c-tree.h (c_warn_unused_global_decl): Declare.
1602         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1603
1604 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1605
1606         * langhooks-def.h (lhd_set_decl_assembler_name,
1607         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1608         (LANG_HOOKS_INITIALIZER): Update.
1609         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1610         * langhooks.h (struct lang_hooks): New hook.
1611         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1612         (lang_set_decl_assembler_name): Remove.
1613         (init_obstacks): Don't set hook.
1614         (decl_assembler_name): New function.
1615         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1616         (decl_assembler_name): New.
1617         (lang_set_decl_assembler_name): Remove.
1618
1619 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1620
1621         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1622         works properly with .hidden symbols.
1623         * configure: Rebuilt.
1624         * config.in: Rebuilt.
1625         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1626         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1627         properly with .hidden symbols.
1628
1629 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1630
1631         PR middle-end/6102
1632         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1633         USE argument.
1634
1635 2002-04-03  Richard Henderson  <rth@redhat.com>
1636
1637         PR opt/4120
1638         * sched-rgn.c (sets_likely_spilled): New.
1639         (sets_likely_spilled_1): New.
1640         (add_branch_dependences): Use it.
1641
1642 2002-04-02  Richard Henderson  <rth@redhat.com>
1643
1644         PR opt/4311
1645         * loop.h (LOOP_FIRST_PASS): New.
1646         * loop.c (strength_reduce): Mind it when deciding to unroll.
1647         * toplev.c (rest_of_compilation): Set it.
1648
1649 2002-04-02  David S. Miller  <davem@redhat.com>
1650
1651         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1652         mems_ok_for_ldd_peep when the order of the loads being examined
1653         is reversed.
1654         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1655         existing comment to increase comprehension of this situation.
1656
1657 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1658
1659         * config/sh/sh.md: Don't use union real_extract.
1660
1661 2002-04-02  Richard Henderson  <rth@redhat.com>
1662
1663         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1664
1665 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1666
1667         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1668         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1669         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1670         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1671         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1672         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1673         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1674         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1675         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1676         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1677         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1678         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1679         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1680         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1681         Include as many configury headers via tm_file as possible.  This
1682         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1683         * config/openbsd-oldgas.h: New file.
1684         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1685         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1686         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1687         config/i386/i386-coff.h, config/i386/i386-interix.h,
1688         config/i386/iscdbx.h, config/i386/linux-aout.h,
1689         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1690         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1691         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1692         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1693         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1694         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1695         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1696         config/i386/vxi386.h: Do not directly include configury headers.
1697         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1698         Directly include configury headers that are no longer automatically
1699         included by the above headers.
1700         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1701         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1702         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1703         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1704         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1705         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1706         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1707         (TARGET_VERSION): Define.
1708         * config/i386/beos-elf.h, config/i386/freebsd.h,
1709         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1710         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1711         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1712         config/i386/sco5.h, config/i386/sysv4.h
1713         (TARGET_VERSION): Do not need to protect.
1714         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1715         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1716         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1717         config/i386/i386-interix.h, config/i386/linux-aout.h,
1718         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1719         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1720         (YES_UNDERSCORES): Do not define - not needed.
1721         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1722         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1723         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1724         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1725         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1726         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1727         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1728         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1729
1730 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
1731             Richard Henderson  <rth@redhat.com>
1732
1733         PR c/5484
1734         * function.c (assign_temp): Accept either type or decl argument.
1735         Detect variables whose size is too large to fit into an integer.
1736         * stmt.c (expand_decl): Pass the decl, not the type.
1737
1738 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1739
1740         * protoize.c: Match include directory usage with cppdefault.c.
1741
1742 2002-04-03  Jeffrey A Law  (law@redhat.com)
1743             Hans-Peter Nilsson  <hp@bitrange.com>
1744
1745         * combine.c (simplify_comparison): Avoid narrowing a comparison
1746         with a paradoxical subreg when doing so would drop signficant bits.
1747
1748 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
1749
1750         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1751         if POINTERS_EXTEND_UNSIGNED is defined.
1752
1753 2002-04-02  Richard Henderson  <rth@redhat.com>
1754
1755         PR opt/3967
1756         * local-alloc.c (contains_replace_regs): LO_SUM may contain
1757         replace regs.
1758
1759 2002-04-02  Richard Henderson  <rth@redhat.com>
1760
1761         * doc/standards.texi: Document required freestanding libc entry points.
1762
1763 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
1764
1765         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1766         associated splitter.  Remove MQ constraint.
1767         (ctrdi_internal4): Correct CCmode clobber.
1768
1769 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1770
1771         * milli64.S ($$dyncall): New function.
1772         * t-linux (LIB1ASMFUNCS): Revise module list.
1773         (LIB1ASMSRC): Use pa/milli64.S.
1774
1775 2002-04-02  Richard Henderson  <rth@redhat.com>
1776
1777         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1778         rename solaris_sys_varargs_h.
1779
1780 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1781
1782         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1783         the same mode as its component.
1784
1785 2002-04-02  Richard Henderson  <rth@redhat.com>
1786
1787         PR opt/190
1788         * final.c (this_is_asm_operands): Export.
1789         * output.h (this_is_asm_operands): Declare.
1790         * config/i386/i386.c (print_operand): Error odd asm operands.
1791
1792 2002-04-02  Richard Henderson  <rth@redhat.com>
1793
1794         PR opt/420
1795         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1796
1797 2002-04-01  Richard Henderson  <rth@redhat.com>
1798
1799         PR target/1538
1800         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1801         * fixinc/fixincl.x: Rebuild.
1802
1803 2002-04-01  Richard Henderson  <rth@redhat.com>
1804
1805         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1806         (atomic_alloc, atomic_free): New.
1807         (SIZE, MASK_FOR, PTR_IN): New.
1808         (emergency_reg_state, emergency_reg_state_free): New.
1809         (emergency_labeled_state, emergency_labeled_state_free): New.
1810         (reg_state_alloced, labeled_state_alloced): New.
1811         (alloc_reg_state, free_reg_state): New.
1812         (alloc_label_state, free_label_state, free_label_states): New.
1813         (push, pop, dup_state_stack, free_state_stack): Use them.
1814         (desc_label_state): Likewise.
1815         (uw_frame_state_for): Free label states and state stack.
1816         (uw_update_reg_address): Eliminate warnings.
1817
1818 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
1819
1820         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1821         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1822
1823 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1824
1825         * c-decl.c (grokdeclarator): Update.
1826         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1827         * c-tree.h (c_mark_addressable): New.
1828         * c-typeck.c (default_function_array_conversion, build_unary_op,
1829         build_array_ref, convert_for_assignment): Update.
1830         (mark_addressable): Rename.
1831         * calls.c (try_to_integrate, expand_call): Use langhook.
1832         * expr.c (expand_expr): Use langhook.
1833         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1834         * langhooks.h (struct lang_hooks): New hook.
1835         * stmt.c (expand_asm_operands): Use langhook.
1836         * tree.h (mark_addressable): Remove.
1837 objc:
1838         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1839
1840 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1841
1842         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1843         in previous change.
1844
1845 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
1846
1847         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1848         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1849
1850 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1851
1852         * c-common.c (unsigned_conversion_warning, convert_and_check,
1853         unsigned_type, signed_type, shorten_compare,
1854         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1855         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1856         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1857         New.
1858         * c-decl.c (grokdeclarator): Update.
1859         * c-format.c (check_format_types): Update.
1860         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1861         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1862         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1863         * convert.c (convert_to_integer): Use new hooks.
1864         * expmed.c (make_tree): Use new hooks.
1865         * expr.c (store_expr): Use new hooks.
1866         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1867         all_ones_mask_p, unextend, fold): Use new hooks.
1868         * langhooks.h (struct lang_hooks_for_types): New hooks.
1869         * tree.h (signed_or_unsigned_type, signed_type,
1870         unsigned_type): Remove.
1871 objc:
1872         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1873         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1874
1875 2002-03-31  Richard Henderson  <rth@redhat.com>
1876
1877         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1878         (desc_frgr_mem): Fix reference to f16-f31.
1879
1880 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1881
1882         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1883         RTVEC_ELT): Const-ify.
1884         * varray.h (VARRAY_CHECK): Const-ify.
1885         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1886         ggc_mark_rtvec, ggc_mark): Const-ify.
1887
1888 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1889
1890         * diagnostic.c: Include langhooks-def.h.
1891         * Makefile.in (diagnostic.o): Update.
1892
1893 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1894
1895         * c-common.c (c_unsafe_for_reeval): Rename.
1896         * c-common.h (c_unsafe_for_reeval): Rename.
1897         * c-decl.c (finish_incomplete_decl): Rename.
1898         (c_init_decl_processing): Don't set langhook.
1899         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1900         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1901         * c-objc-common.c (c_objc_common_init): Don't set langhook.
1902         * c-tree.h (finish_incomplete_decl): Rename.
1903         * langhooks-def.h (lhd_unsafe_for_reeval): New.
1904         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1905         (LANG_HOOKS_INITIALIZER): Update.
1906         * langhooks.c (lhd_unsafe_For_reeval): New.
1907         * langhooks.h (struct langhooks): New hooks.
1908         * toplev.c (incomplete_decl_finalize_hook): Remove.
1909         (wrapup_global_declarations): Update.
1910         * tree.c (lang_unsafe_for_reeval): Remove.
1911         (unsafe_for_reeval): Update.
1912         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1913         Remove.
1914 objc:
1915         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1916         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1917
1918 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
1919
1920         * diagnostic.c (print_error_function): Remove.
1921         (default_print_error_function): Rename.
1922         (report_error_function): Update.
1923         * diagnostic.h (print_error_function): Remove.
1924         (default_print_error_function): Remove.
1925         * langhooks-def.h (struct diagnostic_context): Predeclare.
1926         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1927         (LANG_HOOKS_INITIALIZER): Update.
1928         * langhooks.h (struct diagnostic context): Predeclare.
1929         (struct lang_hooks): New hook.
1930
1931 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1932
1933         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1934         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1935         !flag_pic.
1936         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1937         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1938         of PIC_OFFSET_TABLE_REGNUM thruout.
1939         * config/rs6000/rs6000.md: Likewise.
1940         * config/rs6000/darwin.h: Likewise.
1941
1942 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1943
1944         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1945         unsigned HOST_WIDE_INT, not unsigned int.
1946
1947 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1948
1949         PR middle-end/6096, middle-end/6098, middle-end/6099
1950         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1951         CODE_LABELs.
1952         (fill_slots_from_thread): Likewise.
1953
1954 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1955
1956         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1957         floating fields in float regs.
1958         (function_arg_record_value_2): Likewise.
1959
1960 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1961
1962         * config/mmix/mmix.md (define_constants): Remove misleading
1963         FIXME.  Add MMIX_fp_rO_OFFSET.
1964         ("nonlocal_goto_receiver"): Don't have stack-frame address of
1965         saved rO as part of the pattern.  Remove FIXME.
1966         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
1967         here, at output-time.
1968
1969 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
1970
1971         PR middle-end/6100
1972         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1973         REG_BR_PRED.
1974         (output_v9branch): Likewise.
1975
1976 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
1977
1978         * gcc.c: Revert previous patch for now.
1979         * config/i386/djgpp.h: Likewise.
1980
1981 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
1982
1983         * config/mmix/crti.asm (_init): Register _fini with atexit.
1984         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1985
1986 2002-03-31  Richard Henderson  <rth@redhat.com>
1987
1988         PR target/3997
1989         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1990         (ASM_OUTPUT_DEF_FROM_DECLS): New.
1991
1992 2002-03-31  Richard Henderson  <rth@redhat.com>
1993
1994         * libgcc2.c (__bb_exit_func): Make static.
1995
1996         * config/alpha/alpha.md (trap): New.
1997
1998 2002-03-31  Richard Henderson  <rth@redhat.com>
1999
2000         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2001         promoted argument types; build trap.
2002         (expand_builtin_trap): New.
2003         (expand_builtin): Use it.
2004         * stmt.c (expand_nl_goto_receivers): Likewise.
2005         * expr.h (expand_builtin_trap): Declare.
2006         * libfuncs.h (LTI_abort, abort_libfunc): New.
2007         * optabs.c (init_optabs): Init abort_libfunc.
2008
2009 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
2010
2011         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2012         (LINK_COMMAND_SPEC): ... from here.
2013         (init_gcc_specs): Duplicate it here too, omitting
2014         shared_name in the second copy.
2015         (init_spec): Test for duplicate
2016         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2017
2018 2002-03-30  David S. Miller  <davem@redhat.com>
2019
2020         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2021         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2022
2023 2002-03-30  Roger Sayle <roger@eyesopen.com>
2024             Richard Henderson  <rth@redhat.com>
2025
2026         * regmove.c (combine_stack_adjustments_for_block): Avoid
2027         emitting a stack adjustment of zero bytes.  Let delete_insn
2028         update bb->head.
2029
2030 2002-03-30  Richard Henderson  <rth@redhat.com>
2031
2032         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2033         (sparc_emitting_epilogue): New.
2034         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2035         * config/sparc/sparc-protos.h: Update.
2036         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2037         (TARGET_SWITCHES): Update.
2038         * config/sparc/sparc.md (return): Remove.
2039         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2040         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2041         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2042         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2043         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2044         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2045         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2046         Remove MASK_EPILOGUE.
2047         * doc/invoke.texi: Update.
2048
2049 2002-03-30  Daniel Berlin  <dan@dberlin.org>
2050
2051         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2052         CPP will start the file for us.
2053
2054 2002-03-30  Richard Henderson  <rth@redhat.com>
2055
2056         PR target/5446
2057         * config/ia64/ia64.c (group_barrier_needed_p): Special case
2058         prologue_allocate_stack.
2059         (ia64_single_set): Use insn codes for recognition of special
2060         cases, not rtl matching.
2061         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2062
2063 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
2064
2065         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2066
2067 2002-03-30  Richard Henderson  <rth@redhat.com>
2068
2069         PR target/6032
2070         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2071         or -fomit-frame-pointer with profiling.
2072         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2073         (FUNCTION_PROFILER): Do nothing.
2074         (PROFILE_HOOK): New.
2075         * config/sparc/sparc.c (sparc_override_options): Don't check
2076         code models for profiling.
2077         (sparc_function_profiler): Remove.
2078         (sparc_profile_hook): New.
2079         * config/sparc/sparc-protos.h: Update.
2080
2081 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2082
2083         PR optimization/6086
2084         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2085         of SUBREG of volatile MEM or because the MEM was mode dependent,
2086         return CLOBBER instead of unmodified SUBREG.
2087
2088 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
2089
2090         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2091         when not optimizing.
2092
2093         * toplev.c (rest_of_compilation): Cann mark_constant_function
2094         only when optimizing.
2095
2096         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2097         are NULL.
2098
2099         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2100         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2101         (try_optimize_cfg): clear all AUX fields.
2102
2103         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2104         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2105         (ix86_address_cost): Be prepared for SUBREGed registers.
2106         (legitimate_address_p): Accept SUBREGed registers.
2107
2108 2002-03-29  Richard Henderson  <rth@redhat.com>
2109
2110         PR target/5672
2111         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2112
2113 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2114
2115         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2116         for aggregate and TFmode types.
2117
2118 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2119
2120         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2121
2122 2002-03-29  Richard Henderson  <rth@redhat.com>
2123
2124         PR target/5886
2125         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2126         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2127
2128 2002-03-29  Richard Henderson  <rth@redhat.com>
2129
2130         PR target/6041
2131         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2132         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2133         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2134         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2135         conditional.
2136         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2137
2138 2002-03-29  Dale Johannesen <dalej@apple.com>
2139
2140         * loop.c (combine_movables): Do allow combination of pseudos.
2141
2142 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
2143
2144         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2145         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2146         No functional change except ...
2147         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
2148         * doc/install.texi (*-*-freebsd*): Document port configuration.
2149
2150 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2151
2152         * Makefile.in (convert.o, calls.o, expmed.o): Update.
2153         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2154         Use new hooks.
2155         * builtin-types.def (BT_PTRMODE): Update.
2156         * c-common.c (type_for_size): Rename c_common_type_for_size.
2157         (type_for_mode): Similarly.
2158         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2159         Use new hook.
2160         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2161         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2162         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2163         Redefine.
2164         * c-typeck.c (common_type, comptypes, default_conversion):
2165         Use new hooks.
2166         * calls.c: Include langhooks.h.
2167         (emit_library_call_value_1): Use new hooks.  Avoid redundant
2168         calls.
2169         * convert.c: Include langhooks.h
2170         (convert_to_pointer, convert_to_integer): Use new hooks.
2171         * except.c (init_eh): Similarly.
2172         * expmed.c: Include langhooks.h.
2173         (expand_mult_add): Use new hooks.
2174         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2175         try_casesi): Similarly.
2176         * fold-const.c (optimize_bit_field_compare, make_range,
2177         decode_field_reference, fold_truthop, fold): Similarly.
2178         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2179         put_var_into_stack): Similarly.
2180         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2181         LANG_HOOKS_TYPE_FOR_SIZE): New.
2182         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2183         * langhooks.h (lang_hooks_for_types): New hooks.
2184         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2185         * tree.c (get_unwidened, get_narrower): Similarly.
2186         * tree.h (type_for_mode, type_for_size): Remove.
2187         * varasm.c (force_const_mem): Use new hooks.
2188         * utils2.c (nonbinary_modular_operation): Update.
2189 objc:
2190         * objc-act.c (handle_impent): Update.
2191         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2192         Redefine.
2193
2194 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2195
2196         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2197         * config/ia64/ia64.c (basereg_operand): New.
2198         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2199         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2200
2201 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2202
2203         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2204         unwind information when frame_pointer_needed.
2205         (mmix_assemble_integer): Tweak wording in comment.
2206
2207 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2208
2209         * Makefile.in (except.o): Update.
2210         * except.c: Include langhooks.h.
2211         (init_eh): Use langhook.
2212         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2213         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2214         (LANG_HOOKS_INITIALIZER): Update.
2215         * langhooks.h (lang_hooks_for_types): New.
2216         (struct lang_hooks): Add it.
2217         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2218         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2219 config:
2220         * alpha/alpha.c: Include langhooks.h.
2221         (alpha_build_va_list): Use langhook.
2222         * d30v/d30v.c: Include langhooks.h.
2223         (d30v_build_va_list): Use langhook.
2224         * i386/i386.c: Include langhooks.h.
2225         (ix86_build_va_list): Use langhook.
2226         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2227         * s390/s390.c: Include langhooks.h.
2228         (s390_build_va_list): Use langhook.
2229         * stormy16/stormy16.c: Include langhooks.h.
2230         (stormy16_build_va_list): Use langhook.
2231
2232 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2233
2234         PR c++/5964
2235         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2236         attributes.
2237         (length): Compute variable length for branches/calls/jumps here.
2238         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2239         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2240         define branch_type attribute.
2241         (divsi3_sp32): Maximum length is 6 not 7.
2242         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2243         call_address_untyped_struct_value_sp32,
2244         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2245         * config/sparc/sparc.c (empty_delay_slot): New function.
2246         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2247         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2248
2249 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2250
2251         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2252         nonzero_bits if not needed.
2253         (nonzero_bits) [XOR]: Likewise.
2254         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2255         reg_last_set_mode and mode are both MODE_INT, but not equal.
2256         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2257         in nonzero_bits_mode for MODE_INT modes.
2258
2259 2002-03-28  Richard Henderson  <rth@redhat.com>
2260
2261         PR target/5715
2262         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2263         to GAS.  Correct drift between alternatives.
2264
2265 2002-03-28  Richard Henderson  <rth@redhat.com>
2266
2267         PR target/6087
2268         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2269
2270 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2271
2272         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2273         emulation to the linker.
2274
2275 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2276
2277         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2278         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2279
2280 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2281
2282         * combine.c (simplify_and_const_int): Make sure to apply mask
2283         when force_to_mode returns a constant integer.  PR3311.
2284
2285 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2286
2287         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2288
2289 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2290
2291         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2292         and Objective-C Dialect Options.
2293
2294 2002-03-28  Richard Henderson  <rth@redhat.com>
2295
2296         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2297         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2298
2299 2002-03-28  Richard Henderson  <rth@redhat.com>
2300
2301         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2302         on to c_expand_body.
2303         * c-tree.h (finish_function): Update decl.
2304         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2305
2306 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2307
2308         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2309
2310 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2311
2312         * rtlanal.c: Include flags.h
2313         (may_trap_p): Do not mark FP operations if trapping
2314         if !flag_trapping_math
2315         * Makefile.in (rtlanal.o): Add dependency on flag.h
2316         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2317
2318 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2319
2320         * mips.md: Use dconst1, not 1.0, as first argument of
2321         REAL_VALUE_LDEXP.  Don't use union real_extract.
2322
2323 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2324
2325         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2326         rather than $target.  Heed program_prefix and
2327         program_transform_name.  Search for gas in cross-compiler case too.
2328         "test -x" rather than "test -f".
2329         (gcc_cv_ld): Likewise.
2330         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2331         (gcc_cv_objdump): Likewise.
2332         * configure: Regenerate.
2333
2334 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2335
2336         * Makefile.in (attribs.o): Update.
2337         * attribs.c: Include langhooks.h.
2338         (decl_attributes): Use langhook.
2339         * c-decl.c (insert_default_attributes): Rename.
2340         * c-tree.h (c_insert_default_attributes): New.
2341         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2342         (LANG_HOOKS_INITIALIZER): Update.
2343         * langhooks.h (struct lang_hooks): New hook.
2344         * tree.h (insert_default_attributes): Remove.
2345 objc:
2346         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2347
2348 2002-03-27  Andreas Schwab  <schwab@suse.de>
2349
2350         * config/i386/i386.c (classify_argument): Also check for
2351         QUAL_UNION_TYPE.
2352
2353 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2354
2355         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2356         any more.
2357
2358 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2359
2360         * i960.md (ret): Set PC.
2361         (nonlocal_goto): Fix expander.
2362         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2363         some jump or call.
2364
2365 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2366
2367         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2368         of libcall regions.
2369
2370 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2371
2372         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2373         assigning to BLOCK_FOR_INSN directly.
2374
2375 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2376
2377         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2378
2379 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2380
2381         * c-common.c (c_expand_expr): Fix prototype.
2382         * c-common.h (c_expand_expr): Always declare, update.
2383         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2384         * c-objc-common.c (c_objc_common_init): No global hook.
2385         * expr.c (expand_expr): Use langhook.
2386         * expr.h (enum expand_modifier): Conditionally declare.
2387         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2388         (LANG_HOOKS_INITIALIZER): Update.
2389         * langhooks.c (lhd_expand_expr): New.
2390         * langhooks.h (struct lang_hooks): New hook.
2391         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2392         (lang_independent_init): Don't default hook.
2393 objc:
2394         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2395
2396 2002-03-27  Richard Henderson  <rth@redhat.com>
2397
2398         PR target/6054
2399         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2400         TARGET_CONST_GP.  Simplify conditions.
2401
2402 2002-03-27  Richard Henderson  <rth@redhat.com>
2403
2404         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2405         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2406         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2407
2408 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2409
2410         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2411         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2412         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2413         Remove unnecessary masks.
2414         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2415         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2416         -mwindows, -mdll switches and their negations.
2417
2418 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2419
2420         * gcc-common.c (lang_mark_false_label_stack): Remove.
2421         * ggc.h (lang_mark_false_label_stack): Similarly.
2422
2423 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2424
2425         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2426
2427         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2428         or __rtems_ is defined.
2429
2430 2002-03-26  Richard Henderson  <rth@redhat.com>
2431
2432         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2433         if a non-trivial load was emitted.
2434         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2435         in high+extra+low case.
2436
2437 2002-03-26  Richard Henderson  <rth@redhat.com>
2438
2439         * config.gcc (sparc*-solaris): Use float_format=sparc.
2440
2441 2002-03-26  Richard Henderson  <rth@redhat.com>
2442
2443         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2444         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2445         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2446         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2447         (WINT_TYPE_SIZE): Fix at 32.
2448
2449 2002-03-26  Richard Henderson  <rth@redhat.com>
2450
2451         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2452         until after eh landing pad generation.
2453         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2454         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2455
2456 2002-03-26  Richard Henderson  <rth@redhat.com>
2457
2458         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2459
2460 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2461
2462         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2463         and warning switches.
2464         (cc1_options):  Likewise.
2465
2466 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2467
2468         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2469         Restore more of the signal context.  Set no_reg_stack_frame.
2470         * config/ia64/unwind-ia64.c (unw_state_record):
2471         Add no_reg_stack_frame, comments.
2472         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2473         (uw_update_context): Adjust bsp when unwinding from leaf,
2474         but not signal frame.
2475
2476 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2477
2478         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2479
2480 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2481
2482         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2483
2484 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2485
2486         PR target/5621
2487         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2488         "Add a pool_range attribute", which was lost during the ARM/Thumb
2489         merge.
2490
2491 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2492
2493         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2494         a register into the MAC16 accumulator.
2495
2496 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2497
2498         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2499         (Warning Options): Document -Wswitch-enum.
2500         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2501         -Wswitch.
2502         (warn_switch_enum): Define variables.
2503         * flags.h (warn_switch_enum): Declare variables.
2504         * stmt.c (expand_end_case_type): When warn_switch_enum /
2505         -Wswitch-enum, perform switch checks.
2506         Fix PR c/5044.
2507
2508 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2509
2510         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2511         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2512         (reload_muladdsi_compare0_scratch): Delete.
2513
2514 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2515
2516         * doc/install.texi (*-*-freebsd*): Update.
2517
2518 2002-03-26  Richard Henderson  <rth@redhat.com>
2519
2520         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2521         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2522
2523         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2524         types from the normal argument frame.
2525
2526         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2527         variable sized objects by reference.
2528         (sparc_va_arg): Receive them by reference too.
2529
2530 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2531
2532         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2533         code to not restoring global registers.
2534
2535 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2536
2537         * Makefile.in (ggc-common.o): Update.
2538         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2539         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2540         * c-tree.h (c_mark_tree): New.
2541         * ggc-common.c: Include langhooks.h.
2542         (gcc_mark_trees): Use new langhook.
2543         * ggc-callbacks.c: Delete file.
2544         * ggc.h (lang_mark_tree): Remove.
2545         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2546         (LANG_HOOKS_INITIALIZER): Update.
2547         * langhooks.h (struct lang_hooks): New hook.
2548 objc:
2549         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2550
2551 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2552
2553         * doc/cpp.texi: Exclude entire Top node from printed manual.
2554         Move option index after directive index.  Insert page breaks
2555         before GFDL and concept index.  Index environment variables
2556         with command line options.
2557         * doc/cppenv.texi: Use @vtable for environment variable list.
2558         Add paragraph explaining semantics of empty elements in path
2559         variables.  Exclude a cross-reference to Fishkill from the
2560         manpage.  Remove an unnecessary cross-reference of the entry
2561         right above the referer.  Don't use @anchor in text that goes
2562         into manpage.
2563         * doc/cppopts.texi: Cross-reference the environment variables
2564         section, not the specific environment variable, for consistency.
2565
2566 2002-03-25  Richard Henderson  <rth@redhat.com>
2567
2568         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2569         anywhere in the block.  Don't refer to insns that have been
2570         removed from the chain.  Iterate backward through the new insns.
2571         Don't refer to edges that have been removed.
2572
2573 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2574
2575         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2576         test for overflow of constant.
2577
2578 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2579
2580         PR target/2623
2581         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2582         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2583         these patterns on arm_archv4.
2584
2585 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2586
2587         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2588         int".
2589
2590 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2591
2592         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2593         float_handled, float_handler, float_signal, set_float_handler,
2594         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2595         * toplev.h: Don't prototype do_float_handler.
2596
2597         * c-lex.c: Fold parse_float into lex_number.  Make warning
2598         about portability of hex float constants more informative, and
2599         don't issue it on top of a syntax error.
2600         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2601         their callers.
2602         * real.h: Define REAL_VALUE_ABS here...
2603         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2604         simplify_unary_real, simplify_binary_real, and
2605         simplify_binary_is2orm1 into their callers.
2606         * tree.c: Fold build_real_from_int_cst_1 into caller.
2607
2608         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2609
2610         * tsystem.h: Include float.h here...
2611         * libgcc2.c: ... not here.
2612
2613 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2614
2615         Fixes for: PR bootstrap/3591, target/5676
2616         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2617         defined.  Do not disable exceptions or rtti.
2618         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2619         mcore.h.  Disable exceptions and rtti, since they are not
2620         supported by EPOC.
2621
2622 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2623
2624         * c-decl.c (maybe_build_cleanup): Remove.
2625         * expr.c (expand_expr): Use langhook.
2626         * langhooks-def.h (lhd_return_null_tree,
2627         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2628         (LANGHOOKS_INITIALIZER): Update.
2629         * langhooks.c (lhd_return_null_tree): New.
2630         * langhooks.h (struct lang_hooks): New hook.
2631         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2632         * tree.h (maybe_build_cleanup): Remove.
2633
2634 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2635
2636         * regrename.c (build_def_use): Move recog_memoized
2637         before extract_insn.
2638
2639 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2640
2641         PR target/6043
2642         * expr.c (emit_group_store): Handle storing into CONCAT.
2643
2644 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2645
2646         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2647         corresponding MATCH_DUP.
2648
2649 2002-03-24  Richard Henderson  <rth@redhat.com>
2650
2651         * unroll.c (unroll_loop): Zero label_map.
2652
2653         * gcse.c: Include except.h.
2654         * Makefile.in (gcse.o): Update.
2655
2656 2002-03-24  Richard Henderson  <rth@redhat.com>
2657
2658         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2659         Do resolve_unique_section before shared data clause.
2660
2661 2002-03-24  Richard Henderson  <rth@redhat.com>
2662
2663         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2664
2665 2002-03-24  Richard Henderson  <rth@redhat.com>
2666
2667         * recog.c (peephole2_optimize): Split blocks when EH insns are
2668         generated in the middle of a block.  Do global life update if
2669         zapped EH edges.
2670
2671 2002-03-24  Richard Henderson  <rth@redhat.com>
2672
2673         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2674
2675 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2676
2677         preprocessor/3951
2678         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2679         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2680         (init_dependency_output): Don't make no_output decision here.
2681
2682 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2683
2684         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2685         warn_switch.  Update description.
2686         (expand_end_case_type): Call check_for_full_enumeration_handling
2687         when warn_switch.
2688
2689 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2690
2691         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2692         (m68hc11_split_move): Call it to see if the source and destination
2693         operands use the same direction auto inc/dec mode, otherwise make the
2694         source an offsetable memory operand and generate an add.
2695
2696 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2697
2698         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2699         register for operand 2.
2700         ("*subsi3_zero_extendqi"): Likewise.
2701         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2702         bits so that it is compatible with a pop.
2703         ("*andhi3_gen"): Likewise.
2704         ("xorhi3"): Likewise.
2705
2706 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2707
2708         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2709         -pedantic here...
2710         (cpp_post_options): ... not here.
2711
2712 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2713             Aldy Hernandez  <aldyh@redhat.com>
2714
2715         Removal of separate preprocessor cpp0.
2716
2717         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2718         cpp0, install-common): Update.
2719         * c-common.c (flag_preprocess_only): New.
2720         (c_common_init): Preprocess for -E.
2721         * c-common.h (flag_preprocess_only): New.
2722         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2723         * c-objc-common.c (c_init_decl_processing): Exit quickly
2724         for NULL return from c_common_init.
2725         * cpplib.h (cpp_preprocess_file): New.
2726         * cppmain.c (main, general_init, pfile, progname): Remove.
2727         (do_preprocessing): Rename cpp_preprocess_file, don't call
2728         cpp_finish.  Don't close stdout here.
2729         (setup_callbacks): Update prototype.
2730         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2731         Update.
2732         * tradcpp.c (main): Ignore -quiet.
2733 objc:
2734         * lang-specs.h (default_compilers): Preprocess with cc1obj.
2735
2736 2002-03-24  Richard Henderson  <rth@redhat.com>
2737
2738         PR optimization/5742
2739         * machmode.def: Add inner mode field to complex modes.
2740         * config/mips/mips.c (mips_function_value): Always define.  Add
2741         new argument to handle libcalls.
2742         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2743         (FUNCTION_VALUE): Likewise.
2744         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2745         * config/mips/mips-protos.h: Update.
2746
2747 2002-03-23  Richard Henderson  <rth@redhat.com>
2748
2749         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2750         * config/sparc/sparc-protos.h: Update.
2751         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2752
2753 2002-03-23  Richard Henderson  <rth@redhat.com>
2754
2755         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2756         _start or _init begins the text segment.
2757
2758 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
2759
2760         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
2761         not HOST_WIDEST_INT.
2762         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2763
2764 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
2765
2766         PR java/5489
2767         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2768         operand argument to output_return_instruction.
2769         * arm.c (arm_print_operand, case 'd'): If the operand is
2770         const_true_rtx then just return.
2771         (arm_print_operand, case 'D'): If the operand is const_true_rtx
2772         then abort.
2773
2774 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
2775
2776         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2777         (Warning Options): Document -Wswitch-default.
2778         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
2779         -Wswitch.
2780         (warn_switch_default): Define variable.
2781         (warn_switch): Update comment.
2782         * flags.h (warn_switch_default): Declare variable.
2783         (warn_switch): Update comment.
2784         * stmt.c (expand_end_case): Check for and, when
2785         warn_switch_no_default, warn of a missing default case.
2786
2787 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
2788
2789         * real.h (N): Special case 128 bit doubles.
2790
2791         * combine.c (simplify_comparison): When widening modes, ignore
2792         sign extension on CONST_INTs.
2793
2794 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2795
2796         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2797         passed to adjust_address.  Fix comment formatting.
2798
2799
2800 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
2801
2802         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2803         Always make REAL_VALUE_TYPE a struct containing an array of
2804         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
2805         big it is.  Don't declare or use union real_extract.
2806
2807         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2808         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2809         (print_operand), config/arm/arm.c (output_move_double),
2810         config/arm/arm.md (consttable_4, consttable_8),
2811         config/romp/romp.c (output_fpops), config/s390/s390.h
2812         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2813         (xtensa_output_literal): Don't use union real_extract.
2814
2815         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2816         (sfmode_constant_to_ulong), config/ns32k/merlin.h
2817         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2818         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2819         (PRINT_OPERAND): Don't use local version of union
2820         real_extract.
2821
2822         * config/convex/convex.c (check_float_value), config/vax/vax.c
2823         (vax_float_literal), config/m88k/m88k.md (divdf3),
2824         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2825         config/pdp11/pdp11.c (output_move_quad): Don't do host
2826         arithmetic on target floating point quantities.
2827
2828         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2829         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2830
2831         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2832         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2833
2834         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2835         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2836         INFINITY.
2837         * print-rtl.c (print_rtx): Disable code which needs
2838         floating-point emulator.
2839         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2840         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2841         depending on HOST_FLOAT_FORMAT to be defined properly.
2842
2843         * config/1750a/1750a.c (get_double, float_label): Delete.
2844         (print_operand): Delete huge commented-out chunk.  Use
2845         REAL_VALUE_TO_DECIMAL.
2846         * config/1750a/1750a-protos.h: Delete prototypes of deleted
2847         functions.
2848         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2849         IEEE_FLOAT_FORMAT.
2850         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2851         Use REAL_VALUE_TO_DECIMAL as ELF version does.
2852         * config/m88k/m88k.c (real_power_of_2_operand,
2853         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2854         real_extract out of the union; run the input through
2855         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2856         from that into the union.
2857         * config/pdp11/pdp11.c (output_move_double): Rearrange
2858         parentheses to make automatic indenter happy.
2859
2860         * doc/tm.texi (Cross-compilation): Rename node to "Floating
2861         Point" and rewrite to describe current situation.  Also adjust
2862         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2863         match code.
2864         * doc/rtl.texi: Adjust cross reference.
2865
2866 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
2867
2868         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2869         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2870         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2871         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2872         prevent use of sp as a reload register.
2873         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2874         non_acc_reg_operand.
2875         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2876         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2877         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2878         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2879
2880 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2881
2882         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2883         * cpplex.c (unterminated): Delete.
2884         (parse_string): No string literal may extend over multiple
2885         lines.  Suppress the error when preprocessing assembly.
2886         * cppmain.c (scan_translation_unit): Strings are single-line.
2887
2888         * doc/cpp.texi: Update to match.
2889
2890 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2891
2892         PR optimization/5854
2893         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2894         Shut up warnings.
2895         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2896         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2897         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2898         const0 if scratch register was not allocated.
2899         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2900         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2901         with GEN_INT (...).
2902         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2903         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2904         with GEN_INT (...) everywhere.  Remove constraints in define_split
2905         patterns.
2906         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2907         require scratch register for setting 0 into regs/non-pushable memory.
2908
2909 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2910
2911         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2912         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2913
2914 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
2915
2916         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
2917         * cppinit.c (cpp_create_reader):  On by default.
2918         (cpp_handle_option):  Handle -W[no-]endif-labels.
2919         (cpp_post_options):  Also enable if -pedantic.
2920         * cpplib.c (do_else):  Use it.
2921         (do_endif):  Likewise.
2922         * doc/cppopts.texi:  Document new option.
2923         * doc/invoke.texi:  Document new option.
2924
2925 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
2926
2927         * config/i386/i386.c, config/i386/i386.md: Change all occurences
2928         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2929
2930 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
2931
2932         * flow.c (calculate_global_regs_live): Clear aux fields of
2933         ENTRY and EXIT.
2934
2935 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
2936
2937         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2938         REG or MEM subregs, pass rtx * instead of rtx to it.
2939         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2940         rtx * instead of rtx to alter_subreg.
2941         * config/m32r/m32r.c (gen_split_move_double): Likewise.
2942         * config/pj/pj.c (pj_output_rval): Likewise.
2943
2944 2002-03-22  Richard Henderson  <rth@redhat.com>
2945
2946         PR target/3177
2947         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2948         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2949         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2950         (ia64_expand_prologue): Look at int_regs, not words, for number
2951         of incomming int regs.
2952
2953 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
2954
2955         * expr.c (expand_expr): A RESULT_DECL is part of a call.
2956
2957 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
2958
2959         * toplev.c (flag_loop_optimize, flag_crossjumping):
2960         New static variables.
2961         (rest_of_compilation): Conditionalize crossjumping and
2962         loop optimizer.
2963         (parse_options_and_default_flags): Default loop_optimize and
2964         crossjumping.
2965         (lang_independent_options): Add -fcrossjumping and -floop-optimize
2966         * invoke.texi (crossjumping, loop-optimize): Document.
2967
2968 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2969
2970         * real.c (eiisneg): Move outside #ifdef NANS.
2971
2972 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2973
2974         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2975         frequencies match; avoid match on different loop depths.
2976         (try_crossjump_to_bb): Kill tests that no longer brings time
2977         savings.
2978         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2979         updating code.
2980         (split_edge): Likewise.
2981
2982         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2983         variable.
2984
2985         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2986         * cfgrtl.c: Include insn-config.h
2987         (split_block) Dirtify block in presence of conditional execution
2988
2989 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
2990
2991         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2992         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2993         (function_arg): Constify CUMULATIVE_ARGS.
2994         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2995         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2996         (UNITS_PER_DOUBLE): New macro.
2997         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
2998         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
2999         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
3000         fp_regs and stack_words.
3001         (EABI_FLOAT_VARARGS_P): New macro.
3002         * config/mips/mips.c (struct mips_arg_info): New.
3003         (mips_arg_info): New function.
3004         (function_arg_advance): Use it.  Add adjustment instructions here
3005         rather than in function_arg.
3006         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
3007         for VOIDmode at the beginning of the function.
3008         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
3009         (function_arg_pass_by_reference): Likewise.
3010         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3011         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3012         (mips_va_start): Likewise.  Use the new stack_words field of
3013         CUMULATIVE_ARGS to set up overflow area.  Reformat.
3014         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
3015         doubles and other types, aligning the overflow pointer for non-doubles
3016         too.  Remove some code duplication.  Replace hard-coded constants.
3017
3018 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3019
3020         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3021         (CLASS_UNITS): Undefine.
3022         (CLASS_MAX_NREGS): Use FP_INC.
3023         * config/mips/mips.c (compute_frame_size): Likewise.
3024         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3025
3026 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3027
3028         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3029         prototype, and handle lexing numbers and identifiers.
3030         (parse_identifier): Update to new form of parse_slow.
3031         (parse_number): Fast path only, use parse_slow otherwise.
3032         (_cpp_lex_direct): Update calls to parse_number.
3033
3034 2002-03-21  DJ Delorie  <dj@redhat.com>
3035
3036         * bb-reorder.c (make_reorder_chain_1): Protect against
3037         when redundant edges are omitted.
3038         * predict.c (dump_prediction): Likewise.
3039
3040 2002-03-21  Richard Henderson  <rth@redhat.com>
3041
3042         PR target/5996
3043         * fixinc/inclhack.def (solaris_stdio_tag): New.
3044         * fixinc/fixincl.x: Regenerate.
3045
3046 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3047
3048         PR c/5597
3049         * c-typeck.c (process_init_element): Flag non-static
3050         initialization of a flexible array member as illegal.
3051
3052 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
3053
3054         * config/rs6000/t-linux64: New.
3055         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3056         t-ppccomm.  Use t-rs6000 and t-linux64.
3057         (powerpc64-*-gnu* <tmake_file>): Likewise.
3058         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3059         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3060         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3061
3062 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
3063
3064         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3065         flag_really_no_inline instead of optimize == 0.
3066
3067         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3068
3069         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3070
3071         * flags.h (flag_really_no_inline): New.
3072
3073         * c-common.c (c_common_post_options): Initialize
3074         flag_really_no_inline.
3075
3076         * toplev.c (flag_really_no_inline): New.
3077
3078 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3079
3080         * config/avr/avr.md (length): Fix length computation for
3081         conditional branches.
3082
3083 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3084
3085         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3086         sdbout.o, profile.o): Update.
3087         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3088         langhook.
3089         * c-common.h (gettags): Move here from tree.h.
3090         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3091         insert_block, getdecls, kept_level_p, global_bindings_p): New.
3092         * dbxout.c (dbxout_init): Use getdecls langhook.
3093         * expr.c (expand_expr): Use insert_block langhook.
3094         * fold-const.c: Include langhooks.h.
3095         (fold_range_test, fold_binary_op_with_conditional_arg,
3096         fold): Use global_bindings_p langhook.
3097         * integrate.c (expand_inline_function): Use insert_block langhook.
3098         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3099         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3100         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3101         LANG_HOOKS_GETDECLS): New.
3102         (LANG_HOOKS_INITIALIZER): Update.
3103         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3104         langhook.
3105         * langhooks.h (struct lang_hooks_for_decls): New.
3106         (struct lang_hooks): Update.
3107         * profile.c: Include langhooks.h.
3108         (output_func_start_profiler): Use new langhooks.
3109         * sdbout.c: Include langhooks.h.
3110         (sdbout_init, sdbout_finish): Use getdecls langhook.
3111         * stmt.c: Include langhooks.h.
3112         (expand_fixup, fixup_gotos): Use new langhooks.
3113         * stor-layout.c: Include langhooks.h.
3114         (variable_size): Use global_bindings_p langhook.
3115         * toplev.c (compile_file): Use getdecls langhook.
3116         * tree-inline.c (remap_block): Use insert_block langhook.
3117         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3118         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3119
3120 2002-03-21  Richard Henderson  <rth@redhat.com>
3121
3122         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3123         constants in .data when -fpic.
3124
3125 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3126
3127         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3128         where appropriate.
3129
3130 2002-03-21  Tom Tromey  <tromey@redhat.com>
3131
3132         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
3133
3134 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3135
3136         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3137
3138         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3139
3140 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3141             Richard Henderson  <rth@redhat.com>
3142
3143         PR c/5354
3144         * c-common.c (c_expand_expr): Preserve result of a statement
3145         expression if needed.
3146
3147 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3148
3149         PR bootstrap/4195
3150         * genrecog.c (maybe_both_true_mode): Remove.
3151         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3152         * machmode.def (Pmode): Likewise.
3153
3154 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
3155
3156         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3157         (nonlocal_mentioned_p_1): New function.
3158         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3159         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3160         (mark_constant_function): Recognize pure functions.
3161         * rtl.h (global_reg_mentioned_p): New prototype.
3162         * rtlanal.c (global_reg_mentioned_p,
3163         global_reg_mentioned_p_1): New function.
3164
3165 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3166
3167         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3168         UNIX assert.h.
3169         * fixinc/fixincl.x: Regenerate.
3170
3171 2002-03-20  Jason Merrill  <jason@redhat.com>
3172
3173         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3174
3175 2002-03-20  Michael Meissner  <meissner@redhat.com>
3176
3177         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3178         -fstrict-aliasing.
3179
3180 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3181
3182         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3183         ".literal_position" directive before the constant pool.
3184
3185 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3186
3187         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3188         Add Craig Rodrigues.
3189         Add Brad Lucier to testers.
3190
3191 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3192
3193         PR target/4792
3194         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3195         to if_then_else.
3196         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3197         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3198         instead of insn_extract.
3199
3200 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3201
3202         PR bootstrap/4192
3203         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3204
3205         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3206         stmt if some case has been output.
3207
3208 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3209
3210         PR c/5972
3211         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3212         movsfcc_1, movdfcc_1): Add %O2.
3213         * config/i386/i386.c (print_operand): Handle %ON.
3214         Print . before float condition codes in Sun as cmov syntax.
3215         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3216         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3217         no longer true.
3218
3219 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3220
3221         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3222         return instruction if PC was popped.
3223
3224 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3225
3226         * config/xtensa/xtensa.md: Remove unused type attributes.
3227         (adddi_carry, subddi_carry): Change type attribute to "multi".
3228
3229 2002-03-19  Dale Johannesen  <dalej@apple.com>
3230
3231         PR optimization/5999, middle-end/5731
3232         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3233         multiplications by reciprocals.
3234
3235 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3236
3237         * Makefile.in: Update.
3238         * c-common.c: Include langhooks.h.
3239         (inline_forbidden_p): Use new hook.
3240         * diagnostic.c: Include langhooks.h.
3241         (format_with_decl, announce_function,
3242         default_print_error_function): Use new hook.
3243         * dwarf2out.c (dwarf2_name): Use new hook.
3244         * function.c: Include langhooks.h.
3245         (init_function_start): Use new hook.
3246         * langhooks-def.h (lhd_decl_printable_name): New.
3247         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3248         (LANGHOOKS_INITIALIZER): Update.
3249         * langhooks.c (lhd_decl_printable_name): New.
3250         * langhooks.h (struct lang_hooks): New hook.
3251         * toplev.c (decl_name, decl_printable_name): Remove.
3252         (open_dump_file): Use new hook.
3253         (process_options): Remove old hook.
3254         * tree.h (decl_printable_name): Remove.
3255 objc:
3256         * objc-act.c (objc_init): Remove old hook.
3257         (objc_printable_name): Export.
3258         * objc-act.h (objc_printable_name): New.
3259         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3260
3261 2002-03-19  Jim Blandy  <jimb@redhat.com>
3262
3263         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3264         the start_source_file debug hook, not the current line number.
3265
3266 2002-03-19  Richard Henderson  <rth@redhat.com>
3267
3268         * flow.c (EH_USES): Provide default.
3269         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3270         * doc/tm.texi (EH_USES): New.
3271
3272         * config/ia64/ia64.c (ia64_eh_uses): New.
3273         * config/ia64/ia64-protos.h: Update.
3274         * config/ia64/ia64.h (EH_USES): New.
3275
3276 2002-03-19  Richard Henderson  <rth@redhat.com>
3277
3278         * varasm.c (output_constant_def): Fix stupid typo.
3279
3280 2002-03-19  Richard Henderson  <rth@redhat.com>
3281
3282         PR 5879
3283         * except.c (current_function_has_exception_handlers): New.
3284         * except.h: Declare it.
3285         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3286         Combine tests that disable all sibcalls for the function.
3287
3288 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3289
3290         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3291         for INTEGER_CST.
3292
3293 2002-03-19  Richard Henderson  <rth@redhat.com>
3294
3295         PR 5977, 5991
3296         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3297         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3298
3299 2002-03-19  Jim Blandy  <jimb@redhat.com>
3300
3301         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3302         name, even if the replacement list contains no tokens, as required
3303         by Dwarf.
3304
3305 2002-03-19  Jason Merrill  <jason@redhat.com>
3306
3307         * varasm.c (globalize_decl): Get the name from the RTL, not
3308         DECL_ASSEMBLER_NAME.
3309
3310         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3311
3312 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3313
3314         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3315         subdi_carry): Define.
3316
3317 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3318
3319         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3320         about -fpic/-fPIC if extra_warnings set.
3321
3322 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3323
3324         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3325         TREE_STRING_POINTER.
3326         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3327
3328 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3329
3330         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3331         in favor of SP if FRAME_POINTER_REQUIRED is false.
3332
3333 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3334
3335         * emit-rtl.c (gen_int_mode): New function.
3336         * rtl.h: Prototype for it.
3337         * combine.c (make_extraction, simplify_comparison), expmed.c
3338         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3339         (convert_modes, store_field), optabs.c (expand_fix),
3340         simplify-rtx.c (neg_const_int, simplify_unary_real),
3341
3342         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3343         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3344
3345 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3346
3347         PR c/5656
3348         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3349         convert_parm_for_inlining.
3350         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3351         Define.
3352         * langhooks-def.h: Likewise.
3353         * objc/objc-lang.c: Likewise.
3354         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3355         function.
3356         * tree-inline.c (initialize_inlined_parameters):
3357         Call convert_parm_for_inlining lang hook if needed.
3358         * c-typeck.c (c_convert_parm_for_inlining): New function.
3359         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3360
3361 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3362
3363         * calls.c (precompute_arguments): Do not assume that temporaries
3364         can be destroyed after expanding the argument.
3365         (expand_call): Likewise.
3366
3367 2002-03-15  Eric Christopher  <echristo@redhat.com>
3368
3369         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3370         Fix register preference on last change.
3371         * config/mips/mips.c (mips_return_in_memory): New function.
3372         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3373         * config/mips/mips-protos.h: Declare.
3374         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3375         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3376
3377 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3378
3379         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3380         a register too.
3381         (anddi3, iorsi3): Likewise.
3382
3383         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3384         use %gprel for symbols that are going to be placed in linkonce
3385         sections.
3386
3387         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3388         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3389         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3390         not needed.  Disregard leaf_function_p().
3391         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3392         mips16 frame pointer.
3393         * config/mips/mips.md (store ra): Only to small SP offsets.
3394         2001-08-22  Graham Stott  <grahams@redhat.com>
3395         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3396         return a REG rtx for the return address register.
3397
3398 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3399
3400         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3401         constant-pool addresses as "mode-dependent".
3402         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3403
3404 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3405
3406         PR target/5740
3407         * expr.c (emit_group_load): Use extract_bit_field if
3408         needed for CONCAT arguments.
3409
3410 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3411
3412         PR target/4863
3413         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3414         offset to the base of the table.
3415         (thumb_tablejump): Matcher for Thumb tablejump insn.
3416         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3417         as the difference of two labels.
3418         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3419         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3420         tables in the code.
3421         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3422         * arm.c (get_jump_table_size): If the table is not in the text
3423         section, return zero.
3424
3425 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3426
3427         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3428         of gen_rtx_SUBREG.
3429         (arm_reload_out_hi): Use gen_lowpart instead of
3430         gen_rtx_SUBREG to access QImode components.
3431         * config/arm/arm.md: Disable zero_extend split for QImode
3432         subregs in BIG_ENDIAN mode.
3433         (storehi_bigend): Match use of least significant byte.
3434         (storeinthi): Remove extraneous SUBREG.
3435         Add missing construction of operands[2].
3436         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3437         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3438         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3439
3440 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3441
3442         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3443         any_operand.
3444
3445 2002-03-17  Richard Henderson  <rth@redhat.com>
3446
3447         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3448         explicitly.
3449
3450 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3451
3452         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3453         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3454
3455 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3456
3457         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3458
3459         * predict.c (estimate_bb_frequencies): Delete unused variables.
3460
3461 2002-03-17  Richard Henderson  <rth@redhat.com>
3462
3463         * config/ia64/ia64.c (ia64_attribute_table): Move before
3464         targetm definition.  Make static.
3465
3466 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3467
3468         * c-common.h (yyparse, c_common_parse_file): New.
3469         * c-lang.c: Include c-common.h.
3470         (LANG_HOOKS_PARSE_FILE): Redefine.
3471         * c-lex.c: Include c-common.h.
3472         (yyparse): Rename c_common_parse_file.  Call yyparse.
3473         * c-parse.in (yyparse): Remove macro.
3474         * c-tree.h (yyparse_1): Remove.
3475         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3476         (LANG_HOOKS_INITIALIZER): Update.
3477         * langhooks.h (struct lang_hoooks): New hook parse_file.
3478         * toplev.c (compile_file): Use parse_file hook.
3479         * tree.h (yyparse): Remove.
3480         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3481
3482 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3483
3484         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3485         float_truncate, not fix.
3486         ("*truncdfsf2_real"): Ditto.
3487         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3488
3489         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3490
3491 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3492
3493         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3494         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3495         where appropriate.  Make the second reference to
3496         leaf_function_p a function call, as intended.  Reindented.
3497
3498         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3499         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3500
3501         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3502         add register to non-constant into sp.
3503
3504         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3505         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3506         (mips16_gp_pseudo_rtx): Lose.
3507         (INIT_EXPANDERS): Deleted.
3508         * config/mips/mips.c (mips_init_machine_status): New.
3509         (mips_free_machine_status): New.
3510         (mips_mark_machine_status): New.
3511         (override_options): Set them.
3512         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3513         (struct machine_function): ... new.  Replaced all references.
3514         (mips_add_gc_roots): Don't mark them.
3515         (embedded_pic_fnaddr_reg): New, extracted from...
3516         (embedded_pic_offset): ... here.
3517         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3518         (movsi): Likewise.
3519
3520 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3521
3522         * cppinit.c: Revert -MD removal.
3523
3524 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3525
3526         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3527         soft registers by default for 68HC12.
3528         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3529         when compiling with -fomit-frame-pointer.
3530         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3531         (expand_epilogue): Likewise.
3532         (m68hc11_gen_rotate): Use exg when rotating by 8.
3533
3534 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3535
3536         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3537         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3538         (splits): Remove unused add splits.
3539         ("*addhi3_68hc12"): Tune constraints.
3540         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3541         constant fits in 8-bits and D is dead use abx/aby instructions.
3542         ("*addhi3"): Remove extern declaration of ix_reg.
3543         ("*subsi3"): Optimize and provide new split.
3544         ("subhi3"): Cleanup.
3545         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3546         (arith splits): For 68hc12 save the address register on the stack
3547         and do the arithmetic operation with a pop.
3548
3549 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3550
3551         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3552         allocating QImode in address registers.
3553         ("*movqi_m68hc11"): Likewise.
3554
3555 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3556
3557         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3558
3559 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3560
3561         * cppinit.c (print_help): Display -MD and -MMD.
3562         Don't display usage string.  Update assertion syntax and
3563         typo.
3564         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3565         (cpp_handle_option): Update.
3566
3567 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3568
3569         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3570         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3571         and define it so that regardless of target CPU size,
3572         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3573         of "int" rather than "long."
3574
3575 2002-03-15  Richard Henderson  <rth@redhat.com>
3576
3577         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3578         size as a tree.
3579
3580 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3581
3582         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3583         ("tstqi" split): Avoid using memory for tstqi on address register.
3584         (splits): Remove constraints.
3585         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3586         ("cmpdf", "cmpsf"): Remove since not used.
3587         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3588         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3589
3590 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3591
3592         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3593         ("neghi2"): Tighten constraints.
3594         ("one_cmplsi2"): Optimize and simplify split.
3595         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3596
3597 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3598
3599         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3600         and split of AND operation to clear the upper bits.
3601         ("*logicalsi3_zextqi"): Likewise.
3602         ("*logicallhi3_zexthi_ashift8"): Likewise.
3603         ("*logicalsi3_silshr16"): Likewise.
3604         ("logicalsi3_silshl16"): Likewise.
3605         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3606
3607 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3608
3609         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3610         (m68hc11_indirect_p): New function.
3611         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3612         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3613         TARGET_M6812.
3614         (asm_print_register): Likewise.
3615         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3616         (m68hc11_indirect_p): Declare.
3617         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3618         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3619         (TARGET_SWITCHES): New option -mrelax.
3620         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3621         destination.
3622         ("iorsi3", "xorsi3"): Likewise.
3623         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3624         ("*andhi3_mem"): New to handle destination in memory with bclr
3625         and a scratch register.
3626         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3627         ("*andhi3_const"): New when operand2 is constant.
3628         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3629         ("*andhi3_gen"): Cleanup of the old "andhi3".
3630         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3631         ("xorqi3"): Update constraints.
3632
3633 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3634
3635         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3636         for reg_equiv_memory_loc when the operand is a register that does
3637         not get a hard register (stack location).
3638         (tst_operand): After reload, accept all memory operand.
3639         (symbolic_memory_operand): Fix detection of symbolic references.
3640         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3641         accept symbols and any constant.
3642
3643 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3644
3645         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3646         note on the insn that sets the soft frame register.
3647         (must_parenthesize): ix and iy are also reserved names.
3648         (print_operand_address): One more place where parenthesis are required
3649         to avoid confusion with register names.
3650         (m68hc11_gen_movhi): Allow push of stack pointer.
3651         (m68hc11_check_z_replacement): Fix handling of parallel with a
3652         clobber.
3653         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3654         the replacement register is.
3655         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3656         and D8_REGS classes.
3657         (MODES_TIEABLE_P): All modes are tieable except QImode.
3658
3659 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3660
3661         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3662         (___subdi3): Likewise.
3663         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3664         (__map_data_section): Optimize 68hc11 case.
3665
3666 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3667
3668         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3669         than a shift to avoid adding a register with itself.
3670         (m68hc11_memory_move_cost): Take into account NO_REGS.
3671         (m68hc11_register_move_cost): Update and use memory move cost
3672         for soft registers.
3673         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3674         it gives more opportunities to cse to optimize.
3675         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3676         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3677
3678 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3679
3680         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3681         * c-common.def (CLEANUP_STMT): New tree node.
3682         * c-common.h (CLEANUP_DECL): New macro.
3683         (CLEANUP_EXPR): Likewise.
3684         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3685         * expr.c (expand_expr): Tidy.
3686         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3687         * tree-inline.c (initialize_inlined_parameters): Clean up
3688         new local variables.
3689
3690 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3691
3692         PR bootstrap/4128
3693         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3694         before movrXX only, use reg_overlap_mentioned_p.
3695         Only special case NE if just one insn can be generated.
3696
3697 2002-03-15  Jason Merrill  <jason@redhat.com>
3698
3699         * varasm.c (assemble_variable): Call resolve_unique_section before
3700         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
3701         of error_mark_node.
3702
3703 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3704
3705         PR target/5170
3706         * arm.md (split pattern for thumb shiftable immediates): Add comment
3707         explaining non-obvious test.
3708
3709 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
3710
3711         PR target/5712
3712         * arm.md (movaddr, movaddr_insn): Delete.
3713
3714 2002-03-15  Jason Merrill  <jason@redhat.com>
3715
3716         * toplev.c (wrapup_global_declarations): Clarify variable handling.
3717         -fkeep-static-consts doesn't apply to comdats.
3718
3719 2002-03-14  Richard Henderson  <rth@redhat.com>
3720
3721         * c-decl.c: Include c-pragma.h.
3722         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3723         (finish_function): Tidy.
3724         * c-pragma.c: Include c-common.h.
3725         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3726         (handle_pragma_weak): Use them.
3727         (init_pragma): Register pending_weaks.
3728         * c-pragma.h (maybe_apply_pragma_weak): Declare.
3729         * print-tree.c (print_node): Print DECL_WEAK.
3730         * varasm.c (mark_weak_decls): Remove.
3731         (remove_from_pending_weak_list): Remove.
3732         (add_weak): Remove.
3733         (asm_emit_uninitialised): Call globalize_decl for weak commons.
3734         (weak_decls): Make a tree_list.
3735         (declare_weak): Cons weak_decls directly.
3736         (globalize_decl): Remove weak_decls elements directly.
3737         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
3738         symbols.  Don't pretend to handle aliases.
3739         (init_varasm_once): Update weak_decls registry.
3740         * Makefile.in: Update dependencies.
3741
3742 2002-03-14  Richard Henderson  <rth@redhat.com>
3743
3744         PR target/5312
3745         * config/ia64/ia64.c: Include tm_p.h last.
3746         (gen_nop_type): Remove duplicate definition.
3747         (cycle_end_fill_slots): Set sched_data for second L slot.
3748         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3749         (nop_cycles_until): Fix typos.
3750
3751 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3752
3753         PR optimization/5891
3754         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3755
3756 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3757
3758         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3759           descriptors correctly.
3760
3761 2002-03-14  Michael Meissner  <meissner@redhat.com>
3762
3763         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3764         100, allowing MAX_UNROLLED_INSNS to be overridden.
3765
3766         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3767         --param.
3768
3769         * unroll.c (params.h): Include.
3770         (MAX_UNROLLED_INSNS): Delete, now in params.h.
3771
3772         * doc/invoke.texi (--param max-unroll-insns): Document.
3773
3774         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3775
3776 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3777
3778         * arm.md: Fix warnings about constraints in peepholes and splits.
3779
3780 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
3781
3782         * cpphash.h (struct lexer_state): Remove line_extension member.
3783         * cpplib.c (dequote_string, do_linemarker): New functions.
3784         (linemarker_dir): New data object.
3785         (DIRECTIVE_TABLE): No longer need to interpret #line in
3786         preprocessed source.  Delete obsolete comment about return
3787         values of handlers.
3788         (end_directive, directive_diagnostics, _cpp_handle_directive):
3789         Don't muck with line_extension.
3790         (directive_diagnostics): No need to issue warnings for
3791         linemarkers here.
3792         (_cpp_handle_directive): Issue warnings for linemarkers here,
3793         when appropriate.  Dispatch linemarkers to do_linemarker, not
3794         do_line.
3795         (do_line): Code to handle linemarkers split out to do_linemarker.
3796         Convert escape sequences in filename argument, both places.
3797
3798         * cppmacro.c (quote_string): Rename cpp_quote_string and
3799         export.  All callers changed.
3800         * cpplib.h (cpp_quote_string): Prototype.
3801         * cppmain.c (print_line): Call cpp_quote_string on to_file
3802         before printing it.
3803
3804         * doc/cpp.texi: Document that escapes are now interpreted in
3805         #line and in linemarkers, and that non-printing characters are
3806         converted to octal escapes when linemarkers are generated.
3807
3808 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
3809
3810         * emit-rtl.c (try_split): Use delete_insns.
3811         * recog.c (split_all_insns): Fix terminating condition.
3812
3813 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
3814             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3815
3816         PR target/5828
3817         * arm.c (arm_output_epilogue): Fix floating-point register save
3818         adjustment when using a frame pointer.
3819
3820 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
3821
3822         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3823         * config/mips/mips.c (compute_frame_size): Retrofit them here.
3824         (save_restore_insns, mips_expand_epilogue): And here.
3825         (build_mips16_call_stub): And here.
3826         (mips_function_value): Use the new macros to decide whether a single
3827         or complex float can be returned in floating-point registers.  Return
3828         a parallel rtx in the complex case.
3829
3830 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
3831
3832         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3833         call after liveness analysis.
3834
3835         * recog.c (split_insn): Use delete_insn_and_edges.
3836
3837         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3838         instructions to have branch prediction notes.
3839         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3840
3841 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
3842
3843         * configure.in: Don't pass -Wno-long-long to a ADA compiler
3844         that doesn't support it.
3845         * configure: Regenerate.
3846
3847 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3848
3849         PR target/5626
3850         * config/sparc/sparc.md (normal_branch, inverted_branch,
3851         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3852         inverted_fp_branch): Adjust calls to output_cbranch.
3853         Set length attribute.
3854         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3855         output_v9branch.  Set length attribute.
3856         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3857         predicates.
3858         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3859         (output_cbranch): Likewise.  Handle far branches.
3860         (output_v9branch): Handle far branches.
3861         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3862         Adjust prototypes.
3863         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3864         noov_compare64_op predicates.
3865
3866 2002-03-13  Jason Merrill  <jason@redhat.com>
3867
3868         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3869         into the function and constify it.
3870         * gthr-dce.h, gthr-solaris.h: Likewise.
3871
3872 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
3873
3874         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3875         * config/rs6000/rs6000.c (rs6000_va_arg): Use
3876         std_expand_builtin_va_arg if not ABI_V4.
3877
3878 2002-03-13  Jason Merrill  <jason@redhat.com>
3879
3880         * varasm.c (globalize_decl): New fn.
3881         (assemble_start_function): Use it.
3882         (asm_emit_uninitialized): Use it.
3883         (assemble_alias): Use it.
3884         (assemble_variable): Use it.
3885
3886 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
3887
3888         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3889         2002-03-12 internal visibility change.
3890         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3891         visibility into SYMBOL_REF_FLAG.
3892
3893 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
3894
3895         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3896         VOIDmode operand.  Add compile-time optimization for constant results.
3897
3898 2002-03-12  Jason Merrill  <jason@redhat.com>
3899
3900         * c-typeck.c (convert_for_assignment): Don't allow conversions
3901         between pointers and references.  Only allow lvalues to convert to
3902         reference.
3903
3904 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
3905
3906         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3907         before prologue, to avoid scheduling problems.
3908
3909 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3910
3911         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3912         (ELIMINABLE_REGS): Add sfp->sp.
3913         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3914
3915 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3916
3917         PR optimization/5892
3918         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3919
3920 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3921
3922         * loop.c (basic_induction_var): Don't call convert_modes if mode
3923         classes are different.
3924
3925 2002-03-12  Richard Henderson  <rth@redhat.com>
3926
3927         PR optimization/5901
3928         * function.c (reposition_prologue_and_epilogue_notes): Position
3929         the markers after/before the last/first insn not deleted.
3930
3931 2002-03-12  Richard Henderson  <rth@redhat.com>
3932
3933         PR optimization/5878
3934         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3935         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3936         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3937
3938         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3939         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3940         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3941
3942         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3943         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3944         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3945         also.  Don't set it if not flag_pic.
3946         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3947         to be INVALID_REGNUM when not used.
3948
3949 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
3950
3951         * expmed.c (store_bit_field): Reset alias set for memory.
3952         (extract_bit_field): Same.
3953
3954 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3955
3956         * c-common.c (c_tree_code_type, c_tree_code_length,
3957         c_tree_code_name, add_c_tree_codes): Delete.
3958         * c-common.h (add_c_tree_codes): Delete.
3959         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3960         Define.
3961         * c-objc-common.c (c_objc_common_init): Don't call
3962         add_c_tree_codes, instead set lang_unsafe_for_reeval.
3963         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3964         objc_tree_code_name, add_objc_tree_codes): Delete.
3965         (objc_init): Don't call add_objc_tree_codes.
3966         * objc/objc-lang.c (tree_code_type, tree_code_length,
3967         tree_code_name): Define.
3968         * toplev.c (lang_independent_init): Don't set
3969         tree_code_length[IDENTIFIER_NODE].
3970         * tree.c (tree_code_type, tree_code_length, tree_code_name):
3971         Delete definitions, moved to language front-ends.
3972         * tree.def (IDENTIFIER_NODE): Hardwire the length.
3973         * tree.h (tree_code_type, tree_code_length, tree_code_name):
3974         Const-ify.
3975         (tree_code_length): Change type to unsigned char.
3976
3977 2002-03-12  Richard Henderson  <rth@redhat.com>
3978
3979         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3980         internal visibility change.
3981
3982 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
3983
3984         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3985         validize_mem() instead of change_address to avoid clobbering
3986         memory attributes.
3987
3988 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3989
3990         * c-lex.h (position_after_whitespace): Remove.
3991
3992 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
3993
3994         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3995         (lex_string): Use unsigned char pointers.
3996
3997 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
3998
3999         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4000         is not a valid memory_operand.
4001
4002 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4003
4004         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4005         * config/xtensa/lib1funcs.asm: Fix copyright to include
4006         special case for libgcc files.
4007         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4008         (__divsi3): Likewise.
4009         (__umodsi3): Likewise.
4010         (__modsi3): Likewise.
4011         * config/xtensa/lib2funcs.S: Fix copyright to include
4012         special case for libgcc files.
4013
4014 2002-03-12  Tom Rix  <trix@redhat.com>
4015
4016         * collect2.c (resolve_lib_name): Move outside of
4017         OBJECT_FORMAT_COFF ifdef.
4018         (ignore_library): Same.
4019
4020 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4021
4022         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4023
4024 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4025
4026         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4027         to function_section before writing out the constant pool.
4028
4029 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
4030
4031         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4032         zero_constant.
4033         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4034
4035 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
4036
4037         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4038         (adddi3): Likewise.
4039         (movdf): Likewise.
4040         (movdi): Likewise.
4041         (cmpsi splitter): Likewise.
4042         (modsi3): Fail if <= 0.
4043         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4044         redundant test when HOST_BITS_PER_WIDE_INT != 32.
4045         (reg_or_sub_cint64_operand): Likewise.
4046         (num_insns_constant_wide): Optimize sign extension.
4047         (rs6000_legitimize_address): Likewise.
4048
4049 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
4050
4051         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4052         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4053
4054 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
4055
4056         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4057         address calculation.
4058
4059 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
4060
4061         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4062         scratch register to DImode / TImode.
4063         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4064         register used does not overlap the target.
4065
4066 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4067
4068         * Makefile.in (debug.o): Depend on debug.h.
4069         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4070         * debug.c (do_nothing_debug_hooks): Likewise.
4071         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4072         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4073         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4074         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4075         * dwarfout.c (dwarf_debug_hooks): Likewise.
4076         * integrate.c (output_inline_function): Likewise.
4077         * objc/objc-act.c (synth_module_prologue): Likewise.
4078         * sdbout.c (sdb_debug_hooks): Likewise.
4079         * toplev.c (debug_hooks): Likewise.
4080         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4081
4082 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4083
4084         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4085         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4086         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4087         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4088         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4089         * defaults.h (POINTER_SIZE): Define.
4090         * doc/tm.texi (POINTER_SIZE): Document default.
4091
4092 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4093
4094         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4095
4096 2002-03-11  Richard Henderson  <rth@redhat.com>
4097
4098         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4099         if rebuild_label_notes_after_reload.
4100
4101 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
4102
4103         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
4104         emit pic register load if "internal" visibility.
4105         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4106         (cris_expand_builtin_va_arg): Do all computations on trees.
4107
4108 2002-03-11  Richard Henderson  <rth@redhat.com>
4109
4110         * rtlanal.c: Include recog.h.
4111         (keep_with_call_p): Fix thinko.
4112         * Makefile.in (rtlanal.o): Update dependencies.
4113
4114 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
4115
4116         * genflags.c (gen_insn): Use IS_VSPACE.
4117         * genoutput.c (output_insn_data): Likewise.
4118         (process_template): Likewise.
4119
4120 2002-03-11  Richard Henderson  <rth@redhat.com>
4121
4122         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4123
4124 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4125
4126         * Makefile.in: Update.
4127         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4128         Update documentation.
4129         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4130         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4131
4132 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
4133
4134         * Makefile.in: Give texi2pod its input file as a command line
4135         argument, not on stdin.
4136
4137 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
4138             Daniel Berlin  <dan@dberlin.org>
4139
4140         C++ alias analysis improvement.
4141         * alias.c (record_component_aliases): Record aliases for base
4142         classes too.
4143
4144 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
4145
4146         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4147
4148 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4149
4150         * toplev.c (vms_fopen): Remove, not needed.
4151
4152         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4153
4154         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4155
4156         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4157         for FP, already done later.
4158
4159         * toplev.c (debug_args): Add entry for VMS_DEBUG.
4160         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4161
4162 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
4163
4164         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4165         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4166         LARGEST_EXPONENT_IS_NORMAL for the given mode.
4167         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4168         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4169         (ediv, emul, eldexp, esqrt): Likewise.
4170         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4171         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4172         (saturate): New function.
4173         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4174         (make_nan): Use a saturation value instead of a NaN if
4175         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4176         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4177         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4178         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4179         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4180         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4181         !ROUND_TOWARDS_ZERO.
4182         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4183         (ROUND_TOWARDS_ZERO): Document.
4184
4185 2002-03-11  Andreas Jaeger  <aj@suse.de>
4186
4187         * cfg.c (dump_flow_info): Remove unused variable.
4188
4189 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4190
4191         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4192         computations on trees.
4193
4194 2002-03-10  Richard Henderson  <rth@redhat.com>
4195
4196         PR 5693:
4197         * reload.c (copy_replacements_1): New.
4198         (copy_replacements): Use it to recurse through the rtx.
4199
4200 2002-03-10  Richard Henderson  <rth@redhat.com>
4201
4202         * loop.c (strength_reduce): Compute number of iterations as
4203         unsigned HOST_WIDE_INT.
4204
4205 2002-03-10  Richard Henderson  <rth@redhat.com>
4206
4207         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4208         to move away from the end of the block.
4209
4210 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4211
4212         PR preprocessor/5899
4213         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4214
4215 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4216
4217         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4218
4219         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4220
4221 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4222
4223         * config/mmix/mmix.c: Improve comments.
4224         (mmix_target_asm_function_prologue): Drop variable
4225         empty_stack_frame.  Don't allocate unused slot above fp.
4226         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4227         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4228         brace in first column.
4229         (enum reg_class): Ditto.
4230         (FIRST_PARM_OFFSET): Now 0.
4231         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4232
4233 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4234
4235         * combine.c (make_extraction): Fix error in last change.
4236
4237 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4238
4239         * c4x.c (c4x_fp_reglist): Const-ify.
4240         * cris.c (cris_print_operand): Likewise.
4241         * i386.c (ix86_va_arg): Likewise.
4242         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4243         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4244         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4245         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4246         * mcore.h (regno_reg_class): Likewise.
4247         * mips.c (gen_int_relational): Likewise.
4248         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4249         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4250         * pdp11.c (move_costs): Likewise.
4251         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4252         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4253         Likewise.
4254         * s390.h (regclass_map): Likewise.
4255         * sh.c (shift_amounts): Likewise.
4256         * sh.md (rotlsi3): Likewise.
4257
4258 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4259
4260         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4261         (ne0+5): Use new clobber to generate proper shift pattern.
4262         Patch by Michael Matz <matz@kde.org>.
4263
4264 2002-03-09  Andreas Schwab  <schwab@suse.de>
4265
4266         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4267
4268 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4269
4270         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4271
4272 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4273
4274         PR middle-end/5877
4275         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4276         even for non-representable constants.
4277
4278 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4279
4280         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4281         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4282         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4283         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4284         (pop_function_context): Compute MAY_SHARE parameter for
4285         fixup_var_refs.
4286         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4287         (gen_mem_addressof): Call fixup_var_refs with new parm.
4288
4289         * combine.c (make_extraction): Don't make extension of CONST_INT.
4290
4291 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4292
4293         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4294         in o32 and o64 ABIs.
4295         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4296         but getting fixed-size structs passed in registers regardless of
4297         padding in o32 and o64 ABIs.
4298
4299         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4300         offset before loading address of argument passed by transparent
4301         reference.
4302
4303 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4304
4305         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4306
4307 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4308
4309         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4310         marker such that registers after it are saved.
4311
4312 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4313
4314         * sparc.c (arith_4096_operand): Fix error in last change.
4315
4316 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4317
4318         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4319         defaults for MEABI.
4320
4321 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4322
4323         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4324         vectors.
4325
4326 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4327
4328         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4329
4330 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4331
4332         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4333         removed; fix return value.
4334         * combine.c (combine_instructions): Dirtify blocks where we failed to
4335         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4336         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4337
4338 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4339
4340         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4341
4342 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4343
4344         * recog.c (peephole2_optimize): Re-distribute EH edges.
4345
4346 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4347
4348         * expr.c (expand_expr): Use unsave lang hook.
4349         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4350         (LANG_HOOKS_INITIALIZER): Update.
4351         * langhooks.h (struct lang_hooks): New hook unsave.
4352         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4353         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4354         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4355         (unsave_expr_now): Remove.
4356         * tree.h (unsave_expr_now, lang_unsave,
4357         lang_unsave_expr_now): Remove.
4358         (lhd_unsave): New.
4359
4360 2002-03-08  Andreas Jaeger  <aj@suse.de>
4361
4362         * flow.c (propagate_block_delete_insn): Remove unused variable.
4363
4364 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4365
4366         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4367         insn length for memory load/store.
4368
4369 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4370
4371         * doc/install.texi (--with-libiconv-prefix): Document.
4372
4373 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4374
4375         * doc/sourcebuild.texi: Fix typo.
4376
4377 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4378
4379         PR c/3711
4380         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4381         trees.
4382
4383 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4384
4385         * rtl.c (copy_most_rtx): Move from here ...
4386         * emit-rtl.c (copy_most_rtx): ... to here.
4387
4388 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4389
4390         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4391         SUBTARGET_CPP_SIZE_SPEC.
4392         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4393
4394         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4395
4396 2002-03-07  Matt Hiller  <hiller@redhat.com>
4397
4398         * gensupport.c (first_dir_md_include): Renamed from include;
4399         change all references.
4400         (last_dir_md_include): Renamed from last_include; change all
4401         references.
4402         (init_md_reader): Unconditionally initialize base_dir whether or
4403         not filename is a relative path.
4404
4405 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4406
4407         * config/fp-bit.c (_unord_f2): Compile it in even if
4408         US_SOFTWARE_GOFAST is enabled.
4409
4410         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4411         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4412         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4413         NULL_RTX, try reversing the comparison and the operands.
4414
4415 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4416
4417         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4418         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4419         and MATCH_OP_DUP.
4420
4421 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4422
4423         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4424
4425 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4426
4427         * basic-block.h (fixup_abnormal_edges): Declare.
4428         * reload1.c (fixup_abnormal_edges): New function.
4429         * reg-stack.c (convert_regs): Use it.
4430
4431         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4432
4433         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4434
4435 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4436
4437         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4438         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4439         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4440         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4441         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4442         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4443         unless x and y could be infinite.
4444         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4445         Check that the common type of both arguments is a real, even for
4446         targets without unordered comparisons.  Allow an integer argument
4447         to be compared against a real.
4448         (expand_tree_builtin): Use expand_unordered_cmp.
4449         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4450         * cse.c (fold_rtx): Likewise.  Fix indentation.
4451         * fold-const.c (fold_real_zero_addition_p): New.
4452         (fold): Use it, and the new HONOR_... macros.
4453         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4454         * jump.c (reversed_comparison_code_parts): After searching for
4455         the true comparison mode, use HONOR_NANS to decide whether it
4456         can be safely reversed.
4457         (reverse_condition_maybe_unordered): Remove IEEE check.
4458         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4459         to decide which simplifications are valid.  Allow the following
4460         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4461         and (a - -b) to (a + b).
4462         (simplify_relational_operation): Use HONOR_NANS.
4463         * doc/tm.texi: Document the MODE_HAS_... macros.
4464
4465 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4466
4467         * combine.c (simplify_comparison): If simplifying a logical shift
4468         right and compare with constant, force the comparison to unsigned.
4469
4470 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4471
4472         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4473
4474         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4475         -mabi=no-altivec
4476         (alt_reg_names): Remove % for vrsave.
4477
4478 2002-03-06  Richard Henderson  <rth@redhat.com>
4479
4480         PR optimization/5844
4481         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4482         if used indicates we've already emitted one copy of an operand.
4483         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4484         (gen_split): Supply a non-null used.
4485
4486 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4487
4488         * reload1.c (reload): Unshare all rtl after reload is done.
4489
4490         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4491         but simply fail if the expression is too complex to simplify.
4492         (simplify_gen_binary): Handle simplify_plus_minus failures.
4493
4494 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4495
4496         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4497         consistently call delete_trivially_dead_insns after CSE and GCSE;
4498         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4499         after liveness2; update comment in last crossjumping.
4500         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4501
4502 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4503
4504         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4505         after completing fast dead code elimination.
4506
4507         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4508         COMPARE operator.
4509
4510 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4511
4512         * version.c:  Fix misplaced leading blanks on first line.
4513
4514 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4515
4516         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4517
4518 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4519
4520         * cfgcleanup.c (mentions_nonequal_regs): New function.
4521         (thread_jump): Use it.
4522         * toplev.c (rest_of_compilation): Run jump threading after
4523         liveness.
4524
4525 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4526
4527         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4528         patch.
4529
4530 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4531
4532         * predict.c (estimate_bb_frequencies): Do not reload the
4533         frequencies from notes.
4534
4535 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4536
4537         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4538         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4539
4540         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4541         delete_noop_moves): Return indeger.
4542         * flow.c (ndead): New variable.
4543         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4544         BB argument; update callers.
4545         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4546         (life_analysis): Do not call purge_all_dead_edges.
4547         (update_life_info): Return number of deleted insns; print statistics.
4548         (update_life_info_in_dirty_blocks): likewise.
4549         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4550         return number of insns deleted.
4551
4552         * cse.c: Include timevar.h
4553         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4554         iterate until stabilizes; print statistics; return number of killed
4555         insns.
4556         * Makefile.in: (cse.o): Add timevar.h dependency
4557         * rtl.h (delete_trivially_dead_insns): New.
4558         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4559         * toplev.c (rest_of_compilation): Update callers.
4560
4561         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4562         (try_optimize_cfg): Do not update liveness.
4563         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4564         removal stabilizes; use delete_trivially_dead_insns.
4565
4566         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4567
4568 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4569
4570         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4571         callbacks when processing assembly language.
4572
4573 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4574
4575         * pa.h (ASM_FILE_END): Define.
4576         * som.h (ASM_FILE_END): Delete.
4577
4578         * pa.c (function_arg): Don't pass floats in general registers in
4579         indirect calls if TARGET_ELF32.
4580
4581 2002-03-05  Richard Henderson  <rth@redhat.com>
4582
4583         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4584
4585 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4586
4587         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4588
4589 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4590
4591         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4592         -r command line.  Don't hide any symbols if not building
4593         shared libgcc.
4594
4595 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4596
4597         * cfg.c (dump_flow_info): Warn about profile mismatches.
4598         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4599         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4600
4601 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4602
4603         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4604         wide volatile memory by parts.
4605
4606 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4607
4608         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4609         is NULL.
4610
4611 2002-03-05  Richard Henderson  <rth@redhat.com>
4612
4613         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4614
4615 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4616
4617         * toplev.c (documented_lang_options): Document more
4618         language-specific options.
4619         * doc/invoke.texi (Warning Options): Correct documentation for
4620         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4621         * c-decl.c (c_decode_option): Use a table to handle warning options.
4622
4623 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4624
4625         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4626         parameter to mmix_encode_section_info.
4627         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4628         relocatably.  Always produce ELF, not mmo if linking relocatably.
4629         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4630         first is non-zero, don't add symbol prefix.
4631         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4632         prototype accordingly.
4633
4634 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4635
4636         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4637
4638 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4639
4640         * configure.in: Increase required makeinfo version to 4.1.
4641         * configure: Regenerate.
4642
4643 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4644
4645         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4646         elsewhere now.
4647
4648 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4649
4650         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4651         * doc/invoke.texi: Fix @math uses.
4652
4653 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4654
4655         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4656         removal
4657
4658 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4659
4660         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4661         (powerpc-*-eabisimaltivec*): Same.
4662
4663         * config/rs6000/t-ppcendian: New.
4664
4665 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4666
4667         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4668         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4669         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4670
4671 2002-03-03  Richard Henderson  <rth@redhat.com>
4672
4673         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4674
4675 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4676
4677         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4678         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4679         tree.c, config/m68k/m68k.c:
4680         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4681         REAL_ARITHMETIC blocks unconditional.  Delete some further
4682         #ifdef blocks predicated on REAL_ARITHMETIC.
4683         * flags.h, toplev.c: Delete remaining references to
4684         flag_pretend_float.
4685
4686         * doc/invoke.texi: Remove documentation of -fpretend-float.
4687         * doc/tm.texi: Describe the various REAL_* macros as provided by
4688         real.h, not by the target configuration files.
4689
4690         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4691         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4692         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4693         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4694         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4695         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4696         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4697         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4698         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4699         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4700         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4701         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4702         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4703         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4704         config/xtensa/xtensa.h:
4705         Do not define, undefine, or mention in comments any of
4706         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4707         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4708         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4709         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4710         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4711         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4712         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4713         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4714         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4715
4716 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4717
4718         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4719         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4720         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4721         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4722         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4723         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4724         Delete.
4725         * defaults.h (BITS_PER_WORD): Define.
4726         * doc/tm.texi (BITS_PER_WORD): Document default value.
4727
4728         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4729         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4730         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4731
4732 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4733
4734         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4735         lieu of explicit sizeof/sizeof.
4736         * i386.c (override_options, ix86_init_mmx_sse_builtins,
4737         ix86_expand_builtin): Likewise.
4738         * mips.c (mips_add_gc_roots): Likewise.
4739         * mmix.c (mmix_output_condition): Likewise.
4740         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4741         altivec_init_builtins): Likewise.
4742         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4743         * cppexp.c (Nsuff, parse_number): Likewise.
4744         * cppinit.c (builtin_array_end): Likewise.
4745         * gcc.c (n_default_compilers, process_command): Likewise.
4746         * genpreds.c (output_predicate_decls): Likewise.
4747         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4748         * lcm.c (N_ENTITIES): Likewise.
4749         * stor-layout.c (set_sizetype): Likewise.
4750
4751 2002-03-03  Richard Henderson  <rth@redhat.com>
4752
4753         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4754         for types or labels.
4755
4756 2002-03-03  Richard Henderson  <rth@redhat.com>
4757
4758         * c-decl.c (start_decl): Initialized variables are not common.
4759
4760 2002-03-02  Per Bothner  <per@bothner.com>
4761
4762         * gcc.c (option_map):  Suport new --bootclasspath option.
4763         --CLASSPATH is now just an alias for --classpath.
4764
4765 2002-03-02  Richard Henderson  <rth@redhat.com>
4766
4767         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4768         load if "internal" visibility.
4769         * doc/extend.texi: Document visibility meanings.
4770
4771 2002-03-02  Richard Henderson  <rth@redhat.com>
4772
4773         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4774         to functions as well.
4775
4776 2002-03-02  Richard Henderson  <rth@redhat.com>
4777
4778         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4779         (handle_visibility_attribute): Don't call assemble_visibility.
4780         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4781         without asmspec.  Invoke assemble_alias when needed.
4782         * varasm.c (maybe_assemble_visibility): New.
4783         (assemble_start_function, assemble_variable, assemble_alias): Use it.
4784
4785 2002-03-02  Richard Henderson  <rth@redhat.com>
4786
4787         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4788         invoke ENCODE_SECTION_INFO with first call flag.
4789
4790         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4791         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4792         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4793         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4794         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4795         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4796         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4797         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4798         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4799         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4800         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4801         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4802         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4803         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4804         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4805         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4806         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4807         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4808         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4809         config/sh/sh.h, config/sparc/sparc.h,
4810         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4811         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4812         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4813         FIRST argument.  As needed, examine it and do nothing.
4814
4815         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4816         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4817         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4818
4819         * config/arm/t-pe (pe.o): Add dependencies.
4820
4821 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4822
4823         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4824         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4825         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4826         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4827         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4828         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4829         * defaults.h (BITS_PER_UNIT): Define.
4830         * doc/tm.texi (BITS_PER_UNIT): Document default value.
4831
4832 2002-03-02  Kazu Hirata  <kazu@hxi.com>
4833
4834         * config/h8300/h8300-protos.h: Add a prototype for
4835         compute_a_shift_length.
4836         * config/h8300/h8300.c (h8300_asm_insn_count): New.
4837         (compute_a_shift_length): Likewise.
4838         (h8300_adjust_insn_length): Do not adjust insn length of shift
4839         insns.
4840         * config/h8300/h8300.md (anonymous shift patterns): Use
4841         compute_a_shift_length.
4842
4843 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4844
4845         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4846         trunc_int_for_mode.
4847
4848         * emit-rtl.c (offset_address): Call update_temp_slot_address.
4849
4850 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4851
4852         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4853         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4854         * flags.h (flag_zero_initialized_in_bss): Declare.
4855         * toplev.c (flag_zero_initialized_in_bss): New flag.
4856         (lang_independent_options): Add flag_zero_initialized_in_bss.
4857         * tree.c (initializer_zerop): New function.
4858         * tree.h (initializer_zerop): Declare.
4859         * varasm.c (assemble_variable): If we can emit bss, put zero
4860         initializers in the bss section.
4861
4862 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
4863
4864         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4865         like more than one symbol per .weak directive.
4866
4867 2002-03-01  Richard Henderson  <rth@redhat.com>
4868
4869         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4870         adjust argument_pointer by pretend_args_size.
4871         (ia64_va_start): Adjust va_start address by -pretend_args_size.
4872
4873 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4874
4875         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4876
4877 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
4878
4879         * toplev.c (rest_of_compilation): Delete dead jumptables before
4880         loop.
4881         * flow.c (delete_dead_jumptables): Make global.
4882         * rtl.h (delete_dead_jumptables): Declare.
4883
4884 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
4885
4886         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4887         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4888         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4889
4890 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4891
4892         * config/h8300/h8300-protos.h: Fix formatting.
4893         * config/h8300/h8300.c: Likewise.
4894         * config/h8300/h8300.h: Likewise.
4895
4896 2002-03-01  Kazu Hirata  <kazu@hxi.com>
4897
4898         * config/h8300/h8300.c (print_operand): Support 16-bit
4899         constant addresses.
4900         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4901
4902 2002-02-28  Richard Henderson  <rth@redhat.com>
4903
4904         * expmed.c (store_bit_field): Prevent generation of CONCATs;
4905         pun complex values as integers; use gen_lowpart instead of
4906         gen_rtx_SUBREG.
4907         (extract_bit_field): Likewise.
4908
4909 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
4910             David Edelsohn  <edelsohn@gnu.org>
4911
4912         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4913         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4914         (SUPPORTS_WEAK): Likewise.
4915         * output.h (add_weak): Add tree param.
4916         * varasm.c (add_weak): Likewise.  Save decl.
4917         (struct weak_syms): Add decl field.
4918         (mark_weak_decls): New function.
4919         (init_varasm_once): ggc_add_root mark_weak_decls.
4920         (assemble_start_function): Use ASM_WEAKEN_DECL.
4921         (assemble_variable): Likewise.
4922         (assemble_alias): Likewise.
4923         (declare_weak): Pass decl to add_weak.
4924         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4925         (remove_from_pending_weak_list): Declare and define for
4926         ASM_WEAKEN_DECL.
4927         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4928         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4929         * defaults.h (SUPPORTS_WEAK): Likewise.
4930         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4931         .weak for code sym.  Do emit .size for descriptor sym.
4932         (ASM_DECLARE_FUNCTION_SIZE): Define.
4933         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4934         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4935         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4936         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4937         .weak for code sym.
4938         (HANDLE_PRAGMA_WEAK): Remove.
4939         (ASM_WEAKEN_LABEL): Remove.
4940         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4941
4942 2002-03-01  Jason Merrill  <jason@redhat.com>
4943
4944         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4945         (TARGET_EXPR_CLEANUP): New macro.
4946
4947 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
4948
4949         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4950         to take ptr_extend into account as third type of extension.
4951         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4952         fields used by SUBREG_PROMOTED_UNSIGNED_P.
4953         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4954         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4955         * calls.c (precompute_arguments): Use new macro.
4956         (expand_call): Ditto.
4957         * combine.c (nonzero_bits): Ditto.
4958         (record_promoted_value): Ditto.
4959         * expr.c (store_expr): Ditto.
4960         (expand_expr): Ditto.
4961         * function.c (assign_parms): Ditto.
4962
4963 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
4964
4965         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4966         override -shared and -shared-libgcc.
4967
4968 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
4969
4970         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4971         of "ultrasparc".
4972         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
4973         to be broken.
4974
4975 2002-02-28  Richard Henderson  <rth@redhat.com>
4976
4977         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4978         4 cycle latency from MM producers.
4979         (ia64_internal_sched_reorder): Likewise with pipeline flush.
4980
4981 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4982
4983         * mklibgcc.in: Don't use GNU make extension.
4984
4985 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4986
4987         * c-parse.in (STATIC): New terminal.
4988         (scspec): New non-terminal.  Update productions accordingly.
4989         (program): Remove bogus ifc / end ifc.
4990         (array_declarator): Simplify production using STATIC.
4991
4992 2002-02-28  Jim Meyering  <meyering@lucent.com>
4993
4994         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4995         \a still means TARGET_BELL.
4996
4997 2002-02-28  Richard Henderson  <rth@redhat.com>
4998
4999         * haifa-sched.c (sched_emit_insn): New.
5000         (schedule_block): Use last_scheduled_insn to track last insn.
5001         * sched-int.h (sched_emit_insn): Prototype.
5002         * config/ia64/ia64.c (last_issued): Remove.
5003         (ia64_variable_issue): Don't set it.
5004         (nop_cycles_until): Use sched_emit_insn.
5005
5006 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
5007
5008         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5009         extended constants.
5010
5011 2002-02-28  Kazu Hirata  <kazu@hxi.com>
5012
5013         * config/h8300/h8300.c: Fix formatting.
5014         * config/h8300/h8300.h: Likewise.
5015
5016 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5017
5018         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5019         which may overwrite the high byte of the frame pointer.
5020
5021 2002-02-28  Bo Thorsen  <bo@suse.de>
5022
5023         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5024         (STARTFILE_SPEC): Add 64 bit files.
5025         (ENDFILE_SPEC): Likewise.
5026
5027 2002-02-28  Jason Merrill  <jason@redhat.com>
5028
5029         * c-decl.c (finish_function): Only warn about missing return
5030         statement with -Wreturn-type.
5031
5032 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5033
5034         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5035
5036         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5037         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5038
5039 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5040
5041         * basic-block.h (BB_REACHABLE): Renumber.
5042         (BB_DIRTY, BB_NEW): New flags.
5043         (clear_bb_flags): Declare.
5044         (update_life_info_in_dirty_blocks): Declare.
5045         * cfg.c (clear_bb_flags): New function.
5046         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5047         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5048         reorder_insns, emit_insn_after): Mark block as dirty.
5049         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5050         (update_life_info_in_dirty_blocks): New function.
5051         * recog.c (apply_change_group): Dirtify block.
5052
5053         * cse.c (cse_insn): Reorder emitting of jump insn to keep
5054         cfg consistent.
5055         * gcse.c (delete_null_pointer_checks): Likewise.
5056
5057         * toplev.c (dump_file_index): Move cse2 after bp,
5058         add DFI_null
5059         (dump_file_info): Similary.
5060         (rest_of_compilation): Avoid most of CFG rebuilds;
5061         do first if converision after null pointer checks, do cse2
5062         after branch prediction; avoid full liveness rebuild after
5063         initializing subregs.
5064         * invoke.texi (-d options): Document -du, renumber.
5065
5066         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5067         (notice_new_block): Do not set BB_UPDATE_LIFE.
5068         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5069          merge_blocks_move_successor_nojumps, merge_blocks,
5070          try_crossjump_to_edge): Likewise.
5071         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5072         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5073         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5074         (merge_of_block): Do not use life_data_ok.
5075         (find_if_case_1): Do not use SET_UPDATE_LIFE.
5076         (if_convert): Use BB_DIRTY mechanizm to update life.
5077         * lcm.c (optimize_mode_switching): Update
5078         update_life_info_in_dirty_blocks
5079
5080 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5081
5082         * Makefile.in (integrate.o): Update.
5083         * c-decl.c (copy_lang_decl): Rename.
5084         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5085         * integrate.c: Include langhooks.h.
5086         (copy_decl_for_inlining): Update to use langhook.
5087         * langhooks-def.h (lhd_do_nothing_t,
5088         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5089         (LANG_HOOKS_INITIALIZER): Update.
5090         * langhooks.c (lhd_do_nothing_t): New.
5091         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5092         * tree.h (copy_lang_decl): Remove.
5093 objc:
5094         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5095
5096 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
5097
5098         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5099         POST_DEC, and POST_MODIFY.
5100
5101 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5102
5103         * c-typeck.c (digest_init): Remove unused parameter; all
5104         callers changed.
5105
5106 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
5107
5108         * expmed.c (expand_shift): Correctly test for low part of a
5109         subreg.
5110
5111 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
5112
5113         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5114         insn UIDs with insn addresses.
5115
5116 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5117
5118         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5119         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5120         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5121         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5122         gcc.c, toplev.c: Delete code implementing -traditional mode.
5123
5124         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5125         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5126         Document removal of -traditional mode for compilation, and
5127         remove documentation only relevant to that mode.
5128
5129         * config/nextstep.h, config/ptx4.h, config/svr4.h,
5130         config/convex/convex.h, config/d30v/d30v.h,
5131         config/i386/dgux.h, config/i386/osf1elf.h,
5132         config/i386/osfelf.h, config/i386/osfrose.h,
5133         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5134         config/m68k/hp310.h, config/m88k/dgux.h,
5135         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5136         config/m88k/m88k.h, config/m88k/openbsd.h,
5137         config/mips/abi64.h, config/mips/osfrose.h,
5138         config/mips/svr4-5.h, config/mips/svr4-t.h,
5139         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5140         config/stormy16/stormy16.h: Remove all references to
5141         -traditional from target specs.  Delete all mention of the
5142         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
5143         delete a couple of commented-out definitions of
5144         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5145         to -traditional.
5146
5147         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5148         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5149
5150 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5151
5152         * mklibgcc.in: Don't use \n in a line subject to
5153         interpretation by echo.
5154
5155 2002-02-27  Graham Stott  <grahams@redhat.com>
5156
5157         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5158         Constify NAME.
5159
5160         * loop.c (prescan_loop): Handle PARALLEL.
5161
5162         * unroll.c (loop_iterations): Return 0 if the add_val for
5163         a BIV is REG.
5164
5165         * final.c (output_operand_lossage): Constify PFX_STR.
5166
5167         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5168
5169 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5170
5171         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5172         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5173
5174 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5175
5176         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5177
5178 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5179
5180         * cpplex.c (_cpp_lex_token): Handle directives in macro
5181         arguments.
5182         * cpplib.c (_cpp_handle_directive): Save and restore state
5183         if parsing macro args when entering a directive.
5184         * cppmacro.c (collect_args): No need to handle directives
5185         in macro arguments.
5186         (enter_macro_context, replace_args): Use the original macro
5187         definition in case it was redefined whilst collecting arguments.
5188 doc:
5189         * cpp.texi: Update.
5190
5191 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5192
5193         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5194         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5195         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5196         method on AIX.
5197         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5198         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5199         (load_toc_v4_PIC_2): Same.
5200
5201 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5202
5203         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5204
5205 2002-02-26  Richard Henderson  <rth@redhat.com>
5206
5207         * config/alpha/alpha.md (ashldi_se): Re-enable.
5208
5209 2002-02-26  Richard Henderson  <rth@redhat.com>
5210
5211         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5212         MODULE_LOCAL_P; improve commentary.
5213
5214 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5215
5216         * doc/cpp.texi: Clarify documentation of relationship between
5217         #line and #include.
5218
5219 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5220
5221         * config/h8300/h8300-protos.h: Update the prototype for
5222         compute_logical_op_length.  Add the prototype for
5223         compute_logical_op_cc.
5224         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5225         code from operands.
5226         (compute_logical_op_cc): New.
5227         * config/h8300/h8300.md: Combine all the logical op patterns
5228         in HImode and SImode.  Use compute_logical_op_cc.
5229
5230 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5231
5232         * config/i386/i386.c (print_operand): Don't append ATT-style
5233         length suffixs to x87 opcodes when in Intel mode.
5234
5235 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5236
5237         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5238         (init_emit_once): Update calls.
5239         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5240         (init_syntax_once): Prototype.
5241
5242 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5243
5244         * pa-linux.h (LIB_SPEC): Update definition.
5245         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5246
5247 2002-02-26  Richard Henderson  <rth@redhat.com>
5248
5249         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5250         if we emitted a stop bit.
5251
5252 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5253
5254         * configure.in (libgcc_visibility): Substitute.
5255         * configure: Rebuilt.
5256         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5257         defined symbols .hidden.
5258
5259 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5260
5261         * attribs.c (c_common_attribute_table): Add visibility.
5262         (handle_visibility_attribute): New function.
5263         * varasm.c (assemble_visibility): New function.
5264         * output.h (assemble_visibility): Add prototype.
5265         * tree.h (MODULE_LOCAL_P): Define.
5266         * crtstuff.c (__dso_handle): Use visibility attribute.
5267         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5268         for MODULE_LOCAL_P symbols too.
5269         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5270         MODULE_LOCAL_P symbols the same way as local symbols.
5271         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5272         into .sdata/.sbss by the user.
5273         * doc/extend.texi (Function Attributes): Document visibility
5274         attribute.
5275
5276 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5277
5278         PR debug/5770
5279         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5280         STRING_CST initializer spanning the whole variable without
5281         embedded zeros.
5282         If expand_expr returned MEM, don't use it.
5283
5284 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5285
5286         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5287         generate a die for the lexical block.
5288
5289 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5290
5291         * config/h8300/h8300-protos.h: Add a prototype for
5292         compute_logical_op_length.
5293         * config/h8300/h8300.c (compute_logical_op_length): New.
5294         * config/h8300/h8300.md (anonymous logical patterns): Use
5295         compute_logical_op_length for length.
5296
5297 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5298
5299         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5300         for vectors.
5301         (gen_type_die): Same.
5302
5303         * attribs.c (handle_vector_size_attribute): Set debug information.
5304
5305 2002-02-26  Daniel Egger  <degger@fhm.edu>
5306
5307         * config/rs6000/rs6000.md: Swap define_insn attributes to
5308         fix incorrect generation of merge high instructions instead
5309         of merge low.
5310
5311 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5312
5313         * c-typeck.c (really_start_incremental_init): Use
5314         bitsize_zero_node for vectors.
5315
5316 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5317
5318         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5319         ("*set_vrsave_internal"): Same.
5320
5321 2002-02-25  Richard Henderson  <rth@redhat.com>
5322
5323         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5324         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5325
5326 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5327
5328         PR target/5755
5329         * config/i386/i386.c (ix86_return_pops_args): Only pop
5330         fake structure return argument if it was passed on the stack.
5331
5332 2002-02-25  Jason Merrill  <jason@redhat.com>
5333
5334         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5335         RESULT_DECL.
5336
5337 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5338
5339         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5340         link with shared_name only.
5341         * doc/invoke.texi (Link Options): Document new behavior.
5342
5343 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5344
5345         * c-typeck.c (push_init_level): Handle vectors.
5346
5347 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5348
5349         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5350         operands of SPARC_SETHI_P.
5351         (input_operand): Likewise.
5352         (sparc_emit_set_const32): Likewise.
5353         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5354         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5355         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5356         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5357         (movdi_insn_sp64_vis): Likewise.
5358         (movdi split, movdf split): Use SETHI32.
5359         * doc/md.texi: Document SPARC constraints L, M and N.
5360
5361 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5362
5363         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5364         ("*set_vrsave_internal"): use mfspr for Darwin.
5365
5366         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5367         gen_get_vrsave_internal.
5368
5369 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5370
5371         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5372
5373 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5374
5375         * cpplex.c (cpp_interpret_charconst): Get signedness or
5376         otherwise of wide character constants correct.
5377         * cppexp.c (lex): Get signedness of wide charconsts correct.
5378
5379 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5380
5381         * optabs.c (widen_operand): Only call convert_modes for
5382         promoted SUBREG if signedness matches.
5383         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5384
5385 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5386
5387         * cpplib.c (glue_header_name): Use local buffer to build up
5388         header name.
5389
5390 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5391
5392         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5393
5394 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5395
5396         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5397         H8/300[HS] separately.
5398         * config/h8300/h8300.md: Remove the early clobber constraint
5399         from bit field patterns.
5400
5401 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5402
5403         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5404         register_operand.
5405         (mulhisi3): Likewise.
5406         (umulqisi3): Likewise.
5407         (umulhisi3): Likewise.
5408
5409 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5410
5411         * cppinit.c (output_deps): Correct test for stdout output.
5412         (init_dependency_output): Cure warning.
5413
5414 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5415
5416         * expr.c (store_expr): When converting expression to promoted
5417         equivalent type, allow using SUBREG_REG of TARGET as the target
5418         of the expansion of EXP.
5419         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5420         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5421         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5422         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5423         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5424
5425 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5426
5427         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5428         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5429         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5430
5431 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5432
5433         PR optimization/5747
5434         * loop.c (scan_loop): Update reg info if move_movables created new
5435         pseudos.
5436
5437 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5438
5439         * gcc.c (init_gcc_spec): Revert last change.
5440
5441 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5442
5443         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5444         gpc_reg_operand constraint.
5445
5446 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5447
5448         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5449         Simplify comparison of `low'.
5450         (add_operand): Fix formatting.
5451         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5452         (mask_operand): Disallow mask to wrap in 64-bit mode.
5453         (rs6000_stack_info): Remove redundant test setting push_p.
5454         (output_toc): Fix formatting.
5455         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5456         cc_reg_not_cr0_operand constraint.
5457         (booldi3, boolcdi3 splitters): Same.
5458
5459 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5460
5461         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5462
5463 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5464
5465         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5466         gcc invoked with -shared-libgcc.
5467
5468 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5469
5470         PR c++/5748
5471         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5472         decl if any of elements was TREE_USED.
5473
5474 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5475
5476         * config/sparc/sol2.h: Don't include sys/mman.h.
5477         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5478         (arith_4096_operand): Don't throw high bits away.
5479         (const64_operand): Take sign extension of CONST_INTs into account.
5480         (const64_high_operand, sparc_emit_set_const32): Likewise.
5481         (GEN_HIGHINT64): Likewise.
5482         (sparc_emit_set_const64_quick1): Likewise.
5483         (const64_is_2insns): Likewise.
5484         (print_operand): Use trunc_int_for_mode for sign extension.
5485         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5486         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5487         chars.  Assume CONST_INT is already properly sign-extended.
5488         (movdi split): Sign-extend each SImode part.
5489         (andsi3 split): Don't mask high bits off, so that result
5490         remains properly sign-extend.
5491         (iorsi3 split): Likewise.
5492         (xorsi3 split): Likewise.
5493
5494 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5495
5496         * fold-const.c (fold): Fix typo in comments.
5497
5498 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5499
5500         * Makefile.in (langhooks.o): Update dependencies.
5501
5502 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5503
5504         * langhooks.c: Include flags.h.
5505
5506 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5507
5508         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5509
5510         * c-common.c (c_common_post_options): Set inline trees by
5511         default.
5512
5513         * doc/extend.texi (Function Attributes): Document always_inline
5514         attribute.
5515         Update documentation about inlining when not optimizing.
5516
5517         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5518
5519         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5520         unless DECL_ALWAYS_INLINE.
5521
5522         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5523         unless DECL_ALWAYS_INLINE.
5524         (c_disregard_inline_limits): Disregard if always_inline set.
5525
5526         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5527         Disregard if always_inline set.
5528         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5529         unless DECL_ALWAYS_INLINE.
5530
5531         * attribs.c (handle_always_inline_attribute): New.
5532         (c_common_attribute_table): Add always_inline.
5533
5534         * config/rs6000/altivec.h: Add prototypes for builtins
5535         requiring the always_inline attribute.
5536
5537 2002-02-21  Eric Christopher  <echristo@redhat.com>
5538
5539         * expmed.c (store_bit_field): Try to simplify the subreg
5540         before generating a new one when when the mode size of
5541         value is less than maxmode.
5542
5543 2002-02-21  Richard Henderson  <rth@redhat.com>
5544
5545         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5546         than gen_rtx_PLUS to form the sum.
5547         * explow.c (force_reg): Rearrange to not allocate new pseudo
5548         when force_operand returns a register.
5549         * expr.c (expand_assignment): Allow offset_rtx expansion to
5550         return a sum.  Do not force addresses into registers.
5551         (expand_expr): Likewise.
5552         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5553         to canonicalize arithmetic that didn't simpify.
5554         (simplify_plus_minus): New argument force; update
5555         all callers.  Don't split CONST unless we can do something with it,
5556         and wouldn't lose the constness of the operands.
5557
5558         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5559         that we generated earlier.
5560
5561 2002-02-21  Tom Tromey  <tromey@redhat.com>
5562
5563         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5564         (output_line_info): Use constant `1', with a long explanatory
5565         comment.
5566         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5567
5568 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5569
5570         * jump.c (redirect_jump): If old label has no UID, don't try to
5571         delete it.
5572
5573 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5574
5575         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5576         If input is constant, do shifts at compile time.
5577
5578 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5579
5580         * doc/extend.texi: Fix some more overfull hboxes.
5581
5582 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5583
5584         PR optimization/4994
5585         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5586         register moves.
5587
5588 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5589
5590         PR c++/4574
5591         * expr.h (expand_and): Add mode argument.
5592         * expmed.c (expand_and): Add mode argument.
5593         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5594         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5595         * except.c (expand_builtin_extract_return_addr): Likewise.
5596         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5597         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5598         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5599         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5600         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5601         gen_rtx (CONST_INT, VOIDmode, x).
5602
5603 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5604
5605         PR c/4697:
5606         * stmt.c (warn_if_unused_value): Move side effects test once more.
5607
5608 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5609
5610         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5611         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5612
5613 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5614
5615         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5616         SUBREG or ZERO_EXTEND.
5617
5618 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5619
5620         * sh.h (current_function_anonymous_args): Remove.
5621         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5622         of current_function_varargs and current_function_stdarg is set.
5623         * sh.c (sh_expand_prologue): Check current_function_varargs /
5624         current_function_stdarg / TARGET_SH5 instead of
5625         current_function_anonymous_args.
5626
5627         * sh64.h (TARGET_VERSION): Define.
5628
5629 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5630
5631         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5632         VRSAVE_REGNO on TARGET_ALTIVEC.
5633
5634 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5635
5636         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5637         bits of SImode const_int.
5638         (includes_rshift_p): Likewise.
5639         (print_operand): Call mask_operand and mask64_operand with correct
5640         mode.
5641         (rs6000_output_function_epilogue): Pad traceback table to word.
5642         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5643         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5644         mask64_operand with correct mode.
5645         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5646
5647 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5648
5649         PR debug/4461
5650         * varasm.c (get_pool_constant_mark): New.
5651         * rtl.h (get_pool_constant_mark): Add prototype.
5652         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5653         be represented if it has not been output.
5654
5655 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5656
5657         * combine.c (do_SUBST): Sanity check substitutions of
5658         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5659         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5660         CONST_INT into its operand.
5661         (known_cond): Likewise, for ZERO_EXTEND.
5662         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5663         allow for simplification of wide modes.  Reject CONST_INTs in
5664         ZERO_EXTEND when their actual mode is not given.
5665
5666 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5667
5668         * c-decl.c (pushdecl): If no global declaration is found for an
5669         extern declaration in block scope, try a limbo one.
5670
5671 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5672
5673         PR c++/4401
5674         * c-common.c (pointer_int_sum): Moved from...
5675         * c-typeck.c (pointer_int_sum): ...here.
5676         * c-common.h (pointer_int_sum): Add prototype.
5677
5678 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5679
5680         PR c++/5713
5681         * c-decl.c (duplicate_decls): Return 0 if issued error about
5682         redeclaration.
5683
5684 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5685             Jakub Jelinek  <jakub@redhat.com>
5686
5687         PR c/4389
5688         * tree.c (host_integerp): Ensure that the constant integer is
5689         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5690         when pos is zero or non-zero respectively.  Clarify comment.
5691         * c-format.c (check_format_info_recurse): Fix host_integerp
5692         usage; the pos argument should be zero when assigning to a
5693         signed HOST_WIDE_INT.
5694
5695 2002-02-20  Richard Henderson  <rth@redhat.com>
5696
5697         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5698         of the operand, rather than assuming TImode.
5699         (ix86_expand_binop_builtin): Cope with commutative patterns
5700         using nonimmediate_operand for both operands.
5701         (ix86_expand_timode_binop_builtin): Likewise.
5702         (ix86_expand_store_builtin): Validate operand 1.
5703         (ix86_expand_unop1_builtin): Likewise.
5704
5705 2002-02-20  Philip Blundell  <philb@gnu.org>
5706
5707         PR 5705
5708         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5709
5710 2002-02-20  Richard Henderson  <rth@redhat.com>
5711
5712         PR c/5615
5713         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5714
5715 2002-02-20  Tom Tromey  <tromey@redhat.com>
5716
5717         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5718         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5719         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5720         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5721         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5722         unconditionally.
5723
5724 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5725
5726         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5727           for (const_int 0) in X not just INTVAL.
5728
5729 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5730
5731         * doc/extend.texi: Avoid or reduce overfull hboxes.
5732
5733 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5734
5735         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5736         operations if the field does not start at a mode boundary.
5737
5738 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5739
5740         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5741         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5742         Also done for -Acpu and -Amachine.
5743
5744 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5745
5746         * cppinit.c (init_dependency_output): Take deps output file
5747         from -o if none given with -MF.  Suppress normal output.
5748         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5749         * doc/cpp.texi, doc/invoke.texi: Update.
5750
5751 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5752
5753         * toplev.c (output_quoted_string): Write unprintable
5754         characters with octal escapes.
5755
5756 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5757
5758         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5759         really_call_used[VRSAVE_REGNO] if not Altivec.
5760
5761 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5762
5763         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5764         MODE_MASK.
5765         (constant_pool_expr_1): Fix formatting.
5766         (rs6000_legitimize_reload_address): Likewise.
5767
5768 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5769
5770         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5771         now that we have one.
5772
5773 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5774
5775         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5776         end of first block of bitfields (which was only seven bits);
5777         rename dummy to unused_1; remove comment which is no longer true.
5778
5779 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5780
5781         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5782
5783 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5784
5785         PR 5399
5786         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5787         if generating PIC.
5788
5789         PR 5054
5790         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5791         arm_is_longcall_p rather than inspecting call-type cookie
5792         directly.
5793         (call_value_insn) [TARGET_THUMB]: Likewise.
5794
5795 2002-02-19  Graham Stott  <grahams@redhat.com>
5796
5797         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5798
5799 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5800
5801         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5802         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5803         (FP_SAVE_INLINE): Delete.
5804
5805         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5806         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5807         * config/rs6000/t-ppccomm: Build crtsavres.o.
5808         * config/rs6000/crtsavres.asm: New file.
5809
5810 2002-02-19  Philip Blundell  <philb@gnu.org>
5811
5812         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5813         functions.
5814         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5815         (output_return_instruction): Allow interrupt functions to return with
5816         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5817         (arm_expand_prologue): Subtract 4 before stacking LR in an
5818         interrupt function.
5819
5820 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5821
5822         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5823         decl, not just FUNCTION_DECL.
5824         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5825         (arm_assemble_integer): Likewise.
5826         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5827         marked local.
5828
5829 2002-02-19  matthew green  <mrg@eterna.com.au>
5830
5831         * config.gcc (sparc-*-netbsdelf*): Enable target.
5832         (sparc64-*-netbsd*): New target.
5833         * config/sparc/netbsd-elf.h: New file.
5834         * config/sparc/t-netbsd64: New file.
5835
5836 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5837
5838         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5839
5840 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5841
5842         * doc/invoke.texi: explicitly list the style guidelines that
5843         -Weffc++ checks for.
5844
5845 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5846
5847         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5848
5849 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5850
5851         PR other/5718
5852         * gcc.c (cpp_unique_options): Treat -o as indicating object file
5853         only if not -E.  If -E, pass -o through to the preprocessor.
5854
5855 2002-02-19  Kazu Hirata  <kazu@hxi.com>
5856
5857         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5858         register number with an appropriate macro.
5859
5860 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5861
5862         * doc/rtl.texi (Constants): Close @code tag.
5863
5864 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
5865
5866         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5867         ("mmx_uavgv4hi3"): Same.
5868         ("pmulhrwv4hi3"): Same.
5869
5870         * tree-inline.c (walk_tree): Handle vectors.
5871
5872         * c-common.c (constant_expression_warning): Handle vectors.
5873         (overflow_warning): Same.
5874
5875         * sched-deps.c (sched_analyze_2): Handle vectors.
5876
5877         * rtlanal.c (rtx_unstable_p): Handle vectors.
5878         (rtx_varies_p): Same.
5879         (count_occurrences): Same.
5880         (regs_set_between_p): Same.
5881         (modified_between_p): Same.
5882         (modified_in_p): Same.
5883         (volatile_insn_p): Same.
5884         (volatile_refs_p): Same.
5885         (side_effects_p): Same.
5886         (may_trap_p): Same.
5887         (inequality_comparisons_p): Same.
5888         (replace_regs): Same.
5889         (computed_jump_p_1): Same.
5890
5891         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5892         argument.
5893         (inner_mode_array): New.
5894         (copy_rtx): Handle vectors.
5895         (copy_most_rtx): Same.
5896         (rtx_equal_p): Same.
5897         (get_mode_alignment): Adjust for vectors.
5898
5899         * resource.c (mark_referenced_resources): Handle vectors.
5900         (mark_set_resources): Same.
5901
5902         * reload1.c (eliminate_regs): Handle vectors.
5903         (elimination_effects): Same.
5904         (scan_paradoxical_subregs): Same.
5905
5906         * reload.c (subst_reg_equivs): Handle vectors.
5907
5908         * regrename.c (scan_rtx): Handle vectors.
5909
5910         * regclass.c (reg_scan_mark_refs): Handle vectors.
5911
5912         * recog.c (find_single_use_1): Handle vectors.
5913
5914         * local-alloc.c (equiv_init_varies_p): Handle vectors.
5915         (contains_replace_regs): Same.
5916         (memref_referenced_p): Same.
5917
5918         * integrate.c (copy_rtx_and_substitute): Handle vectors.
5919         (subst_constants): Same.
5920
5921         * genattrtab.c (attr_copy_rtx): Handle vectors.
5922         (encode_units_mask): Same.
5923         (clear_struct_flag): Same.
5924         (count_sub_rtxs): Same.
5925
5926         * gcse.c (want_to_gcse_p): Handle vectors.
5927         (oprs_unchanged_p): Same.
5928         (hash_expr_1): Same.
5929         (oprs_not_set_p): Same.
5930         (expr_killed_p): Same.
5931         (compute_transp): Same.
5932         (store_ops_ok): Same.
5933
5934         * function.c (purge_addressof_1): Do not allow paradoxical subregs
5935         of vectors.
5936         (fixup_var_refs_1): Same.
5937         (instantiate_virtual_regs_1): Same.
5938
5939         * fold-const.c (operand_equal_p): Handle vectors.
5940         (fold): Same.
5941         (rtl_expr_nonnegative_p): Same.
5942
5943         * flow.c (mark_used_regs): Handle vectors.
5944
5945         * df.c (df_uses_record): Handle vectors.
5946
5947         * cselib.c (cselib_subst_to_values): Handle vectors.
5948         (cselib_mem_conflict_p): Same.
5949         (hash_rtx): Same.
5950
5951         * cse.c (canon_reg): Handle vectors.
5952         (fold_rt): Same.
5953         (cse_process_notes): Same.
5954         (count_reg_usage): Same.
5955         (canon_hash): Same.
5956
5957         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5958
5959         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5960
5961         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5962         (gen_rtx): Handle CONST_VECTOR.
5963         (gen_const_vector_0): New.
5964         (copy_rtx_if_shared): CONST_VECTORs can be shared.
5965         (reset_used_flags): Same.
5966         (copy_insn_1): Same.
5967         (initializer_constant_valid_p): Handle VECTOR_CST.
5968
5969         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5970
5971         * doc/rtl.texi (Constants): Document const_vector.
5972         (CONST0_RTX): Update for vectors.
5973         (RTL sharing): Same.
5974
5975         * print-tree.c (print_node): Add case for VECTOR_CST.
5976
5977         * tree.h (TREE_VECTOR_CST_ELTS): New.
5978         (struct tree_vector): New.
5979         (union tree_node): Add vector node.
5980         (build_vector): Add prototype.
5981
5982         * tree.def (VECTOR_CST): New.
5983
5984         * tree.c (build_vector): New.
5985
5986         * expmed.c (make_tree): Handle CONST_VECTOR.
5987
5988         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5989         (CONST_VECTOR_ELT): New.
5990         (CONST_VECTOR_NUNITS): New.
5991
5992         * machmode.h (GET_MODE_INNER): New.
5993         (DEF_MACHMODE): Accept 8th arg.
5994
5995         * machmode.def: Add 8th argument for vector inner mode.
5996         Add inner vector modes for vectors.
5997
5998         * rtl.def (VEC_CONST): Remove.
5999         (CONST_VECTOR): New.
6000
6001         * expr.c (clear_storage): Allow vectors.
6002         (is_zeros_p): Handle VECTOR_CST.
6003
6004         * varasm.c (output_constant_pool): Handle vectors.
6005         (rtx_const): Add veclo and vechi fields.
6006         (kind): Add RTX_VECTOR.
6007         (decode_rtx_const): Add case for vector.
6008
6009         * config/rs6000/rs6000-protos.h: Add zero_constant.
6010
6011         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6012         constants.  Force easy vector constants into memory.
6013         (easy_vector_constant): New.
6014         (emit_easy_vector_constant): New.
6015         (rs6000_legitimize_reload_address): Do not generate bad reloads on
6016         darwin.
6017
6018         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6019         instruction does.
6020         ("altivec_lvxl"): Same.
6021         (altivec_lvebx): Same.
6022         (altivec_lvehx): Same.
6023         (altivec_lvewx): Same.
6024         ("*movv4si_const0"): New.
6025         ("*movv4sf_const0"): New.
6026         ("*movv8hi_const0"): New.
6027         ("*movv16qi_const0"): New.
6028
6029 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6030
6031         * config/h8300/h8300.c (notice_update_cc): Use
6032         cc_status.value2.
6033
6034 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6035
6036         * config/h8300/h8300.md (divmod patterns): Change the
6037         constraints for operands[1] to register_operand.
6038
6039 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6040
6041         * config/h8300/h8300-protos.h: Remove the prototype for
6042         p_operand.
6043         * config/h8300/h8300.c (p_operand): Remove.
6044         * config/h8300/h8300.md: Replace p_operand with
6045         const_int_operand.
6046
6047 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6048
6049         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6050         comment.
6051         (output_return_instruction): Allow use of LDR to unstack
6052         return addresss even for interrupt handlers or when
6053         interworking.  If compiling for ARMv5, use interworking-safe
6054         return instructions by default.  Remove duplicated code and
6055         lengthy "strcat" sequences.
6056
6057 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6058
6059         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6060         (LINK_EH_SPEC): Define.
6061         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6062
6063 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
6064
6065         * config/s390/s390.c (s390_emit_prologue): Do not set the
6066         frame_related flag for call-clobbered registers.
6067
6068 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6069
6070         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6071         (construct_container): Fix handling of SSE operands.
6072         (ix86_expand_builtin): Fix handling of 64bit pointers.
6073         (mmx_maskmovq_rex): New pattern.
6074
6075 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
6076
6077         * regrename.c (kill_set_value): Handle subregs properly.
6078
6079 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
6080
6081         * objc/objc-act.c (handle_impent): Remove leading '*'
6082         from objc_class_name.
6083
6084 2002-02-17  Richard Henderson  <rth@redhat.com>
6085
6086         * config/alpha/alpha.c (some_small_symbolic_operand,
6087         some_small_symbolic_operand_1, split_small_symbolic_operand,
6088         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6089         Handle small SYMBOL_REFs anywhere, not just inside memories.
6090         * config/alpha/alpha-protos.h: Update.
6091         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6092         * config/alpha/alpha.md (small symbolic operand splitter): Update.
6093
6094 2002-02-17  Roland McGrath  <roland@frob.com>
6095
6096         * config.gcc (powerpc-*-gnu-gnualtivec*,
6097         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6098         * config/rs6000/gnu.h: New file.
6099         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6100         Grok "gnu" in rs6000_abi_name.
6101         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6102         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6103         Grok -mcall-gnu analogous to -mcall-linux et al.
6104         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6105         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6106         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6107
6108 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
6109
6110         PR c/3444:
6111         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6112         shortening.
6113
6114 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6115
6116         * config/cris/cris.h: Undefine STARTFILE_SPEC and
6117         ENDFILE_SPEC before (re)defining them.
6118
6119 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6120
6121         * config/h8300/h8300.c: Fix formatting.
6122         * config/h8300/h8300.h: Likewise.
6123
6124 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6125
6126         * doc/tm.texi: Explain why empty strings should not be
6127         marked for translation.
6128
6129 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6130
6131         * final.c (output_operand_lossage): Changed to accept
6132         printf style arguments. Change calls where necessary.
6133         * output.h (output_operand_lossage): Change declaration
6134         accordingly. Update copyright.
6135         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6136         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6137         Update copyright date where necessary.
6138
6139         * config/i386/i386.c (print_operand): Likewise. Remove use of
6140         sprintf.
6141
6142         * config/cris/cris.c (cris_operand_lossage): Likewise.
6143         Rename parameter so that exgettext recognizes it as
6144         translatable message.
6145         (LOSE_AND_RETURN): Rename parameter to msgid.
6146
6147 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6148
6149         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6150         hard coded register number with an appropriate macro.
6151         (HARD_REGNO_MODE_OK): Likewise.
6152         (ARG_POINTER_REGNUM): Likewise.
6153         (STATIC_CHAIN_REGNUM): Likewise.
6154         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6155         * config/h8300/h8300.md (define_constants): Define more
6156         register numbers.
6157
6158 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6159
6160         * config/i386/i386.h: Don't mark empty strings for translation.
6161
6162 2002-02-16  H.J. Lu <hjl@gnu.org>
6163
6164         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6165
6166 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6167
6168         * cppinit.c (merge_include_chains): Check for brack being
6169         NULL before attempting to merge it with qtail.
6170
6171 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6172
6173         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6174         DBX_DEBUG.
6175
6176 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6177
6178         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6179
6180 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6181
6182         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6183         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6184         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6185
6186 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6187
6188         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6189         now only if !TARGET_FIX.
6190         (*movsi_nt_vms_fix): New pattern.
6191
6192 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6193
6194         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6195         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6196         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6197         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6198         (alpha_start_function, alpha_expand_epilogue): Likewise.
6199         (unicosmk_gen_dsib): Likewise.
6200
6201 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6202
6203         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6204
6205 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6206
6207         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6208         check_and_change_labels, s390_final_chunkify): Delete.
6209         (s390_split_branches, s390_chunkify_pool): New functions.
6210         (s390_function_prologue): Call them.
6211
6212         * config/s390/s390.h (S390_REL_MAX): Delete.
6213         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6214
6215         * config/s390/s390.md (cjump, icjump, jump): Fix length
6216         attribute calculation.
6217
6218
6219 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6220
6221         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6222         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6223
6224 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6225
6226         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6227         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6228         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6229
6230 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6231
6232         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6233
6234 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6235
6236         * reload.c (find_dummy_reload): Check that an output register
6237         is valid for its mode.
6238
6239 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6240
6241         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6242         to simplify it.
6243
6244         * function.c (assign_parms): Demote promoted argument passed by
6245         transparent reference.
6246
6247 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6248
6249         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6250         -Acpu() and -Amachine() to eliminate warnings.
6251
6252 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6253
6254         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6255
6256 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6257
6258         * config/h8300/h8300-protos.h: Update the prototype for
6259         const_costs.
6260         * config/h8300/h8300.c (const_costs): Treat SET as a little
6261         more expensive operation.
6262         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6263         reference to const_costs.
6264
6265 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6266
6267         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6268
6269 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6270
6271         PR c/5503:
6272         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6273         use arguments from newtype.
6274
6275 2002-02-13  Eric Christopher  <echristo@redhat.com>
6276
6277         * config/mips/mips.c (override_options): Add check for march/mipsX
6278         on the same command line. Fix error message in cpu processing.
6279         Remove architecture and ISA checks.
6280
6281 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6282
6283         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6284
6285         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6286
6287 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6288
6289         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6290         alternatives.
6291         ("*movv8hi_internal1"): Same.
6292         ("*movv16qi_internal1"): Same.
6293         ("*movv4sf_internal1"): Same.
6294
6295         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6296         not push_reload for altivec modes.
6297
6298 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6299
6300         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6301         all RTEMS targets including removal of #includes from config/*/rtems*.h
6302         file and adding them to tm_file setting. Added xm_defines=POSIX to
6303         many targets.
6304         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6305         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6306         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6307         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6308         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6309         config/m68k/rtemself.h: Ditto.
6310         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6311         config/mips/rtems64.h: Ditto.
6312         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6313         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6314         Ditto.
6315         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6316         config/sparc/rtemself.h: Ditto.
6317         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6318         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6319         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6320         more like arm-elf.
6321         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6322         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6323         target made more similar to i386-elf.
6324         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6325         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6326         be similar to config/m68k/t-m68kelf.
6327         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6328
6329 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6330
6331         * regmove.c (kill_value): Handle subregs.
6332
6333 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6334
6335         * i386.md (mul patterns): Allow memory operand to be first;
6336         add expanders where needed; fix constraints.
6337         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6338         Allow memory operand to be the first.
6339
6340         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6341         operands.
6342
6343 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6344
6345         PR c/5681:
6346         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6347         GET_MODE (x).
6348
6349 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6350
6351         PR optimization/5547:
6352         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6353         all valid IA-32 address modes involving non-scaled %ebx and
6354         GOT/GOTOFF as displacement.
6355
6356 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6357
6358         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6359         after emitting ltorg insns.
6360
6361         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6362         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6363         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6364         *abssf2): Fix "op_type" attribute.
6365
6366 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6367
6368         * mkconfig.sh: Avoid using a subshell redirect.
6369         ($output.T): Change to $(output)T.
6370         (ENABLE_NLS): Remove unneeded undef.
6371
6372         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6373         * config/alpha/x-vms (libsubdir): Define.
6374
6375         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6376         register frame procedures. Optimize retrieving context.
6377
6378         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6379         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6380         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6381
6382 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6383
6384         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6385         Make same change as for find_base_value.
6386
6387 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6388
6389         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6390         of QImode and SImode.
6391
6392 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6393
6394         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6395         length computation of movsi.
6396         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6397
6398 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6399
6400         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6401         operands[2] to register_operand.
6402
6403 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6404
6405         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6406
6407 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6408
6409         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6410         for altivec_lvx* and altivec_stvx*.
6411         ("*movv4si_internal"): Add constraint for loading from GPRs.
6412         ("*movv8hi_internal1"): Same.
6413         ("*movv16qi_internal1"): Same.
6414         ("*movv4sf_internal1"): Same.
6415
6416         * config/rs6000/rs6000.c (altivec_register_operand): New.
6417
6418         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6419         altivec_register_operand.
6420
6421 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6422
6423         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6424         handle SYMBOL_REF.
6425
6426 2002-02-13  Stan Shebs  <shebs@apple.com>
6427
6428         * c-typeck.c (digest_init): Handle vectors.
6429         (really_start_incremental_init): Same.
6430         (pop_init_level): Same.
6431         (process_init_element): Same.
6432
6433         * varasm.c (output_constant): Same.
6434
6435         * expr.c (clear_storage): Same.
6436         (store_constructor): Same.
6437
6438 2002-02-12  Eric Christopher  <echristo@redhat.com>
6439
6440         * explow.c (hard_function_value): Add comment explaining
6441         signed/unsigned comparison.
6442
6443 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6444
6445         * jump.c (never_reached_warning): Add finish argument.
6446         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6447         real insn after end.
6448         * rtl.h (never_reached_warning): Adjust prototype.
6449         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6450         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6451         never_reached_warning.
6452
6453 2002-02-12  Graham Stott  <grahams@redhat.com>
6454
6455         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6456
6457 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6458
6459         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6460         logical shifts on H8/300.
6461         (shift_alg_si): Improve several shifts on H8/300.
6462         (get_shift_alg): Likewise.
6463
6464 2002-02-12  Graham Stott  <grahams@redhat.com>
6465
6466         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6467
6468 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6469
6470         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6471         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6472
6473 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6474
6475         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6476         non-CONST_INT through default_assemble_integer.
6477         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6478         <case 8>: Abort for CONST_DOUBLE.
6479
6480 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6481
6482         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6483         is specified.
6484         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6485         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6486
6487 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6488
6489         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6490
6491 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6492
6493         * regrename.c (regrename_optimize): Don't accept a
6494         part-clobbered register if the replaced register is not part
6495         clobbered.
6496
6497         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6498         take padding into account when computing the argument value.
6499
6500         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6501
6502         * combine.c (try_combine): Apply substitutions in
6503         CALL_INSN_FUNCTION_USAGE too.
6504
6505 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6506
6507         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6508         __builtin_altivec_abs*.
6509         (bdesc_abs): New.
6510
6511         * config/rs6000/rs6000.h (rs6000_builtins): Add
6512         ALTIVEC_BUILTIN_ABS*.
6513
6514         * config/rs6000/altivec.h: Use const char for builtins expecting
6515         literals.
6516         (vec_abs): New versions for C and C++.
6517         (vec_abss): Same.
6518
6519 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6520
6521         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6522         using Pmode.
6523
6524 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6525
6526         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6527         constant definition from h8300.md.
6528         (FRAME_POINTER_REGNUM): Likewise.
6529         * config/h8300/h8300.md (define_constants): Add FP_REG.
6530
6531 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6532
6533         * config/h8300/h8300.c (print_operand): Remove redundant code.
6534
6535 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6536
6537         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6538         * config/h8300/h8300.c (byte_reg): Make it static.
6539
6540 2002-02-10  Richard Henderson  <rth@redhat.com>
6541
6542         PR c/5623
6543         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6544
6545 2002-02-10  Richard Henderson  <rth@redhat.com>
6546
6547         PR c++/5624
6548         * tree.c (append_random_chars): Don't abort if main_input_filename
6549         does not exist.
6550
6551 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6552
6553         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6554
6555 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6556
6557         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6558         (pushhi1): Likewise.
6559
6560 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6561
6562         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6563         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6564
6565 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6566
6567         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6568         remove MASK_VIS.
6569         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6570
6571 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6572
6573         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6574         a half of an SImode register on H8/300.
6575
6576 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6577
6578         * i386.md (movdi_2): Add missing '!'.
6579
6580 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6581
6582         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6583         definitions.
6584
6585 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6586
6587         * config/h8300/h8300.md (length): Correct the distance valid
6588         for the short branch.
6589
6590 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6591
6592         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6593
6594 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6595
6596         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6597         registers in SImode.
6598         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6599         part-clobbered.
6600
6601         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6602         patch.
6603
6604         Contribute sh64-elf.
6605         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6606         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6607         (sh_cannot_modify_jumps_p): New function.
6608         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6609         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6610         (sh_ms_bitfield_layout_p): New function.
6611         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6612                     Zack Weinberg  <zack@codesourcery.com>
6613         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6614         expand_simple_binop instead of expand_binop.
6615         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6616         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6617         use of .quad and .uaquad.
6618         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6619         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6620         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6621         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6622         movdi_const_16bit): Make sure all CONSTs have modes.
6623         (sym2PIC): Ditto, but by adjusting all callers.
6624         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6625         if the prologue calls the SHmedia argument decoder or register
6626         saver.
6627         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6628         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6629         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6630         (sh_expand_epilogue): Don't emit USE of return target register.
6631         (prepare_move_operands): Legitimize DImode PIC addresses.
6632         (sh_media_register_for_return): Skip tr0, used to initialize the
6633         PIC register.
6634         (sh_expand_prologue): Remove explicit USE of return register.
6635         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6636         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6637         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6638         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6639         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6640         EXTRA_CONSTRAINT_T.
6641         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6642         (MOVI_SHORI_BASE_OPERAND_P): New.
6643         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6644         (EXTRA_CONSTRAINT_T): Define in terms of them.
6645         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6646         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6647         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6648         alternatives supporting TARGET_REGS.
6649         (UNSPEC_GOTPLT): New constant.
6650         (movdi split): Move incrementing of LABEL_NUSES...
6651         (movdi_const, movdi_const_32bit): Here.  Use
6652         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6653         (movdi_const_16bit): New.
6654         (call, call_value) [flag_pic]: Use GOTPLT.
6655         (call_pop, call_value_pop): New expands.
6656         (call_pop_compact, call_pop_rettramp): New insns.
6657         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6658         (sibcall) [flag_pic]: Use GOT.
6659         (builtint_setjmp_receiver): Remove bogus, unused expand.
6660         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6661         (*pt, *ptb, ptrel): New insns.
6662         (sym2GOT): Handle DImode GOT.
6663         (sym2GOTPLT, symGOTPLT2reg): New expands.
6664         (sym2PIC): New expand.
6665         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6666         (shcompact_return_tramp_i): Use return register explicitly.
6667         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6668         disable flag_reorder_blocks.
6669         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6670         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6671         clobbers, for clarity.
6672         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6673         restoring of r0 in macl as MAYBE_DEAD.
6674         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6675         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6676         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6677         alter_subreg all over.
6678         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6679         reload, instead of emitting instructions that would require
6680         reloading.
6681         (casesi_load_media): Add missing modes.
6682         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6683         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6684         as used if the argument decoder is called.
6685         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6686         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6687         Pmode, then extend it to DImode if necessary.
6688         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6689         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6690         constants in FPU-enabled SHmedia, let them be loaded from memory.
6691         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6692         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6693         Adjust whitespace in assembly output templates.
6694         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6695         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6696         mode of if_then_else.
6697         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6698         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6699         sh.h.
6700         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6701                     Joern Rennecke <amylaar@redhat.com>
6702         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6703         (SUBTARGET_CPP_PTR_SPEC): New.
6704         (SUBTARGET_CPP_SPEC): Remove.
6705         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6706         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6707         Fix typo in previous checkin.
6708         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6709         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6710         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6711                     Alexandre Oliva  <aoliva@redhat.com>
6712         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6713         what single FP register can hold for SHmedia target.
6714         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6715                     Alexandre Oliva  <aoliva@redhat.com>
6716         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6717         Do not split into SUBREG.
6718         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6719         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6720         and added new functions as specified in SH5 ABI r9.
6721         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6722         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6723         8-byte boundary.
6724         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6725         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6726         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6727         and consttable_window_ends.
6728         2001-06-03  Graham Stott  <grahams@redhat,com>
6729         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6730         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6731         * config/sh/sh.c (print_operand): Handle floating-point pair,
6732         vector and matrix registers.
6733         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6734         vector modes into account.
6735         * config/sh/sh.md (movv2sf): Split move between registers into
6736         movdf.
6737         (movv4sf, movv16sf): Introduce insns that get split only after
6738         reload.
6739         * config/sh/shmedia.h: Fix Copyright dates.
6740         * config/sh/ushmedia.h: Likewise.  Move loop counter
6741         declarations into conditionals that uses them.
6742         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6743         loop boundary.
6744         * config/sh/sshmedia.h: Fix Copyright dates.
6745         (sh_media_PUTCFG): Fix constraints.
6746         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6747         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6748         ptrmemfunc_vbit_in_delta for SH5.
6749         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6750         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6751         * invoke.texi: Likewise.
6752         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6753         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6754         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6755         GCC_pop_shmedia_regs_nofpu): New global symbols.
6756         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6757         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6758         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6759         compact function with nonlocal labels.
6760         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6761         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6762         (initial_elimination_offset): Account for their stack space.
6763         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6764         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6765         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6766         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6767         least one of the operands to be a register.
6768         (movv2sf): Likewise.  Renamed to movv2sf_i.
6769         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6770         prepare_move_operands() before emitting SHmedia insns.
6771         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6772         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6773         Don't save nor initialize r12.  Don't mis-align the stack.
6774         Pad the code with a nop.
6775         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6776         stack.
6777         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6778         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6779         [__SHMEDIA__]: Implement.
6780         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6781         * config/sh/sh.md: Set latency of `pt' closer to reality.
6782         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6783         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6784         Set move, load and store type attributes.
6785         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6786         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6787         profiling.
6788         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6789         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6790         * config/sh/sh.c (sh_media_register_for_return): New function.
6791         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6792         branch-target register.
6793         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6794         * config/sh/sh.md (return_media_i): Use any call-clobbered
6795         branch-target register.
6796         (return_media): If r18 wasn't copied in the prologue, copy it
6797         here.
6798         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6799         Clear class FP0_REGS.
6800         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6801         from elf.h.
6802         2001-03-08  DJ Delorie  <dj@redhat.com>
6803         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6804         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6805         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6806         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6807         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6808         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6809         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6810         return value correctly for call_cookie.
6811         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6812         * config/sh/crt1.asm (start): Modified so as to call
6813         ___setup_argv_and_call_main.
6814         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6815         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6816         SHmedia mode.
6817         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6818         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6819         (STRIP_NAME_ENCODING): Use it.
6820         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6821         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6822         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6823         prepare_scc_operands().
6824         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6825         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6826         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6827         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6828         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6829         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6830         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6831         used in shcompact_incoming_args.
6832         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6833         change.
6834         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6835         mode.
6836         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6837         Adjust accordingly.
6838         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6839         Simplify.  Adjust.  Add sanity check.
6840         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6841         FPU_SINGLE_BIT.
6842         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6843         TARGET_SHCOMPACT.
6844         (udivsi3, divsi3): Use them.
6845         (force_mode_for_call): New insn.
6846         (call, call_value, sibcall_value): Emit it before SHcompact
6847         calls.
6848         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6849         * config/sh/sh.md (call, call_value, sibcall): Make sure the
6850         call cookie is non-NULL before taking its value.
6851         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
6852         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6853         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6854         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6855         block.
6856         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6857         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6858         temporary for stack adjusts.  Use MACL and MACH to pass
6859         arguments to shcompact_incoming_args.
6860         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
6861         clobber r1.
6862         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6863         (nested_trampoline): Load static chain address into r1.
6864         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6865         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
6866         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6867         fp_arith_reg_operand().
6868         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
6869         * config/sh/sh.md (casesi): Sign-extend the first two operands,
6870         and use signed compares for them.
6871         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6872         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
6873         ones properly aligned.
6874         (find_barrier): Account for extra alignment needed for 8-byte wide
6875         constants.
6876         (machine_dependent_reorg): Require a label for the second 4-byte
6877         constant after an 8-byte one.
6878         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6879         change.
6880         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6881         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6882         last_float when switching float modes.
6883         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6884         auto-increment for general-purpose registers.
6885         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6886         result.
6887         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6888         for stack adjust.
6889         * config/sh/sh.c (sh_builtin_saveregs): Support using all
6890         registers for varargs.
6891         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
6892         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6893         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6894         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6895         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6896         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
6897         call_cookie accordingly.
6898         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6899         (SHCOMPACT_BYREF): Likewise.
6900         (SHCOMPACT_FORCE_ON_STACK): New macro.
6901         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6902         (sh_builtin_saveregs): Likewise.
6903         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6904         shcompact_incoming_args): Use new shift values.  Support
6905         sequences of consecutive and non-consecutive pushes/pops.
6906         * config/sh/sh.md (return): Don't explicitly use PR_REG.
6907         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
6908         * config/sh/sh.h (TEXT_SECTION): Define.
6909         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6910         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
6911         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6912         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6913         return values on FPU-enabled SHmedia.
6914         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6915         FPU-enabled SHmedia.
6916         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6917         value is returned in a non-FP reg and is not returned by
6918         reference.
6919         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6920         jump_ind.
6921         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
6922         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6923         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6924         quad-aligned to be passed by callee-copy reference.
6925         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
6926         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6927         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6928         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
6929         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6930         copying low-numbered FP regs to r7 and r8.
6931         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6932         FP regs to general-purpose regs only if the copy was passed on the
6933         stack.
6934         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6935         copying FP reg to r9.
6936         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6937         copy FP regs to general-purpose regs only in outgoing calls.
6938         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6939         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
6940         HOST_WIDE_INT.
6941         * config/sh/sh.h (struct sh_args): Document all fields.
6942         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6943         passed partially on the stack should not consider making
6944         sibcalls.
6945         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6946         stack_regs only for incoming calls.  When passing FP args,
6947         make sure there are FP regs available before modifying
6948         call_cookie.
6949         (SHCOMPACT_BYREF): Pass double args in general-purpose
6950         registers by reference.
6951         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
6952         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6953         attempt to generate sibcalls if the caller got any arguments
6954         by reference.
6955         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6956         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6957         to 8-byte boundaries.
6958         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6959         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6960         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6961         stored in the stack.
6962         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6963         for the offsets to have the ISA bit set.
6964         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
6965         invocation.  Use beq instead of bgt to mark end of sequence of
6966         loads.
6967         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
6968         bgt to mark end of sequence of stores.
6969         * config/sh/sh.c (arith_operand): Don't check whether
6970         CONST_OK_FOR_J for now.
6971         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6972         instead of long for conversion.
6973         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
6974         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6975         before passing it to fprintf.
6976         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
6977         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6978         Call set_fpscr before reading/writing SR.
6979         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6980         Call set_fpscr.
6981         * config/sh/lib1funcs.asm: Add `.align 2' directives before
6982         SHmedia code.
6983         (FMOVD_WORKS): Define on SH5 with FPU.
6984         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
6985         setting.
6986         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6987         _fpscr_values.
6988         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
6989         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6990         address.
6991         (ia_main_table): Ditto.
6992         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
6993         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6994         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6995         the definitions from sh.h.
6996         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6997         TARGET_SH5.
6998         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6999         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7000         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7001         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
7002         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7003         Increment LABEL_NUSES.
7004
7005         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7006         TARGET_SH5.
7007         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7008         defined.
7009         * config/sh/elf.h (SIZE_TYPE): Likewise.
7010         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7011         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7012         shcompact_incoming_args): Load switch table addresses using
7013         datalabel.
7014         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7015         (NO_BUILTIN_SIZE_TYPE): Define.
7016         (SIZE_TYPE): Don't define.
7017         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7018         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7019         definition of __SH5__=32 for -m5-compact-nofpu.
7020         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7021         ADDR_DIFF_VEC.
7022         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
7023         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7024         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
7025         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7026         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7027         (INSN_LENGTH_ALIGNMENT): Likewise.
7028         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7029         * config/sh/sh.md (call, call_value, sibcall): Simplify
7030         copying of non-branch-target register.
7031         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7032         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
7033         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7034         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7035         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7036         floating-point values as structs.
7037         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7038         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7039         general-purpose register.
7040         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7041         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7042         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7043         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7044         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7045         (ENCODE_SECTION_INFO): Enclose variables and constants in
7046         DATALABEL unspecs.
7047         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7048         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7049         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7050         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7051         only for LABEL_REFs.  For SYMBOL_REFs, prepend
7052         SH_DATALABEL_ENCODING to the symbol name.
7053         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7054         convert_mode().
7055         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7056         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7057         UNSPEC_DATALABEL.
7058         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7059         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7060         (DATALABEL_REF_P): Don't require CONST.
7061         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7062         REL label.
7063         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
7064         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7065         right.
7066         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7067         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7068         Use shallow_copy_rtx and PUT_MODE to change the mode of
7069         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7070         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7071         on SHmedia using GENERAL_REGs.
7072         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7073         bltu_media_i): Fix reversion of conditions.
7074         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7075         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7076         * config/sh/sh.c (output_far_jump): Save r13 in macl.
7077         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
7078         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7079         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7080         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7081         (GCC_nested_trampoline): Likewise.
7082         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7083         * config/sh/sh.c (gen_datalabel_ref): Define.
7084         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7085         (INITIALIZE_TRAMPOLINE): Likewise.
7086         (TRAMPOLINE_ADJUST_ADDRESS): Define.
7087         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7088         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7089         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7090         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7091         (ic_invalidate): Adjust for SH5.
7092         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7093         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7094         _nested_trampoline.
7095         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
7096         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7097         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7098         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7099         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7100         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7101         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7102         * config/sh/sh.c (target_reg_operand): Match only target-branch
7103         registers and pseudos that aren't virtual registers.
7104         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7105         Copy operands that don't match target_reg_operand to pseudos.
7106         (call_media, call_value_media, sibcall_media): Use
7107         target_reg_operand instead of target_operand.
7108         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
7109         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7110         * config/sh/sh.c (target_reg_operand): Match hardware registers
7111         other than branch-target registers.
7112         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7113         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7114         (fpscr_values) [SH5 == 32]: Define.
7115         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7116         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7117         Handle function addresses coming in SUBREGs.
7118         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
7119         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7120         shcompact_return_trampoline): Use datalabel where appropriate.
7121         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
7122         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7123         general-purpose register to copy one branch-target register to
7124         another.
7125         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7126         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7127         SYMBOL_REFs with VOIDmode.
7128         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7129         bltu_media_i): New insns.
7130         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7131         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7132         (INIT_CUMULATIVE_ARGS): Likewise.
7133         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7134         * machmode.def (V16SFmode): New mode.
7135         * c-common.c (type_for_mode): Support V2SF and V16SF.
7136         * tree.c (build_common_tree_nodes_2): Likewise.
7137         * tree.h (tree_index): Likewise.
7138         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7139         callers.  Introduce CALL_POPS_ARGS.
7140         * tm.texi (CALL_POPS_ARGS): Document.
7141         * config/sh/crt1.asm: Implement in SHmedia mode.
7142         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7143         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7144         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7145         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7146         Implement divsi and udivsi in SHmedia mode.  Introduce
7147         SHcompact trampolines.
7148         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7149         only in SHmedia64.
7150         (regno_reg_class): Rewrite.
7151         (fp_reg_names): Remove.
7152         (sh_register_names, sh_additional_register_names): New.
7153         (print_operand): Added `u'.  Support SUBREGs in addresses.
7154         Add parentheses around shifted CONSTs.
7155         (output_file_start): Output .mode and .abi directives.
7156         (shiftcosts, addsubcosts, multcosts): Adjust.
7157         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7158         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7159         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7160         bytes, not registers.  Take into account the need for the
7161         SHcompact incoming args trampoline.  Adjust all callers.
7162         (sh_expand_prologue): Take stack_regs into account.  Call
7163         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7164         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7165         stack aligned as per SH5 ABI.
7166         (sh_builtin_saveregs): Support SH5 ABI.
7167         (sh_build_va_list, sh_va_start): Likewise.
7168         (initial_elimination_offset): Take alignment into account.
7169         Compute location of PR according to the SH5 stack frame.
7170         (arith_reg_operand): Reject branch-target registers.
7171         (shmedia_6bit_operand): New.
7172         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7173         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7174         (target_operand): New.
7175         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7176         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7177         SIBCALL_REGS for SHmedia.
7178         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7179         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7180         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7181         (TARGET_SWITCHES): New SH5 flags.
7182         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7183         VALID_REGISTER_P to disable unsupported registers.
7184         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7185         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7186         (FUNCTION_ARG_PADDING): Define.
7187         (FASTEST_ALIGNMENT): Adjust.
7188         (SH_REGISTER_NAMES_INITIALIZER): New.
7189         (sh_register_names): Declare.
7190         (DEBUG_REGISTER_NAMES): Define.
7191         (REGISTER_NAMES): Define based on sh_register_names.
7192         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7193         (sh_additional_register_names): Declare.
7194         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7195         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7196         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7197         (REGISTER_NATURAL_MODE): Define.
7198         (FIRST_PSEUDO_REGISTER): Adjust.
7199         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7200         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7201         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7202         (VECTOR_MODE_SUPPORTED_P): Define.
7203         (REG_CLASS_CONTENTS): Adjust.
7204         (SMALL_REGISTER_CLASSES): Adjust.
7205         (REG_ALLOC_ORDER): Adjust.
7206         (INDEX_REG_CLASS): Adjust.
7207         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7208         (CONST_OK_FOR_LETTER_P): Adjust.
7209         (PREFERRED_RELOAD_CLASS): Adjust.
7210         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7211         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7212         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7213         (FIRST_FP_PARM_REG): Adjust.
7214         (CALL_POPS_ARGS): Define.
7215         (FUNCTION_ARG_REGNO_P): Adjust.
7216         (struct sh_args): New fields.
7217         (GET_SH_ARG_CLASS): Adjust.
7218         (INIT_CUMULATIVE_ARGS): Adjust.
7219         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7220         (FUNCTION_ARG_ADVANCE): Adjust.
7221         (FUNCTION_ARG): Adjust.
7222         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7223         (FUNCTION_ARG_CALLEE_COPIES): Define.
7224         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7225         (STRICT_ARGUMENT_NAMING): Define.
7226         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7227         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7228         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7229         (SETUP_INCOMING_VARARGS): Adjust.
7230         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7231         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7232         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7233         (SUBREG_OK_FOR_INDEX_P): Adjust.
7234         (EXTRA_CONSTRAINT_S): Update.
7235         (EXTRA_CONSTRAINT_T): New.
7236         (EXTRA_CONSTRAINT): Adjust.
7237         (GO_IF_LEGITIMATE_INDEX): Adjust.
7238         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7239         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7240         (MOVE_MAX): Adjust.
7241         (MAX_MOVE_MAX): Define.
7242         (Pmode): Adjust.
7243         (CONST_COSTS): Adjust.
7244         (REGISTER_MOVE_COST): Adjust.
7245         (BRANCH_COST): Adjust.
7246         (TEXT_SECTION_ASM_OP): Adjust.
7247         (DBX_REGISTER_NUMBER): Adjust.
7248         (ASM_OUTPUT_DOUBLE_INT): New.
7249         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7250         (PREDICATE_CODES): Adjust.
7251         (PROMOTE_MODE): Adjust.
7252         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7253         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7254         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7255         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7256         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7257         (TR0_REG, TR1_REG, TR2_REG): New.
7258         (XD0_REG): Renumber.
7259         (UNSPEC_COMPACT_ARGS): New.
7260         (type): Added pt and ptabs.
7261         (length): Default to 4 on SHmedia.  Default pt length to 12
7262         and     20 on SHmedia32 and SHmedia64, respectively.
7263         (pt): New function unit.
7264         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7265         Add whitespace between operands of SHmedia instructions.
7266         (movdicc): Fix.
7267         (adddi3_media, addsi3_media): Adjust constraints.
7268         (subsi3) [SHmedia]: Force operand 1 into a register.
7269         (udivsi3_i1_media, udivsi3_i4_media): New.
7270         (udivsi3): Support SHmedia.
7271         (divsi3_i1_media, divsi3_i4_media): New.
7272         (divsi3): Support SHmedia.
7273         (anddi3, iordi3, xordi3): Adjust constraints.
7274         (zero_extendhidi2, zero_extendqidi2): New.
7275         (extendsidi2, extendhidi2, extendqidi2): New.
7276         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7277         (pop_e, pop_fpul, pop_4): Likewise.
7278         (movsi_media): Support FP and BT registers.
7279         (movsi_media_nofpu): New.  Adjust splits to DImode.
7280         (lduw, ldub): Renamed to zero_extend* above.
7281         (movqi_media): Fix typo.
7282         (movdi_media): Support FP and BT registers.
7283         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7284         (movdi_const_32bit): New.
7285         (shori_media): Require immediate operand.  Use `u' for output.
7286         (movdf_media, movsf_media): Simplified.
7287         (movdf_media_nofpu, movsf_media_nofpu): New.
7288         (movdf, movsf): Adjust
7289         (movv2sf, movv2sf, movv16sf): New.
7290         (beq_media, beq_media_i): Adjust constraints.  Don't use
7291         scratch BT register.
7292         (bne_media, bne_media_i): Likewise.
7293         (bgt_media, bgt_media_i): Likewise.
7294         (bge_media, bge_media_i): Likewise.
7295         (bgtu_media, bgtu_media_i): Likewise.
7296         (bgeu_media, bgeu_media_i): Likewise.
7297         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7298         bunordered): Emit jump insn.  Force operands to registers when
7299         needed.
7300         (jump_media, jump): Simplify.
7301         (call_compact, call_compact_rettramp): New.
7302         (call_value_compact, call_value_compact_rettramp): New.
7303         (call_media, call_value_media): Simplify.
7304         (sibcall_compact, sibcall_media): New.
7305         (call, call_value): Adjust for SHmedia and SHcompact.
7306         (sibcall, sibcall_value, untyped_call): Likewise.
7307         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7308         (indirect_jump): Adjust for SHmedia.
7309         (casesi_jump_media): New.
7310         (nop): Re-enable for SHmedia.
7311         (call_site): Restrict to SH1.
7312         (casesi): Adjust for SHmedia.
7313         (casesi_shift_media, casesi_load_media): New.
7314         (return): Explicitly use PR register.  Call return trampoline
7315         on SHcompact.
7316         (return_i): Explicitly use PR register.
7317         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7318         (return_media): Adjust.
7319         (shcompact_incoming_args): New.
7320         (epilogue): Adjust.
7321         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7322         (movstrsi): Disable on SH5.
7323         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7324         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7325         (subsf3, subsf3_media): Likewise.
7326         (mulsf3, mulsf3_media, mac_media): Likewise.
7327         (divsf3, divsf3_media): Likewise.
7328         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7329         (floatsisf2, fux_truncsfsi2): Likewise.
7330         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7331         constraints.
7332         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7333         (cmpunsf_media, cmpsf): Likewise.
7334         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7335         (abssf2, abssf2_media): Likewise.
7336         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7337         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7338         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7339         (floatsidf2, fix_truncdfsi2): Likewise.
7340         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7341         constraints.
7342         (cmpeqdf_media, cmpgtdf_media): Likewise.
7343         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7344         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7345         (absdf2, absdf2_media): Likewise.
7346         (extendsfdf2, extendsfdf2_media): Likewise.
7347         (truncsfdf2, truncsfdf2_media): Likewise.
7348         * config/sh/sh64.h: New file.
7349         * config/sh/t-sh64: New file.
7350         * config/sh/shmedia.h: New file.
7351         * config/sh/ushmedia.h: New file.
7352         * config/sh/sshmedia.h: New file.
7353         * configure.in: Added sh64-*-elf.
7354         * configure: Rebuilt.
7355         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7356         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7357         (reg_class_from_letter): Use `b' for TARGET_REGS.
7358         (print_operand): Support `%M', `%m', `AND' and
7359         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7360         (andcosts): Adjust for SHmedia.
7361         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7362         Likewise.
7363         (target_reg_operand): New function.
7364         * config/sh/sh-protos.h (target_reg_operand): Declare.
7365         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7366         FP registers on SH5.
7367         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7368         on SH4.
7369         (TARGET_REGISTER_P): New macro.
7370         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7371         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7372         (EXTRA_CONSTRAINT_S): New macro.
7373         (EXTRA_CONSTRAINT): Adjust.
7374         (FLOAT_TYPE_SIZE): Define to 32.
7375         (Pmode): DImode on SHmedia.
7376         (CONST_COSTS): Adjust for SHmedia literals.
7377         (PREDICATE_CODES): Added target_reg_operand.
7378         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7379         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7380         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7381         (cmpdi): Accept SHmedia.
7382         (movdicc_false, movdicc_true): New insns.
7383         (movdicc): New expand.
7384         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7385         no_new_pseudos.
7386         (addsi3_media): Match `S' constraint.
7387         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7388         (negdi2): Expand for SHmedia.
7389         (one_cmpldi2): New expand.
7390         (zero_extendsidi2): Change from expand to insn.
7391         (extendsidi2): Add constraints.
7392         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7393         LD/ST address.  Fix SI immediate loading split.
7394         (movhi_media, movqi_media, lduw, ldub): New insns.
7395         (movhi, movqi): Accept SHmedia.
7396         (shori_media, movdi_media): Relax input constraints.  Split
7397         symbolic constants.
7398         (movdf_media, movsf_media): New insn.  New split to movdi.
7399         (movdf, movsf): Match on SHmedia.
7400         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7401         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7402         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7403         (bunordered): New expand.
7404         (jump_compact): Renamed from `jump'.
7405         (jump_media): New insn.
7406         (jump): New expand.
7407         (call_media, call_value_media): New insns.
7408         (call, call_value): Adjust.
7409         (indirect_jump_compact): Renamed from `indirect_jump'.
7410         (indirect_jump_media): New insn.
7411         (indirect_jump): New expand.
7412         (untyped_call, return): Accept SHmedia.
7413         (return_media): New insn.
7414         (prologue, epilogue, blockage): Accept SHmedia.
7415         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7416         (sunordered): New expand.
7417         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7418         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7419         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7420         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7421         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7422         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7423         abssf2_media): New insns.
7424         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7425         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7426         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7427         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7428         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7429         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7430         absdf2_media): New insns.
7431         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7432         (extendsfdf2_media, truncdfsf2_media): New insns.
7433         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7434         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7435         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7436         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7437         * config/sh/sh.md (adddi3): New expand.
7438         (adddi3_media, adddi3z_media): New insns.
7439         (adddi3_compact): Renamed from adddi3.
7440         (addsi3_media): Use add.l r63 to add constant zero.
7441         (subdi3): New expand.
7442         (subdi3_media): New insn.
7443         (subdi3_compact): Renamed from subdi3.
7444         (mulsidi3): New expand.
7445         (mulsidi3_media): New insn.
7446         (mulsidi3_compact): Renamed from mulsidi3.
7447         (umulsidi3): New expand.
7448         (umulsidi3_media): New insn.
7449         (umulsidi3_compact): Renamed from umulsidi3.
7450         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7451         (ashlsi3, ashrsi3, lshrsi3): Use them.
7452         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7453         (ashldi3, ashrdi3, lshrdi3): Use them.
7454         (zero_extendsidi2): New expand.
7455         (extendsidi2): New insn.
7456         (movsi_media): New insn.  Split to movdi to load constants.
7457         (movsi): Enable for shmedia.
7458         (movdi_media): New insn.  Use shori_media to load wide constants.
7459         (short_media): New insn.
7460         (movdi): Enable for shmedia.
7461         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7462         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7463         (SUBTARGET_CPP_SPEC): Added `!m5'.
7464         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7465         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7466         to all other SH variants.
7467         (TARGET_DEFAULT): Set to SH1_BIT.
7468         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7469         (BITS_PER_WORD): Raise to 64 on shmedia.
7470         (MAX_BITS_PER_WORD): Change to 64.
7471         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7472         (INT_TYPE_SIZE): Keep as 32.
7473         (UNITS_PER_WORD): Raise to 8 on shmedia.
7474         (MIN_UNITS_PER_WORD): Keep as 4.
7475         (POINTER_SIZE): Raise to 64 on shmedia.
7476         (CONST_OK_FOR_J): New macro.
7477         (CONST_OK_FOR_LETTER_P): Use it.
7478         (processor_type): Add PROCESSOR_SH5.
7479         * config/sh/sh.md: Conditionalize all expands, insns and
7480         splits to TARGET_SH1.
7481         (cpu): Added sh5.
7482         (addsi3_compact): Renamed from...
7483         (addsi3): Now an expand.
7484         (addsi3_media, subsi3_media): New insns.
7485         (subsi3): Don't negate constants with SHmedia.
7486
7487         * hooks.c: New file.
7488         * hooks.h: New file.
7489         * Makefile.in (HOOKS_H): New.
7490         (TARGET_DEF_H): Added $(HOOKS_H).
7491         (OBJS): Added hooks.o.
7492         (cfgcleanup.o, bb-reorder.o): Added target.h.
7493         (hooks.o): Added dependencies.
7494         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7495         (TARGET_INITIALIZER): this.
7496         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7497         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7498         * bb-reorder.c: Include target.h.
7499         (reorder_basic_blocks): Skip if cannot modify jumps.
7500         * cfgcleanup.c: Include target.h.
7501         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7502
7503 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7504
7505         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7506         Protect jump delay slot instructions with .set noreorder and
7507         .set nomacro.
7508
7509 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7510
7511         * config/mips/mips.md (casesi_internal_di): Calculate
7512         the index into the target offset table correctly.
7513
7514 2002-02-08  Richard Henderson  <rth@redhat.com>
7515
7516         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7517         * final.c (output_addr_const): Accept and discard SUBREG.
7518         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7519         mark them unknown instead.
7520         (simplify_subtraction): Handle RTX_UNKNOWN.
7521         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7522
7523 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7524
7525         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7526
7527 2002-02-08  Richard Henderson  <rth@redhat.com>
7528
7529         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7530
7531 2002-02-08  Andreas Jaeger  <aj@suse.de>
7532
7533         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7534         * config/i386/t-linux64: New file.
7535
7536 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7537
7538         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7539         * c-parse.in (compstmt): Clear last_expr_type.
7540
7541 2002-02-07  Richard Henderson  <rth@redhat.com>
7542
7543         * loop.c (strength_reduce): Sink final_value when not
7544         eliminating a biv.
7545
7546 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7547
7548         * config/sparc/freebsd.h: Fix mismatched spec {.
7549
7550 2002-02-07  Richard Henderson  <rth@redhat.com>
7551
7552         * cfgrtl.c: Include recog.h and insn-config.h.
7553         (keep_with_call_p): Fix general_operand invocation.
7554         * Makefile.in (cfgrtl.o): Update dependencies.
7555
7556 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7557
7558         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7559         comment.  Accept HImode only if TARGET_H8300.
7560
7561 2002-02-07  Eric Christopher  <echristo@redhat.com>
7562
7563         * config/mips/crtn.asm: Cleanup #ifdefs.
7564
7565 2002-02-07  Eric Christopher  <echristo@redhat.com>
7566
7567         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7568         register 7 as RA instead of $31.
7569         * config/mips/crtn.asm: Ditto.
7570         * config/mips/mips.c (mips_move_2words): Add case for
7571         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7572         (compute_frame_size): Fix typo.
7573         (save_restore_insns): Ditto.  Make documentation about using
7574         register $7 as return register more precise.
7575         (mips_expand_epilogue): Fix comment. Add code to work around not
7576         being able to add to the stack pointer directly.
7577         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7578         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7579         epilogue.
7580
7581 2002-02-07  Tom Rix  <trix@redhat.com>
7582
7583         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7584         immediates in ldu and stdu DS opcode field.
7585         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7586         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7587         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7588
7589 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7590
7591         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7592         offset for stack bias.
7593
7594 2002-02-07  H.J. Lu <hjl@gnu.org>
7595
7596         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7597
7598 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7599
7600         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7601
7602 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7603
7604         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7605         * i386.c (x86_order_regs_for_local_alloc): New global function.
7606         * i386.h (REG_ALLOC_ORDER): CLeanup.
7607         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7608
7609 2002-02-07  Richard Henderson  <rth@redhat.com>
7610
7611         PR optimization/2463
7612         * alias.c (find_base_value): Recall base values for fixed hard regs.
7613         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7614
7615 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7616
7617         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7618         length.
7619
7620 2002-02-06  Richard Henderson  <rth@redhat.com>
7621
7622         PR c/5609
7623         * stmt.c (resolve_operand_name_1): Take more care with mixed
7624         named and unnamed operands.
7625
7626 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7627             Jan Hubicka  <jh@suse.cz>
7628
7629         * loop.c (remove_constant_addition): Avoid clobbering a shared
7630         CONST expression.
7631
7632 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7633
7634         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7635         * config/s390/t-linux64: New file.
7636         * config/s390/libgcc-glibc.ver: New file.
7637
7638 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7639
7640         * config/s390/linux64.h: Delete file.
7641         * config/s390/s390x.h: New file.
7642         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7643         as target header file.
7644         * config/s390/linux.h (TARGET_VERSION): Define depending on
7645         DEFAULT_TARGET_64BIT.
7646         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7647         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7648         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7649         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7650         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7651         (EXTRA_SPEC): New define.
7652         * config/s390/s390.h (TARGET_VERSION): Define depending on
7653         DEFAULT_TARGET_64BIT.
7654         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7655
7656 2002-02-06  Jason Merrill  <jason@redhat.com>
7657
7658         * c-decl.c (finish_function): Warn about a non-void function with
7659         no return statement and no abnormal exit.
7660         (current_function_returns_abnormally): New variable.
7661         (start_function): Clear it.
7662         (struct c_language_function): Add returns_abnormally.
7663         (push_c_function_context): Save it.
7664         (pop_c_function_context): Restore it.
7665         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7666         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7667         an explicit return type.
7668         * c-tree.h: Declare current_function_returns_abnormally.
7669         (C_FUNCTION_IMPLICIT_INT): New macro.
7670         * c-typeck.c (build_function_call): Set it.
7671         (c_expand_return): Set current_function_returns_value even if the
7672         value is erroneous.
7673
7674 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7675
7676         PR c/5420:
7677         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7678         unsafe for reevaluation.
7679
7680 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7681
7682         PR c/5482:
7683         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7684         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7685
7686 2002-02-06  Richard Henderson  <rth@redhat.com>
7687
7688         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7689         be a general_operand.  Dest for function value must be a pseudo.
7690
7691 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7692
7693         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7694         as SYMBOL_REFs from the constant pool.
7695
7696 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7697
7698         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7699         passed by invisible reference.
7700
7701 2002-02-05  Richard Henderson  <rth@redhat.com>
7702
7703         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7704
7705 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7706
7707         Implement using "base addresses" in insn operands as default.
7708         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7709         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7710         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7711         used to read the rtx value.
7712         (mmix_target_asm_function_epilogue): Fix spacing.
7713         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7714         (mmix_legitimate_address): Ditto.
7715         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7716         should be loaded with a GETA insn.  Don't allocate needless extra
7717         char for nul termination and fix misleading comment.
7718         (mmix_print_operand_address): Handle constants if
7719         TARGET_BASE_ADDRESSES.
7720         (mmix_output_register_setting): Use base addressing if
7721         TARGET_BASE_ADDRESSES and the number of insns is 3.
7722         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7723         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7724         to use R as constraint, add LDA to match s.
7725         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7726         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7727         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7728         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7729         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7730         order with other fixed registers.
7731         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7732         other parameter/call-clobbered registers.
7733         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7734         -mbase-addresses, -mno-base-addresses.
7735         (MMIX Options): Ditto.
7736
7737 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7738
7739         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7740
7741 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7742
7743         * config/rs6000/altivec.h: Change elem to _S_elem.
7744
7745 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7746
7747         * config/netbsd.h (WCHAR_TYPE): Define.
7748         (WCHAR_TYPE_SIZE): Ditto.
7749         (WINT_TYPE): Ditto.
7750         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7751         (WCHAR_UNSIGNED): Ditto.
7752         (WCHAR_TYPE_SIZE): Ditto.
7753         (WINT_TYPE): Ditto.
7754         * config/arm/netbsd.h: Likewise.
7755         * config/i386/netbsd-elf.h: Likewise.
7756         * config/i386/netbsd.h: Likewise.
7757         * config/m68k/netbsd-elf.h: Likewise.
7758         * config/m68k/netbsd.h: Likewise.
7759         * config/ns32k/netbsd.h: Likewise.
7760         * config/sparc/netbsd.h: Likewise.
7761         * config/vax/netbsd.: Likewise.
7762
7763 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7764
7765         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7766         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7767         (TARGET_INITIALIZER): this.
7768         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7769         (BITFIELD_NBYTES_LIMITED): Markup fix.
7770         * tree.h (default_ms_bitfield_layout_p): Declare.
7771         (record_layout_info): Added prev_field.
7772         * tree.c (default_ms_bitfield_layout_p): New fn.
7773         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7774         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7775         * stor-layout.c: Include target.h.
7776         (start_record_layout): Initialize prev_field.
7777         (place_field): Handle MS bit-field layout, and disregard
7778         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7779         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7780         * Makefile.in (stor-layout.o): Adjust dependencies.
7781
7782 2002-02-05  Jason Merrill  <jason@redhat.com>
7783
7784         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7785
7786 2002-02-05  Andreas Jaeger  <aj@suse.de>
7787
7788         * crtstuff.c: Fix comments.
7789
7790 2002-02-05  Richard Henderson  <rth@redhat.com>
7791
7792         PR fortran/3393
7793         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7794         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7795
7796         PR fortran/3392
7797         * config/mips/mips.c (function_arg): Handle TImode.
7798         (function_arg_advance): Likewise.
7799
7800 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7801
7802         * config/rs6000/altivec.h (vec_step_help): Rename to
7803         __vec_step_help.
7804
7805 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7806
7807         * config/rs6000/altivec.h: Fix typos.
7808
7809 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7810
7811         * config/arm/netbsd.h: Correct a comment.
7812
7813 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7814
7815         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7816         building void typed builtins.
7817
7818         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7819         (vec_step): Implement for C++.
7820
7821 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7822
7823         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7824
7825 2002-02-04  Richard Henderson  <rth@redhat.com>
7826
7827         * combine.c (nonzero_bits): Re-introduce special case for
7828         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7829
7830 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7831
7832         * doc/extend.texi: Warn about unsupported usage of altivec
7833         builtins.
7834
7835         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7836         (altivec_predicate_*): New.
7837
7838         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7839         Add C++ version of vec_*() functions.
7840
7841         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7842         (bdesc_2arg): Remove altivec predicates.
7843         (altivec_expand_builtin): Handle predicates.
7844         (altivec_init_builtins): Handle predicates.
7845         (altivec_expand_predicate_builtin): New.
7846
7847 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7848
7849         * pa.c (DO_FRAME_NOTES): Move forward.
7850         (store_reg): Revise handling of frame notes.
7851         (load_reg): Likewise.
7852         (set_reg_plus_d): Likewise.
7853         (hppa_expand_prologue): Likewise.
7854         (hppa_expand_epilogue): Likewise.
7855
7856 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7857
7858         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7859
7860 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7861
7862         PR c/4475, c++/3780:
7863         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7864         * c-common.h (SWITCH_TYPE): Define.
7865         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7866         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7867         Rename spareness variable to sparseness.
7868         (expand_end_case_type): Renamed from expand_end_case, use orig_type
7869         if non-NULL instead of TREE_TYPE (orig_index).
7870         * tree.h (expand_end_case_type): Renamed from expand_end_case.
7871         (expand_end_case): Define using expand_end_case_type.
7872         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7873         to expand_end_case_type.
7874         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7875
7876 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7877
7878         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7879         (BIGGEST_ALIGNMENT): Change to 128.
7880
7881 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7882
7883         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7884
7885 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7886
7887         * pa.md (call_internal_reg_64bit): Remove unused variable.
7888
7889 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
7890
7891         * config/arm/arm.h (machine_function): Add uses_anonymous_args
7892         field.
7893         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7894         * config/arm/arm.c (current_function_anonymous_args): Delete,
7895         replace uses with cfun->machine->uses_anonymous_args.
7896         (arm_reorg): Do not reset uses_anonymous_args.
7897
7898         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7899         any geenral register.
7900
7901 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
7902
7903         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7904         the entry block.
7905
7906 2002-02-04  Richard Henderson  <rth@redhat.com>
7907
7908         * combine.c (force_to_mode): Remove STACK_BIAS code.
7909         (nonzero_bits): Likewise.  Replace sp/fp special case with
7910         REGNO_POINTER_ALIGN.
7911
7912         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7913         (HARD_FRAME_POINTER_REGNUM): New.
7914         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7915         (FIXED_REGS, CALL_USED_REGS): Update.
7916         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7917         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7918         (HARD_REGNO_NREGS): Update for SFP.
7919         (STACK_POINTER_OFFSET): Include bias here ...
7920         (FIRST_PARM_OFFSET): ... not here.
7921         (STACK_BIAS): Remove.
7922         (INIT_EXPANDERS): New.
7923         (STARTING_FRAME_OFFSET): Do not include bias.
7924         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7925         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7926         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7927         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7928         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7929         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7930         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7931         (MUST_SAVE_REGISTER): Likewise.
7932         (sparc_flat_function_prologue): Likewise.
7933         (sparc_flat_function_epilogue): Likewise.
7934         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7935         (sparc_init_modes): SFP is GENERAL_REGS.
7936         (sparc_builtin_saveregs): SFP does not have bias applied.
7937
7938 2002-02-04  Richard Henderson  <rth@redhat.com>
7939
7940         * config/alpha/alpha.c (current_function_is_thunk): Don't check
7941         current_function_is_thunk.
7942         (alpha_sa_mask): Distinguish between current_function_is_thunk
7943         called from ASM_OUTPUT_MI_THUNK and not.
7944         (alpha_does_function_need_gp): Thunks always need gp.
7945         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7946         (alpha_output_mi_thunk_osf): New.
7947         * config/alpha/alpha-protos.h: Update.
7948         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7949
7950 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
7951
7952         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7953         function types, not when they're taken away.
7954
7955 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
7956
7957         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7958         CODE_LABEL and jump table when replacing a table jump with a
7959         simple jump.
7960
7961 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7962
7963         * config/s390/s390-protos.h (legitimize_la_operand,
7964         s390_secondary_input_reload_class, s390_plus_operand,
7965         s390_expand_plus_operand): Add prototypes.
7966
7967         config/s390/s390.c (s390_secondary_input_reload_class,
7968         s390_plus_operand, s390_expand_plus_operand): New functions.
7969
7970         (struct s390_address): New member 'pointer'.
7971         (s390_decompose_address): Compute it.
7972         (legitimate_la_operand_p): Use it.
7973         (legitimize_la_operand): New function.
7974         (movti, movdi, movdf splitters): Call it.
7975
7976         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7977         (PREDICATE_CODES): Add s390_plus_operand.
7978
7979         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7980         (la_ccclobber): Allow GENERAL_REGS as output operand.
7981
7982         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7983         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7984         (*la_64, *la_31, reload_indi, reload_insi): ... these.
7985
7986 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
7987
7988         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7989         register names for regular asm () construct.
7990
7991 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7992
7993         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7994         registers.
7995
7996 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
7997
7998         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7999         pat for recog.
8000
8001 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
8002
8003         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8004         constant pool to be identical by string address and index.
8005
8006 2002-02-04  Anthony Green  <green@redhat.com>
8007
8008         * output.h (SECTION_OVERRIDE): Define.
8009         * varasm.c (named_section): Obey SECTION_OVERRIDE.
8010
8011 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8012
8013         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8014         by existing arm*-*-netbsd* (a.out) target.
8015         (ns32k-*-netbsdelf*): Likewise.
8016         (sparc-*-netbsdelf*): Likewise.
8017         (vax-*-netbsdelf*): Likewise.
8018
8019 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
8020
8021         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8022         headers and libobjc headers.
8023
8024 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
8025
8026         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8027         (_mingw.h): Remove duplicate include.
8028
8029 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8030
8031         * config.gcc: Set cpu_type to m68k for 68010, as well.
8032         (m68010-*-netbsdelf*): New...
8033         (m68k*-*-netbsdelf*): ...targets.
8034         * config/m68k/netbsd-elf.h: New file.
8035
8036 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8037
8038         * config/h8300/h8300.c (hand_list): Move inside function_arg.
8039
8040 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8041
8042         * config/h8300/h8300.c (h8_push_ops): Move inside
8043         h8300_init_once.
8044         (h8_pop_ops): Likewise.
8045         (h8_move_ops): Likewise.
8046
8047 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8048
8049         * config/h8300/h8300.c (os_task): Make it static.
8050         (monitor): Likewise.
8051         (pragma_saveall): Likewise.
8052
8053 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
8054
8055         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8056         constant is a valid sign-extension for Pmode.
8057
8058 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8059
8060         * config/h8300/h8300.c: Fix formatting.
8061
8062 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8063
8064         * config/h8300/h8300.md: Fix formatting.
8065
8066 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8067
8068         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8069         predicates of operands[1].  Split the patterns for each
8070         processor variant.
8071
8072 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8073
8074         * config/h8300/h8300.md (xor patterns): Tighten the predicates
8075         of operands[1] to register_operand.
8076
8077 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8078
8079         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8080         * cpphash.c (_cpp_init_hashtable): Similarly.
8081         * cppinit.c (cpp_create_reader): Default the signed_char flag.
8082         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8083         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8084         (cpp_handle_option): Handle the new options.
8085         * cpplex.c (cpp_interpret_charconst): Use new flag.
8086         * cpplib.h (struct cpp_options): New member signed_char.
8087         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8088         (cpp_options): Handle -fsigned-char and -funsigned-char.
8089         (static_specs): Remove signed_char_spec.
8090         (do_spec1): Don't handle %c.
8091         * system.h: Poison SIGNED_CHAR_SPEC.
8092         * tradcif.y (yylex): Use flag_signed_char.
8093         * tradcpp.h (flag_signed_char): New.
8094         * tradcpp.c (flag_signed_char): New.
8095         (main): Handle new command-line options.
8096         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8097 config:
8098         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8099         * avr/avr.h: Remove old comments.
8100         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8101         (CC1_SPEC): Pass -fsigned-char if -mic*.
8102         (SIGNED_CHAR_SPEC): Remove.
8103 doc:
8104         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8105
8106 2002-02-01  Eric Christopher  <echristo@redhat.com>
8107
8108         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8109         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8110         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8111         (ASM_OUTPUT_REG_POP): Ditto.
8112
8113 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8114
8115         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8116         patch.
8117
8118 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8119
8120         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8121
8122 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8123
8124         PR c/5304:
8125         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8126         unconditionally.
8127
8128 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8129
8130         * cfganal.c: Include tm_p.h.
8131         (keep_with_call_p): Fix the test that determines if a register holds
8132         the return value of a call.
8133
8134 2002-02-01  DJ Delorie  <dj@redhat.com>
8135
8136         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8137         we are given conflicting registers, switch to the other one we
8138         had allocated for us.
8139         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8140         as TImode so we know when the "other" register is available.
8141
8142 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8143
8144         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8145         sparc/sparc_bi.h.
8146
8147 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8148
8149         * cfganal.c (keep_with_call_p): New function.
8150         (flow_call_edges_add): Prevent splitting a block between a call and
8151         a single-set instruction that should be kept in the same block.
8152
8153 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8154
8155         * doc/install.texi (avr): Update outdated URL.
8156
8157 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8158
8159         * config/stormy16/stormy16.md (pushqi): New.
8160         (popqi): New.
8161         (pushhi): New.
8162         (pophi): New.
8163         (movhi): Remove stack operands.
8164         (movqi): Likewise.
8165         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8166         nonimmediate_nonstack_operand.
8167         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8168         New.
8169         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8170         New.
8171
8172 2002-01-31  Jason Merrill  <jason@redhat.com>
8173
8174         * Makefile.in (c-parse.c): Handle .output file.
8175         * objc/Make-lang.in (objc-parse.c): Likewise.
8176
8177 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8178
8179         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8180         the -me[lb] option is given.  Don't output the default flag
8181         twice.
8182
8183 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8184
8185         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8186         the primary source file; this has not been done yet.
8187         * c-decl.c (c_expand_body): Reset input_filename from
8188         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8189
8190 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8191
8192         * rtlanal.c (subreg_regno_offset): Do not use
8193         SUBREG_REGNO_OFFSET.
8194         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8195         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8196
8197 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8198
8199         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8200         version rather than GNATS version in --version output.
8201
8202 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8203
8204         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8205         when copying back from a temporary.
8206
8207 2002-01-30  Richard Henderson  <rth@redhat.com>
8208
8209         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8210         and new_dest are the same.
8211
8212 2002-01-30  Richard Henderson  <rth@redhat.com>
8213
8214         PR opt/5076
8215         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8216         * rtl.c (note_insn_name): Update.
8217         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8218         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8219         to perform loop rotation.
8220         (expand_exit_loop_top_cond): New.
8221         * tree.h (expand_exit_loop_top_cond): Declare it.
8222         * c-semantics.c (genrtl_while_stmt): Use it.
8223         (genrtl_for_stmt): Likewise.
8224
8225 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8226
8227         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8228         arguments to 64-bit boundaries on 64-bit ABIs.
8229
8230 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8231
8232         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8233
8234 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8235
8236         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8237         invalid type.
8238
8239 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8240
8241         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8242         * config/sparc/sparc_bi.h: Remove file.
8243         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8244
8245 2002-01-30  Richard Henderson  <rth@redhat.com>
8246
8247         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8248
8249 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8250
8251         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8252
8253 2002-01-30  Jason Merrill  <jason@redhat.com>
8254
8255         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8256         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8257         (reg_save): Use DW_CFA_offset_extended_sf instead.
8258
8259         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8260
8261 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8262
8263         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8264         in cselib_lookup.
8265
8266 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8267
8268         * rs6000.md ("*call_value_local32"): Remove constraints.
8269         ("*call_value_local64"): Same.
8270         ("*call_value_indirect_nonlocal_aix32"): Same.
8271         ("*call_value_nonlocal_aix32"): Same.
8272         ("*call_value_indirect_nonlocal_aix64"): Same.
8273         ("*call_value_nonlocal_aix64"): Same.
8274         ("*call_value_nonlocal_sysv"): Same.
8275
8276 2002-01-29  Richard Henderson  <rth@redhat.com>
8277
8278         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8279
8280 2002-01-29  Richard Henderson  <rth@redhat.com>
8281
8282         * expr.c (force_operand): Ignore flag_pic for detecting pic
8283         address loads.
8284         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8285         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8286         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8287         instead of open-coded loop.
8288         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8289         be fixed when in use.
8290
8291 2002-01-29  Richard Henderson  <rth@redhat.com>
8292
8293         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8294         * sched-rgn.c (propagate_deps): Update them.
8295         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8296         clobbers list when either gets too long.
8297
8298 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8299
8300         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8301         and INDEX_REGS the same as GENERAL_REGS.
8302         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8303
8304 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8305
8306         * tree.c (build_nonstandard_integer_type): Correct prototype.
8307
8308 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8309
8310         * config/s390/s390.md (movstrsico, movstrdix_64,
8311         movstrsix_31): Remove, replace by ...
8312         (movstrdi_short, movstrsi_short, movstrdi_long,
8313         movstrsi_long): ... these.  New.
8314         (movstrdi, movstrsi): Adapt.
8315
8316         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8317         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8318         Remove unnecessary CC clobber.
8319         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8320         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8321
8322         (divmoddi4): Don't partially initialize TImode register.
8323
8324 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8325
8326         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8327
8328 2002-01-29  Richard Henderson  <rth@redhat.com>
8329
8330         * flow.c (print_rtl_and_abort): Remove.
8331         (print_rtl_and_abort_fcn): Remove.
8332         (verify_local_live_at_start): Use dump_bb instead.
8333         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8334         (verify_wide_reg_1): Return 2 on mode test failure.
8335
8336 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8337
8338         PR c/3325, c/3326, c/2511, c/3347
8339         * c-decl.c (enum_decl_context): Remove BITFIELD.
8340         (grokdeclarator): Take bitfield width as an input.
8341         Ensure bitfields are given the correct type.  Perform
8342         bitfield width validation with build_bitfield_integer_type
8343         rather than waiting for finish_struct.
8344         (grok_typename, grok_typename_in_parm_context, start_decl,
8345         push_parmdecl, grokfield, start_function): Update calls to
8346         grokdeclarator.
8347         (build_bitfield_integer_type): New function.
8348         (finish_struct): Move bitfield validation to grokdeclarator
8349         and build_bitfield_integer_type.
8350         * tree.c (build_nonstandard_integer_type): New function.
8351         * tree.h (build_nonstandard_integer_type): New prototype.
8352 objc:
8353         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8354
8355 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8356
8357         PR other/1502:
8358         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8359         don't ignore unrecognized -W* options.
8360         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8361         * cpplib.h (cpp_handle_option): Adjust prototype.
8362         * c-decl.c (c_decode_options): Pass 0 as last argument to
8363         cpp_handle_option.
8364
8365         PR c/2896:
8366         * gcc.c (cpp_unique_options): Split from cpp_options.
8367         (cpp_options): Source cpp_unique_options.
8368         (default_compilers): Use cpp_unique_options instead of cpp_options
8369         when used together with cc1_options.
8370         (static_specs): Add cpp_unique_options.
8371         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8372         when used together with cc1_options.
8373
8374 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8375
8376         * config/h8300/h8300-protos.h: Update the prototype of
8377         output_a_shift.
8378         * config/h8300/h8300.c (output_a_shift): Remove an unused
8379         argument 'insn'.  Remove redundant code.
8380         * config/h8300/h8300.md: Adust to the new prototype of
8381         output_a_shift.
8382
8383 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8384
8385         * config/h8300/h8300-protos.h: Update the prototypes of
8386         emit_a_rotate and expand_a_rotate.
8387         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8388         first argument to 'enum rtx_code'.
8389         (expand_a_rotate): Likewise.
8390
8391 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8392
8393         * config/h8300/h8300-protos.h: Update the prototype of
8394         output_simode_bld.
8395         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8396         'log2'.
8397         * config/h8300/h8300.md: Adjust to the new prototype.
8398
8399 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8400
8401         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8402         redundant code.
8403
8404 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8405
8406         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8407         is a fixed register before returning pic_offset_table_rtx.
8408         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8409         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8410
8411 2002-01-28  Jason Merrill  <jason@redhat.com>
8412
8413         * dwarf2.h: Sync with src version.
8414
8415 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8416
8417         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8418         BT_FN_VOID_PTR_VAR.
8419         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8420         * doc/extend.texi (__builtin_prefetch): Update documentation:
8421         first argument is now const void ptr.
8422
8423 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8424
8425         * config/h8300/h8300-protos.h: Remove an unused prototype.
8426
8427 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8428
8429         * toplev.c (lang_independent_init): Round up identifier size.
8430
8431 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8432
8433         * config.gcc: Revert previous change.
8434
8435 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8436
8437         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8438
8439 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8440
8441         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8442         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8443         other non-elf netbsd config frags.
8444         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8445         collect2 will does that.
8446         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8447         shared-lib frobbing will work.
8448
8449 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8450
8451         * config/h8300/h8300.h: Fix formatting.
8452         * config/h8300/h8300.md: Likewise.
8453
8454 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8455
8456         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8457         the old, removed AAA_standards fix.
8458         * fixinc/fixincl.x: Rebuilt.
8459
8460 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8461
8462         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8463         atexit call in crtbegin, hooked in after call to frame_dummy;
8464         register EH before registering __fini__start.
8465
8466 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8467
8468         * config/rs6000/altivec.h: Remove spurious semicolons.
8469
8470 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8471
8472         * config/h8300/h8300.md: Replace dead bit extraction patterns
8473         with ones that work.
8474
8475 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8476
8477         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8478         if not STRICT_ALIGNMENT.
8479         * rtl.h (MEM_ALIGN): Likewise.
8480
8481 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8482
8483         * doc/invoke.texi (-fdump-translation-unit): Revert this
8484         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8485
8486 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8487
8488         * config/h8300/h8300.md (define_constants): New.
8489         (anonymous patterns) Use defined constants appropriately.
8490
8491 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8492
8493         * config/h8300/h8300.c (function_arg): Remove redundant code.
8494
8495 2002-01-26  Richard Henderson  <rth@redhat.com>
8496
8497         * sched-deps.c (reg_pending_uses_head): New.
8498         (reg_pending_barrier): Rename from reg_pending_sets_all.
8499         (find_insn_list): Don't mark inline.
8500         (find_insn_mem_list): Remove.
8501         (add_dependence_list, add_dependence_list_and_free): New.
8502         (flush_pending_lists): Replace only_write param with separate
8503         for_read and for_write parameters.  Update all callers.  Use
8504         add_dependence_list_and_free.
8505         (sched_analyze_1): Do not add reg dependencies here; just set
8506         the pending bits.  Use add_dependence_list.
8507         (sched_analyze_2): Likewise.
8508         (sched_analyze_insn): Replace schedule_barrier_found with
8509         reg_pending_barrier.  Add all dependencies for pending reg
8510         uses, sets, and clobbers.
8511         (sched_analyze): Don't add reg dependencies for calls, just
8512         set pending bits.  Use regs_invalidated_by_call.  Treat
8513         sched_before_next_call as a normal list, not a fake insn.
8514         (init_deps): No funny init for sched_before_next_call.
8515         (free_deps): Free pending mems lists.  Don't zero reg_last.
8516         (init_deps_global): Init reg_pending_uses.
8517         (finish_deps_global): Free it.
8518         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8519         (find_insn_mem_list): Remove.
8520         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8521         (propagate_deps): Use them.  Zero temp mem lists.
8522
8523 2002-01-26  Richard Henderson  <rth@redhat.com>
8524
8525         * Makefile.in (CRTSTUFF_CFLAGS): New.
8526         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8527         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8528         crtstuff.c instead of alpha assembly version.
8529         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8530         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8531         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8532         (__do_global_dtors_aux): Mark used.
8533         (frame_dummy, __do_global_ctors_aux): Mark used.
8534         (fini_dummy, init_dummy): Remove.
8535
8536         * config/alpha/crtbegin.asm: Remove file.
8537         * config/alpha/crtend.asm: Remove file.
8538         * config/alpha/t-crtbe: Remove file.
8539         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8540         (LINK_EH_SPEC): New.
8541
8542         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8543         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8544         calling constructors.
8545         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8546
8547         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8548         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8549         CRT_END_INIT_DUMMY hack.
8550         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8551         FORCE_{INIT,FINI}_SECTION_ALIGN.
8552
8553         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8554         FORCE_{INIT,FINI}_SECTION_ALIGN.
8555
8556         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8557         invocation sequence.
8558         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8559
8560         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8561         (FORCE_CODE_SECTION_ALIGN): New.
8562
8563 2002-01-26  Richard Henderson  <rth@redhat.com>
8564
8565         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8566
8567 2002-01-26  Richard Henderson  <rth@redhat.com>
8568
8569         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8570         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8571
8572 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8573
8574         * config/h8300/h8300.md: Remove bit extraction patterns that
8575         cannot be triggered.
8576         Restrict each bit extraction pattern to a variant on which the
8577         pattern is tested.
8578
8579 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8580
8581         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8582
8583 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8584
8585         * config/h8300/h8300.md: Remove bit test patterns that cannot
8586         be triggered.
8587         Restrict each bit test pattern to a variant on which the
8588         pattern is tested.
8589
8590 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8591
8592         * builtins.c (expand_builtin_strncat): Remove redundant check for
8593         INTEGER_CST.
8594
8595 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8596
8597         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8598         default setting.
8599         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8600         existing setting.
8601
8602 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8603
8604         * dbxout.c (dbxout_init): Use assemble_name rather than just
8605         stripping off the first character.
8606         (dbxout_source_file): Likewise.
8607
8608 2002-01-25  DJ Delorie  <dj@redhat.com>
8609
8610         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8611         using rtx_equal_p, not by comparing pointers.
8612
8613 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8614
8615         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8616         for PIC_OFFSET_TABLE_REGNUM.
8617         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8618
8619 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8620
8621         * config.gcc (x86_64-*-freebsd*): New target.
8622         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8623         value.
8624         (i[34567]86-*-freebsd*): Don't include svr4.h.
8625         * config/i386/freebsd64.h: New file.
8626
8627 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8628
8629         * config/alpha/x-vms (version): Make static.
8630
8631         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8632         in previous checkin.
8633
8634         * Makefile.in (install-headers-cp): New target.
8635         * config.gcc (alpha-dec-*vms*): Install headers with
8636         install-headers-cp
8637
8638 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8639
8640         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8641         avoid it's copies.
8642
8643 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8644
8645         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8646         of compare_tree_int.
8647         (expand_builtin_strncat): Likewise.
8648         * c-decl.c (finish_struct): Use tree_low_cst.
8649         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8650         * tree.c (compare_tree_int): Likewise.
8651
8652 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8653
8654         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8655         adjustments even if they are implemented by more than two insns.
8656
8657 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8658
8659         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8660         * df.h (struct ref): Kill B.
8661         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8662
8663         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8664         * flow.c (propagate_one_insn): Use it.
8665         (mark_used_regs): Handle NIL.
8666
8667 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8668
8669         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8670         to help folding.
8671
8672 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8673
8674         * rs6000.md (prefetch): Make address V4SI mode so that the address
8675         is restricted to legitimate form for instruction.
8676
8677 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8678
8679         * doc/install.texi (xtensa-*-elf): New target.
8680         (xtensa-*-linux*): New target.
8681         * doc/contrib.texi: Add myself.
8682
8683 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8684
8685         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8686         purpose register to hold an SImode (or smaller) value.
8687
8688 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8689
8690         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8691         registry only.
8692         * crtstuff.c: Likewise.
8693
8694 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8695
8696         * config/h8300/h8300.md (negation patterns): Tighten
8697         predicates to register_operand.
8698
8699 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8700
8701         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8702         mode, not Pmode.
8703
8704         * builtins.c (expand_builtin_prefetch): Same.
8705
8706 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8707
8708         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8709         modes.
8710
8711 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8712
8713         * config/h8300/h8300.c (print_operand): Remove support for
8714         operand character 'A'.
8715         * config/h8300/h8300.md (three anonymous patterns): Replace
8716         operand character 'A' with either 'T' or 'S'.
8717
8718 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8719
8720         * config/h8300/h8300.c (print_operand): Remove support for
8721         operand character 'U'.
8722
8723 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8724
8725         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8726
8727 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8728
8729         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8730         values to be assigned to the stack pointer.
8731
8732 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8733
8734         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8735         to const_double needs to be done right for big-endian systems.
8736
8737 2002-01-24  Jason Merrill  <jason@redhat.com>
8738
8739         PR c++/2432
8740         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8741         to can_throw_internal.
8742
8743 2002-01-23  Richard Henderson  <rth@redhat.com>
8744
8745         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8746         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8747
8748 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8749
8750         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8751         (symGOT2reg): Use them, then set as GOT value as unchanging.
8752         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8753         as a temporary, if possible.
8754         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8755         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8756
8757 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8758
8759         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8760         accept to accept 0x80 as operands[2].
8761
8762 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8763
8764         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8765
8766 2002-01-23  Richard Henderson  <rth@redhat.com>
8767
8768         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8769
8770 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8771
8772         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8773         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8774         an attribute.
8775
8776 2002-01-23  Richard Henderson  <rth@redhat.com>
8777
8778         * expr.c (move_by_pieces_1): Extend size before negation.
8779
8780         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8781         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8782         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8783         * config/m68k/t-m68kelf: Likewise.
8784
8785 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8786
8787         * config/xtensa/elf.h: New file.
8788         * config/xtensa/lib1funcs.asm: New file.
8789         * config/xtensa/lib2funcs.S: New file.
8790         * config/xtensa/linux.h: New file.
8791         * config/xtensa/t-xtensa: New file.
8792         * config/xtensa/xtensa-config.h: New file.
8793         * config/xtensa/xtensa-protos.h: New file.
8794         * config/xtensa/xtensa.c: New file.
8795         * config/xtensa/xtensa.h: New file.
8796         * config/xtensa/xtensa.md: New file.
8797         * config.gcc (xtensa-*-elf*): New target.
8798         (xtensa-*-linux*): New target.
8799         * cse.c (canon_hash): Compare rtx pointers instead of register
8800         numbers.  This is required for the Xtensa port.
8801         * integrate.c (copy_insn_list): Handle case where the static
8802         chain is in memory and the memory address has to be copied to
8803         a register.
8804         * doc/invoke.texi (Option Summary): Add Xtensa options.
8805         (Xtensa Options): New node.
8806         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8807
8808 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8809
8810         * diagnostic.c (internal_error): Do ICE suppression only
8811         when ENABLE_CHECKING is not defined.
8812
8813         * c-typeck.c (require_complete_type): Return error_mark_node
8814         if type is error_mark_node.
8815
8816 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8817
8818         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8819         -Os and issue a warning.
8820
8821 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8822
8823         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8824         current (lack of) need for host configuration by hand.
8825
8826         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8827         references.  Documentation of some target macros moved from
8828         hostconfig.texi to tm.texi.
8829
8830 2002-01-23  Will Cohen  <wcohen@redhat.com>
8831
8832         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8833         defined.
8834
8835 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8836
8837         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8838         operand[3].
8839
8840 2002-01-23  Jason Merrill  <jason@redhat.com>
8841
8842         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8843
8844         * function.c (assign_parms): Don't put args of inline functions
8845         into registers when not optimizing.
8846
8847 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8848
8849         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8850         (prologue_use): New pattern.
8851         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8852         preference to gen_rtx_USE.
8853         (thumb_expand_prologue): Use gen_prologue_use in preference to
8854         gen_rtx_USE.
8855         (thumb_expand_epilogue): Use gen_prologue_use in preference to
8856         gen_rtx_USE.
8857
8858 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
8859
8860         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8861
8862 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8863
8864         PR c/3504
8865         * doc/extend.texi: Correct documentation of __alignof__.
8866
8867 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
8868
8869         * params.h: Rename arguments of DEFPARAM so that it will be
8870         recognized as a translation keyword.
8871
8872 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8873
8874         * extend.texi: Document altivec functions.
8875         Fix N-bit adjectives in X86 builtin documentation.
8876
8877 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8878
8879         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8880         auto_inc_dec values.
8881
8882 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
8883
8884         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8885         after backslash.
8886         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8887
8888 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
8889
8890         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8891
8892 2002-01-22  Richard Henderson  <rth@redhat.com>
8893
8894         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8895         copy_insn not copy_rtx.
8896
8897 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
8898
8899         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8900         "nonzero" as that might add "1" bits.  Ensure "constop" is
8901         properly sign extened.
8902         (force_to_mode): Tweak for sign extended constop.
8903
8904 2002-01-22  Richard Henderson  <rth@redhat.com>
8905
8906         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8907         for_each_rtx instead of assuming we're already looking at the MEM.
8908         (split_small_symbolic_mem_operand): Likewise.
8909         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8910         * config/alpha/alpha.md (small symbolic memory splitters): Update.
8911
8912 2002-01-22  Richard Henderson  <rth@redhat.com>
8913
8914         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8915         sequence number for the literal.
8916         (divmoddi_internal_er): Likewise.
8917
8918 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8919
8920         PR java/4972
8921         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8922         in LIBICONV variable.
8923         * configure: Regenerated.
8924
8925 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
8926
8927         * dependence.c (build_def_use): Remove array_idx.
8928
8929         * dwarfout.c (last_filename): Remove.
8930         (output_compile_unit_die): Remove last_filename.
8931
8932 2002-01-22  Roger Sayle  <roger@eyesopen.com>
8933             Richard Henderson  <rth@redhat.com>
8934
8935         PR opt/3640
8936         * fold-const.c (fold): Optimize unsigned comparisons against
8937         UINT_MAX (and similar unsigned constants).
8938
8939 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
8940
8941         * Makefile.in (loop.o): Depend on OPTABS_H.
8942         * loop.c (emit_prefetch_instructions): Check the prefetch operand
8943         against the predicate.
8944
8945         PR target/5379
8946         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8947         for the address operand.
8948
8949 2002-01-22  Richard Henderson  <rth@redhat.com>
8950
8951         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8952
8953 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8954
8955         PR other/5450
8956         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8957         preprocessor flags.
8958
8959 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
8960
8961         * config.gcc (x86_64-*-netbsd*): New target.
8962         * config/i386/netbsd64.h: New file.
8963
8964 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8965
8966         * regrename.c (kill_value): Fix typo.
8967
8968 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
8969
8970         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8971
8972         * config/rs6000/rs6000.h: Same.
8973
8974         * function.c (instantiate_virtual_regs): Remove
8975         STARTING_FRAME_PHASE.
8976         (assign_stack_local_1): Same.
8977         Calculate frame phase.
8978
8979 2002-01-22  Nick Clifton  <nickc@redhat.com>
8980
8981         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8982         variable declaration to outer scope in order to simplify
8983         future extensions.
8984         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8985         arm_hard_regno_mode_ok.
8986         * config/arm/arm-protos.h: Add a prototype for
8987         arm_hard_regno_mode_ok.
8988         * config/arm/arm.c (soft_df_operand): Remove now redundant
8989         check for DImode values using IP_REGNUM.
8990         (nonimmediate_soft_df_operand): Remove now redundant check for
8991         DImode values using IP_REGNUM.
8992         (arm_hard_regno_mode_ok): New function. New check: make sure
8993         that DImode values are not stored in IP_REGNUM.
8994
8995         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8996         note with a USE.
8997         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8998
8999 2002-01-22  Jason Merrill  <jason@redhat.com>
9000
9001         * c-semantics.c (genrtl_compound_stmt): Only check nesting
9002         consistency if this COMPOUND_STMT is scoped.
9003
9004 2002-01-22  Kazu Hirata  <kazu@hxi.com>
9005
9006         * predict.c: Fix formatting.
9007         * print-tree.c: Likewise.
9008         * protoize.c: Likewise.
9009         * real.h: Likewise.
9010         * rtl.h: Likewise.
9011         * sbitmap.h: Likewise.
9012         * scan.c: Likewise.
9013         * sched-deps.c: Likewise.
9014         * sched-vis.c: Likewise.
9015         * sdbout.c: Likewise.
9016         * sibcall.c: Likewise.
9017         * ssa.c: Likewise.
9018         * ssa-ccp.c: Likewise.
9019         * ssa-dce.c: Likewise.
9020         * stmt.c: Likewise.
9021         * stor-layout.c: Likewise.
9022         * system.h: Likewise.
9023
9024 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9025
9026         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9027         if fits in bounds of base type.
9028
9029         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9030         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9031         (add_bound_info, default): If can't find a context, make a
9032         SAVE_EXPR.
9033         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9034
9035 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
9036
9037         * c-typeck.c (parser_build_binary_op): If result from
9038         build_binary_op is ERROR_MARK just return error_mark_node without
9039         further processing.
9040
9041 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
9042
9043         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9044         Split a.out-specific bits into...
9045         * config/netbsd-aout.h: ...this.
9046         * config/netbsd-elf.h: New file.
9047         * config/alpha/netbsd-elf.h: Remove.
9048         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9049         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9050         (STARTFILE_SPEC): Remove redundant definition.
9051         (ENDFILE_SPEC): Likewise.
9052         (LINK_SPEC): Likewise.
9053         (CPP_SPEC): Likewise.
9054         (ASM_SPEC): Likewise.
9055         (LIB_SPEC): Likewise.
9056         (SWITCH_TAKES_ARG): Likewise.
9057         (TARGET_MEM_FUNCTIONS): Likewise.
9058         (CPP_PREDEFINES): Redefine.
9059         (ASM_FINAL_SPEC): Remove redefinition.
9060         (ASM_COMMENT_START): Redefine.
9061         (FUNCTION_PROFILER): Define.
9062         (TARGET_VERSION): Redefine.
9063         Comment and formatting cleanup.
9064         * config/i386/netbsd.h: Include <netbsd-aout.h>.
9065         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9066         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9067         big- or little-endian.
9068         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9069         * config.gcc (*-*-netbsd*): Add definitions common to all
9070         NetBSD configs.
9071         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9072         gnu_ld definitions.  Add netbsd-elf.h to and remove
9073         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
9074         tmake_file, and don't lose previous tmake_file contents.
9075         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9076         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9077         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
9078         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9079         (mipsel-*-netbsd*): Rename this to...
9080         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
9081         mips/little.h to tm_file for mips*el-*.
9082         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9083         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9084         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9085
9086 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9087
9088         * pa-protos.h (reg_before_reload_operand): New function prototype.
9089         * pa.c (reg_before_reload_operand): New function implementation.
9090         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
9091         contraints to "*m".
9092
9093 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9094
9095         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9096
9097 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9098
9099         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9100         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9101         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9102         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9103         (ENDFILE_SPEC): Undefine.
9104         (STARTFILE_SPEC): Redefine for PA.
9105
9106 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9107
9108         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9109
9110 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
9111
9112         * config.gcc: Add entries to supported PowerPC --with-cpu
9113         types.
9114
9115 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
9116
9117         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9118         true for 64-bit mode only SSE registers in 32-bit mode.
9119
9120 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9121
9122         * unwind-dw2.c: Fix formatting.
9123         * unwind-dw2-fde.c: Likewise.
9124         * unwind-dw2-fde.h: Likewise.
9125         * unwind-pe.h: Likewise.
9126         * varasm.c: Likewise.
9127         * varray.h: Likewise.
9128
9129 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9130
9131         Remove workaround for register stack overwrite bug in mmix.
9132         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9133         support for TARGET_REG_STACK_FILL_BUG.
9134         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9135         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9136         Delete.
9137         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9138         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9139         -mno-reg-stack-fill-bug-workaround.
9140         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9141         machine member has_call_without_parameters.
9142         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9143         -mreg-stack-fill-bug-workaround and
9144         -mno-reg-stack-fill-bug-workaround.
9145         (MMIX Options): Ditto.
9146
9147 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9148
9149         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9150         as appropriate.
9151         Remove redundant code.
9152
9153 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9154
9155         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9156         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9157         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9158         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9159         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9160         out target macro definitions and non-target-specific comments
9161         mostly taken from old versions of the manual.
9162
9163 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9164
9165         * config/h8300/h8300.h: Fix comment formatting.
9166         * config/ia64/aix.h: Likewise.
9167         * config/ia64/ia64-protos.h: Likewise.
9168         * config/ia64/ia64.c: Likewise.
9169         * config/ia64/ia64.h: Likewise.
9170         * config/ia64/ia64intrin.h: Likewise.
9171         * config/ia64/linux.h: Likewise.
9172         * config/ia64/unwind-aix.c: Likewise.
9173         * config/ia64/unwind-ia64.c: Likewise.
9174
9175 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9176
9177         * config/h8300/h8300.c: Revise comments about shift code.
9178
9179 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9180
9181         * config/h8300/h8300.c (function_arg): Update a comment.
9182
9183 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9184
9185         * config/h8300/h8300.md: Update the comments at the beginning
9186         of the file.
9187
9188 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9189
9190         * config/i370/i370.c: Fix comment formatting.
9191         * config/i370/i370.h: Likewise.
9192         * config/i370/i370.md: Likewise.
9193         * config/i370/linux.h: Likewise.
9194
9195 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9196
9197         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9198
9199         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9200         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9201         in incomplete case.
9202
9203 2002-01-20  Graham Stott  <grahams@redhat.com>
9204
9205         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9206
9207 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9208
9209         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9210
9211 2002-01-19  Tom Rix  <trix@redhat.com>
9212
9213         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9214
9215 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9216
9217         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9218
9219         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9220         STARTING_FRAME_PHASE.
9221         (STARTING_FRAME_PHASE): New.
9222         (instantiate_virtual_regs): Check saneness of
9223         STARTING_FRAME_PHASE.
9224
9225         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9226
9227 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9228
9229         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9230
9231 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9232
9233         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9234         be used for bootstrapping GCC 3.0.
9235
9236 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9237
9238         * config/h8300/h8300.md: Fix an insn length.
9239
9240 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9241
9242         * bitmap.h: Fix comment formatting.
9243         * combine.c: Likewise.
9244         * cppfiles.c: Likewise.
9245         * c-pragma.h: Likewise.
9246         * c-typeck.c: Likewise.
9247         * df.c: Likewise.
9248         * dwarf2out.c: Likewise.
9249         * function.c: Likewise.
9250         * gcc.c: Likewise.
9251         * genattrtab.c: Likewise.
9252         * gthr-win32.h: Likewise.
9253         * haifa-sched.c: Likewise.
9254         * predict.c: Likewise.
9255         * rtlanal.c: Likewise.
9256         * rtl.h: Likewise.
9257         * unwind-dw2-fde.h: Likewise.
9258         * unwind-pe.h: Likewise.
9259         * vmsdbgout.c: Likewise.
9260
9261 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9262
9263         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9264         if type_required and passed decl.
9265
9266 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9267
9268         * config.gcc (cpu_type): Include altivec.h in powerpc
9269         extra_headers.
9270         Same for darwin.
9271
9272         * config/rs6000/altivec.h: New.
9273
9274 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9275
9276         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9277         handling information.
9278         * doc/trouble.texi (Interoperation): Add libstdc++ information
9279         for AIX.
9280         (Misunderstandings): Add template instantiation and static template
9281         member information for AIX.
9282
9283 2002-01-17  Jason Merrill  <jason@redhat.com>
9284
9285         * dbxout.c (dbxout_type): Support const and volatile.
9286
9287         * except.c (add_partial_entry): Remove backwards compatibility code.
9288         (end_protect_partials): Likewise.
9289
9290 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9291
9292         * config/ia64/ia64.md (prologue_use): New.
9293         * config/ia64/ia64.c (ia64_expand_prologue): Use
9294         gen_prologue_use instead of gen_rtx_USE.
9295         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9296         as CODE_FOR_pred_rel_mutex.
9297         (ia64_sched_reorder2): Likewise.
9298
9299 2002-01-16  Eric Christopher  <echristo@redhat.com>
9300
9301         * config/mips/r3900.h: Reformat.
9302         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9303         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9304         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9305         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9306         * config/mips/t-elf: Remove mips3 multilib.
9307
9308 2002-01-16  H.J. Lu <hjl@gnu.org>
9309
9310         * config/mips/linux.h: Include "mips/abi64.h".
9311
9312 2002-01-16  H.J. Lu <hjl@gnu.org>
9313
9314         * config/mips/t-linux: New.
9315
9316         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9317
9318         * config/mips/linux.h: Don't include "gofast.h".
9319         (INIT_SUBTARGET_OPTABS): Removed.
9320
9321 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9322
9323         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9324         output_a_shift.
9325         * config/h8300/h8300.c: Likewise.
9326         * config/h8300/h8300.md: Likewise.
9327
9328 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9329
9330         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9331         spaces after an opcode name.
9332         (pushqi1_h8300hs): Likewise.
9333         (pushhi1_h8300hs): Likewise.
9334
9335 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9336
9337         * doc/extend.texi: Replace "option" with "attribute"
9338         appropriately.
9339
9340 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9341
9342         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9343         (and:DI () (const_int -8)).
9344         (split_small_symbolic_mem_operand): Split
9345         (mem (and:DI () (const_int -8)).
9346
9347 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9348
9349         PR target/5309:
9350         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9351         same way as TYPE_IMUL.
9352         (ultrasparc_sched_reorder): Likewise.
9353         * config/sparc/sparc.md (type): Add comment to update
9354         ultrasparc_sched_reorder when making changes.
9355
9356 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9357
9358         * doc/invoke.texi: Change the dump file name of block
9359         reordering pass from 28.bbro to 29.bbro.
9360         Mention -dk option.
9361
9362 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9363
9364         * i386.md (minsf splitter): Fix pasto.
9365
9366 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9367
9368         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9369         to frame pointer initialisation instruction.
9370         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9371         initialisation instruction.
9372         (soft_df_operand): Do not accept the IP register.
9373         (nonimmediate_soft_df_operand): Do not accept the IP register.
9374
9375 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9376
9377         PR target/5357:
9378         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9379         MASK_V8 being both set.
9380
9381 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9382
9383         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9384         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9385         config/s390/s390.md (call, call_value): Add GOT register to
9386         CALL_INSN_FUNCTION_USAGE where needed.
9387         (call_exp, call_value_exp): New.
9388
9389 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9390
9391         * config/arm/arm.c: General formatting tidy up.
9392
9393 2002-01-16  Graham Stott  <grahams@redhat.com>
9394
9395         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9396         cast and when casting an integer literal to "rtx" pointer.
9397         (expand_call): Likewise.
9398         * flow.c (try_pre_increment): Likewise.
9399         (find_use_as_address): Likewise.
9400         * integrate.c (expand_iline_function): Likewise.
9401         * regmove.c (try_auto_increment): Likewise.
9402
9403 2002-01-16  Graham Stott  <grahams@redhat.com>
9404
9405         * sched-rgn.c (passed): Use sbitmap_free.
9406         (header): Likewise.
9407         (inner): Likewise.
9408         (in_queue): Likewise.
9409         (in_stack): Likewise.
9410
9411 2002-01-15  Eric Christopher  <echristo@redhat.com>
9412
9413         * flow.c (propagate_one_insn): Change to use fatal_insn.
9414
9415 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9416
9417         * expmed.c (extract_fixed_bit_field): Remove unused code.
9418         * system.h: Poison SLOW_ZERO_EXTEND.
9419         * doc/tm.texi: Remove.
9420         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9421         * config/arm/arm.h: Likewise.
9422         * config/avr/avr.h: Likewise.
9423         * config/clipper/clipper.h: Likewise.
9424         * config/convex/convex.h: Likewise.
9425         * config/d30v/d30v.h: Likewise.
9426         * config/dsp16xx/dsp16xx.h: Likewise.
9427         * config/elxsi/elxsi.h: Likewise.
9428         * config/fr30/fr30.h: Likewise.
9429         * config/h8300/h8300.h: Likewise.
9430         * config/i370/i370.h: Likewise.
9431         * config/i386/i386.h: Likewise.
9432         * config/m68k/m68k.h: Likewise.
9433         * config/mips/mips.h: Likewise.
9434         * config/ns32k/ns32k.h: Likewise.
9435         * config/pdp11/pdp11.h: Likewise.
9436         * config/pj/pj.h: Likewise.
9437         * config/s390/s390.h: Likewise.
9438         * config/sh/sh.h: Likewise.
9439         * config/stormy16/stormy16.h: Likewise.
9440         * config/v850/v850.h: Likewise.
9441         * config/vax/vax.h: Likewise.
9442         * config/we32k/we32k.h: Likewise.
9443
9444 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9445
9446         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9447         (altivec_lvsl): Change constraint to b.
9448         (altivec_lvsr): Same.
9449         (altivec_lvebx): Same.
9450         (altivec_lvehx): Same.
9451         (altivec_lvewx): Same.
9452         (altivec_lvxl): Same.
9453         (altivec_lvx): Same.
9454         (altivec_stvx): Add parallel.
9455         (altivec_stvxl): Same.
9456         (altivec_stvehx): Same.
9457         (altivec_stvebx): Same.
9458         (altivec_stvebx): Same.
9459
9460 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9461
9462         * config.gcc: Change altivec.h to altivec-defs.h.
9463
9464         * config/rs6000/altivec.h: Delete.
9465
9466         * config/rs6000/altivec-defs.h: Add.
9467
9468 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9469
9470         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9471         and UMOD modes.
9472
9473         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9474         less than or equal to eight bytes.
9475
9476         * vax.md (andsi3): Remove constraints and change SET destination
9477         operand type to nonimmediate_operand.
9478         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9479         when it is a CONST_INT.
9480
9481 2002-01-15  Jason Merrill  <jason@redhat.com>
9482
9483         * c-common.def (FILE_STMT): New code.
9484         * c-common.c (statement_code_p): It's a statement.
9485         * c-common.h (stmt_tree_s): Add x_last_filename.
9486         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9487         (last_expr_filename): New macro.
9488         * c-semantics.c (begin_stmt_tree): Initialize it.
9489         (add_stmt): If the filename changed, also insert a
9490         FILE_STMT.
9491         (expand_stmt): Handle seeing one.
9492
9493 2002-01-15  Eric Christopher  <echristo@redhat.com>
9494
9495         * flow.c (propagate_one_insn): Add error message and print out
9496         insn for debugging.
9497
9498 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9499
9500         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9501         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9502         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9503         TRAMPOLINE_ALIGNMENT.
9504         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9505         to be in bits.
9506         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9507         PCC_BITFIELD_TYPE_MATTERS.
9508         * config/interix.h (STDC_VALUE): Remove.  Use
9509         STDC_0_IN_SYSTEM_HEADERS.
9510         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9511         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9512         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9513
9514 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9515
9516         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9517         not work on this platform currently.
9518
9519 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9520
9521         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9522         readonly_warning in _().
9523
9524 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9525
9526         * gcc.c (delete_if_ordinary): Backout previous change.
9527
9528 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9529
9530         * config/h8300/h8300.c (print_operand): Remove support for
9531         unused operand characters.
9532
9533         * read-rtl.c: Fix formatting.
9534         * real.c: Likewise.
9535         * recog.c: Likewise.
9536         * regclass.c: Likewise.
9537         * regmove.c: Likewise.
9538         * reg-stack.c: Likewise.
9539         * reload1.c: Likewise.
9540         * rtlanal.c: Likewise.
9541
9542 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9543
9544         * config/i386/i386.c: Fix formatting.
9545
9546 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9547
9548         * c-typeck.c (process_init_element): Don't save_expr
9549         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9550
9551 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9552
9553         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9554         emit optional traceback table if optimize_size or TARGET_ELF.
9555         * config/rs6000/rs6000.md (prefetch): New.
9556
9557 2002-01-15  Andreas Jaeger  <aj@suse.de>
9558
9559         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9560
9561 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9562
9563         * mips-tfile.c: Fix formatting.
9564
9565 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9566
9567         * unroll.c (final_reg_note_copy): Fix previous commit.
9568
9569 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9570
9571         * config/h8300/h8300-protos.h: Remove the prototype for
9572         eq_operator.
9573         * config/h8300/h8300.c (eq_operator): Remove.
9574
9575 2002-01-14  Richard Henderson  <rth@redhat.com>
9576
9577         * config/i386/i386.md (prefetch): Tidy.
9578         (prefetch_3dnow): Fix locality operand.
9579
9580 2002-01-14  Richard Henderson  <rth@redhat.com>
9581
9582         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9583         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9584
9585 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9586
9587         * reload1.c (reload_combine): Pass reg_sum replacement through
9588         copy_rtx in loop performing multiple changes.
9589
9590 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9591
9592         * except.c (remove_unreachable_regions): New.
9593         (free_eh_status): Clear exception_handler_labels.
9594         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9595         (find_exception_handler_labels): Don't add the same label more than
9596         once.
9597         (remove_exception_handler_label): Don't die if
9598         find_exception_handler_labels hasn't been called for the current
9599         function yet.
9600
9601 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9602
9603         * toplev.c (rest_of_compilation): Rebuild jump labels after
9604         gcse.
9605
9606 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9607
9608         * doc/extend.texi: Move documentation of X86 built-in functions
9609         here.
9610         * doc/invoke.texi: From here.
9611         * doc/sourcebuild.texi: Document location of documentation for
9612         machine built-in functions.
9613
9614 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9615
9616         * cppfiles.c (TEST_THRESHOLD): New macro.
9617         (SHOULD_MMAP): Ditto.
9618         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9619         be used.
9620
9621 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9622
9623         * unroll.c (final_reg_note_copy): Properly handle
9624         REG_LABEL
9625         (unroll_loops): Fix LOOP_CONDITION heuristics.
9626
9627 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9628
9629         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9630         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9631
9632 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9633
9634         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9635         threaded loop.
9636
9637 2002-01-14  Tom Rix  <trix@redhat.com>
9638
9639         * config/rs6000/rs6000.md: Fix typo with sradi.
9640
9641 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9642
9643         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9644         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9645         (clrstrdi, clrstrsi): Adapt callers.
9646
9647         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9648
9649         (movti splitter): Never use register 0 as base register.
9650
9651 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9652
9653         * combine.c (simplify_shift_const): Always generate new rtx
9654         for shift expression instead of reusing given expression.
9655
9656 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9657
9658         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9659         alpha_legitimize_address unless mode is Pmode.
9660
9661 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9662
9663         * doc/md.texi (Modifiers): Document the '*' constraint for the
9664         user.
9665
9666         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9667         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9668         for xstormy16 too.
9669
9670 2002-01-13  Richard Henderson  <rth@redhat.com>
9671
9672         * reload.c (find_reloads): Use a hard reg destination as reload reg
9673         for an input reload of the source.
9674
9675 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9676
9677         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9678         more generic.
9679
9680 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9681
9682         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9683         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9684
9685         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9686
9687 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9688
9689         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9690
9691 2002-01-12  Tom Rix  <trix@redhat.com>
9692
9693         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9694         TARGET_POWERPC64.
9695
9696 2002-01-12  Richard Henderson  <rth@redhat.com>
9697
9698         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9699
9700         * doc/invoke.texi: Update Alpha options.
9701
9702         * doc/invoke.texi: Update i386 built-in function lists.
9703
9704 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9705
9706         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9707         referencing outside.
9708
9709 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9710
9711         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9712         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9713         offsets, and change line folding.
9714         * optabs.c (expand_binop): Remove warnings.
9715         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9716
9717 2002-01-12  Graham Stott <grahams@redhat.com>
9718
9719         * attribs.c (handle_deprecated_attribute): constify WHAT.
9720         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9721         dangling else warning and constify WHAT.
9722         * except.h (struct function, struct inline_remap): Move
9723         struct tag forward defs before all prototypes.
9724         (duplicate_eh_regions): Whitespace.
9725
9726 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9727
9728         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9729         MODE_BASE_REG_CLASS.
9730         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9731
9732 2002-01-12  Richard Henderson  <rth@redhat.com>
9733
9734         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9735         (ix86_expand_vector_move): New.
9736         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9737         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9738         Remove old prefetch builtins.  Special case the logicals removed above.
9739         (ix86_expand_builtin): Likewise.
9740         (safe_vector_operand): Use V4SFmode, not TImode.
9741         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9742         (ix86_expand_timode_binop_builtin): New.
9743         * config/i386/i386-protos.h: Update.
9744         * config/i386/i386.h (enum ix86_builtins): Update.
9745         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9746         Use ix86_expand_vector_move in vector move expanders.
9747         (movti_internal, movti_rex64): Add xorps alternative.
9748         (sse_clrv4sf): Rename and adjust from sse_clrti.
9749         (prefetch): Don't work so hard.
9750         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9751         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9752         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9753
9754 2002-01-11  Richard Henderson  <rth@redhat.com>
9755
9756         * config/i386/mmintrin.h: New file.
9757         * config/i386/xmmintrin.h: New file.
9758         * config.gcc (i?86-*-*): Add extra_headers.
9759         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9760         truncation codes.
9761         (simplify_binary_operation): Handle saturating arithmetic codes.
9762         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9763         not the lowpart subreg.
9764         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9765         on error.
9766         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9767
9768 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9769
9770         * conflict.c (conflict_graph_compute): Free regsets when finished.
9771         * ssa.c (compute_coalesced_reg_partition): Likewise.
9772
9773 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9774
9775         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9776         every where we allocate a register.
9777
9778 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9779
9780         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9781         * lcm.c (compute_earliest, compute_farthest): Likewise.
9782
9783 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9784
9785         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9786
9787 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9788
9789         * doc/rtl.texi (Insns): Fix 2 typos.
9790
9791 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9792
9793         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9794         options.  Use @table @gcctabopt for MMIX options.  Add index
9795         entries for MMIX options.  Start new paragraph with first
9796         heading of the machine-dependent options.
9797
9798 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9799
9800         PR other/5299
9801         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9802         * combine.c (force_to_mode): Same.
9803         * reload1.c (clear_reload_reg_in_use): Same.
9804
9805 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9806
9807         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9808         and 'subtargets'.
9809
9810 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9811             Brad Lucier <lucier@math.purdue.edu>
9812
9813         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9814         mcpu.
9815
9816 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9817
9818         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9819         Protect with IN_LIBGCC.
9820         (LINK_EH_SPEC): Add required trailing space.
9821
9822 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9823
9824         * c-tree.h: Move function declarations so that they are listed
9825         under the filename which contains them.
9826         (check_identifier, finish_decl_top_level,
9827         lookup_name_current_level_global, shadow_record_fields): Remove.
9828
9829 2002-01-11  Andreas Jaeger  <aj@suse.de>
9830
9831         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9832         march.
9833
9834 2002-01-10  Richard Henderson  <rth@redhat.com>
9835
9836         * config/alpha/alpha.c (print_operand): Add 'J'.
9837         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9838         new operand with the sequence number for the lituse.  When splitting
9839         the insns, use gen_movdi_er_high_g and generate a sequence number.
9840         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9841
9842 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9843
9844         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9845         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9846         stvxl.
9847         (altivec_expand_builtin): Same.
9848         (altivec_expand_stv_builtin): New.
9849
9850         * config/rs6000/rs6000.h (rs6000_builtins): Same.
9851
9852         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9853         ("altivec_lvehx"): New.
9854         ("altivec_lvewx"): New.
9855         ("altivec_lvxl"): New.
9856         ("altivec_lvx"): New.
9857         ("altivec_stvx"): New.
9858         ("altivec_stvebx"): New.
9859         ("altivec_stvehx"): New.
9860         ("altivec_stvewx"): New.
9861         ("altivec_stvxl"): New.
9862
9863 2002-01-10  Richard Henderson  <rth@redhat.com>
9864
9865         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9866         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
9867         care not to delete instructions twice.
9868
9869 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9870
9871         * toplev.c: Don't declare environ (it's not used anywhere).
9872         * configure.in: Don't check for declaration of environ.
9873         * config/i386/xm-mingw32.h: Don't #define environ.
9874         * config.in, configure: Regenerate.
9875
9876 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
9877
9878         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9879         * configure: Regenerate.
9880
9881         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9882         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9883         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9884         alpha/xm-vms.h.
9885         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9886         LIMITS_H_TEST here, not in m68k/x-next.
9887         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9888         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9889
9890         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9891         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9892         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
9893
9894         * config/i386/x-djgpp: Renamed i386/t-djgpp.
9895         * config/m88k/x-dolph: Renamed m88k/t-dolph.
9896         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9897         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
9898         replacement of quadlib.asm with quadlib.c.
9899
9900         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9901         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9902         config/rs6000/xm-beos.h: Delete file.
9903
9904         * config.gcc: Update to match above changes.
9905
9906 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9907
9908         * config/h8300/h8300.h: Fix comment typos.
9909         * config/h8300/h8300.md: Likewise.
9910         * config/h8300/lib1funcs.asm: Likewise.
9911
9912 2002-01-10  Dale Johannesen  <dalej@apple.com>
9913
9914         PR optimization/5269
9915         * unroll.c (precondition_loop_p): Make *increment be the correct
9916         sign when n_iterations known, to avoid confusing caller.
9917
9918 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9919
9920         * doc/extend.texi (deprecated): Fix a typo.
9921
9922 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9923
9924         * basic-block.h (update_br_prob_note): Declare.
9925         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9926         (try_forward_edges): Care negative frequencies and update note.
9927         (outgoing_edges_match): Tweek conditional merging heuristics.
9928         (try_crossjump_to_edge): use update_br_prob_note.
9929         * cfglayout.c (fixup_reorder_chain): Likewise.
9930         * cfrtl.c (update_br_prob_note): New.
9931         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9932
9933         * i386.c (ix86_decompose_address): Return -1 if address contains
9934         shift.
9935         (legitimate_address_p): Require ix86_decompose_address to return 1.
9936
9937         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9938         (cprop_insn): Likewise.
9939
9940 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9941
9942         * toplev.c: Fix formatting.
9943         * tree.c: Likewise.
9944         * tree-dump.c: Likewise.
9945         * unroll.c: Likewise.
9946         * unwind-dw2.c: Likewise.
9947         * unwind-dw2-fde.c: Likewise.
9948         * unwind-dw2-fde-glibc.c: Likewise.
9949         * unwind-sjlj.c: Likewise.
9950
9951 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9952
9953         * doc/invoke.texi: Document PDP-11 options.
9954
9955 2002-01-10  Kazu Hirata  <kazu@hxi.com>
9956
9957         * config/h8300/h8300.h: Fix formatting.
9958
9959 2002-01-10  Ira Ruben   <ira@apple.com>
9960
9961         Add __attribute__ ((deprecated)).
9962         * extend.texi: Document __attribute__ ((deprecated)).
9963         * invoke.texi: Document -Wno-deprecated-declarations.
9964         * testsuite/g++.dg/other/deprecated.C: New C++ test.
9965         * testsuite/gcc.dg/deprecated.c: New C test.
9966         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9967         (c_common_attribute_table): Add "deprecated" entry.
9968         (handle_deprecated_attribute): New function.
9969         * c-decl.c (deprecated_states): New enum.
9970         deprecated_state: State of "deprecated" handling.
9971         (start_decl): Set deprecated_state based on attributes.
9972         (grokdeclarator): Test for deprecated uses, propagate attribute.
9973         * c-typeck.c (build_component_ref): Test for deprecated fields.
9974         (build_external_ref): Test for deprecated primaries.
9975         * diagnostic.c (warn_deprecated_use) New function to issue
9976         warnings about __attribute__ ((depricated)) references.
9977         * flags.h (warn_deprecated_decl): Extern declared for
9978         -W[no-]deprecated-declarations option.
9979         * print-tree.c (print_node): Show deprecated flag status.
9980         * toplev.c (warn_deprecated_decl): Defined.
9981         (W_options): Added "deprecated-declaration".
9982         * toplev.h (warn_deprecated_use): Extern declared.
9983         * tree.h (struct tree_common): Define deprecated_flag.
9984         (TREE_DEPRECATED): New macro to access flag.
9985         * cp/call.c (build_call): Test for deprecated calls.
9986         * cp/class.c (add_implicitly_declared_members): Set global
9987         flag to tell grokdeclarator to not issue deprecated warnings.
9988         * cp/cp-tree.h: Add extern for adding_implicit_members.
9989         * cp/decl.c (deprecated_states): New enum.
9990         (start_decl): Set deprecated_state based on attributes.
9991         (grokdeclarator): Test for deprecated uses, propagate attribute.
9992         * cp/lex.c (do_identifier): Test for deprecated primaries.
9993         * cp/typeck.c (build_component_ref): Test for deprecated fields.
9994
9995 2002-01-10  Ira Ruben   <ira@apple.com>
9996
9997         Fix to assign attributes to inline member functions.
9998         * cp/decl.c (start_method): Handle attrlist.
9999
10000 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10001
10002         * combine.c (expand_field_assignment): Use subreg_lsb().
10003
10004 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
10005
10006         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10007         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10008         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10009         Recurse for any operand of AND as long as constant is non-zero.
10010
10011 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10012
10013         * config/h8300/h8300.md: Remove constraints from expanders.
10014
10015 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10016
10017         * varasm.c: Fix formatting.
10018         * varray.c: Likewise.
10019         * vmsdbgout.c: Likewise.
10020         * xcoffout.c: Likewise.
10021
10022 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10023
10024         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10025         update edge probabilities to match.
10026
10027 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10028
10029         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10030         dependencies.
10031         * doc/languages.texi, doc/sourcebuild.texi: New files.
10032         * doc/configfiles.texi: Make a subsubsection.  Update.
10033         * doc/configterms.texi: Add @node.  Remove warning that this isn't
10034         instructions for building GCC.
10035         * doc/makefile.texi: Make a subsection.
10036         * doc/gccint.texi: Update.
10037
10038 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10039
10040         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10041
10042 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
10043
10044         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10045
10046 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
10047
10048         * optabs.c (expand_fix): Look for wider integer modes first.
10049
10050         * i386.md (mov?f): Avoid the fake const double trick for medium
10051         memory model.
10052         (min?f*/max?f*): Prohibit memory operands for i387 variant.
10053         (fop_df_4): Disable for SSE compilation.
10054
10055 2002-01-10  Graham Stott  <grahams@redhat.com>
10056
10057         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10058         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10059
10060 2002-01-10  Richard Henderson  <rth@redhat.com>
10061
10062         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10063
10064 2002-01-10  Richard Henderson  <rth@redhat.com>
10065
10066         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10067         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
10068
10069 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10070
10071         * combine.c (can_combine_p): Fix a comment typo.
10072
10073 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
10074
10075         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10076         empty list correctly.  Change loop index $t to $f for
10077         consistency with rest of Makefile.
10078
10079 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
10080
10081         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10082         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10083
10084         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10085         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10086         (altivec_init_builtins): Same.
10087         (altivec_expand_unop_builtin): Return NULL_RTX on error.
10088         (altivec_expand_binop_builtin): Same.
10089         (altivec_expand_ternop_builtin): Same.
10090         (bdesc_dst): New.
10091
10092         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10093         ("altivec_vctuxs"): Fix typo.
10094         ("altivec_vnmsubfp"): Same.
10095         ("altivec_dssall"): New.
10096         ("altivec_mfvscr"): New.
10097         ("altivec_dss"): New.
10098         ("altivec_lvsl"): New.
10099         ("altivec_lvsr"): New.
10100         ("altivec_dstt"): New.
10101         ("altivec_dstst"): New.
10102         ("altivec_dststt"): New.
10103         ("altivec_dst"): New.
10104
10105         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10106         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10107
10108 2002-01-09  Richard Henderson  <rth@redhat.com>
10109
10110         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10111
10112 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
10113
10114         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10115         function.
10116         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10117         prototype.
10118         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10119
10120 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10121
10122         * read-rtl.c: Fix formatting.
10123         * real.c: Likewise.
10124         * regclass.c: Likewise.
10125         * regrename.c: Likewise.
10126         * reg-stack.c: Likewise.
10127         * reload1.c: Likewise.
10128         * reload.c: Likewise.
10129         * rtl.c: Likewise.
10130
10131 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10132
10133         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10134         to extract items in the expr_list chain.
10135
10136 2002-01-09  Richard Henderson  <rth@redhat.com>
10137
10138         * config/vax/vax.c (vax_rtx_cost): Never abort.
10139
10140         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10141
10142 2002-01-09  Jan Hubicka  <jh@suse.cz>
10143
10144         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10145
10146 2002-01-09  Richard Henderson  <rth@redhat.com>
10147
10148         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10149         Unify code from various alternatives.
10150
10151 2002-01-09  Richard Henderson  <rth@redhat.com>
10152
10153         * regrename.c (copy_value): Ignore the copy if the source register
10154         is present in the value chain with a narrower mode.
10155
10156 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10157
10158         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10159         for the c4x target. Also improve layout.
10160
10161 2002-01-09  Richard Henderson  <rth@redhat.com>
10162
10163         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10164         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10165         to match insn patterns.
10166
10167 2002-01-09  Richard Henderson  <rth@redhat.com>
10168
10169         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10170         (copyprop_hardreg_forward_1): Likewise.
10171
10172 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10173
10174         * pa.md (decrement_and_branch_until_zero): Change predicate for
10175         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10176
10177 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10178
10179         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10180         gets undefined. For Darwin.
10181
10182 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10183
10184         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10185
10186 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10187
10188         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10189
10190 2002-01-08  Richard Henderson  <rth@redhat.com>
10191
10192         * regrename.c (copy_value): Ignore overlapping copies.
10193
10194 2002-01-08  Richard Henderson  <rth@redhat.com>
10195
10196         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10197         as needed to avoid shared structure.
10198
10199 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10200
10201         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10202         H8/300H and H8/S.
10203
10204 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10205
10206         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10207         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10208         documentation of obsolete macros.
10209         * system.h: Poison these macros.
10210         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10211         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10212         config/c4x/c4x.h, config/clipper/clipper.h,
10213         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10214         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10215         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10216         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10217         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10218         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10219         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10220         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10221         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10222         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10223         config/sparc/sparc.h, config/stormy16/stormy16.h,
10224         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10225         definitions and commented out definitions of obsolete macros.
10226         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10227         of MAX_INT_TYPE_SIZE.
10228
10229 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10230
10231         * config/s390/s390.c (s390_preferred_reload_class): Never
10232         return ADDR_REGS if it isn't a subset of the given class.
10233         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10234         FP_REGS, but all superclasses as well.
10235
10236         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10237
10238         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10239         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10240         must not be a const_int.
10241
10242 2002-01-08  Richard Henderson  <rth@redhat.com>
10243
10244         * Makefile.in (toplev.o): Depend on options.h.
10245         (gcc.o): Depend on specs.h.
10246
10247 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10248
10249         * expr.c (store_expr): Convert VOIDmode constants back to target's
10250         mode.
10251
10252 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10253
10254         * doc/invoke.texi: Markup gcc as @command.  Refer to
10255         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10256         of http://gcc.gnu.org/thanks.html.
10257
10258 2002-01-08  Dale Johannesen  <dalej@apple.com>
10259
10260         * config/rs6000/rs6000.md: Add missing int register
10261         target case to movdf_low.
10262
10263 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10264
10265         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10266         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10267         (cppinit.o): Depend on except.h.
10268         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10269         s-specs): New rules.
10270
10271         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10272         Don't create specs.h/options.h/gencheck.h here.  Remove
10273         unnecessary variable settings from last argument of AC_OUTPUT.
10274         * config.in, configure: Regenerate.
10275         * intl.c: Hardcode package name as "gcc".
10276
10277         * cppinit.c: Include except.h.
10278         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10279         appropriate.
10280         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10281         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10282         (!)USING_SJLJ_EXCEPTIONS.
10283         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10284
10285 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10286
10287         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10288         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10289         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10290         documentation of obsolete macros.
10291         * system.h: Poison these macros.
10292         * config/d30v/d30v.h, config/ns32k/encore.h,
10293         config/stormy16/stormy16.h: Remove definitions and commented out
10294         definitions of obsolete macros.
10295
10296 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10297
10298         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10299         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10300         warnings.
10301
10302 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10303
10304         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10305         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10306         to insn adjusting stack/frame pointer.
10307         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10308         accept operands that cause the insn to be non-splittable.
10309
10310 2002-01-08  Graham Stott  <grahams@redhat.com>
10311
10312         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10313         (C_TYPE_FIELDS_VOLATILE): Likewise.
10314         (C_TYPE_BEING_DEFINED): Likewise.
10315         (C_IS_RESERVED_WORD): Likewise.
10316         (C_TYPE_VARIABLE_SIZE): Likewise.
10317         (C_DECL_VARIABLE_SIZE): Likewise.
10318         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10319         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10320         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10321         parenthesis.
10322         (C_DECL_ANTICIPATED): Likewise.
10323         (c_build_type_variant): Add parenthesis.
10324
10325 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10326
10327         * gcc.c (option_map): Remove --version.
10328         (process_command): Handle -fversion following the GNU Coding
10329         Standards.  Partially addresses PR other/704.
10330
10331 2002-01-08  Graham Stott  <grahams@redhat.com>
10332
10333         * combine.c (combine_instructions): Fix typo.
10334
10335 2002-01-08  Graham Stott  <grahams@redhat.com>
10336
10337         * debug.h: Use "tree" and "rtx" throughout.
10338
10339         * debug.c: Likewise.
10340
10341 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10342
10343         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10344         constant pool, use the pool's version of the symbol instead.
10345
10346 2002-01-07  Richard Henderson  <rth@redhat.com>
10347
10348         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10349         the original register was copied in a mode with a fewer number of
10350         hard registers than the desired mode.
10351         (copyprop_hardreg_forward_1): Likewise.
10352         (debug_value_data): Fix loop test.
10353         * toplev.c (parse_options_and_default_flags): Reenable
10354         -fcprop-registers at -O1.
10355
10356 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10357
10358         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10359         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10360
10361         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10362         predicates.
10363
10364         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10365
10366 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10367
10368         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10369         (pa_output_function_prologue): Output local label at the beginning of
10370         the prologue when profiling.
10371         (hppa_profile_hook): Use the local label rather than the function label.
10372         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10373
10374 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10375
10376         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10377         (altivec_expand_unop_builtin): Fix thinko.
10378         (altivec_expand_binop_builtin): Same.
10379         (altivec_expand_ternop_builtin): Same.
10380         (altivec_expand_builtin): Same.
10381
10382 2002-01-07  Richard Henderson  <rth@redhat.com>
10383
10384         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10385
10386 2002-01-07  Jason Merrill  <jason@redhat.com>
10387
10388         * unwind-dw2.c (execute_cfa_program): Use < again.
10389
10390 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10391
10392         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10393
10394 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10395
10396         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10397         Don't allow -1 - x -> ~x simplifications in the first pass.
10398
10399 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10400
10401         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10402         arguments.
10403         (altivec_expand_binop_builtin): Same.
10404         (altivec_expand_unop_builtin): Same.
10405         (print_operand): Fix typo.
10406         (bdesc_1arg): Add vupk* variants.
10407
10408         * rs6000.h (rs6000_builtins): Add vupk* enums.
10409
10410         * rs6000.md: Add altivec_vupk* variants.
10411
10412 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10413
10414         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10415         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10416         and last update dates.
10417
10418 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10419
10420         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10421
10422 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10423
10424         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10425         * config/avr/avr.h (CPP_SPEC): Likewise.
10426         (LINK_SPEC): Likewise.
10427         (CRT_BINUTILS_SPECS): Likewise.
10428         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10429         * doc/invoke.texi (AVR Options): Document them.
10430
10431 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10432
10433         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10434         LABEL_NUSES.
10435
10436 2002-01-07  Graham Stott  <grahams@redhat.com>
10437
10438         * config/i386/i386.h: Update copyright date.
10439         (HALF_PIC_PTR): Add parenthesis.
10440         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10441         (CONSTANT_ALIGNMENT): Add parenthesis.
10442         (DATA_ALIGNMENT): Likewise.
10443         (LOCAL_ALIGNMENT): Likewise.
10444         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10445         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10446         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10447         (HARD_REGNO_NREGS): Add paranethesis.
10448         (VALID_SSE_REG_MODE): Whitespace.
10449         (VALID_MMX_REG_MODE): Whitespace.
10450         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10451         (ix86_hard_regno_mode_ok): Add parenthesis.
10452         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10453         (RETURN_IN_MEMORY): Whitespace.
10454         (N_REG_CLASSES): Add parenthesis.
10455         (INTEGER_CLASS_P): Add parenthesis and wrap.
10456         (FLOAT_CLASS_P): Likewise.
10457         (SSE_CLASS_P): Likewise.
10458         (MMX_CLASS_P): Likewise.
10459         (MAYBE_INTEGER_CLASS_P): Likewise.
10460         (MAYBE_FLOAT_CLASS_P): Likewise.
10461         (MAYBE_SSE_CLASS_P): Likewise.
10462         (MAYBE_MMX_CLASS_P): Likewise.
10463         (Q_CLASS_P): Likewise.
10464         (GENERAL_REGNO_P): Uppercase macro parameter.
10465         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10466         (FP_REGNO_P): Likewise.
10467         (ANY_FP_REGNO_P): Uppercase macro parameter.
10468         (SSE_REGNO_P): Likewise.
10469         (SSE_REGNO): Likewise.
10470         (SSE_REG_P): Likewise.
10471         (SSE_FLOAT_MODE_P): Likewise.
10472         (MMX_REGNO_P): Likewise.
10473         (MMX_REG_P):Likewise.
10474         (STACK_REG_P): Likewise.
10475         (NON_STACK_REG_P): Likewise.
10476         (STACK_TOP_P): Likewise.
10477         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10478         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10479         (SECONDARY_MEMORY_NEEDED): Likewise.
10480         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10481         (MD_ASM_CLOBBERS): Whitespace and wrap.
10482         (MUST_PASS_IN_STACK): Whitespace and wrap.
10483         (RETURN_POPS_ARGS): Add parenthesis.
10484         (INIT_CUMULATIVE_ARGS): Likewise.
10485         (FUNCTION_ARG): Likewise.
10486         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10487         (SETUP_INCOMING_VARARGS): Likewise.
10488         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10489         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10490         parenthsis.
10491         (EXPAND_BUILTIN_VA_ARG): Likewise.
10492         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10493         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10494         (INITIAL_ELIMINATION_OFFSET): Likewise.
10495         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10496         (REGNO_OK_FOR_BASE_P): Likewise.
10497         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10498         (REGNO_OK_FOR_DIREG_P): Likewise.
10499         (REG_OK_FOR_INDEX_P): Whitespace.
10500         (REG_OK_FOR_BASE_P): Whitespace.
10501         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10502         parenthesis.
10503         (FIND_BASE_TERM): Fix typo.
10504         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10505         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10506         (SYMBOLIC_CONST; Whitespace.
10507         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10508         (ENCODE_SECTION_INFO): Whitespace.
10509         (FINALIZE_PIC): Remove do { ... } while (0).
10510         (PROMOTE_MODE): Wrap in do { ... } while (0).
10511         (CONST_COSTS): Whitespace.
10512         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10513         (REGISTER_MOVE_COST): Add parenthesis.
10514         (MEMORY_MOVE_COST): Likewise.
10515         (EXTRA_CC_MODES): Whitespace.
10516         (SELECT_CC_MODE): Add parenthesis and whitespace.
10517         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10518         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10519         (ASM_OUTPUT_LABEL): Add paramethesis.
10520         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10521         (ASM_OUTPUT_REG_POP): Likewise.
10522         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10523         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10524
10525         * config/i386/i386.c: Update copyright.
10526         (CHECK_STACK_LIMIT): Add parenthesis.
10527         (AT_BP): Uppercase macro parameter.
10528         (x86_64_int_parameter_registers): Constify.
10529         (x86_64_int_return_registers): Likewise.
10530         (ix86_compare_op0): Use rtx.
10531         (construct_container): Constify INTREG parameter.
10532         (function_arg): Use rtx.
10533
10534         * diagnostic.h: Update copyright date.
10535         (output_buffer_state): Add parenthesis.
10536         (output_buffer_format_args): Likewise.
10537
10538         * combine.c (combine_instructions): Replace XEXP (links, 0)
10539         with link.
10540
10541 2002-01-06  H.J. Lu <hjl@gnu.org>
10542
10543         * cfgcleanup.c (thread_jump): Fix 2 typos.
10544
10545 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10546
10547         * config.gcc: Add support for --enable-altivec.
10548
10549 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10550
10551         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10552
10553 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10554
10555         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10556         __objc_class_name_*.
10557
10558 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10559
10560         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10561
10562 2002-01-06  Richard Henderson  <rth@redhat.com>
10563
10564         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10565         nop them out.  Increment label reference count for REG_LABEL.
10566         (fill_slots_from_thread): Frob label reference count around
10567         delete_related_insns.
10568
10569 2002-01-05  Richard Henderson  <rth@redhat.com>
10570
10571         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10572         jump threading.
10573
10574 2002-01-05  Richard Henderson  <rth@redhat.com>
10575
10576         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10577         * integrate.c (output_inline_function): Likewise.
10578         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10579         to remove_unnecessary_notes after emitting abstract instance.
10580         Force an emitted nested function to have its parent emited as well.
10581         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10582         for null.
10583         (rtl_for_decl_location): Do not look at reload data structures
10584         before reload has run.
10585
10586 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10587
10588         * cse.c: Fix formatting.
10589         * dwarf2asm.c: Likewise.
10590         * dwarf2out.c: Likewise.
10591         * explow.c: Likewise.
10592         * expmed.c: Likewise.
10593         * function.c: Likewise.
10594         * gcov.c: Likewise.
10595         * gencheck.c: Likewise.
10596         * genrecog.c: Likewise.
10597         * ggc-common.c: Likewise.
10598         * ggc-page.c: Likewise.
10599         * global.c: Likewise.
10600
10601 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10602
10603         * combine.c: Fix formatting.
10604
10605 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10606
10607         PR middle-end/1557
10608         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10609
10610 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10611
10612         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10613         as 1 for __powerpc64__ as well.
10614
10615         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10616
10617         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10618         return it.
10619
10620 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10621
10622         * lcm.c: Revert change, due to performance regression it causes on
10623         SPEC because it's slightly more conservative (sigh, I hate
10624         edge-based LCM).
10625
10626 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10627
10628         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10629
10630 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10631
10632         * doc/cppinternals.texi: Update.
10633
10634 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10635
10636         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10637         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10638         negatives.
10639         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10640         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10641         kludge for pre-october-14th mmix versions to handle new-found bug
10642         with PUSHJ/PUSHGO and the register stack.
10643         * config/mmix/mmix.h (struct machine_function): Rename member
10644         has_call_value_without_parameters to has_call_without_parameters.
10645         All referers changed.
10646         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10647         TARGET_MASK_BRANCH_PREDICT): New macros.
10648         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10649         -mno-reg-stack-fill-bug-workaround.
10650         * config/mmix/mmix.md ("call"): Set struct machine member
10651         has_call_without_parameters.
10652
10653 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10654
10655         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10656
10657 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10658
10659         * cfgcleanup.c: Include tm_p.h
10660         (mark_effect): Fix handling of hard register; fix handling of SET
10661
10662 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10663
10664         * config/h8300/h8300.md (anonymous patterns): Check that
10665         operands are registers before using REGNO on them.
10666
10667 2002-01-03  Roland McGrath  <roland@frob.com>
10668
10669         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10670
10671 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10672
10673         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10674         * c-common.h (genrtl_expr_stmt_value): Likewise.
10675         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10676         (expand_expr_stmt_value): Add maybe_last argument.
10677         Don't warn about statement with no effect if it is the last statement
10678         in expression statement.
10679         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10680         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10681         expand_expr_stmt_value.
10682         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10683         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10684         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10685         as maybe_last to expand_expr_stmt_value.
10686
10687 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10688
10689         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10690         be passed in, do not build it.
10691         (c_begin_if_stmt): New function.
10692         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10693         * c-common.h (c_expand_start_cond): Update prototype.
10694         (c_begin_if_stmt): Prototype new function.
10695         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10696         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10697         c_begin_while_stmt and c_finish_while_stmt_cond.
10698
10699 2002-01-04  William Cohen  <wcohen@redhat.com>
10700
10701         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10702         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10703         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10704         * config/pa/som.h (ASM_FILE_START): Likewise.
10705
10706 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10707
10708         * lcm.c: Include df.h.
10709         Add available_transfer_function prototype.
10710         (compute_available): Rework to use iterative dataflow framework.
10711         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10712         with bb_info in df.h
10713         (available_transfer_function): New function.
10714
10715         * Makefile.in (lcm.o): add df.h to dependencies.
10716
10717 2002-01-04  Richard Henderson  <rth@redhat.com>
10718
10719         * config/alpha/alpha.c (some_operand): Accept HIGH.
10720         (input_operand): Likewise; accept simple references to globals.
10721         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10722         (alpha_const_double_ok_for_letter_p): Likewise.
10723         (alpha_extra_constraint): Likewise.
10724         (alpha_preferred_reload_class): Likewise.  Do not force
10725         symbolic constants to memory.
10726         (alpha_legitimate_address_p): Accept simple references
10727         to small_symbolic_operand.
10728         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10729         called when no_new_pseudos.  Emit simple symbolic references.
10730         Split integers into low, high, and rest.
10731         (alpha_expand_mov): Use alpha_legitimize_address.
10732         (some_small_symbolic_mem_operand): New.
10733         (split_small_symbolic_mem_operand): New.
10734         * config/alpha/alpha-protos.h: Update.
10735         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10736         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10737         (EXTRA_CONSTRAINT): Likewise.
10738         (PREFERRED_RELOAD_CLASS): Likewise.
10739         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10740         (PREDICATE_CODES): Update.
10741         * config/alpha/alpha.md: New post-reload splitters to convert
10742         simplfied symbolic operands to the form that references $29.
10743         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10744         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10745
10746 2002-01-03  Richard Henderson  <rth@redhat.com>
10747
10748         * local-alloc.c (function_invariant_p): Update commentary.
10749
10750 2002-01-04  H.J. Lu <hjl@gnu.org>
10751
10752         * toplev.c (rest_of_compilation): Fix a typo when calling
10753         cleanup_cfg.
10754
10755 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10756
10757         * c-common.c: Fix formatting.
10758         * diagnostic.c: Likewise.
10759         * doloop.c: Likewise.
10760         * dwarf2out.c: Likewise.
10761
10762 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10763
10764         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10765         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10766
10767 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10768
10769         * cpperror.c: Update comments and copyright.
10770         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10771         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10772
10773 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10774
10775         * collect2.c (main): Use strcmp when testing for "-shared".
10776
10777 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10778
10779         * cppmacro.c: Don't include intl.h.  Update comments.
10780         (new_number_token): Allocate enough buffer for 64-bit unsigned
10781         integers; update prototype.
10782         * cppmain.c: Update comments.
10783
10784 2002-01-03  William Cohen  <wcohen@redhat.com>
10785
10786         * function.h (struct function): Add profile.
10787         (current_function_profile): New.
10788         doc/extend.texi: Update documentation.
10789         * final.c (final_start_function): Use current_function_profile
10790         instead of profile_flag.
10791         (profile_after_prologue): Likewise.
10792         * function.c (expand_function_start): Likewise.
10793         (expand_function_start): Likewise.
10794         * config/alpha/alpha.c (direct_call_operand):
10795         (alpha_does_function_need_gp): Likewise.
10796         (alpha_expand_prologue): Likewise.
10797         * config/arm/arm.c (arm_expand_prologue): Likewise.
10798         thumb_expand_prologue: Likewise.
10799         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10800         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10801         (fr30_expand_prologue): Likewise.
10802         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10803         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10804         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10805         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10806         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10807         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10808         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10809         (m32r_expand_prologue): Likewise.
10810         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10811         (m88k_expand_prologue): Likewise.
10812         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10813         * config/mips/mips.c (compute_frame_size): Likewise.
10814         (mips_expand_prologue): Likewise.
10815         (mips_can_use_return_insn): Likewise.
10816         * config/pa/elf.h (ASM_FILE_START): Likewise.
10817         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10818         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10819         * config/pa/som.h (ASM_FILE_START): Likewise.
10820         * config/romp/romp.c (romp_using_r14): Likewise.
10821         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10822         (rs6000_stack_info): Likewise.
10823         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10824         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10825         * config/v850/v850.c (compute_register_save_size): Likewise.
10826
10827 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10828
10829         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10830         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10831
10832 2002-01-03  Turly O'Connor  <turly@apple.com>
10833
10834         * darwin.c (machopic_output_possible_stub_label): Don't generate
10835         stub routines for pseudo-stubs which we've just defined.
10836
10837 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10838
10839         * builtins.c: Fix formatting.
10840         * c-typeck.c: Likewise.
10841         * combine.c: Likewise.
10842         * expr.c: Likewise.
10843         * loop.c: Likewise.
10844
10845 2002-01-03  Andreas Schwab  <schwab@suse.de>
10846
10847         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10848         and return true if _cpp_push_next_buffer pushed a new include
10849         file.
10850         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10851         _cpp_pop_file_buffer did not push a new file.
10852         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10853
10854 2002-01-02  Eric Christopher  <echristo@redhat.com>
10855
10856         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10857         FIND_REG_INC_NOTE call. Update copyright.
10858         * loop.c (canonicalize_condition): Ditto.
10859         * reorg.c (delete_scheduled_jump): Ditto.
10860
10861 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10862
10863         * gcse.c: Fix formatting.
10864
10865 2002-01-03  Graham Stott  <grahams@redhat.com>
10866
10867         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10868         forward defs for struct tags rtx_def, union_tree, rtvec_def
10869         also output corresponding typedefs for rtx, tree, and rtvec.
10870
10871         * system.h: Move forward defs for struct tags rtx_def, union_tree,
10872         rtvec_def along with corresponding typedefs for rtx, tree, and
10873         rtvec to config.h, hconfig.h, tconfig.h.
10874
10875 2002-01-03  Graham Stott  <grahams@redhat.com>
10876
10877         * tree.h: Update copyright date.
10878         (IS_EXPR_CODE_CLASS): Add parenthesis.
10879         (TREE_SET_CODE): Add whitespace.
10880         (TREE_CHECK): Add parenthesis.
10881         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10882         (CST_OR_CONSTRUCTOR_CHECK):
10883         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10884         (TREE_SYMBOL_REFERENCED): Whitespace.
10885         (INT_CST_LT): Likewise.
10886         (INT_CST_LT_UNSIGNED): Likewise.
10887         (tree_real_cst): Unwrap comment.
10888         (tree_string): Likewise.
10889         (tree_complex): Likewise.
10890         (IDENTIFIER_POINTER): correct cast.
10891         (SAVE_EXPR_CONTEXT): Whitespace.
10892         (EXPR_WFL_FILENAME_NODE): Likewise.
10893         (EXPR_WFL_FILENAME): Remove parenthesis.
10894         (DECL_ORIGIN): Add parenthesis.
10895         (DECL_FROM_INLINE): Use NULL_TREE.
10896         (build_int_2): Whitespace.
10897         (build_type_variant): Add parenthesis.
10898
10899         * gcc/jcf-parse.c: Update copyright date.
10900         (yyparse): Constify resource_filename.
10901
10902 2002-01-03  Graham Stott  <grahams@redhat.com>
10903
10904         * rtl.h: Update copyright date.
10905         (RTL_CHECK1): Wrap long line.
10906         (RTL_CHECK2): Likewise.
10907         (RTL_CHECKC1): Wrap long line and whitespace.
10908         (RTL_CHECKC2): Likewise.
10909         (XWINT): Whitespace.
10910         (XINT): Likewise.
10911         (XSTR): Likewise.
10912         (XEXP): Likewise.
10913         (XVEC): Likewise.
10914         (XMODE): Likewise.
10915         (XBITMAP): Likewise.
10916         (XTREE): Likewise.
10917         (XBBDEF): Likewise.
10918         (XTMPL): Likewise.
10919         (X0WINT): Likewise.
10920         (X0INT):Likewise.
10921         (X0UINT): Likewise.
10922         (X0STR): Likewise.
10923         (X0EXP): Likewise.
10924         (X0VEC): Likewise.
10925         (X0MODE): Likewise.
10926         (X0BITMAP): Likewise.
10927         (X0TREE): Likewise.
10928         (X0BBDEF): Likewise.
10929         (X0ADVFLAGS): Likewise.
10930         (X0CSELIB): Likewise.
10931         (X0MEMATTR): Likewise.
10932         (XCWINT): Likewise.
10933         (XCINT): Likewise.
10934         (XCUINT): Likewise.
10935         (XCSTR): Likewise.
10936         (XCEXP): Likewise.
10937         (XCVEC): Likewise.
10938         (XCMODE): Likewise.
10939         (XCBITMAP): Likewise.
10940         (XCTREE): Likewise.
10941         (XCBBDEF): Likewise.
10942         (XCADVFLAGS): Likewise.
10943         (XCCSELIB): Likewise.
10944         (XC2EXP): Likewise.
10945         (INSN_UID): Likewise.
10946         (PREV_INSN): Likewise.
10947         (PATTERN): Likewise.
10948         (INSN_CODE): Likewise.
10949         (PUT_REG_NOTE_KIND): Likewise.
10950         (CODE_LABEL_NUMBER): Likewise.
10951         (NOTE_SOURCE_FILE): Likewise.
10952         (NOTE_BLOCK): Likewise.
10953         (NOTE_EH_HANDLER): Likewise.
10954         (NOTE_RANGE_INFO): Likewise.
10955         (NOTE_LIVE_INFO): Likewise.
10956         (NOTE_BASIC_BLOCK): Likewise.
10957         (NOTE_EXPECTED_VALUE): Likewise.
10958         (NOTE_LINE_NUMBER): Likewise.
10959         (LABEL_NAME): Likewise.
10960         (LABEL_NUSES): Likewise.
10961         (LABEL_ALTERNATE_NAME): Likewise.
10962         (ADDRESSOF_DECL): Likewise.
10963         (JUMP_LABEL): Likewise.
10964         (LABEL_NEXTREF): Likewise.
10965         (REGNO): Likewise.
10966         (ORIGINAL_REGNO: Likewise.
10967         (HARD_REGISTER_NUM_P): Add parenthesis.
10968         (SUBREG_REG): Whitespace.
10969         (SUBREG_BYTE): Likewise.
10970         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10971         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10972         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10973         (ASM_OPERANDS_INPUT_VEC): Likewise.
10974         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10975         (ASM_OPERANDS_INPUT): Likewise.
10976         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10977         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10978         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10979         (ASM_OPERANDS_INPUT_MODE): Likewise.
10980         (ASM_OPERANDS_SOURCE_FILE): Likewise.
10981         (ASM_OPERANDS_SOURCE_LINE): Likewise.
10982         (MEM_SET_IN_STRUCT_P): Minor reformat.
10983         (TRAP_CONDITION): Whitespace.
10984         (TRAP_CODE): Likewise.
10985         (COND_EXEC_TEST): Likewise.
10986         (COND_EXEC_CODE): Likewise.
10987         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10988         (PHI_NODE_P): Add parenthesis.
10989         (plus_constant): Whitespace and add parenthesis.
10990
10991 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10992
10993         * config/avr/avr.c: Fix comment typos.
10994         * config/c4x/c4x.md: Likewise.
10995         * config/dsp16xx/dsp16xx.h: Likewise.
10996         * config/dsp16xx/dsp16xx.md: Likewise.
10997         * config/i386/i386.md: Likewise.
10998         * config/ia64/ia64.c: Likewise.
10999         * config/m32r/m32r.h: Likewise.
11000         * config/m68hc11/m68hc11.md: Likewise.
11001         * config/mmix/mmix.c: Likewise.
11002         * config/mn10200/mn10200.c: Likewise.
11003         * config/romp/romp.c: Likewise.
11004         * config/sh/sh.c: Likewise.
11005         * config/stormy16/stormy16.c: Likewise.
11006         * config/stormy16/stormy16.h: Likewise.
11007         * config/stormy16/stormy16.md: Likewise.
11008
11009 2002-01-03  Graham Stott  <grahams@redhat.com>
11010
11011         * loop.h: Update copyright date.
11012         (LOOP_MOVABLES): Fix typo.
11013         (LOOP_REGS): Likewise.
11014         (LOOP_IVS): Likewise.
11015
11016 2002-01-03  Graham Stott  <grahams@redhat.com>
11017
11018         * cppinit.c: Update copyright date.
11019         Don't include output.h
11020         * Makefile.in: Update copyright date.
11021         Update dependency.
11022
11023 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11024
11025         PR c/5226
11026         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11027         (-pthread) Add to RS/6000 options.
11028
11029 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11030
11031         * except.c: Fix comment typos.
11032         * loop.c: Likewise.
11033         * varasm.c: Likewise.
11034         * doc/tm.texi: Fix a typo.
11035
11036 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
11037
11038         * c-typeck.c (output_init_element): Allow initializing static storage
11039         duration objects with compound literals.
11040
11041 2002-01-02  Richard Henderson  <rth@redhat.com>
11042
11043         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11044         after abusing it.
11045
11046 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11047
11048         * gcc.c (default_compilers): Const-ify.
11049         * mips-tdump.c (stab_names): Likewise.
11050         * mips-tfile.c (map_coff_types, map_coff_storage,
11051         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11052         pseudo_ops_t, pseudo_ops): Likewise.
11053         * protoize.c (default_include): Likewise
11054
11055         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11056         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11057         Add array size in declaration.
11058         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11059         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11060         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11061         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11062         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11063         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11064         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11065         emtens, make_nan): Const-ify.
11066         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11067         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11068
11069 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
11070
11071         * config.gcc (ia64-*-*): Set extra_headers.
11072         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
11073         * config/alpha/t-osf: Remove.
11074         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11075
11076 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
11077
11078         * config/rs6000/t-aix43: Revert previous change.
11079
11080 2002-01-02  Jason Merrill  <jason@redhat.com>
11081
11082         * c-decl.c (c_expand_body): Call outlining_inline_function when
11083         emitting an inline function out of line.
11084
11085 2002-01-02  Richard Henderson  <rth@redhat.com>
11086
11087         * dwarf2out.c (limbo_die_node): Add created_for member.
11088         (new_die): New argument created_for.  Update all callers.
11089         (mark_limbo_die_list): New.
11090         (dwarf2out_init): Register limbo_die_list as a root.
11091         (dwarf2out_finish): Force insert limbo dies into their function
11092         context.
11093
11094 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
11095
11096         PR c++/5089
11097         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11098
11099 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11100
11101         * config/h8300/fixunssfsi.c: Update copyright.
11102         Fix comment typos.
11103         Fix formatting.
11104         * config/h8300/h8300.c: Update copyright.
11105         Eliminate warnings.
11106
11107 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11108
11109         * config/romp/romp.c: Fix comment formatting.
11110         * config/romp/romp.h: Likewise.
11111         * config/romp/romp.md: Likewise.
11112         * config/s390/s390.c: Likewise.
11113         * config/stormy16/stormy16.c: Likewise.
11114         * config/stormy16/stormy16.h: Likewise.
11115
11116 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
11117
11118         * c-common.h (genrtl_expr_stmt_value): Declare.
11119         * c-semantics.c (genrtl_goto_stmt): Redirect to...
11120         (genrtl_goto_stmt_value): ... this new function.  Pass new
11121         argument down to expand_expr_stmt_value, taking
11122         TREE_ADDRESSABLE into account.
11123         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11124         STMT_EXPR as addressable, i.e., one whose result we want.
11125         * expr.c (expand_expr): Don't save expression statement value
11126         of labeled_blocks or loop_exprs.
11127         * stmt.c (expand_expr_stmt): Redirect to...
11128         (expand_expr_stmt_value): ... this new function.  Use new
11129         argument to tell whether to save expression value.
11130         (expand_end_stmt_expr): Reset last_expr_type and
11131         last_expr_value if we don't have either.
11132         * tree-inline.c (declare_return_variable): Mark its use
11133         statement as addressable.
11134         * tree.h: Document new use of TREE_ADDRESSABLE.
11135         (expand_expr_stmt_value): Declare.
11136
11137 2002-01-01  Tom Rix  <trix@redhat.com>
11138
11139         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11140         rs6000_emit_allocate_stack.
11141
11142 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11143
11144         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11145         ${srcdir}/ginclude/ to every entry in extra_headers.
11146         * configure: Regenerate.
11147         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11148         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11149         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11150         * ginclude/proto.h: Rename to config/convex/proto.h.
11151
11152 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11153
11154         * attribs.c (handle_vector_size_attribute): Use host_integerp
11155         and tree_int_cst; remove warnings.
11156         * caller-save.c (insert_restore): Add cast to get rid of warning.
11157         (insert_save): Likewise.
11158         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11159         * regmove.c (find_matches): Add temporary var to kill a warning.
11160
11161 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11162
11163         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11164         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11165         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11166         (vms-dwarf2eh.o): Add Makefile rule.
11167         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11168         * config/alpha/vms-dwarf2eh.asm: New file.
11169
11170         * gcc.c (delete_if_ordinary): Delete all versions.
11171
11172 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11173
11174         * config/mmix/mmix.md: Update FIXME to not mention
11175         define_constants.
11176         (MMIX_rJ_REGNUM): New define_constants constant.
11177         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11178         "*movdicc_real"): Adjust contraints formatting.
11179         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11180         for branch prediction.
11181         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11182         output template.
11183         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11184         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11185         number.  Delete related FIXMEs.
11186         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11187         from number to MMIX_rJ_REGNUM.
11188         (TARGET_MASK_BRANCH_PREDICT): New.
11189         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11190         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11191         value.  Add -mbranch-predict and -mno-branch-predict.
11192         (TARGET_VERSION): Drop date.
11193         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11194         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11195         for finding out global symbols.
11196         (mmix_asm_output_labelref): Revert condition for global symbol.
11197         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11198         (mmix_print_operand_punct_valid_p): A '+' is valid.
11199
11200 See ChangeLog.6 for earlier changes.