OSDN Git Service

* loop.c (load_mems): Don't change the interface of called functions.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
2
3         * loop.c (load_mems): Don't change the interface of called functions.
4
5         * calls.c (expand_call): Take current_function_pretend_args_size
6         into account when setting argblock for sibcalls.
7
8 2002-04-24  Matt Hiller  <hiller@redhat.com>
9
10         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11         * c-lex.c: Ditto.
12
13         * cpplex.c (skip_line_comment): Process comment one multibyte
14         character at a time rather than one char at a time, if
15         appropriate.
16         (parse_string): Process string one multibyte character at a time
17         rather than one char at a time, if appropriate.
18         * c-lex.c (lex_string): Lex and copy multibyte strings
19         appropriately.
20         * cpplib.h (cppchar_t): Change to unsigned.
21
22 2002-04-24  Richard Henderson  <rth@redhat.com>
23
24         PR c/3467
25         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
26         for c99.
27
28 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
29
30         * sh.c (sh_va_arg): If argument was passed by reference,
31         dereference the pointer.
32
33         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
34
35         * sh.md (divsi3_i4_media): Use match_operand for input values
36         rather than hard registers.
37         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
38         unnecessarily through hard registers.  Keep copies of pseudo
39         registers outside of the libcall sequence.
40
41         * sh.md (casesi_shift_media): Add modes.
42
43         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
44         values in memory.
45
46 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
47
48         * attribs.c (c_common_attribute_table): Move table and handlers
49         to c-common.c.
50         (format_attribute_table, lang_attribute_table,
51         lang_attribute_common): Remove.
52         (init_attributes): Replace NULL pointers with pointers to the
53         empty table.
54         (handle_packed_attribute, handle_nocommon_attribute,
55         handle_common_attribute, handle_noreturn_attribute,
56         handle_noinline_attribute, handle_always_inline_attribute,
57         handle_used_attribute, handle_unused_attribute,
58         handle_const_attribute, handle_transparent_union_attribute,
59         handle_constructor_attribute, handle_destructor_attribute,
60         handle_mode_attribute, handle_section_attribute,
61         handle_aligned_attribute, handle_weak_attribute,
62         handle_alias_attribute, handle_visibility_attribute,
63         handle_no_instrument_function_attribute, handle_malloc_attribute,
64         handle_no_limit_stack_attribute, handle_pure_attribute,
65         handle_deprecated_attribute, handle_vector_size_attribute,
66         vector_size_helper): Move to c-common.c.
67         * c-common.c (c_common_attribute_table,
68         handle_packed_attribute, handle_nocommon_attribute,
69         handle_common_attribute, handle_noreturn_attribute,
70         handle_noinline_attribute, handle_always_inline_attribute,
71         handle_used_attribute, handle_unused_attribute,
72         handle_const_attribute, handle_transparent_union_attribute,
73         handle_constructor_attribute, handle_destructor_attribute,
74         handle_mode_attribute, handle_section_attribute,
75         handle_aligned_attribute, handle_weak_attribute,
76         handle_alias_attribute, handle_visibility_attribute,
77         handle_no_instrument_function_attribute, handle_malloc_attribute,
78         handle_no_limit_stack_attribute, handle_pure_attribute,
79         handle_deprecated_attribute, handle_vector_size_attribute,
80         vector_size_helper): Move from attribs.c.
81         * c-common.h (c_common_attribute_table,
82         c_common_format_attribute_table): New.
83         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
84         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
85         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
86         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
87         (LANG_HOOKS_INITIALIZER): Update.
88         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
89         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
90         * target.h: Update comment.
91         * tree.c (default_target_attribute_table): Remove.
92         * tree.h (default_target_attribute_table, format_attribute_table,
93         lang_attribute_table, lang_attribute_common): Remove.
94 objc:
95         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
96         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
97
98 2002-04-24  Jason Merrill  <jason@redhat.com>
99
100         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
101         * dwarf2out.c (dwarf_attr_name): Support it.
102         (gen_array_type_die): Emit it.
103         (lookup_type_die): No special handling for VECTOR_TYPE.
104         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
105
106 2002-04-24  Richard Henderson  <rth@redhat.com>
107
108         * config/mips/mips.md (movdi_usd): Renumber.
109
110 2002-04-24  David S. Miller  <davem@redhat.com>
111
112         PR target/6420
113         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
114         32-bit Sparc and current_function_returns_struct is true.
115
116 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
117
118         * loop.c (canonicalize_condition): Use gen_int_mode.
119
120 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
121
122         * config/rs6000/altivec.h: Cleanup file.  Add non individual
123         variants.
124         (vec_vaddubm): New.
125         (vec_vadduhm): New.
126         (vec_vadduwm): New.
127         (vec_vaddfp): New.
128         (vec_vaddcuw): New.
129         (vec_vaddubs): New.
130         (vec_vaddsbs): New.
131         (vec_vadduhs): New.
132         (vec_vadduws): New.
133         (vec_vaddsws): New.
134         (vec_vand): New.
135         (vec_vandc): New.
136         (vec_vavgub): New.
137         (vec_vavgsb): New.
138         (vec_vavguh): New.
139         (vec_vavgsh): New.
140         (vec_vavguw): New.
141         (vec_vavgsw): New.
142         (vec_vrfip): New.
143         (vec_vcmpbfp): New.
144         (vec_vcmpequb): New.
145         (vec_vcmpequh): New.
146         (vec_vcmpequw): New.
147         (vec_vcmpeqfp): New.
148         (vec_vcmpgefp): New.
149         (vec_vcmpgtub): New.
150         (vec_vcmpgtsb): New.
151         (vec_vcmpgtuh): New.
152         (vec_vcmpgtsh): New.
153         (vec_vcmpgtuw): New.
154         (vec_vcmpgtsw): New.
155         (vec_vcmpgtfp): New.
156         (vec_vcmpgefp): New.
157         (vec_vcfux): New.
158         (vec_vcfsx): New.
159         (vec_vctsxs): New.
160         (vec_vctuxs): New.
161         (vec_vexptefp): New.
162         (vec_vrfim): New.
163         (vec_lvx): New.
164         (vec_lvebx): New.
165         (vec_lvehx): New.
166         (vec_lde): Add vector float variant.
167         (vec_lvewx): New.
168         (vec_lvxl): New.
169         (vec_vlogefp): New.
170         (vec_vmaddfp): New.
171         (vec_vmhaddshs): New.
172         (vec_vmaxub): New.
173         (vec_vmaxsb): New.
174         (vec_vmaxuh): New.
175         (vec_vmaxsh): New.
176         (vec_vmaxuw): New.
177         (vec_vmaxsw): New.
178         (vec_vmaxsw): New.
179         (vec_vmaxfp): New.
180         (vec_vmrghb): New.
181         (vec_vmrghh): New.
182         (vec_vmrghw): New.
183         (vec_vmrglb): New.
184         (vec_vmrglh): New.
185         (vec_vmrglw): New.
186         (vec_vminub): New.
187         (vec_vminsb): New.
188         (vec_vminuh): New.
189         (vec_vminsh): New.
190         (vec_vminuw): New.
191         (vec_vminsw): New.
192         (vec_vminfp): New.
193         (vec_vmladduhm): New.
194         (vec_vmhraddshs): New.
195         (vec_msumubm): New.
196         (vec_vmsummbm): New.
197         (vec_vmsumuhm): New.
198         (vec_vmsumshm): New.
199         (vec_vmsumuhs): New.
200         (vec_vmsumshs): New.
201         (vec_vmuleub): New.
202         (vec_vmulesb): New.
203         (vec_vmuleuh): New.
204         (vec_vmulesh): New.
205         (vec_vmuloub): New.
206         (vec_mulosb): New.
207         (vec_vmulouh): New.
208         (vec_vmulosh): New.
209         (vec_vnmsubfp): New.
210         (vec_vnor): New.
211         (vec_vor): New.
212         (vec_vpkuhum): New.
213         (vec_vpkuwum): New.
214         (vec_vpkpx): New.
215         (vec_vpkuhus): New.
216         (vec_vpkshss): New.
217         (vec_vpkuwus): New.
218         (vec_vpkswss): New.
219         (vec_vpkshus): New.
220         (vec_vpkswus): New.
221         (vec_vperm): New.
222         (vec_vrefp): New.
223         (vec_vrlb): New.
224         (vec_vrlh): New.
225         (vec_vrlw): New.
226         (vec_vrfin): New.
227         (vec_vrsqrtefp): New.
228         (vec_vsel): New.
229         (vec_vslb): New.
230         (vec_vslh): New.
231         (vec_vslw): New.
232         (vec_vsldoi): New.
233         (vec_vsl): New.
234         (vec_vslo): New.
235         (vec_vspltb): New.
236         (vec_vsplth): New.
237         (vec_vspltw): New.
238         (vec_vspltisb): New.
239         (vec_vspltish): New.
240         (vec_vspltisw): New.
241         (vec_vsrb): New.
242         (vec_vsrh): New.
243         (vec_vsrw): New.
244         (vec_vsrab): New.
245         (vec_vsrah): New.
246         (vec_vsraw): New.
247         (vec_vsr): New.
248         (vec_vsro): New.
249         (vec_stvx): New.
250         (vec_stvebx): New.
251         (vec_stvehx): New.
252         (vec_stvewx): New.
253         (vec_stvxl): New.
254         (vec_vsububm): New.
255         (vec_vsubuhm): New.
256         (vec_vsubuwm): New.
257         (vec_vsubfp): New.
258         (vec_vsubcuw): New.
259         (vec_vsububs): New.
260         (vec_vsubsbs): New.
261         (vec_vsubuhs): New.
262         (vec_vsubshs): New.
263         (vec_vsubuws): New.
264         (vec_vsubsws): New.
265         (vec_vsum4ubs): New.
266         (vec_vsum4sbs): New.
267         (vec_vsum4shs): New.
268         (vec_vsum2sws): New.
269         (vec_vsumsws): New.
270         (vec_vrfiz): New.
271         (vec_vupkhsb): New.
272         (vec_vupkhpx): New.
273         (vec_vupkhsh): New.
274         (vec_vupklsb): New.
275         (vec_vupklpx): New.
276         (vec_vupklsh): New.
277         (vec_vxor): New.
278
279 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
280
281         PR c/5430
282         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
283         added literals from substracted literals.
284         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
285         (fold) [associate]: Preserve MINUS_EXPR if needed.
286
287 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
288
289         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
290         are obsoleted.
291
292 2002-04-23  Tom Tromey  <tromey@redhat.com>
293
294         * gcc.c: Added --resource.  For PR java/6314.
295
296 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
297
298         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
299         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
300         these libraries.
301
302 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
303
304         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
305
306 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
307
308         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
309         workaround.
310         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
311         (ix86_expand_clrstr): Fix typo.
312         * loop.c (gen_load_of_final_value): New.
313         (loop_givs_rescan, strength_reduce, check_dbra_loop):
314         Use it.
315
316 2002-04-23  Roger Sayle  <roger@eyesopen.com>
317
318         * builtins.c (builtin_memset_gen_str): New function.
319         (expand_builtin_memset): Optimize the case of constant length, but
320         unknown value.
321
322 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
323
324         * config/rs6000/altivec.h (vec_step): Remove extraneous
325         parentheses.
326         (vec_ctu): Cast return.
327
328 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
329
330         PR target/6413
331         * function.h: (struct function): Add profile_label_no field.
332         (current_function_profile_label_no): Define.
333         * function.c: (profile_label_no): New static var.
334         (expand_function_start): Increment it, and copy to
335         current_function_profile_label_no.
336         * output.h (profile_label_no): Delete.
337         * final.c (profile_label_no): Delete.
338         (profile_function): Use current_function_profile_label_no.
339         (final_end_function): Don't increment profile_label_no here.
340         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
341         profile_label_no with current_function_profile_label_no.
342         * config/pa/pa.c (current_function_number): Delete.
343         (pa_output_function_prologue): Don't output profile label here.
344         (hppa_profile_hook): Use label_no param rather than
345         current_function_number.
346         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
347         * config/pa/pa.h: .. here.
348         (FUNCTION_PROFILER): Output profile label here.
349
350 2002-04-22  Eric Christopher  <echristo@redhat.com>
351
352         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
353         patch of 2002-04-09 due to binutils issues.
354         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
355
356 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
357
358         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
359         constraint to 'o' for m=r and r=m alternatives.
360         ("*movv8hi_internal1"): Same.
361         ("*movv16qi_internal1"): Same.
362         ("*movv4sf_internal1"): Same.
363
364 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
365
366         * rtl.h (RTX_FLAG): New macro.
367         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
368         * final.c (alter_subreg): Use macro to access rtx flag.
369         * integrate.c (copy_rtx_and_substitute): Use new access macro.
370         * print-rtl.c (print_rtx): Use new access macro.
371
372         * cse.c (insert): Check rtx code before accessing flag.
373
374         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
375         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
376         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
377         convert_const_symbol_ref, make_canonical, make_alternative_compare,
378         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
379         simplify_test_exp, optimize_attrs, simplify_by_exploding,
380         find_and_mark_used_attributes, unmark_used_attributes,
381         add_values_to_cover, simplify_with_current_value,
382         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
383         copy_rtx_unchanging, main): Use new access macros.
384
385 2002-04-22  Tom Rix  <trix@redhat.com>
386
387         * expmed.c (init_expmed): Generate shifted constant once.
388
389 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
390
391         * c-lex.c (lex_charconst): Call convert to get constant in
392         proper type; don't just smash the type field.
393         Fixes PR c/6300.
394
395         * config.gcc: Add list of obsolete configurations.  Disallow
396         building these without --enable-obsolete.
397         * doc/install.texi: Document --enable-obsolete and obsoletion
398         policy.  Mention obsoletion of individual targets in
399         appropriate places.
400
401 2002-04-22  Richard Henderson  <rth@redhat.com>
402
403         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
404
405 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
406
407         PR f/6138.
408         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
409         (walk_fixup_memory_subreg): Likewise.
410         (fixup_var_refs_insn): Adjust accordingly.
411         (fixup_var_refs_1): Likewise.
412
413 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
414
415         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
416         LIBPATH_ARCH64_SPEC): Define.
417         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
418         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
419         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
420         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
421
422 2002-04-22      Joel Sherrill <joel@OARcorp.com>
423
424         * gthr-rtems.h: Correct prototypes to remove warnings.
425
426 2002-04-22  Richard Henderson  <rth@redhat.com>
427
428         PR c/6344
429         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
430
431         * gcse.c (free_insn_expr_list_list): New.
432         (clear_modify_mem_tables): Use it.  Fix bit set usage.
433         (canon_list_insert): Use EXPR_LISTs for expressions.
434         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
435
436 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
437
438         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
439         file change and include code to _cpp_pop_buffer.
440         * cpphash.h (struct pending_option): Predeclare.
441         (struct cpp_reader): New member next_include_file.
442         (_cpp_pop_file_buffer): Update.
443         (_cpp_push_next_buffer): Update, rename.
444         * cppinit.c (cpp_destroy): Free include chain and pending here.
445         (cpp_finish_options): Simplify.
446         (_cpp_push_next_buffer): Rename and clean up.
447         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
448         Clarify.
449         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
450
451 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
452
453         * config/rs6000/altivec.h (vec_xor): Add variant for both args
454         being vector signed int.
455         (vec_andc): Same.
456         (vec_xor): Add variant for both args being vector signed char.
457         Remove redundant variant.
458         (vec_andc): Same.
459
460 2002-04-21  David S. Miller  <davem@redhat.com>
461
462         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
463         compare mode in output RTL.
464
465 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
466
467         * config/rs6000/rs6000.c (rs6000_override_options): Correct
468         style and formatting of previous patch.
469
470 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
471
472         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
473         flag_pic for ABI_AIX.
474
475 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
476
477         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
478         * cppfiles.c (read_include_file): Similarly.
479         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
480         uxstrdup ustrchr, ufputs): Similarly.
481         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
482         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
483         cpp_ideq, parse_identifier, parse_number): Similarly.
484         * cpplib.c (struct directive, dequote_string, D, run_directive,
485         cpp_push_buffer): Similarly.
486         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
487         _cpp_create_definition, check_trad_stringification,
488         cpp_macro_definition): Similarly.
489
490 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
491
492         * cppmacro.c (funlike_invocation_p): Don't step back
493         over CPP_EOF.
494
495 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
496
497         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
498         labelno.
499
500 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
501
502         * doc/invoke.texi: Remove Chill references.
503         * doc/gcc.texi: Update last modified date.
504
505 2002-04-20  Kazu Hirata  <kazu@hxi.com>
506
507         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
508         push and pop.  Replace add.l with add.w.
509
510 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
511
512         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
513         multiply instructions for H8/300H case.
514
515 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
516
517         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
518         Bum three instructions from each routine.
519
520 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
521
522         * Makefile.in: Update.
523         * decl.c (push_c_function_context, pop_c_function_context,
524         mark_c_function_context): Rename for consistency.
525         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
526         * c-tree.h (push_c_function_context, pop_c_function_context,
527         mark_c_function_context): Rename for consistency.
528         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
529         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
530         * function.c (init_lang_status, save_lang_status,
531         restore_lang_status, mark_lang_status, free_lang_status):
532         Move to langhooks.h.
533         (push_function_context_to, pop_function_context_from,
534         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
535         Update.
536         * function.h (init_lang_status, save_lang_status,
537         restore_lang_status, mark_lang_status, free_lang_status):
538         Move to langhooks.h.
539         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
540         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
541         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
542         LANG_HOOKS_FUNCTION_INITIALIZER): New.
543         (LANG_HOOKS_INITIALIZER): Update.
544         (lhd_do_nothing_f): New.
545         * langhooks.h (struct lang_hooks_for_functions): New.
546         (struct lang_hooks): New hooks.
547         * langhooks.c (lhd_do_nothing_f): New.
548 objc:
549         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
550         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
551
552 2002-04-19  David S. Miller  <davem@redhat.com>
553
554         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
555         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
556
557 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
558
559         PR optimization/3756
560         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
561         x = ((int) y < 0) ? cst1 : cst2.
562
563 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
564
565         PR c/6358
566         * function.c: Reapply patch for c/6358.
567         (expand_function_end): Copy decl_rtl's mode, not
568         current_function_return_rtx mode.
569
570 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
571
572         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
573         targets.
574
575 2002-04-19  Tom Tromey  <tromey@redhat.com>
576
577         * doc/install.texi (Specific): Update status of Solaris 2.8.
578         For PR libgcj/6158.
579
580 2002-04-19  Andreas Schwab  <schwab@suse.de>
581
582         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
583         (PUT_REAL): Restore old definition.
584
585 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
586             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
587
588         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
589         binutils 2.11.2 and higher generate smaller binaries than Sun's
590         native tools.
591
592 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
593
594         PR c++/6352
595         * toplev.c (rest_of_compilation): Do not defer functions for which
596         TREE_SYMBOL_REFERENCED has already been set.
597
598 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
599
600         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
601         alternative.
602
603 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
604
605         * builtins.c: Include langhooks.h.
606         (lang_type_promotes_to): Remove.
607         (expand_builtin_va_arg): Use new hook.
608         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
609         (simple_type_promotes_to): Move to c-typeck.c.
610         * c-common.h (simple_type_promotes_to): Remove.
611         * c-decl.c (duplicate_decls, grokdeclarator): Update.
612         * c-format.c: Include langhooks.h.
613         (check_format_types): Update.
614         * c-tree.h (c_type_promotes_to): New.
615         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
616         (type_lists_compatible_p): Update.
617         * langhooks-def.h (lhd_type_promotes_to): New.
618         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
619         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
620         * langhooks.c (lhd_type_promotes_to): New.
621         * langhooks.h (struct lang_hooks_for_types): New hook.
622         * tree.h (lang_type_promotes_to): Remove.
623 objc:
624         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
625
626 2002-04-18  Richard Henderson  <rth@redhat.com>
627
628         * function.c: Revert patch for c/6358.
629
630 2002-04-18  Richard Henderson  <rth@redhat.com>
631
632         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
633         blocks.  Handle multiple references to the TRAP block.  Handle
634         non-adjacent THEN and OTHER blocks.
635
636 2002-04-18  Richard Henderson  <rth@redhat.com>
637
638         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
639         crash with no type for by-mode libcalls.
640
641         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
642
643 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
644
645         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
646         __xtensa_nonlocal_goto): Use a syscall instructions to flush
647         the register windows.
648
649 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
650
651         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
652         appropriate.  Document need for extended precision even when
653         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
654         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
655         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
656         instead of relying on later syntax error when REAL_WIDTH > 5.
657         * real.c: Define NE based only on whether or not we have a
658         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
659         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
660         define GET_REAL and PUT_REAL as simple memcpy operations; no
661         need to byteswap or round.
662         Use #error instead of #ifdef-ing out the entire file, for
663         prompt error detection.
664
665         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
666
667 2002-04-18  David S. Miller  <davem@redhat.com>
668
669         * config/sparc/sparc.h (BRANCH_COST): Define.
670
671         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
672         does it.
673
674 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
675
676         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
677         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
678         propagate_block calls after relaxation loop using new variable
679         stabilized_prop_flags.
680
681 2002-04-18  Richard Henderson  <rth@redhat.com>
682
683         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
684         (ia64_va_arg): Expect variable sized types by reference.
685         * config/ia64/ia64-protos.h: Update.
686         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
687         ia64_function_arg_pass_by_reference.
688
689 2002-04-18  Richard Henderson  <rth@redhat.com>
690
691         * ifcvt.c: Include except.h.
692         (block_has_only_trap): Break out from find_cond_trap.
693         (find_cond_trap): Use it.  Always delete the trap block.
694         (merge_if_block): Allow then block null.  Be less simplistic about
695         what insns can end a block.
696         * Makefile.in (ifcvt.o): Depend on except.h.
697
698         * config/ia64/ia64.md (trap, conditional_trap): New.
699
700 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
701
702         PR c/6358
703         * function.c (assign_parms): Assign hard current_function_return_rtx
704         register here...
705         (expand_function_end): ...not here.
706
707 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
708
709         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
710         * c-tree.h (c_incomplete_type_error): New.
711         * c-typeck.c (require_complete_type, build_component_ref): Update.
712         (incomplete_type_error): Rename.
713         * langhooks-def.h (lhd_incomplete_type_error): New.
714         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
715         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
716         * langhooks.c (lhd_incomplete_type_error): New.
717         * langhooks.h (struct lang_hooks_for_types): New hook.
718         * tree.c (size_in_bytes): Use new hook.
719         * tree.h (incomplete_type_error): Remove.
720 objc:
721         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
722
723 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
724
725         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
726         TARGET_FLOAT_FORMAT blocks.
727
728 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
729
730         * doc/install.texi (Downloading the source): Do not mention Chill
731         any longer, but mention Ada.
732         (Configuration): Do not mention Chill any longer.
733
734 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
735
736         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
737
738 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
739
740         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
741         in last patch.
742
743 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
744
745         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
746         instead of unsigned_type.
747
748 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
749
750         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
751         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
752         later.
753
754 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
755
756         * attribs.c (vector_type_node_list): New static variable.
757         (handle_vector_size_attribute): Use it to avoid generating a
758         new type node each time we are called.
759
760         * combine.c (subst): Avoid trying to make a vector mode subreg of
761         an integer constant.
762         (gen_lowpart_for_combine): Likewise.
763
764 2002-04-18  Roger Sayle  <roger@eyesopen.com>
765             Jakub Jelinek  <jakub@redhat.com>
766
767         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
768         for integer constant c (if x has unsigned type or sign bit is not
769         set in c).  This folds the zero/sign extension into the bit-wise and
770         operation.
771
772 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
773
774         PR middle-end/6205
775         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
776         otherwise xorps.
777
778 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
779
780         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
781
782 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
783
784         * gcc.c (read_specs): Detect and fail if an attempt is made to
785         rename a spec string to an already existing string.
786
787 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
788
789         * config/s390/s390.c (legitimize_pic_address): Do not generate
790         illegal address constant without CONST.
791
792 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
793
794         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
795         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
796
797 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
798
799         PR optimization/6305
800         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
801         to make sure previous reloads are taken into account.  Generate
802         better code if one operand is an in-range immediate constant.
803
804 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
805
806         * doc/install.texi (Building): libgcj requires GNU make.
807
808 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
809
810         PR bootstrap/6315
811         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
812         even if hard quad and register is not floating.
813         (movtf reg<-mem split): Disallow splitting if hard quad and
814         register is floating.
815         (movtf mem<-reg split): Likewise.
816         * config/sparc/sparc.c (fp_register_operand): New predicate.
817         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
818
819 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
820
821         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
822         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
823         (unprotoize.o): Ditto.  Build from protoize.c.  Define
824         UNPROTOIZE on command line.
825         * protoize.c: Include cppdefault.h.  Delete include_defaults.
826         (in_system_include_dir): Use cpp_include_defaults (defined in
827         cppdefault.o).
828         * unprotoize.c: Delete file.
829
830 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
831
832         * config/rs6000/altivec.h (vec_ld): Add array variants.
833         (vec_lde): Same.
834         (vec_ldl): Same.
835
836 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
837             Aldy Hernandez <aldyh@redhat.com>
838
839         * config/rs6000/altivec.h: Define __ALTIVEC__.
840         (bool): New.
841         (__pixel): New.
842         (pixel): New.
843         (vec_cfux): New.
844         (vec_vmaddfp): New.
845         (vec_vsldoi): New.
846         Add parentheses to all macro arguments.
847
848 2002-04-16  Richard Henderson  <rth@redhat.com>
849
850         PR c++/6320
851         * except.c (remove_eh_handler): Insert inner regions at beginning
852         of sibling chain.  Refactor expressions.
853
854 2002-04-16  Richard Henderson  <rth@redhat.com>
855
856         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
857         * config/sparc/sol2-gas-bi.h: New file.
858         * config.gcc (sparc*-solaris): Add it as needed.
859         * configure.in (AS_SPARC64_FLAG): Remove check.
860         * config.in, configure: Regenerate.
861
862         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
863
864 2002-04-16  Richard Henderson  <rth@redhat.com>
865
866         * config/mips/mips.c (override_options): Don't override N32 for
867         a 64-bit ISA.
868
869         PR 6202
870         * config/mips/mips.md (can_delay): Split out of existing define_delays.
871         (HILO_delay): Set can_delay false.
872
873 2002-04-16  Dale Johannesen <dalej@apple.com>
874
875         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
876         instruction addresses.
877         (rs6000_output_function_epilogue): Likewise.
878
879 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
880
881         * c-parse.in (poplevel, compstmt_start,
882         compstmt_primary_start): Add ending ';', in accordance
883         with POSIX.
884
885 2002-04-16  Richard Henderson  <rth@redhat.com>
886
887         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
888         Adjust tm_file order to get TARGET_DEFAULT set properly.
889         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
890         * doc/install.texi (sparc-solaris): Update.
891
892 2002-04-16  Dale Johannesen <dalej@apple.com>
893
894         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
895         comparison operands do not match each other or if modes of
896         conditions do not match result.
897
898 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
899
900         PR target/6305
901         * config/s390/s390.md (mulsidi3): Set both subregs of the
902         multiword register.
903
904 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
905
906         * config/rs6000/altivec.h (vec_addc): Type check.
907
908 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
909
910         PR middle-end/6279
911         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
912
913         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
914
915 2002-04-15  Richard Henderson  <rth@redhat.com>
916
917         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
918         call_really_used_regs too.
919
920 2002-04-15  Richard Henderson  <rth@redhat.com>
921
922         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
923
924 2002-04-15  David S. Miller  <davem@redhat.com>
925
926         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
927         as being CLOBBERed.
928
929 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
930
931         PR c/6290
932         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
933         CONST_VECTOR is { 0, ... 0 }.
934
935 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
936
937         * doc/install.texi (Installing GCC: Configuration): Clarify
938         the only supported ways to configure gcc.
939
940 2002-04-15  Roland McGrath  <roland@frob.com>
941
942         * config.gcc (alpha*-*-gnu*): New target configuration.
943         * config/alpha/gnu.h: New file for it.
944         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
945
946 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
947
948         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
949         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
950         * tree.h (expand_start_stmt_expr): Update prototype.
951         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
952         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
953         on the STMT_EXPR created for the inline function.
954
955 2002-04-15  Richard Henderson  <rth@redhat.com>
956
957         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
958         config/i386/linux-aout.h, config/i386/linux-oldld.h,
959         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
960         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
961         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
962         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
963         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
964         Define __gnu_linux__, not gnu_linux.
965         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
966
967 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
968
969         Remove Chill front end.
970         * gcc.c (default_compilers): Remove Chill entries.
971         * ch: Remove directory.
972         * doc/frontends.texi: Remove information about Chill.
973         * doc/sourcebuild.texi: Likewise.
974         * doc/standards.texi: Likewise.
975
976 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
977
978         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
979         (LONGLONG_STANDALONE): Define.
980
981 2002-04-15  David S. Miller  <davem@redhat.com>
982
983         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
984         Call emit_library_call with LCT_NORMAL.
985         (sparc_initialize_trampoline): Use LCT_foo instead of
986         magic constant in emit_library_call invocations.
987         (sparc64_initialize_trampoline): Likewise.
988         (sparc_profile_hook): Likewise.
989         * config/sparc/sparc.md: Likewise.
990
991         * config/sparc/sparc.c (sparc_extra_constraint_check):
992         Fix type of argument 'c'.
993         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
994         Likewise.
995
996 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
997
998         * diagnostic.h (output_buffer_state): Redefine.
999         (output_format_decoder): New macro.
1000         (output_prefixing_rule): Likewise.
1001         (output_line_cutoff): Likewise.
1002         (diagnostic_format_decoder): Adjust.
1003         (diagnostic_prefixing_rule): Likewise.
1004         (diagnostic_line_cutoff): Likewise.
1005         (diagnostic_state): Likewise.
1006         (diagnostic_kind_count): Likewise.
1007         (diagnostic_buffer): Now a macro.
1008
1009         * diagnostic.c (diagnostic_buffer): Remove definition.
1010         (output_is_line_wrapping): Adjust.
1011         (set_real_maximum_length): Likewise.
1012         (output_set_maximum_length): Likewise.
1013         (init_output_buffer): Likewise.
1014         (lhd_print_error_function): Likewise.
1015         (output_do_verbatim): Likewise.
1016
1017 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1018
1019         * cpperror.c (print_location): Don't print include chain
1020         if line == 0.
1021         (cpp_begin_message): Update to use DL_ macros.
1022         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1023         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1024         cpp_notice, cpp_notice_from_errno): Remove.
1025         (cpp_error, cpp_error_with_line): Update to take a diagnostic
1026         level.
1027         (cpp_errno): New.
1028         * cppexp.c (CPP_ICE): Remove.
1029         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1030         lex, integer_overflow, _cpp_parse_expr): Update.
1031         * cppfiles.c (read_include_file, find_include_file,
1032         handle_missing_header, _cpp_read_file, remap_filename): Update.
1033         * cpphash.h (enum error_type): Remove.
1034         (_cpp_begin_message): Update.
1035         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1036         cpp_handle_option, cpp_post_options): Update.
1037         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1038         skip_whitespace, parse_identifier, parse_slow, parse_string,
1039         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1040         cpp_interpret_charconst): Update.
1041         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1042         lex_macro_node, do_undef, glue_header_name, parse_include,
1043         do_include_common, read_flag, do_line, do_linemarker, do_ident,
1044         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1045         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1046         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1047         _cpp_pop_buffer, do_diagnostic): Update.
1048         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1049         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1050         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1051         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1052         cpp_notice, cpp_notice_from_errno): Remove.
1053         (cpp_error, cpp_error_with_line): Update to take a diagnostic
1054         level.
1055         (cpp_errno): New.
1056         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1057         collect_args, enter_macro_context, save_parameter, parse_params,
1058         _cpp_create_definition, check_trad_stringification,
1059         cpp_macro_definition): Update.
1060         * cppmain.c (cpp_preprocess_file): Update.
1061         * fix-header.c (read_scan_file): Update.
1062
1063 2002-04-14  Andreas Schwab  <schwab@suse.de>
1064
1065         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1066
1067 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1068
1069         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1070
1071 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
1072
1073         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1074         not gnu_hurd.
1075
1076 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
1077
1078         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1079
1080 2002-04-13      Joel Sherrill <joel@OARcorp.com>
1081
1082         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
1083         sparc-elf and sparc-rtems targets.
1084
1085 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
1086
1087         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1088         defined, and __gnu_hurd__ wherever __GNU__ is defined.
1089         * arm/linux-elf.h: Likewise.
1090         * cris/aout.h: Likewise.
1091         * cris/linux.h: Likewise.
1092         * i370/linux.h: Likewise.
1093         * i386/gnu.h: Likewise.
1094         * i386/linux-aout.h: Likewise.
1095         * i386/linux-oldld.h: Likewise.
1096         * i386/linux.h: Likewise.
1097         * i386/linux64.h: Likewise.
1098         * ia64/linux.h: Likewise.
1099         * m68k/linux-aout.h: Likewise.
1100         * m68k/linux.h: Likewise.
1101         * mips/linux.h: Likewise.
1102         * pa/pa-linux.h: Likewise.
1103         * pj/linux.h: Likewise.
1104         * rs6000/sysv4.h: Likewise.
1105         * s390/linux.h: Likewise.
1106         * sh/linux.h: Likewise.
1107         * sparc/linux-aout.h: Likewise.
1108         * sparc/linux.h: Likewise.
1109         * sparc/linux64.h: Likewise.
1110         * xtensa/linux.h: Likewise.
1111
1112 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
1113
1114         * stmt.c (check_unique_operand_names): Expect operand names to
1115         be strings rather than identifiers.  Use simple_cst_equal to
1116         compare them.
1117         (resolve_operand_name_1): Make same identifier to string change here.
1118         * c-parse.in (asm_operand): Convert a named operand into a string.
1119         * cp/parse.y (asm_operand): Likewise.
1120
1121 2002-04-13  Andreas Schwab  <schwab@suse.de>
1122
1123         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1124
1125 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
1126
1127         Revert these changes:
1128
1129         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1130
1131         PR c++/5571
1132         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1133
1134 2002-04-12  Richard Henderson  <rth@redhat.com>
1135
1136         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1137         (sparc*-*-solaris): Clean up header files.
1138         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1139         and plan on generating 64-bit code.
1140         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1141         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1142         * config/sparc/sol2-sld-64.h: Rename ...
1143         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
1144         for AS_SPARC64_FLAG not defined.
1145         * config/sparc/sol2-gld-bi.h: New.
1146         * config/sparc/sol2-sld.h: Remove.
1147         * config/sparc/sol26-sld.h: New.
1148         * config/sparc/sol2.h: Tidy comments.
1149         * doc/install.texi: Document sparc-solaris configury changes.
1150
1151 2002-04-12  Richard Henderson  <rth@redhat.com>
1152
1153         * recog.c (offsettable_address_p): Match the logic in adjust_address.
1154
1155         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1156         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
1157
1158 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1159
1160         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1161
1162 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
1163
1164         * pa.c (pa_can_combine_p): Call extract_insn before calling
1165         constrain_operands.
1166
1167 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
1168
1169         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1170         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1171         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1172         (CPP_PREDEFINES): Handle __declspec.
1173         * config/i386/t-interix (USER_H): Remove.
1174
1175 2002-04-12  DJ Delorie  <dj@redhat.com>
1176
1177         * integrate.c (compare_blocks): Make comparisons safe for when
1178         sizeof(int) < sizeof(char *).
1179         (find_block): Likewise.
1180
1181 2002-04-12  Jan Hubicka  <jh@suse.cz>
1182             David Edelsohn  <edelsohn@gnu.org>
1183
1184         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1185         registers.
1186         (symbol_ref_operand): New.
1187         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1188         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1189
1190 2002-04-12  Andreas Schwab  <schwab@suse.de>
1191
1192         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1193         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1194         overrides the definition in config/svr4.h.
1195
1196 2002-04-12      Eric Norum <eric.norum@usask.ca>
1197
1198         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1199         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1200         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1201         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1202         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1203         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1204         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1205         definitions to config/rtems.h and make the targets more similar.
1206
1207 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1208
1209         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1210         POINTERS_EXTEND_UNSIGNED.
1211         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1212         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1213
1214         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1215         not specified.
1216
1217 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
1218
1219         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1220         depends on TARGET_SHMEDIA, not TARGET_SH5.
1221
1222 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
1223
1224         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1225         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1226
1227 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1228
1229         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1230         no r0 clobber.
1231
1232 2002-04-12  Andreas Schwab  <schwab@suse.de>
1233
1234         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1235
1236 2002-04-12  Richard Henderson  <rth@redhat.com>
1237
1238         PR bootstrap/4191
1239         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1240
1241         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1242         modes spanning multiple hard regs.
1243
1244         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1245
1246 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1247
1248         * pa.c (pa_output_function_prologue): Don't accumulate the total
1249         number of code bytes when using TARGET_64BIT, or gas, SOM and not
1250         the portable runtime.
1251         (output_deferred_plabels): Handle 64bit plabels.
1252         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1253         generating pic code using the GAS assembler for object formats that
1254         are not SOM (ie., ELF32 and ELF64).
1255         (output_millicode_call): Check attribute type if attribute length is 28.
1256         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
1257         dbr_sequence_length once.
1258         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1259         dbr_sequence_length once.
1260         * pa.h (TARGET_SOM): Define if not defined.
1261         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1262         with GAS and not SOM.
1263         (jump, call_internal_reg, call_value_internal_reg): Likewise.
1264         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
1265
1266 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1267
1268         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1269         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1270         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1271         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1272         elfos.h and dbxelf.h values are fine now.
1273         * config/i386/freebsd.h, config/alpha/freebsd.h
1274         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1275
1276 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1277
1278         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1279         or set Acpu or Amachine.  Reformat.
1280         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1281         define.
1282         (LINK_SPEC): Do not need to undef.
1283         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1284         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1285         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1286         define.
1287         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1288         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1289         (LINK_SPEC): Do not need to undef.
1290         (DONT_USE_BUILTIN_SETJMP): Do not define.
1291         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1292         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
1293         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1294         Remove trailing spaces.
1295         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1296         __ELF__, or set Acpu or Amachine.  Reformat.
1297         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1298         define.
1299
1300 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1301
1302         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1303         all other *-*-freebsd* targets.
1304
1305 2002-04-11  Richard Henderson  <rth@redhat.com>
1306
1307         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1308
1309 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1310
1311         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1312         Include {cpu}/{cpu}.h thru tm_file.
1313         (alpha*-*-linux*ecoff): Remove target.
1314         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1315         (LINK_SPEC): Remove, is not OS independent.
1316         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1317         (LINK_SPEC): Do not need to #undef any longer.
1318         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1319         any longer.
1320         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1321         __ELF__.
1322         (LINK_SPEC): Moved here from alpha/elf.h.
1323         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1324         SUB_CPP_PREDEFINES.
1325         * config/alpha/linux-ecoff.h: Remove.
1326         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1327         (CPP_SPEC): Define _POSIX_SOURCE as needed.
1328         (CPP_SUBTARGET_SPEC): Do not define.
1329         (LINK_SPEC): Do not need to #undef any longer.
1330         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1331         * config/alpha/vms.h: Likewise.
1332
1333 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
1334
1335         * doc/extend.texi: Remove old claim that typedefs cannot have
1336         an alignment attribute.
1337
1338 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1339
1340         PR optimization/6177
1341         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1342         bitpos is 0 and bitsize CONCAT size.
1343
1344 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1345
1346         PR c/6223
1347         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1348
1349 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
1350
1351         * config/alpha/freebsd.h: Minor reformatting.
1352         (CPP_SPEC): Define ELF and add cpp_subtarget.
1353         (ASM_SPEC): No longer needed.
1354
1355 2002-04-11  Richard Henderson  <rth@redhat.com>
1356
1357         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1358         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
1359         (dimode mem/zero splitter): New.
1360
1361 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
1362
1363         * config/cris/cris.c (cris_override_options): Tweak error message
1364         for PIC not implemented.
1365
1366         * config/cris/cris.h: Tweak comments related to parameter-passing.
1367
1368         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1369
1370 2002-04-10  Richard Henderson  <rth@redhat.com>
1371
1372         * except.c (add_ehl_entry): Allow duplicates after landing pad
1373         creation.
1374
1375 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
1376
1377         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1378
1379 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
1380
1381         * c-decl.c (c_init_decl_processing): Move generation of
1382         decls for g77_integer_type_node and friends from here ...
1383         * c-common.c (c_common_nodes_and_builtins): ... to here.
1384
1385 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
1386
1387         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1388         is only used as frame pointer when frame_pointer_needed is true.
1389
1390 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
1391
1392         PR target/817
1393         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1394         for the fact that the pool entry uses two words.
1395         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
1396         1k bytes.
1397         (movdf_soft_insn): Similarly.
1398         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1399         for the fact that the pool entry uses three words.
1400
1401 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
1402
1403         * config/mips/mips.c (mips_va_arg): When using the struct version
1404         of the EABI va_list, allow arguments in the register save area to
1405         take up less room than a stack argument.
1406
1407 2002-04-10  Richard Henderson  <rth@redhat.com>
1408
1409         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1410         if EXPAND_INITIALIZER.
1411
1412 2002-04-09  Richard Henderson  <rth@redhat.com>
1413
1414         * config/alpha/alpha.md (movdi_er_maybe_g): New.
1415         * config/alpha/alpha.c (alpha_expand_mov): Use it.
1416
1417 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
1418
1419         PR optimization/6233
1420         * rtlanal.c (pure_call_p): New function.
1421         * rtl.h (pure_call_p): Declare.
1422         * loop.c (prescan_loop): Use it to set has_nonconst_call.
1423         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1424
1425 2002-04-09  Eric Christopher  <echristo@redhat.com>
1426
1427         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1428         information to .comm directive.
1429
1430 2002-04-09  Richard Henderson  <rth@redhat.com>
1431
1432         PR c/5078
1433         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1434
1435 2002-04-09  Richard Henderson  <rth@redhat.com>
1436
1437         * basic-block.h (flow_delete_block_noexpunge): Declare.
1438         (expunge_block_nocompact): Declare.
1439         * cfg.c (expunge_block_nocompact): Split out from ...
1440         (expunge_block): ... here.
1441         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1442         (flow_delete_block_noexpunge): Split out from ...
1443         (flow_delete_block): ... here.
1444         * cfgcleanup.c (delete_unreachable_blocks): Compact while
1445         removing dead blocks.
1446         * except.c (exception_handler_labels): Remove.
1447         (exception_handler_label_map): New.
1448         (struct eh_region): Add aka member.
1449         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1450         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1451         (for_each_eh_label, for_each_eh_label_1): New.
1452         (init_eh): Register exception_handler_label_map.
1453         (free_eh_status): Use free_region.
1454         (find_exception_handler_labels): Use the map, not the list.
1455         (remove_exception_handler_label): Likewise.
1456         (maybe_remove_eh_handler): Likewise.
1457         (remove_eh_handler): Use the region aka bitmap.
1458         * except.h (exception_handler_labels): Remove.
1459         (for_each_eh_label): Declare.
1460         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1461         * loop.c (invalidate_loops_containing_label): New.
1462         (find_and_verify_loops): Use it.  Use for_each_eh_label.
1463         * sched-rgn.c (is_cfg_nonregular): Use
1464         current_function_has_exception_handlers.
1465
1466 2002-04-09  Richard Henderson  <rth@redhat.com>
1467
1468         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1469         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1470         Do not return changed status.
1471         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1472         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1473         New functions that do return changed status.
1474         * sbitmap.h: Update decls.
1475         * gcse.c, lcm.c: Use _cg functions as needed.
1476
1477 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1478
1479         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1480         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1481         * config/sh/embed_bb.c: New file.
1482         * config/sh/embed-elf.h: New file.
1483         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1484         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1485         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1486         __PTRDIFF_TYPE__ .
1487         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1488         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1489         Add subtarget_asm_endian_spec.
1490         (ASM_SPEC): Use subtarget_asm_endian_spec.
1491         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1492         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1493         (WCHAR_UNSIGNED): Define.
1494         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1495         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1496         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1497         Fix value.
1498         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1499         (sh_adjust_cost): Likewise.
1500         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1501         __PTRDIFF_TYPE__ .
1502         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1503         (WCHAR_TYPE_SIZE): Likewise.
1504         (ASM_SPEC): Use subtarget_asm_endian_spec.
1505         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1506         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1507         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1508         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1509         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1510         (USER_LABEL_PREFIX): Don't #undef /#define .
1511         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1512         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1513         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1514         (ASM_SPEC): Likewise.
1515         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1516         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1517         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1518         (LIB2FUNCS_EXTRA): Define.
1519         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1520         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1521         (LIB1ASMFUNCS_CACHE): Define.
1522         (LIB2FUNCS_EXTRA): Redefine empty.
1523
1524 2002-04-08  Richard Henderson  <rth@redhat.com>
1525
1526         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1527
1528 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1529
1530         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1531         and optimize for size.
1532         (__do_global_ctors): Fix pointer comparison.
1533         (__do_global_dtors): Likewise.
1534
1535 2002-04-09  David S. Miller  <davem@redhat.com>
1536
1537         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1538         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1539         allow reloading pseudos.
1540         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1541         * config/sparc/sparc-protos.h: Declare it.
1542
1543         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1544         unsigned comparison warning.
1545         (output_restore_regs): Mark leaf_function as unused.
1546
1547 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1548
1549         * expr.c (is_aligning_offset): New function.
1550         (expand_expr, case COMPONENT_EXPR): Call it.
1551
1552 2002-04-08  David S. Miller  <davem@redhat.com>
1553
1554         PR target/6082
1555         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1556
1557         Make init_priority work on Sparc when using GNU ld.
1558         * config/sparc/linux.h, config/sparc/linux64.h,
1559         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1560         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1561         * config/sparc/sol2-gld.h: New file to do the same.
1562         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1563         sparc/sol2-gld.h to tm_file.
1564
1565         PR optimization/4328
1566         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1567         * doc/md.texi: Document it.
1568         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1569         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1570         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1571         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1572         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1573
1574 2002-04-08  Andreas Jaeger  <aj@suse.de>
1575
1576         * stmt.c (expand_asm_operands): Revert last patch from Richard
1577         Henderson.
1578
1579 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1580
1581         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1582         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1583
1584 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1585
1586         * doc/contrib.texi (Contributors): Add David O'Brien.
1587
1588 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1589
1590         * configure.in (auto-build.h): Use target_alias and build_alias
1591         when running configure.
1592         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1593         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1594         * configure: Regenerate.
1595
1596 2002-04-07  David S. Miller  <davem@redhat.com>
1597
1598         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1599
1600 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1601
1602         PR 5933
1603         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1604         generating 32-bit pic code.
1605
1606 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1607
1608         * cppinit.c (cpp_create_reader): Initialize
1609         discard_comments_in_macro_exp.
1610         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1611         (cpp_handle_option): Handle "-CC" option.
1612         * cpplex.c (save_comment): If saving a C++ comment in
1613         a directive, convert it to a C comment.
1614         (_cpp_lex_direct): Pass second comment start character to
1615         save_comment to indicate comment type.
1616         * cpplib.c (_cpp_handle_directive): If processing
1617         a "#define" directive and discard_comments_in_macro_exp
1618         is false,  re-enable saving of comments.
1619         (lex_macro_node): If discard_comments_in_macro_exp is false,
1620         discard any comments before the macro identifier.
1621         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1622         member.
1623         * cppmacro.c (cpp_get_token): If expanding a macro while
1624         processing a directive, discard any comments we might encounter.
1625         (parse_params): If discard_comments_in_macro_exp is false,
1626         ignore comments in the macro parameter list.
1627         * gcc.c (cpp_unique_options): Add "-CC" option.
1628         (option_map): Map "--comments-in-macros" to "-CC".
1629         * doc/cppopts.texi: Document "-CC" option.
1630         * f/lang-specs.h: Add "-CC" option.
1631         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1632         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1633         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1634         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1635         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1636         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1637
1638 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1639
1640         PR middle-end/6180
1641         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1642
1643 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1644
1645         PR c++/5571
1646         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1647
1648         PR opt/5120
1649         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1650         RTX_UNCHANGING_P for the functions arguments when a tail call
1651         is made.
1652
1653 2002-04-06  Jason Merrill  <jason@redhat.com>
1654
1655         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1656         (parse_options_and_default_flags): Set them appropriately.
1657         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1658
1659 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1660
1661         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1662         here.
1663
1664         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1665         semicolon.
1666
1667         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1668         types come in by-reference.  Fix typo in comment.
1669
1670 2002-04-05  David S. Miller  <davem@redhat.com>
1671
1672         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1673         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1674         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1675         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1676
1677 2002-04-05  David S. Miller  <davem@redhat.com>
1678
1679         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1680         are not going to emit return instructions, emit at least a nop
1681         for the sake of sane backtraces.
1682
1683 2002-04-05  Richard Henderson  <rth@redhat.com>
1684
1685         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1686
1687 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1688
1689         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1690
1691 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1692
1693         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1694         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1695         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1696
1697 2002-04-05  Andreas Schwab  <schwab@suse.de>
1698
1699         * c-convert.c: Include c-common.h.
1700         * Makefile.in (c-convert.o): Updated.
1701
1702 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1703
1704         * mklibgcc.in: Use separate libgcc.map for each multilib.
1705         * Makefile.in (distclean): Don't remove libgcc.map here.
1706
1707 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1708
1709         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1710         genmultilib invocation.
1711
1712 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1713
1714         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1715         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1716         to num_gprs for symmetry.
1717         * config/mips/mips.c: Adjust accordingly.
1718
1719 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1720
1721         * c-common.c (truthvalue_conversion): Rename, update.
1722         * c-common.h (c_common_truthvalue_conversion): New.
1723         * c-convert.c (convert): Update.
1724         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1725         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1726         * c-typeck.c (build_binary_op, build_unary_op,
1727         build_conditional_expr): Update.
1728         * fold-const.c (constant_boolean_node, fold): Use langhook.
1729         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1730         * langhooks.h (struct lang_hooks): New hook.
1731         * stmt.c (expand_decl_cleanup): Use langhook.
1732         * tree.h (truthvalue_conversion): Remove.
1733 objc:
1734         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1735
1736 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1737
1738         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1739         Add rules to make null object file.
1740
1741 2002-04-04  Jim Blandy  <jimb@redhat.com>
1742
1743         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1744         macro formal parameter names.
1745
1746 2002-04-04  David S. Miller  <davem@redhat.com>
1747
1748         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1749
1750 2002-04-04  Richard Henderson  <rth@redhat.com>
1751
1752         PR middle-end/5099
1753         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1754         Support copies into and out of memory.  Don't accept allows_reg
1755         and allows_mem as gospel.
1756
1757 2002-04-04  Richard Henderson  <rth@redhat.com>
1758
1759         PR opt/6165
1760         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1761         (write_dependence_p): Likewise.
1762
1763 2002-04-04  Richard Henderson  <rth@redhat.com>
1764
1765         * predict.c (estimate_bb_frequencies): Do frequency calculation
1766         with a volatile temporary.
1767
1768 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1769
1770         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1771
1772 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1773
1774         PR c++/6119
1775         * final.c (final_start_function): Don't bump profile_label_no here...
1776         (final_end_function): ...but here.
1777
1778 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1779
1780         * config/sparc/sparc.md (pic): New attribute.
1781         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1782         into stack slots.
1783         (split after do_builtin_setjmp_setup): New.
1784
1785 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1786
1787         PR fortran/6106
1788         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1789         change.
1790
1791 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1792
1793         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1794         UNITS_PER_WORD for zero sized aggregates.
1795
1796 2002-04-03  David S. Miller  <davem@redhat.com>
1797
1798         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1799         one-character spec for this, just use %(link_gcc_c_sequence).
1800
1801 2002-04-03  David S. Miller  <davem@redhat.com>
1802
1803         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1804         handling.
1805
1806 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1807
1808         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1809         (DWARF_FRAME_RETURN_COLUMN): Move.
1810         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1811         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1812         * pa.c (except.h, predict.h): Include.
1813         (FRP): Delete.
1814         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1815         (output_ascii): Add cast.
1816         (store_reg_modify): Revise to add frame notes.
1817         (set_reg_plus_d): Likewise.
1818         (compute_frame_size): Include space for eh data registers in frame if
1819         the current function calls eh_return.
1820         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1821         function calls eh_return.  Save eh data registers if the current
1822         function calls eh_return.  Fix code to add frame notes.  Emit
1823         blockage to prevent insns with frame notes being scheduled in the
1824         delay slot of calls.
1825         (hppa_expand_epilogue): Restore eh data registers and do final stack
1826         adjustment if the current function calls eh_return.  Don't add frame
1827         notes.
1828         (output_call): Revise for change in length of call insn.  Don't do
1829         return pointer adjustment for an unconditional jump in the delay slot
1830         of a call when using frame notes.
1831         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1832         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1833         (ARG_POINTER_CFA_OFFSET): Define.
1834         * pa.md (return_external_pic): New pattern.
1835         (prologue): Correct formatting.  Use return_external_pic if current
1836         function calls eh_return.
1837         (call_internal_symref, call_value_internal_symref,
1838         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1839         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1840         respectively.
1841         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1842
1843         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1844         list of targets to check using "nop" insn.
1845         * configure: Rebuilt.
1846
1847 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1848
1849         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1850
1851 2002-04-03  David S. Miller  <davem@redhat.com>
1852
1853         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1854         library sequence passed to the linker.
1855         (LINK_COMMAND_SPEC): Use it.
1856         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1857         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1858         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1859
1860 2002-04-03  Jason Merrill  <jason@redhat.com>
1861
1862         * except.c (struct eh_status): Remove protect_list.
1863         (begin_protect_partials, end_protect_partials): Remove.
1864         (add_partial_entry): Remove.
1865         * except.h: Remove prototypes.
1866
1867         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1868         expand_decl_cleanup_eh.
1869
1870         PR c++/5636
1871         * tree.h (CLEANUP_EH_ONLY): New macro.
1872         * stmt.c (expand_decl_cleanup_eh): New fn.
1873         (expand_cleanups): Check CLEANUP_EH_ONLY.
1874         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1875         Use expand_decl_cleanup_eh.
1876         (expand_stmt): Adjust.
1877         * c-common.h: Adjust prototype.
1878
1879 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
1880
1881         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1882         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1883         (cris_target_asm_function_epilogue): Ditto.
1884         (cris_initial_frame_pointer_offset): Ditto.
1885         (cris_simple_epilogue): Ditto.
1886         (cris_expand_builtin_va_arg): Variable-size types come in
1887         by-reference.
1888
1889 2002-04-03  David S. Miller  <davem@redhat.com>
1890
1891         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1892         little-endian.
1893         (set_fast_math): Correct 'fsr' type.
1894
1895 2002-04-03  Richard Henderson  <rth@redhat.com>
1896
1897         PR opt/3569
1898         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1899         * toplev.c (check_global_declarations): Use it.
1900         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1901         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1902         (LANG_HOOKS_DECLS): Add it.
1903         * langhooks.c (lhd_warn_unused_global_decl): New.
1904         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1905         * c-objc-common.c (c_warn_unused_global_decl): New.
1906         * c-tree.h (c_warn_unused_global_decl): Declare.
1907         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1908
1909 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1910
1911         * langhooks-def.h (lhd_set_decl_assembler_name,
1912         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1913         (LANG_HOOKS_INITIALIZER): Update.
1914         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1915         * langhooks.h (struct lang_hooks): New hook.
1916         * tree.c (set_decl_assembler_name): Move to langhooks.c.
1917         (lang_set_decl_assembler_name): Remove.
1918         (init_obstacks): Don't set hook.
1919         (decl_assembler_name): New function.
1920         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1921         (decl_assembler_name): New.
1922         (lang_set_decl_assembler_name): Remove.
1923
1924 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1925
1926         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1927         works properly with .hidden symbols.
1928         * configure: Rebuilt.
1929         * config.in: Rebuilt.
1930         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1931         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1932         properly with .hidden symbols.
1933
1934 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
1935
1936         PR middle-end/6102
1937         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1938         USE argument.
1939
1940 2002-04-03  Richard Henderson  <rth@redhat.com>
1941
1942         PR opt/4120
1943         * sched-rgn.c (sets_likely_spilled): New.
1944         (sets_likely_spilled_1): New.
1945         (add_branch_dependences): Use it.
1946
1947 2002-04-02  Richard Henderson  <rth@redhat.com>
1948
1949         PR opt/4311
1950         * loop.h (LOOP_FIRST_PASS): New.
1951         * loop.c (strength_reduce): Mind it when deciding to unroll.
1952         * toplev.c (rest_of_compilation): Set it.
1953
1954 2002-04-02  David S. Miller  <davem@redhat.com>
1955
1956         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1957         mems_ok_for_ldd_peep when the order of the loads being examined
1958         is reversed.
1959         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1960         existing comment to increase comprehension of this situation.
1961
1962 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
1963
1964         * config/sh/sh.md: Don't use union real_extract.
1965
1966 2002-04-02  Richard Henderson  <rth@redhat.com>
1967
1968         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1969
1970 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
1971
1972         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1973         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1974         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1975         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1976         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1977         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1978         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1979         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1980         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1981         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1982         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1983         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1984         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1985         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1986         Include as many configury headers via tm_file as possible.  This
1987         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1988         * config/openbsd-oldgas.h: New file.
1989         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1990         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1991         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1992         config/i386/i386-coff.h, config/i386/i386-interix.h,
1993         config/i386/iscdbx.h, config/i386/linux-aout.h,
1994         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1995         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1996         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1997         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1998         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1999         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2000         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2001         config/i386/vxi386.h: Do not directly include configury headers.
2002         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2003         Directly include configury headers that are no longer automatically
2004         included by the above headers.
2005         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2006         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2007         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2008         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2009         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2010         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2011         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2012         (TARGET_VERSION): Define.
2013         * config/i386/beos-elf.h, config/i386/freebsd.h,
2014         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2015         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2016         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2017         config/i386/sco5.h, config/i386/sysv4.h
2018         (TARGET_VERSION): Do not need to protect.
2019         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2020         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2021         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2022         config/i386/i386-interix.h, config/i386/linux-aout.h,
2023         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2024         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2025         (YES_UNDERSCORES): Do not define - not needed.
2026         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2027         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2028         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2029         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2030         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2031         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2032         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2033         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2034
2035 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
2036             Richard Henderson  <rth@redhat.com>
2037
2038         PR c/5484
2039         * function.c (assign_temp): Accept either type or decl argument.
2040         Detect variables whose size is too large to fit into an integer.
2041         * stmt.c (expand_decl): Pass the decl, not the type.
2042
2043 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2044
2045         * protoize.c: Match include directory usage with cppdefault.c.
2046
2047 2002-04-03  Jeffrey A Law  (law@redhat.com)
2048             Hans-Peter Nilsson  <hp@bitrange.com>
2049
2050         * combine.c (simplify_comparison): Avoid narrowing a comparison
2051         with a paradoxical subreg when doing so would drop signficant bits.
2052
2053 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
2054
2055         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2056         if POINTERS_EXTEND_UNSIGNED is defined.
2057
2058 2002-04-02  Richard Henderson  <rth@redhat.com>
2059
2060         PR opt/3967
2061         * local-alloc.c (contains_replace_regs): LO_SUM may contain
2062         replace regs.
2063
2064 2002-04-02  Richard Henderson  <rth@redhat.com>
2065
2066         * doc/standards.texi: Document required freestanding libc entry points.
2067
2068 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
2069
2070         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2071         associated splitter.  Remove MQ constraint.
2072         (ctrdi_internal4): Correct CCmode clobber.
2073
2074 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2075
2076         * milli64.S ($$dyncall): New function.
2077         * t-linux (LIB1ASMFUNCS): Revise module list.
2078         (LIB1ASMSRC): Use pa/milli64.S.
2079
2080 2002-04-02  Richard Henderson  <rth@redhat.com>
2081
2082         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2083         rename solaris_sys_varargs_h.
2084
2085 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2086
2087         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2088         the same mode as its component.
2089
2090 2002-04-02  Richard Henderson  <rth@redhat.com>
2091
2092         PR opt/190
2093         * final.c (this_is_asm_operands): Export.
2094         * output.h (this_is_asm_operands): Declare.
2095         * config/i386/i386.c (print_operand): Error odd asm operands.
2096
2097 2002-04-02  Richard Henderson  <rth@redhat.com>
2098
2099         PR opt/420
2100         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2101
2102 2002-04-01  Richard Henderson  <rth@redhat.com>
2103
2104         PR target/1538
2105         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2106         * fixinc/fixincl.x: Rebuild.
2107
2108 2002-04-01  Richard Henderson  <rth@redhat.com>
2109
2110         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2111         (atomic_alloc, atomic_free): New.
2112         (SIZE, MASK_FOR, PTR_IN): New.
2113         (emergency_reg_state, emergency_reg_state_free): New.
2114         (emergency_labeled_state, emergency_labeled_state_free): New.
2115         (reg_state_alloced, labeled_state_alloced): New.
2116         (alloc_reg_state, free_reg_state): New.
2117         (alloc_label_state, free_label_state, free_label_states): New.
2118         (push, pop, dup_state_stack, free_state_stack): Use them.
2119         (desc_label_state): Likewise.
2120         (uw_frame_state_for): Free label states and state stack.
2121         (uw_update_reg_address): Eliminate warnings.
2122
2123 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
2124
2125         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2126         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2127
2128 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2129
2130         * c-decl.c (grokdeclarator): Update.
2131         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2132         * c-tree.h (c_mark_addressable): New.
2133         * c-typeck.c (default_function_array_conversion, build_unary_op,
2134         build_array_ref, convert_for_assignment): Update.
2135         (mark_addressable): Rename.
2136         * calls.c (try_to_integrate, expand_call): Use langhook.
2137         * expr.c (expand_expr): Use langhook.
2138         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2139         * langhooks.h (struct lang_hooks): New hook.
2140         * stmt.c (expand_asm_operands): Use langhook.
2141         * tree.h (mark_addressable): Remove.
2142 objc:
2143         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2144
2145 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
2146
2147         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2148         in previous change.
2149
2150 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
2151
2152         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2153         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2154
2155 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2156
2157         * c-common.c (unsigned_conversion_warning, convert_and_check,
2158         unsigned_type, signed_type, shorten_compare,
2159         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2160         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2161         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2162         New.
2163         * c-decl.c (grokdeclarator): Update.
2164         * c-format.c (check_format_types): Update.
2165         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2166         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2167         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2168         * convert.c (convert_to_integer): Use new hooks.
2169         * expmed.c (make_tree): Use new hooks.
2170         * expr.c (store_expr): Use new hooks.
2171         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2172         all_ones_mask_p, unextend, fold): Use new hooks.
2173         * langhooks.h (struct lang_hooks_for_types): New hooks.
2174         * tree.h (signed_or_unsigned_type, signed_type,
2175         unsigned_type): Remove.
2176 objc:
2177         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2178         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2179
2180 2002-03-31  Richard Henderson  <rth@redhat.com>
2181
2182         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2183         (desc_frgr_mem): Fix reference to f16-f31.
2184
2185 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2186
2187         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2188         RTVEC_ELT): Const-ify.
2189         * varray.h (VARRAY_CHECK): Const-ify.
2190         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2191         ggc_mark_rtvec, ggc_mark): Const-ify.
2192
2193 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2194
2195         * diagnostic.c: Include langhooks-def.h.
2196         * Makefile.in (diagnostic.o): Update.
2197
2198 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2199
2200         * c-common.c (c_unsafe_for_reeval): Rename.
2201         * c-common.h (c_unsafe_for_reeval): Rename.
2202         * c-decl.c (finish_incomplete_decl): Rename.
2203         (c_init_decl_processing): Don't set langhook.
2204         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2205         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2206         * c-objc-common.c (c_objc_common_init): Don't set langhook.
2207         * c-tree.h (finish_incomplete_decl): Rename.
2208         * langhooks-def.h (lhd_unsafe_for_reeval): New.
2209         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2210         (LANG_HOOKS_INITIALIZER): Update.
2211         * langhooks.c (lhd_unsafe_For_reeval): New.
2212         * langhooks.h (struct langhooks): New hooks.
2213         * toplev.c (incomplete_decl_finalize_hook): Remove.
2214         (wrapup_global_declarations): Update.
2215         * tree.c (lang_unsafe_for_reeval): Remove.
2216         (unsafe_for_reeval): Update.
2217         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2218         Remove.
2219 objc:
2220         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2221         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2222
2223 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2224
2225         * diagnostic.c (print_error_function): Remove.
2226         (default_print_error_function): Rename.
2227         (report_error_function): Update.
2228         * diagnostic.h (print_error_function): Remove.
2229         (default_print_error_function): Remove.
2230         * langhooks-def.h (struct diagnostic_context): Predeclare.
2231         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2232         (LANG_HOOKS_INITIALIZER): Update.
2233         * langhooks.h (struct diagnostic context): Predeclare.
2234         (struct lang_hooks): New hook.
2235
2236 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2237
2238         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2239         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2240         !flag_pic.
2241         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2242         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2243         of PIC_OFFSET_TABLE_REGNUM thruout.
2244         * config/rs6000/rs6000.md: Likewise.
2245         * config/rs6000/darwin.h: Likewise.
2246
2247 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2248
2249         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2250         unsigned HOST_WIDE_INT, not unsigned int.
2251
2252 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
2253
2254         PR middle-end/6096, middle-end/6098, middle-end/6099
2255         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2256         CODE_LABELs.
2257         (fill_slots_from_thread): Likewise.
2258
2259 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
2260
2261         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2262         floating fields in float regs.
2263         (function_arg_record_value_2): Likewise.
2264
2265 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
2266
2267         * config/mmix/mmix.md (define_constants): Remove misleading
2268         FIXME.  Add MMIX_fp_rO_OFFSET.
2269         ("nonlocal_goto_receiver"): Don't have stack-frame address of
2270         saved rO as part of the pattern.  Remove FIXME.
2271         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
2272         here, at output-time.
2273
2274 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
2275
2276         PR middle-end/6100
2277         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2278         REG_BR_PRED.
2279         (output_v9branch): Likewise.
2280
2281 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
2282
2283         * gcc.c: Revert previous patch for now.
2284         * config/i386/djgpp.h: Likewise.
2285
2286 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
2287
2288         * config/mmix/crti.asm (_init): Register _fini with atexit.
2289         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2290
2291 2002-03-31  Richard Henderson  <rth@redhat.com>
2292
2293         PR target/3997
2294         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2295         (ASM_OUTPUT_DEF_FROM_DECLS): New.
2296
2297 2002-03-31  Richard Henderson  <rth@redhat.com>
2298
2299         * libgcc2.c (__bb_exit_func): Make static.
2300
2301         * config/alpha/alpha.md (trap): New.
2302
2303 2002-03-31  Richard Henderson  <rth@redhat.com>
2304
2305         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2306         promoted argument types; build trap.
2307         (expand_builtin_trap): New.
2308         (expand_builtin): Use it.
2309         * stmt.c (expand_nl_goto_receivers): Likewise.
2310         * expr.h (expand_builtin_trap): Declare.
2311         * libfuncs.h (LTI_abort, abort_libfunc): New.
2312         * optabs.c (init_optabs): Init abort_libfunc.
2313
2314 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
2315
2316         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2317         (LINK_COMMAND_SPEC): ... from here.
2318         (init_gcc_specs): Duplicate it here too, omitting
2319         shared_name in the second copy.
2320         (init_spec): Test for duplicate
2321         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2322
2323 2002-03-30  David S. Miller  <davem@redhat.com>
2324
2325         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2326         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2327
2328 2002-03-30  Roger Sayle <roger@eyesopen.com>
2329             Richard Henderson  <rth@redhat.com>
2330
2331         * regmove.c (combine_stack_adjustments_for_block): Avoid
2332         emitting a stack adjustment of zero bytes.  Let delete_insn
2333         update bb->head.
2334
2335 2002-03-30  Richard Henderson  <rth@redhat.com>
2336
2337         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2338         (sparc_emitting_epilogue): New.
2339         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2340         * config/sparc/sparc-protos.h: Update.
2341         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2342         (TARGET_SWITCHES): Update.
2343         * config/sparc/sparc.md (return): Remove.
2344         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2345         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2346         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2347         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2348         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2349         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2350         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2351         Remove MASK_EPILOGUE.
2352         * doc/invoke.texi: Update.
2353
2354 2002-03-30  Daniel Berlin  <dan@dberlin.org>
2355
2356         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2357         CPP will start the file for us.
2358
2359 2002-03-30  Richard Henderson  <rth@redhat.com>
2360
2361         PR target/5446
2362         * config/ia64/ia64.c (group_barrier_needed_p): Special case
2363         prologue_allocate_stack.
2364         (ia64_single_set): Use insn codes for recognition of special
2365         cases, not rtl matching.
2366         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2367
2368 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
2369
2370         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2371
2372 2002-03-30  Richard Henderson  <rth@redhat.com>
2373
2374         PR target/6032
2375         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2376         or -fomit-frame-pointer with profiling.
2377         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2378         (FUNCTION_PROFILER): Do nothing.
2379         (PROFILE_HOOK): New.
2380         * config/sparc/sparc.c (sparc_override_options): Don't check
2381         code models for profiling.
2382         (sparc_function_profiler): Remove.
2383         (sparc_profile_hook): New.
2384         * config/sparc/sparc-protos.h: Update.
2385
2386 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2387
2388         PR optimization/6086
2389         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2390         of SUBREG of volatile MEM or because the MEM was mode dependent,
2391         return CLOBBER instead of unmodified SUBREG.
2392
2393 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
2394
2395         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2396         when not optimizing.
2397
2398         * toplev.c (rest_of_compilation): Cann mark_constant_function
2399         only when optimizing.
2400
2401         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2402         are NULL.
2403
2404         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2405         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2406         (try_optimize_cfg): clear all AUX fields.
2407
2408         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2409         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2410         (ix86_address_cost): Be prepared for SUBREGed registers.
2411         (legitimate_address_p): Accept SUBREGed registers.
2412
2413 2002-03-29  Richard Henderson  <rth@redhat.com>
2414
2415         PR target/5672
2416         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2417
2418 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2419
2420         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2421         for aggregate and TFmode types.
2422
2423 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2424
2425         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2426
2427 2002-03-29  Richard Henderson  <rth@redhat.com>
2428
2429         PR target/5886
2430         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2431         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2432
2433 2002-03-29  Richard Henderson  <rth@redhat.com>
2434
2435         PR target/6041
2436         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2437         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2438         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2439         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2440         conditional.
2441         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2442
2443 2002-03-29  Dale Johannesen <dalej@apple.com>
2444
2445         * loop.c (combine_movables): Do allow combination of pseudos.
2446
2447 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
2448
2449         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2450         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2451         No functional change except ...
2452         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
2453         * doc/install.texi (*-*-freebsd*): Document port configuration.
2454
2455 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2456
2457         * Makefile.in (convert.o, calls.o, expmed.o): Update.
2458         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2459         Use new hooks.
2460         * builtin-types.def (BT_PTRMODE): Update.
2461         * c-common.c (type_for_size): Rename c_common_type_for_size.
2462         (type_for_mode): Similarly.
2463         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2464         Use new hook.
2465         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2466         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2467         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2468         Redefine.
2469         * c-typeck.c (common_type, comptypes, default_conversion):
2470         Use new hooks.
2471         * calls.c: Include langhooks.h.
2472         (emit_library_call_value_1): Use new hooks.  Avoid redundant
2473         calls.
2474         * convert.c: Include langhooks.h
2475         (convert_to_pointer, convert_to_integer): Use new hooks.
2476         * except.c (init_eh): Similarly.
2477         * expmed.c: Include langhooks.h.
2478         (expand_mult_add): Use new hooks.
2479         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2480         try_casesi): Similarly.
2481         * fold-const.c (optimize_bit_field_compare, make_range,
2482         decode_field_reference, fold_truthop, fold): Similarly.
2483         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2484         put_var_into_stack): Similarly.
2485         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2486         LANG_HOOKS_TYPE_FOR_SIZE): New.
2487         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2488         * langhooks.h (lang_hooks_for_types): New hooks.
2489         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2490         * tree.c (get_unwidened, get_narrower): Similarly.
2491         * tree.h (type_for_mode, type_for_size): Remove.
2492         * varasm.c (force_const_mem): Use new hooks.
2493         * utils2.c (nonbinary_modular_operation): Update.
2494 objc:
2495         * objc-act.c (handle_impent): Update.
2496         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2497         Redefine.
2498
2499 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2500
2501         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2502         * config/ia64/ia64.c (basereg_operand): New.
2503         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2504         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2505
2506 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2507
2508         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2509         unwind information when frame_pointer_needed.
2510         (mmix_assemble_integer): Tweak wording in comment.
2511
2512 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2513
2514         * Makefile.in (except.o): Update.
2515         * except.c: Include langhooks.h.
2516         (init_eh): Use langhook.
2517         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2518         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2519         (LANG_HOOKS_INITIALIZER): Update.
2520         * langhooks.h (lang_hooks_for_types): New.
2521         (struct lang_hooks): Add it.
2522         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2523         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2524 config:
2525         * alpha/alpha.c: Include langhooks.h.
2526         (alpha_build_va_list): Use langhook.
2527         * d30v/d30v.c: Include langhooks.h.
2528         (d30v_build_va_list): Use langhook.
2529         * i386/i386.c: Include langhooks.h.
2530         (ix86_build_va_list): Use langhook.
2531         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2532         * s390/s390.c: Include langhooks.h.
2533         (s390_build_va_list): Use langhook.
2534         * stormy16/stormy16.c: Include langhooks.h.
2535         (stormy16_build_va_list): Use langhook.
2536
2537 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2538
2539         PR c++/5964
2540         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2541         attributes.
2542         (length): Compute variable length for branches/calls/jumps here.
2543         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2544         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2545         define branch_type attribute.
2546         (divsi3_sp32): Maximum length is 6 not 7.
2547         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2548         call_address_untyped_struct_value_sp32,
2549         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2550         * config/sparc/sparc.c (empty_delay_slot): New function.
2551         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2552         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2553
2554 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2555
2556         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2557         nonzero_bits if not needed.
2558         (nonzero_bits) [XOR]: Likewise.
2559         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2560         reg_last_set_mode and mode are both MODE_INT, but not equal.
2561         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2562         in nonzero_bits_mode for MODE_INT modes.
2563
2564 2002-03-28  Richard Henderson  <rth@redhat.com>
2565
2566         PR target/5715
2567         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2568         to GAS.  Correct drift between alternatives.
2569
2570 2002-03-28  Richard Henderson  <rth@redhat.com>
2571
2572         PR target/6087
2573         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2574
2575 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2576
2577         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2578         emulation to the linker.
2579
2580 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2581
2582         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2583         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2584
2585 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2586
2587         * combine.c (simplify_and_const_int): Make sure to apply mask
2588         when force_to_mode returns a constant integer.  PR3311.
2589
2590 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2591
2592         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2593
2594 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2595
2596         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2597         and Objective-C Dialect Options.
2598
2599 2002-03-28  Richard Henderson  <rth@redhat.com>
2600
2601         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2602         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2603
2604 2002-03-28  Richard Henderson  <rth@redhat.com>
2605
2606         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2607         on to c_expand_body.
2608         * c-tree.h (finish_function): Update decl.
2609         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2610
2611 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2612
2613         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2614
2615 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2616
2617         * rtlanal.c: Include flags.h
2618         (may_trap_p): Do not mark FP operations if trapping
2619         if !flag_trapping_math
2620         * Makefile.in (rtlanal.o): Add dependency on flag.h
2621         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2622
2623 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2624
2625         * mips.md: Use dconst1, not 1.0, as first argument of
2626         REAL_VALUE_LDEXP.  Don't use union real_extract.
2627
2628 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2629
2630         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2631         rather than $target.  Heed program_prefix and
2632         program_transform_name.  Search for gas in cross-compiler case too.
2633         "test -x" rather than "test -f".
2634         (gcc_cv_ld): Likewise.
2635         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2636         (gcc_cv_objdump): Likewise.
2637         * configure: Regenerate.
2638
2639 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2640
2641         * Makefile.in (attribs.o): Update.
2642         * attribs.c: Include langhooks.h.
2643         (decl_attributes): Use langhook.
2644         * c-decl.c (insert_default_attributes): Rename.
2645         * c-tree.h (c_insert_default_attributes): New.
2646         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2647         (LANG_HOOKS_INITIALIZER): Update.
2648         * langhooks.h (struct lang_hooks): New hook.
2649         * tree.h (insert_default_attributes): Remove.
2650 objc:
2651         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2652
2653 2002-03-27  Andreas Schwab  <schwab@suse.de>
2654
2655         * config/i386/i386.c (classify_argument): Also check for
2656         QUAL_UNION_TYPE.
2657
2658 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2659
2660         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2661         any more.
2662
2663 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2664
2665         * i960.md (ret): Set PC.
2666         (nonlocal_goto): Fix expander.
2667         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2668         some jump or call.
2669
2670 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2671
2672         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2673         of libcall regions.
2674
2675 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2676
2677         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2678         assigning to BLOCK_FOR_INSN directly.
2679
2680 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2681
2682         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2683
2684 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2685
2686         * c-common.c (c_expand_expr): Fix prototype.
2687         * c-common.h (c_expand_expr): Always declare, update.
2688         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2689         * c-objc-common.c (c_objc_common_init): No global hook.
2690         * expr.c (expand_expr): Use langhook.
2691         * expr.h (enum expand_modifier): Conditionally declare.
2692         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2693         (LANG_HOOKS_INITIALIZER): Update.
2694         * langhooks.c (lhd_expand_expr): New.
2695         * langhooks.h (struct lang_hooks): New hook.
2696         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2697         (lang_independent_init): Don't default hook.
2698 objc:
2699         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2700
2701 2002-03-27  Richard Henderson  <rth@redhat.com>
2702
2703         PR target/6054
2704         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2705         TARGET_CONST_GP.  Simplify conditions.
2706
2707 2002-03-27  Richard Henderson  <rth@redhat.com>
2708
2709         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2710         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2711         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2712
2713 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2714
2715         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2716         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2717         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2718         Remove unnecessary masks.
2719         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2720         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2721         -mwindows, -mdll switches and their negations.
2722
2723 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2724
2725         * gcc-common.c (lang_mark_false_label_stack): Remove.
2726         * ggc.h (lang_mark_false_label_stack): Similarly.
2727
2728 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2729
2730         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2731
2732         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2733         or __rtems_ is defined.
2734
2735 2002-03-26  Richard Henderson  <rth@redhat.com>
2736
2737         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2738         if a non-trivial load was emitted.
2739         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2740         in high+extra+low case.
2741
2742 2002-03-26  Richard Henderson  <rth@redhat.com>
2743
2744         * config.gcc (sparc*-solaris): Use float_format=sparc.
2745
2746 2002-03-26  Richard Henderson  <rth@redhat.com>
2747
2748         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2749         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2750         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2751         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2752         (WINT_TYPE_SIZE): Fix at 32.
2753
2754 2002-03-26  Richard Henderson  <rth@redhat.com>
2755
2756         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2757         until after eh landing pad generation.
2758         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2759         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2760
2761 2002-03-26  Richard Henderson  <rth@redhat.com>
2762
2763         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2764
2765 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2766
2767         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2768         and warning switches.
2769         (cc1_options):  Likewise.
2770
2771 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2772
2773         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2774         Restore more of the signal context.  Set no_reg_stack_frame.
2775         * config/ia64/unwind-ia64.c (unw_state_record):
2776         Add no_reg_stack_frame, comments.
2777         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2778         (uw_update_context): Adjust bsp when unwinding from leaf,
2779         but not signal frame.
2780
2781 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2782
2783         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2784
2785 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2786
2787         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2788
2789 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2790
2791         PR target/5621
2792         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2793         "Add a pool_range attribute", which was lost during the ARM/Thumb
2794         merge.
2795
2796 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2797
2798         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2799         a register into the MAC16 accumulator.
2800
2801 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2802
2803         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2804         (Warning Options): Document -Wswitch-enum.
2805         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2806         -Wswitch.
2807         (warn_switch_enum): Define variables.
2808         * flags.h (warn_switch_enum): Declare variables.
2809         * stmt.c (expand_end_case_type): When warn_switch_enum /
2810         -Wswitch-enum, perform switch checks.
2811         Fix PR c/5044.
2812
2813 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2814
2815         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2816         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2817         (reload_muladdsi_compare0_scratch): Delete.
2818
2819 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2820
2821         * doc/install.texi (*-*-freebsd*): Update.
2822
2823 2002-03-26  Richard Henderson  <rth@redhat.com>
2824
2825         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2826         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2827
2828         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2829         types from the normal argument frame.
2830
2831         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2832         variable sized objects by reference.
2833         (sparc_va_arg): Receive them by reference too.
2834
2835 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2836
2837         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2838         code to not restoring global registers.
2839
2840 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2841
2842         * Makefile.in (ggc-common.o): Update.
2843         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2844         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2845         * c-tree.h (c_mark_tree): New.
2846         * ggc-common.c: Include langhooks.h.
2847         (gcc_mark_trees): Use new langhook.
2848         * ggc-callbacks.c: Delete file.
2849         * ggc.h (lang_mark_tree): Remove.
2850         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2851         (LANG_HOOKS_INITIALIZER): Update.
2852         * langhooks.h (struct lang_hooks): New hook.
2853 objc:
2854         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2855
2856 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2857
2858         * doc/cpp.texi: Exclude entire Top node from printed manual.
2859         Move option index after directive index.  Insert page breaks
2860         before GFDL and concept index.  Index environment variables
2861         with command line options.
2862         * doc/cppenv.texi: Use @vtable for environment variable list.
2863         Add paragraph explaining semantics of empty elements in path
2864         variables.  Exclude a cross-reference to Fishkill from the
2865         manpage.  Remove an unnecessary cross-reference of the entry
2866         right above the referer.  Don't use @anchor in text that goes
2867         into manpage.
2868         * doc/cppopts.texi: Cross-reference the environment variables
2869         section, not the specific environment variable, for consistency.
2870
2871 2002-03-25  Richard Henderson  <rth@redhat.com>
2872
2873         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2874         anywhere in the block.  Don't refer to insns that have been
2875         removed from the chain.  Iterate backward through the new insns.
2876         Don't refer to edges that have been removed.
2877
2878 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
2879
2880         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2881         test for overflow of constant.
2882
2883 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
2884
2885         PR target/2623
2886         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2887         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2888         these patterns on arm_archv4.
2889
2890 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
2891
2892         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2893         int".
2894
2895 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
2896
2897         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
2898         float_handled, float_handler, float_signal, set_float_handler,
2899         and do_float_handler.  Set handler for SIGFPE to crash_signal.
2900         * toplev.h: Don't prototype do_float_handler.
2901
2902         * c-lex.c: Fold parse_float into lex_number.  Make warning
2903         about portability of hex float constants more informative, and
2904         don't issue it on top of a syntax error.
2905         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2906         their callers.
2907         * real.h: Define REAL_VALUE_ABS here...
2908         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
2909         simplify_unary_real, simplify_binary_real, and
2910         simplify_binary_is2orm1 into their callers.
2911         * tree.c: Fold build_real_from_int_cst_1 into caller.
2912
2913         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2914
2915         * tsystem.h: Include float.h here...
2916         * libgcc2.c: ... not here.
2917
2918 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
2919
2920         Fixes for: PR bootstrap/3591, target/5676
2921         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2922         defined.  Do not disable exceptions or rtti.
2923         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2924         mcore.h.  Disable exceptions and rtti, since they are not
2925         supported by EPOC.
2926
2927 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2928
2929         * c-decl.c (maybe_build_cleanup): Remove.
2930         * expr.c (expand_expr): Use langhook.
2931         * langhooks-def.h (lhd_return_null_tree,
2932         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2933         (LANGHOOKS_INITIALIZER): Update.
2934         * langhooks.c (lhd_return_null_tree): New.
2935         * langhooks.h (struct lang_hooks): New hook.
2936         * tree-inline.c (initialize_inlined_parameters): Use langhook.
2937         * tree.h (maybe_build_cleanup): Remove.
2938
2939 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2940
2941         * regrename.c (build_def_use): Move recog_memoized
2942         before extract_insn.
2943
2944 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2945
2946         PR target/6043
2947         * expr.c (emit_group_store): Handle storing into CONCAT.
2948
2949 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
2950
2951         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2952         corresponding MATCH_DUP.
2953
2954 2002-03-24  Richard Henderson  <rth@redhat.com>
2955
2956         * unroll.c (unroll_loop): Zero label_map.
2957
2958         * gcse.c: Include except.h.
2959         * Makefile.in (gcse.o): Update.
2960
2961 2002-03-24  Richard Henderson  <rth@redhat.com>
2962
2963         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2964         Do resolve_unique_section before shared data clause.
2965
2966 2002-03-24  Richard Henderson  <rth@redhat.com>
2967
2968         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2969
2970 2002-03-24  Richard Henderson  <rth@redhat.com>
2971
2972         * recog.c (peephole2_optimize): Split blocks when EH insns are
2973         generated in the middle of a block.  Do global life update if
2974         zapped EH edges.
2975
2976 2002-03-24  Richard Henderson  <rth@redhat.com>
2977
2978         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2979
2980 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2981
2982         preprocessor/3951
2983         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2984         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2985         (init_dependency_output): Don't make no_output decision here.
2986
2987 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
2988
2989         * stmt.c (check_for_full_enumeration_handling): Remove tests of
2990         warn_switch.  Update description.
2991         (expand_end_case_type): Call check_for_full_enumeration_handling
2992         when warn_switch.
2993
2994 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2995
2996         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2997         (m68hc11_split_move): Call it to see if the source and destination
2998         operands use the same direction auto inc/dec mode, otherwise make the
2999         source an offsetable memory operand and generate an add.
3000
3001 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3002
3003         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3004         register for operand 2.
3005         ("*subsi3_zero_extendqi"): Likewise.
3006         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3007         bits so that it is compatible with a pop.
3008         ("*andhi3_gen"): Likewise.
3009         ("xorhi3"): Likewise.
3010
3011 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3012
3013         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3014         -pedantic here...
3015         (cpp_post_options): ... not here.
3016
3017 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3018             Aldy Hernandez  <aldyh@redhat.com>
3019
3020         Removal of separate preprocessor cpp0.
3021
3022         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3023         cpp0, install-common): Update.
3024         * c-common.c (flag_preprocess_only): New.
3025         (c_common_init): Preprocess for -E.
3026         * c-common.h (flag_preprocess_only): New.
3027         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3028         * c-objc-common.c (c_init_decl_processing): Exit quickly
3029         for NULL return from c_common_init.
3030         * cpplib.h (cpp_preprocess_file): New.
3031         * cppmain.c (main, general_init, pfile, progname): Remove.
3032         (do_preprocessing): Rename cpp_preprocess_file, don't call
3033         cpp_finish.  Don't close stdout here.
3034         (setup_callbacks): Update prototype.
3035         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3036         Update.
3037         * tradcpp.c (main): Ignore -quiet.
3038 objc:
3039         * lang-specs.h (default_compilers): Preprocess with cc1obj.
3040
3041 2002-03-24  Richard Henderson  <rth@redhat.com>
3042
3043         PR optimization/5742
3044         * machmode.def: Add inner mode field to complex modes.
3045         * config/mips/mips.c (mips_function_value): Always define.  Add
3046         new argument to handle libcalls.
3047         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3048         (FUNCTION_VALUE): Likewise.
3049         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3050         * config/mips/mips-protos.h: Update.
3051
3052 2002-03-23  Richard Henderson  <rth@redhat.com>
3053
3054         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3055         * config/sparc/sparc-protos.h: Update.
3056         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3057
3058 2002-03-23  Richard Henderson  <rth@redhat.com>
3059
3060         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3061         _start or _init begins the text segment.
3062
3063 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
3064
3065         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
3066         not HOST_WIDEST_INT.
3067         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3068
3069 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
3070
3071         PR java/5489
3072         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3073         operand argument to output_return_instruction.
3074         * arm.c (arm_print_operand, case 'd'): If the operand is
3075         const_true_rtx then just return.
3076         (arm_print_operand, case 'D'): If the operand is const_true_rtx
3077         then abort.
3078
3079 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
3080
3081         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3082         (Warning Options): Document -Wswitch-default.
3083         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
3084         -Wswitch.
3085         (warn_switch_default): Define variable.
3086         (warn_switch): Update comment.
3087         * flags.h (warn_switch_default): Declare variable.
3088         (warn_switch): Update comment.
3089         * stmt.c (expand_end_case): Check for and, when
3090         warn_switch_no_default, warn of a missing default case.
3091
3092 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
3093
3094         * real.h (N): Special case 128 bit doubles.
3095
3096         * combine.c (simplify_comparison): When widening modes, ignore
3097         sign extension on CONST_INTs.
3098
3099 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
3100
3101         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3102         passed to adjust_address.  Fix comment formatting.
3103
3104
3105 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
3106
3107         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3108         Always make REAL_VALUE_TYPE a struct containing an array of
3109         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
3110         big it is.  Don't declare or use union real_extract.
3111
3112         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3113         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3114         (print_operand), config/arm/arm.c (output_move_double),
3115         config/arm/arm.md (consttable_4, consttable_8),
3116         config/romp/romp.c (output_fpops), config/s390/s390.h
3117         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3118         (xtensa_output_literal): Don't use union real_extract.
3119
3120         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3121         (sfmode_constant_to_ulong), config/ns32k/merlin.h
3122         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3123         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3124         (PRINT_OPERAND): Don't use local version of union
3125         real_extract.
3126
3127         * config/convex/convex.c (check_float_value), config/vax/vax.c
3128         (vax_float_literal), config/m88k/m88k.md (divdf3),
3129         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3130         config/pdp11/pdp11.c (output_move_quad): Don't do host
3131         arithmetic on target floating point quantities.
3132
3133         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3134         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3135
3136         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3137         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3138
3139         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3140         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3141         INFINITY.
3142         * print-rtl.c (print_rtx): Disable code which needs
3143         floating-point emulator.
3144         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3145         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3146         depending on HOST_FLOAT_FORMAT to be defined properly.
3147
3148         * config/1750a/1750a.c (get_double, float_label): Delete.
3149         (print_operand): Delete huge commented-out chunk.  Use
3150         REAL_VALUE_TO_DECIMAL.
3151         * config/1750a/1750a-protos.h: Delete prototypes of deleted
3152         functions.
3153         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3154         IEEE_FLOAT_FORMAT.
3155         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3156         Use REAL_VALUE_TO_DECIMAL as ELF version does.
3157         * config/m88k/m88k.c (real_power_of_2_operand,
3158         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3159         real_extract out of the union; run the input through
3160         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3161         from that into the union.
3162         * config/pdp11/pdp11.c (output_move_double): Rearrange
3163         parentheses to make automatic indenter happy.
3164
3165         * doc/tm.texi (Cross-compilation): Rename node to "Floating
3166         Point" and rewrite to describe current situation.  Also adjust
3167         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3168         match code.
3169         * doc/rtl.texi: Adjust cross reference.
3170
3171 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
3172
3173         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3174         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3175         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3176         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3177         prevent use of sp as a reload register.
3178         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3179         non_acc_reg_operand.
3180         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3181         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3182         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3183         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3184
3185 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3186
3187         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3188         * cpplex.c (unterminated): Delete.
3189         (parse_string): No string literal may extend over multiple
3190         lines.  Suppress the error when preprocessing assembly.
3191         * cppmain.c (scan_translation_unit): Strings are single-line.
3192
3193         * doc/cpp.texi: Update to match.
3194
3195 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
3196
3197         PR optimization/5854
3198         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3199         Shut up warnings.
3200         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3201         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3202         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3203         const0 if scratch register was not allocated.
3204         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3205         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3206         with GEN_INT (...).
3207         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3208         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3209         with GEN_INT (...) everywhere.  Remove constraints in define_split
3210         patterns.
3211         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3212         require scratch register for setting 0 into regs/non-pushable memory.
3213
3214 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
3215
3216         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3217         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3218
3219 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
3220
3221         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
3222         * cppinit.c (cpp_create_reader):  On by default.
3223         (cpp_handle_option):  Handle -W[no-]endif-labels.
3224         (cpp_post_options):  Also enable if -pedantic.
3225         * cpplib.c (do_else):  Use it.
3226         (do_endif):  Likewise.
3227         * doc/cppopts.texi:  Document new option.
3228         * doc/invoke.texi:  Document new option.
3229
3230 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
3231
3232         * config/i386/i386.c, config/i386/i386.md: Change all occurences
3233         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3234
3235 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
3236
3237         * flow.c (calculate_global_regs_live): Clear aux fields of
3238         ENTRY and EXIT.
3239
3240 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
3241
3242         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3243         REG or MEM subregs, pass rtx * instead of rtx to it.
3244         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3245         rtx * instead of rtx to alter_subreg.
3246         * config/m32r/m32r.c (gen_split_move_double): Likewise.
3247         * config/pj/pj.c (pj_output_rval): Likewise.
3248
3249 2002-03-22  Richard Henderson  <rth@redhat.com>
3250
3251         PR target/3177
3252         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3253         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3254         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3255         (ia64_expand_prologue): Look at int_regs, not words, for number
3256         of incomming int regs.
3257
3258 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
3259
3260         * expr.c (expand_expr): A RESULT_DECL is part of a call.
3261
3262 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
3263
3264         * toplev.c (flag_loop_optimize, flag_crossjumping):
3265         New static variables.
3266         (rest_of_compilation): Conditionalize crossjumping and
3267         loop optimizer.
3268         (parse_options_and_default_flags): Default loop_optimize and
3269         crossjumping.
3270         (lang_independent_options): Add -fcrossjumping and -floop-optimize
3271         * invoke.texi (crossjumping, loop-optimize): Document.
3272
3273 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3274
3275         * real.c (eiisneg): Move outside #ifdef NANS.
3276
3277 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3278
3279         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3280         frequencies match; avoid match on different loop depths.
3281         (try_crossjump_to_bb): Kill tests that no longer brings time
3282         savings.
3283         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3284         updating code.
3285         (split_edge): Likewise.
3286
3287         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3288         variable.
3289
3290         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3291         * cfgrtl.c: Include insn-config.h
3292         (split_block) Dirtify block in presence of conditional execution
3293
3294 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3295
3296         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3297         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3298         (function_arg): Constify CUMULATIVE_ARGS.
3299         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3300         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3301         (UNITS_PER_DOUBLE): New macro.
3302         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
3303         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
3304         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
3305         fp_regs and stack_words.
3306         (EABI_FLOAT_VARARGS_P): New macro.
3307         * config/mips/mips.c (struct mips_arg_info): New.
3308         (mips_arg_info): New function.
3309         (function_arg_advance): Use it.  Add adjustment instructions here
3310         rather than in function_arg.
3311         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
3312         for VOIDmode at the beginning of the function.
3313         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
3314         (function_arg_pass_by_reference): Likewise.
3315         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3316         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3317         (mips_va_start): Likewise.  Use the new stack_words field of
3318         CUMULATIVE_ARGS to set up overflow area.  Reformat.
3319         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
3320         doubles and other types, aligning the overflow pointer for non-doubles
3321         too.  Remove some code duplication.  Replace hard-coded constants.
3322
3323 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3324
3325         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3326         (CLASS_UNITS): Undefine.
3327         (CLASS_MAX_NREGS): Use FP_INC.
3328         * config/mips/mips.c (compute_frame_size): Likewise.
3329         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3330
3331 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3332
3333         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3334         prototype, and handle lexing numbers and identifiers.
3335         (parse_identifier): Update to new form of parse_slow.
3336         (parse_number): Fast path only, use parse_slow otherwise.
3337         (_cpp_lex_direct): Update calls to parse_number.
3338
3339 2002-03-21  DJ Delorie  <dj@redhat.com>
3340
3341         * bb-reorder.c (make_reorder_chain_1): Protect against
3342         when redundant edges are omitted.
3343         * predict.c (dump_prediction): Likewise.
3344
3345 2002-03-21  Richard Henderson  <rth@redhat.com>
3346
3347         PR target/5996
3348         * fixinc/inclhack.def (solaris_stdio_tag): New.
3349         * fixinc/fixincl.x: Regenerate.
3350
3351 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3352
3353         PR c/5597
3354         * c-typeck.c (process_init_element): Flag non-static
3355         initialization of a flexible array member as illegal.
3356
3357 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
3358
3359         * config/rs6000/t-linux64: New.
3360         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3361         t-ppccomm.  Use t-rs6000 and t-linux64.
3362         (powerpc64-*-gnu* <tmake_file>): Likewise.
3363         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3364         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3365         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3366
3367 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
3368
3369         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3370         flag_really_no_inline instead of optimize == 0.
3371
3372         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3373
3374         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3375
3376         * flags.h (flag_really_no_inline): New.
3377
3378         * c-common.c (c_common_post_options): Initialize
3379         flag_really_no_inline.
3380
3381         * toplev.c (flag_really_no_inline): New.
3382
3383 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3384
3385         * config/avr/avr.md (length): Fix length computation for
3386         conditional branches.
3387
3388 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3389
3390         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3391         sdbout.o, profile.o): Update.
3392         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3393         langhook.
3394         * c-common.h (gettags): Move here from tree.h.
3395         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3396         insert_block, getdecls, kept_level_p, global_bindings_p): New.
3397         * dbxout.c (dbxout_init): Use getdecls langhook.
3398         * expr.c (expand_expr): Use insert_block langhook.
3399         * fold-const.c: Include langhooks.h.
3400         (fold_range_test, fold_binary_op_with_conditional_arg,
3401         fold): Use global_bindings_p langhook.
3402         * integrate.c (expand_inline_function): Use insert_block langhook.
3403         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3404         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3405         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3406         LANG_HOOKS_GETDECLS): New.
3407         (LANG_HOOKS_INITIALIZER): Update.
3408         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3409         langhook.
3410         * langhooks.h (struct lang_hooks_for_decls): New.
3411         (struct lang_hooks): Update.
3412         * profile.c: Include langhooks.h.
3413         (output_func_start_profiler): Use new langhooks.
3414         * sdbout.c: Include langhooks.h.
3415         (sdbout_init, sdbout_finish): Use getdecls langhook.
3416         * stmt.c: Include langhooks.h.
3417         (expand_fixup, fixup_gotos): Use new langhooks.
3418         * stor-layout.c: Include langhooks.h.
3419         (variable_size): Use global_bindings_p langhook.
3420         * toplev.c (compile_file): Use getdecls langhook.
3421         * tree-inline.c (remap_block): Use insert_block langhook.
3422         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3423         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3424
3425 2002-03-21  Richard Henderson  <rth@redhat.com>
3426
3427         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3428         constants in .data when -fpic.
3429
3430 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3431
3432         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3433         where appropriate.
3434
3435 2002-03-21  Tom Tromey  <tromey@redhat.com>
3436
3437         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
3438
3439 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3440
3441         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3442
3443         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3444
3445 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3446             Richard Henderson  <rth@redhat.com>
3447
3448         PR c/5354
3449         * c-common.c (c_expand_expr): Preserve result of a statement
3450         expression if needed.
3451
3452 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3453
3454         PR bootstrap/4195
3455         * genrecog.c (maybe_both_true_mode): Remove.
3456         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3457         * machmode.def (Pmode): Likewise.
3458
3459 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
3460
3461         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3462         (nonlocal_mentioned_p_1): New function.
3463         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3464         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3465         (mark_constant_function): Recognize pure functions.
3466         * rtl.h (global_reg_mentioned_p): New prototype.
3467         * rtlanal.c (global_reg_mentioned_p,
3468         global_reg_mentioned_p_1): New function.
3469
3470 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3471
3472         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3473         UNIX assert.h.
3474         * fixinc/fixincl.x: Regenerate.
3475
3476 2002-03-20  Jason Merrill  <jason@redhat.com>
3477
3478         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3479
3480 2002-03-20  Michael Meissner  <meissner@redhat.com>
3481
3482         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3483         -fstrict-aliasing.
3484
3485 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3486
3487         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3488         ".literal_position" directive before the constant pool.
3489
3490 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3491
3492         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3493         Add Craig Rodrigues.
3494         Add Brad Lucier to testers.
3495
3496 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3497
3498         PR target/4792
3499         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3500         to if_then_else.
3501         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3502         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3503         instead of insn_extract.
3504
3505 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3506
3507         PR bootstrap/4192
3508         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3509
3510         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3511         stmt if some case has been output.
3512
3513 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3514
3515         PR c/5972
3516         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3517         movsfcc_1, movdfcc_1): Add %O2.
3518         * config/i386/i386.c (print_operand): Handle %ON.
3519         Print . before float condition codes in Sun as cmov syntax.
3520         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3521         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3522         no longer true.
3523
3524 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3525
3526         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3527         return instruction if PC was popped.
3528
3529 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3530
3531         * config/xtensa/xtensa.md: Remove unused type attributes.
3532         (adddi_carry, subddi_carry): Change type attribute to "multi".
3533
3534 2002-03-19  Dale Johannesen  <dalej@apple.com>
3535
3536         PR optimization/5999, middle-end/5731
3537         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3538         multiplications by reciprocals.
3539
3540 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3541
3542         * Makefile.in: Update.
3543         * c-common.c: Include langhooks.h.
3544         (inline_forbidden_p): Use new hook.
3545         * diagnostic.c: Include langhooks.h.
3546         (format_with_decl, announce_function,
3547         default_print_error_function): Use new hook.
3548         * dwarf2out.c (dwarf2_name): Use new hook.
3549         * function.c: Include langhooks.h.
3550         (init_function_start): Use new hook.
3551         * langhooks-def.h (lhd_decl_printable_name): New.
3552         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3553         (LANGHOOKS_INITIALIZER): Update.
3554         * langhooks.c (lhd_decl_printable_name): New.
3555         * langhooks.h (struct lang_hooks): New hook.
3556         * toplev.c (decl_name, decl_printable_name): Remove.
3557         (open_dump_file): Use new hook.
3558         (process_options): Remove old hook.
3559         * tree.h (decl_printable_name): Remove.
3560 objc:
3561         * objc-act.c (objc_init): Remove old hook.
3562         (objc_printable_name): Export.
3563         * objc-act.h (objc_printable_name): New.
3564         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3565
3566 2002-03-19  Jim Blandy  <jimb@redhat.com>
3567
3568         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3569         the start_source_file debug hook, not the current line number.
3570
3571 2002-03-19  Richard Henderson  <rth@redhat.com>
3572
3573         * flow.c (EH_USES): Provide default.
3574         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3575         * doc/tm.texi (EH_USES): New.
3576
3577         * config/ia64/ia64.c (ia64_eh_uses): New.
3578         * config/ia64/ia64-protos.h: Update.
3579         * config/ia64/ia64.h (EH_USES): New.
3580
3581 2002-03-19  Richard Henderson  <rth@redhat.com>
3582
3583         * varasm.c (output_constant_def): Fix stupid typo.
3584
3585 2002-03-19  Richard Henderson  <rth@redhat.com>
3586
3587         PR 5879
3588         * except.c (current_function_has_exception_handlers): New.
3589         * except.h: Declare it.
3590         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3591         Combine tests that disable all sibcalls for the function.
3592
3593 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3594
3595         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3596         for INTEGER_CST.
3597
3598 2002-03-19  Richard Henderson  <rth@redhat.com>
3599
3600         PR 5977, 5991
3601         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3602         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3603
3604 2002-03-19  Jim Blandy  <jimb@redhat.com>
3605
3606         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3607         name, even if the replacement list contains no tokens, as required
3608         by Dwarf.
3609
3610 2002-03-19  Jason Merrill  <jason@redhat.com>
3611
3612         * varasm.c (globalize_decl): Get the name from the RTL, not
3613         DECL_ASSEMBLER_NAME.
3614
3615         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3616
3617 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3618
3619         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3620         subdi_carry): Define.
3621
3622 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3623
3624         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3625         about -fpic/-fPIC if extra_warnings set.
3626
3627 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3628
3629         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3630         TREE_STRING_POINTER.
3631         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3632
3633 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3634
3635         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3636         in favor of SP if FRAME_POINTER_REQUIRED is false.
3637
3638 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3639
3640         * emit-rtl.c (gen_int_mode): New function.
3641         * rtl.h: Prototype for it.
3642         * combine.c (make_extraction, simplify_comparison), expmed.c
3643         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3644         (convert_modes, store_field), optabs.c (expand_fix),
3645         simplify-rtx.c (neg_const_int, simplify_unary_real),
3646
3647         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3648         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3649
3650 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3651
3652         PR c/5656
3653         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3654         convert_parm_for_inlining.
3655         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3656         Define.
3657         * langhooks-def.h: Likewise.
3658         * objc/objc-lang.c: Likewise.
3659         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3660         function.
3661         * tree-inline.c (initialize_inlined_parameters):
3662         Call convert_parm_for_inlining lang hook if needed.
3663         * c-typeck.c (c_convert_parm_for_inlining): New function.
3664         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3665
3666 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3667
3668         * calls.c (precompute_arguments): Do not assume that temporaries
3669         can be destroyed after expanding the argument.
3670         (expand_call): Likewise.
3671
3672 2002-03-15  Eric Christopher  <echristo@redhat.com>
3673
3674         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3675         Fix register preference on last change.
3676         * config/mips/mips.c (mips_return_in_memory): New function.
3677         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3678         * config/mips/mips-protos.h: Declare.
3679         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3680         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3681
3682 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3683
3684         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3685         a register too.
3686         (anddi3, iorsi3): Likewise.
3687
3688         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3689         use %gprel for symbols that are going to be placed in linkonce
3690         sections.
3691
3692         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3693         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3694         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3695         not needed.  Disregard leaf_function_p().
3696         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3697         mips16 frame pointer.
3698         * config/mips/mips.md (store ra): Only to small SP offsets.
3699         2001-08-22  Graham Stott  <grahams@redhat.com>
3700         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3701         return a REG rtx for the return address register.
3702
3703 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3704
3705         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3706         constant-pool addresses as "mode-dependent".
3707         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3708
3709 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3710
3711         PR target/5740
3712         * expr.c (emit_group_load): Use extract_bit_field if
3713         needed for CONCAT arguments.
3714
3715 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3716
3717         PR target/4863
3718         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3719         offset to the base of the table.
3720         (thumb_tablejump): Matcher for Thumb tablejump insn.
3721         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3722         as the difference of two labels.
3723         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3724         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3725         tables in the code.
3726         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3727         * arm.c (get_jump_table_size): If the table is not in the text
3728         section, return zero.
3729
3730 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3731
3732         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3733         of gen_rtx_SUBREG.
3734         (arm_reload_out_hi): Use gen_lowpart instead of
3735         gen_rtx_SUBREG to access QImode components.
3736         * config/arm/arm.md: Disable zero_extend split for QImode
3737         subregs in BIG_ENDIAN mode.
3738         (storehi_bigend): Match use of least significant byte.
3739         (storeinthi): Remove extraneous SUBREG.
3740         Add missing construction of operands[2].
3741         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3742         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3743         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3744
3745 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3746
3747         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3748         any_operand.
3749
3750 2002-03-17  Richard Henderson  <rth@redhat.com>
3751
3752         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3753         explicitly.
3754
3755 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3756
3757         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3758         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3759
3760 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3761
3762         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3763
3764         * predict.c (estimate_bb_frequencies): Delete unused variables.
3765
3766 2002-03-17  Richard Henderson  <rth@redhat.com>
3767
3768         * config/ia64/ia64.c (ia64_attribute_table): Move before
3769         targetm definition.  Make static.
3770
3771 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3772
3773         * c-common.h (yyparse, c_common_parse_file): New.
3774         * c-lang.c: Include c-common.h.
3775         (LANG_HOOKS_PARSE_FILE): Redefine.
3776         * c-lex.c: Include c-common.h.
3777         (yyparse): Rename c_common_parse_file.  Call yyparse.
3778         * c-parse.in (yyparse): Remove macro.
3779         * c-tree.h (yyparse_1): Remove.
3780         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3781         (LANG_HOOKS_INITIALIZER): Update.
3782         * langhooks.h (struct lang_hoooks): New hook parse_file.
3783         * toplev.c (compile_file): Use parse_file hook.
3784         * tree.h (yyparse): Remove.
3785         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3786
3787 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3788
3789         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3790         float_truncate, not fix.
3791         ("*truncdfsf2_real"): Ditto.
3792         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3793
3794         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3795
3796 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3797
3798         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3799         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3800         where appropriate.  Make the second reference to
3801         leaf_function_p a function call, as intended.  Reindented.
3802
3803         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3804         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3805
3806         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3807         add register to non-constant into sp.
3808
3809         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3810         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3811         (mips16_gp_pseudo_rtx): Lose.
3812         (INIT_EXPANDERS): Deleted.
3813         * config/mips/mips.c (mips_init_machine_status): New.
3814         (mips_free_machine_status): New.
3815         (mips_mark_machine_status): New.
3816         (override_options): Set them.
3817         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3818         (struct machine_function): ... new.  Replaced all references.
3819         (mips_add_gc_roots): Don't mark them.
3820         (embedded_pic_fnaddr_reg): New, extracted from...
3821         (embedded_pic_offset): ... here.
3822         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3823         (movsi): Likewise.
3824
3825 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3826
3827         * cppinit.c: Revert -MD removal.
3828
3829 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3830
3831         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3832         soft registers by default for 68HC12.
3833         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3834         when compiling with -fomit-frame-pointer.
3835         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3836         (expand_epilogue): Likewise.
3837         (m68hc11_gen_rotate): Use exg when rotating by 8.
3838
3839 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3840
3841         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3842         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3843         (splits): Remove unused add splits.
3844         ("*addhi3_68hc12"): Tune constraints.
3845         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3846         constant fits in 8-bits and D is dead use abx/aby instructions.
3847         ("*addhi3"): Remove extern declaration of ix_reg.
3848         ("*subsi3"): Optimize and provide new split.
3849         ("subhi3"): Cleanup.
3850         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3851         (arith splits): For 68hc12 save the address register on the stack
3852         and do the arithmetic operation with a pop.
3853
3854 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3855
3856         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3857         allocating QImode in address registers.
3858         ("*movqi_m68hc11"): Likewise.
3859
3860 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
3861
3862         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3863
3864 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3865
3866         * cppinit.c (print_help): Display -MD and -MMD.
3867         Don't display usage string.  Update assertion syntax and
3868         typo.
3869         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3870         (cpp_handle_option): Update.
3871
3872 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
3873
3874         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3875         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3876         and define it so that regardless of target CPU size,
3877         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3878         of "int" rather than "long."
3879
3880 2002-03-15  Richard Henderson  <rth@redhat.com>
3881
3882         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3883         size as a tree.
3884
3885 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3886
3887         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3888         ("tstqi" split): Avoid using memory for tstqi on address register.
3889         (splits): Remove constraints.
3890         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3891         ("cmpdf", "cmpsf"): Remove since not used.
3892         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3893         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3894
3895 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3896
3897         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3898         ("neghi2"): Tighten constraints.
3899         ("one_cmplsi2"): Optimize and simplify split.
3900         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3901
3902 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3903
3904         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3905         and split of AND operation to clear the upper bits.
3906         ("*logicalsi3_zextqi"): Likewise.
3907         ("*logicallhi3_zexthi_ashift8"): Likewise.
3908         ("*logicalsi3_silshr16"): Likewise.
3909         ("logicalsi3_silshl16"): Likewise.
3910         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3911
3912 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3913
3914         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3915         (m68hc11_indirect_p): New function.
3916         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3917         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3918         TARGET_M6812.
3919         (asm_print_register): Likewise.
3920         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3921         (m68hc11_indirect_p): Declare.
3922         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3923         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3924         (TARGET_SWITCHES): New option -mrelax.
3925         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3926         destination.
3927         ("iorsi3", "xorsi3"): Likewise.
3928         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3929         ("*andhi3_mem"): New to handle destination in memory with bclr
3930         and a scratch register.
3931         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3932         ("*andhi3_const"): New when operand2 is constant.
3933         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3934         ("*andhi3_gen"): Cleanup of the old "andhi3".
3935         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3936         ("xorqi3"): Update constraints.
3937
3938 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3939
3940         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3941         for reg_equiv_memory_loc when the operand is a register that does
3942         not get a hard register (stack location).
3943         (tst_operand): After reload, accept all memory operand.
3944         (symbolic_memory_operand): Fix detection of symbolic references.
3945         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3946         accept symbols and any constant.
3947
3948 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3949
3950         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3951         note on the insn that sets the soft frame register.
3952         (must_parenthesize): ix and iy are also reserved names.
3953         (print_operand_address): One more place where parenthesis are required
3954         to avoid confusion with register names.
3955         (m68hc11_gen_movhi): Allow push of stack pointer.
3956         (m68hc11_check_z_replacement): Fix handling of parallel with a
3957         clobber.
3958         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3959         the replacement register is.
3960         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3961         and D8_REGS classes.
3962         (MODES_TIEABLE_P): All modes are tieable except QImode.
3963
3964 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3965
3966         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3967         (___subdi3): Likewise.
3968         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3969         (__map_data_section): Optimize 68hc11 case.
3970
3971 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3972
3973         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3974         than a shift to avoid adding a register with itself.
3975         (m68hc11_memory_move_cost): Take into account NO_REGS.
3976         (m68hc11_register_move_cost): Update and use memory move cost
3977         for soft registers.
3978         (m68hc11_address_cost): Make cost of valid offset not 0 so that
3979         it gives more opportunities to cse to optimize.
3980         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3981         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3982
3983 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3984
3985         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3986         * c-common.def (CLEANUP_STMT): New tree node.
3987         * c-common.h (CLEANUP_DECL): New macro.
3988         (CLEANUP_EXPR): Likewise.
3989         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3990         * expr.c (expand_expr): Tidy.
3991         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3992         * tree-inline.c (initialize_inlined_parameters): Clean up
3993         new local variables.
3994
3995 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
3996
3997         PR bootstrap/4128
3998         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3999         before movrXX only, use reg_overlap_mentioned_p.
4000         Only special case NE if just one insn can be generated.
4001
4002 2002-03-15  Jason Merrill  <jason@redhat.com>
4003
4004         * varasm.c (assemble_variable): Call resolve_unique_section before
4005         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
4006         of error_mark_node.
4007
4008 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4009
4010         PR target/5170
4011         * arm.md (split pattern for thumb shiftable immediates): Add comment
4012         explaining non-obvious test.
4013
4014 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4015
4016         PR target/5712
4017         * arm.md (movaddr, movaddr_insn): Delete.
4018
4019 2002-03-15  Jason Merrill  <jason@redhat.com>
4020
4021         * toplev.c (wrapup_global_declarations): Clarify variable handling.
4022         -fkeep-static-consts doesn't apply to comdats.
4023
4024 2002-03-14  Richard Henderson  <rth@redhat.com>
4025
4026         * c-decl.c: Include c-pragma.h.
4027         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4028         (finish_function): Tidy.
4029         * c-pragma.c: Include c-common.h.
4030         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4031         (handle_pragma_weak): Use them.
4032         (init_pragma): Register pending_weaks.
4033         * c-pragma.h (maybe_apply_pragma_weak): Declare.
4034         * print-tree.c (print_node): Print DECL_WEAK.
4035         * varasm.c (mark_weak_decls): Remove.
4036         (remove_from_pending_weak_list): Remove.
4037         (add_weak): Remove.
4038         (asm_emit_uninitialised): Call globalize_decl for weak commons.
4039         (weak_decls): Make a tree_list.
4040         (declare_weak): Cons weak_decls directly.
4041         (globalize_decl): Remove weak_decls elements directly.
4042         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
4043         symbols.  Don't pretend to handle aliases.
4044         (init_varasm_once): Update weak_decls registry.
4045         * Makefile.in: Update dependencies.
4046
4047 2002-03-14  Richard Henderson  <rth@redhat.com>
4048
4049         PR target/5312
4050         * config/ia64/ia64.c: Include tm_p.h last.
4051         (gen_nop_type): Remove duplicate definition.
4052         (cycle_end_fill_slots): Set sched_data for second L slot.
4053         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4054         (nop_cycles_until): Fix typos.
4055
4056 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4057
4058         PR optimization/5891
4059         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4060
4061 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4062
4063         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4064           descriptors correctly.
4065
4066 2002-03-14  Michael Meissner  <meissner@redhat.com>
4067
4068         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4069         100, allowing MAX_UNROLLED_INSNS to be overridden.
4070
4071         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4072         --param.
4073
4074         * unroll.c (params.h): Include.
4075         (MAX_UNROLLED_INSNS): Delete, now in params.h.
4076
4077         * doc/invoke.texi (--param max-unroll-insns): Document.
4078
4079         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4080
4081 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
4082
4083         * arm.md: Fix warnings about constraints in peepholes and splits.
4084
4085 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
4086
4087         * cpphash.h (struct lexer_state): Remove line_extension member.
4088         * cpplib.c (dequote_string, do_linemarker): New functions.
4089         (linemarker_dir): New data object.
4090         (DIRECTIVE_TABLE): No longer need to interpret #line in
4091         preprocessed source.  Delete obsolete comment about return
4092         values of handlers.
4093         (end_directive, directive_diagnostics, _cpp_handle_directive):
4094         Don't muck with line_extension.
4095         (directive_diagnostics): No need to issue warnings for
4096         linemarkers here.
4097         (_cpp_handle_directive): Issue warnings for linemarkers here,
4098         when appropriate.  Dispatch linemarkers to do_linemarker, not
4099         do_line.
4100         (do_line): Code to handle linemarkers split out to do_linemarker.
4101         Convert escape sequences in filename argument, both places.
4102
4103         * cppmacro.c (quote_string): Rename cpp_quote_string and
4104         export.  All callers changed.
4105         * cpplib.h (cpp_quote_string): Prototype.
4106         * cppmain.c (print_line): Call cpp_quote_string on to_file
4107         before printing it.
4108
4109         * doc/cpp.texi: Document that escapes are now interpreted in
4110         #line and in linemarkers, and that non-printing characters are
4111         converted to octal escapes when linemarkers are generated.
4112
4113 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
4114
4115         * emit-rtl.c (try_split): Use delete_insns.
4116         * recog.c (split_all_insns): Fix terminating condition.
4117
4118 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
4119             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4120
4121         PR target/5828
4122         * arm.c (arm_output_epilogue): Fix floating-point register save
4123         adjustment when using a frame pointer.
4124
4125 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
4126
4127         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4128         * config/mips/mips.c (compute_frame_size): Retrofit them here.
4129         (save_restore_insns, mips_expand_epilogue): And here.
4130         (build_mips16_call_stub): And here.
4131         (mips_function_value): Use the new macros to decide whether a single
4132         or complex float can be returned in floating-point registers.  Return
4133         a parallel rtx in the complex case.
4134
4135 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
4136
4137         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4138         call after liveness analysis.
4139
4140         * recog.c (split_insn): Use delete_insn_and_edges.
4141
4142         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4143         instructions to have branch prediction notes.
4144         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4145
4146 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
4147
4148         * configure.in: Don't pass -Wno-long-long to a ADA compiler
4149         that doesn't support it.
4150         * configure: Regenerate.
4151
4152 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4153
4154         PR target/5626
4155         * config/sparc/sparc.md (normal_branch, inverted_branch,
4156         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4157         inverted_fp_branch): Adjust calls to output_cbranch.
4158         Set length attribute.
4159         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4160         output_v9branch.  Set length attribute.
4161         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4162         predicates.
4163         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4164         (output_cbranch): Likewise.  Handle far branches.
4165         (output_v9branch): Handle far branches.
4166         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4167         Adjust prototypes.
4168         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4169         noov_compare64_op predicates.
4170
4171 2002-03-13  Jason Merrill  <jason@redhat.com>
4172
4173         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4174         into the function and constify it.
4175         * gthr-dce.h, gthr-solaris.h: Likewise.
4176
4177 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
4178
4179         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4180         * config/rs6000/rs6000.c (rs6000_va_arg): Use
4181         std_expand_builtin_va_arg if not ABI_V4.
4182
4183 2002-03-13  Jason Merrill  <jason@redhat.com>
4184
4185         * varasm.c (globalize_decl): New fn.
4186         (assemble_start_function): Use it.
4187         (asm_emit_uninitialized): Use it.
4188         (assemble_alias): Use it.
4189         (assemble_variable): Use it.
4190
4191 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
4192
4193         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4194         2002-03-12 internal visibility change.
4195         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4196         visibility into SYMBOL_REF_FLAG.
4197
4198 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
4199
4200         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4201         VOIDmode operand.  Add compile-time optimization for constant results.
4202
4203 2002-03-12  Jason Merrill  <jason@redhat.com>
4204
4205         * c-typeck.c (convert_for_assignment): Don't allow conversions
4206         between pointers and references.  Only allow lvalues to convert to
4207         reference.
4208
4209 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
4210
4211         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4212         before prologue, to avoid scheduling problems.
4213
4214 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4215
4216         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4217         (ELIMINABLE_REGS): Add sfp->sp.
4218         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4219
4220 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4221
4222         PR optimization/5892
4223         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4224
4225 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4226
4227         * loop.c (basic_induction_var): Don't call convert_modes if mode
4228         classes are different.
4229
4230 2002-03-12  Richard Henderson  <rth@redhat.com>
4231
4232         PR optimization/5901
4233         * function.c (reposition_prologue_and_epilogue_notes): Position
4234         the markers after/before the last/first insn not deleted.
4235
4236 2002-03-12  Richard Henderson  <rth@redhat.com>
4237
4238         PR optimization/5878
4239         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4240         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4241         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4242
4243         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4244         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4245         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4246
4247         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4248         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4249         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4250         also.  Don't set it if not flag_pic.
4251         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4252         to be INVALID_REGNUM when not used.
4253
4254 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
4255
4256         * expmed.c (store_bit_field): Reset alias set for memory.
4257         (extract_bit_field): Same.
4258
4259 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4260
4261         * c-common.c (c_tree_code_type, c_tree_code_length,
4262         c_tree_code_name, add_c_tree_codes): Delete.
4263         * c-common.h (add_c_tree_codes): Delete.
4264         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4265         Define.
4266         * c-objc-common.c (c_objc_common_init): Don't call
4267         add_c_tree_codes, instead set lang_unsafe_for_reeval.
4268         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4269         objc_tree_code_name, add_objc_tree_codes): Delete.
4270         (objc_init): Don't call add_objc_tree_codes.
4271         * objc/objc-lang.c (tree_code_type, tree_code_length,
4272         tree_code_name): Define.
4273         * toplev.c (lang_independent_init): Don't set
4274         tree_code_length[IDENTIFIER_NODE].
4275         * tree.c (tree_code_type, tree_code_length, tree_code_name):
4276         Delete definitions, moved to language front-ends.
4277         * tree.def (IDENTIFIER_NODE): Hardwire the length.
4278         * tree.h (tree_code_type, tree_code_length, tree_code_name):
4279         Const-ify.
4280         (tree_code_length): Change type to unsigned char.
4281
4282 2002-03-12  Richard Henderson  <rth@redhat.com>
4283
4284         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4285         internal visibility change.
4286
4287 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4288
4289         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4290         validize_mem() instead of change_address to avoid clobbering
4291         memory attributes.
4292
4293 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4294
4295         * c-lex.h (position_after_whitespace): Remove.
4296
4297 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
4298
4299         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4300         (lex_string): Use unsigned char pointers.
4301
4302 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
4303
4304         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4305         is not a valid memory_operand.
4306
4307 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4308
4309         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4310         * config/xtensa/lib1funcs.asm: Fix copyright to include
4311         special case for libgcc files.
4312         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4313         (__divsi3): Likewise.
4314         (__umodsi3): Likewise.
4315         (__modsi3): Likewise.
4316         * config/xtensa/lib2funcs.S: Fix copyright to include
4317         special case for libgcc files.
4318
4319 2002-03-12  Tom Rix  <trix@redhat.com>
4320
4321         * collect2.c (resolve_lib_name): Move outside of
4322         OBJECT_FORMAT_COFF ifdef.
4323         (ignore_library): Same.
4324
4325 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4326
4327         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4328
4329 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4330
4331         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4332         to function_section before writing out the constant pool.
4333
4334 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
4335
4336         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4337         zero_constant.
4338         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4339
4340 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
4341
4342         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4343         (adddi3): Likewise.
4344         (movdf): Likewise.
4345         (movdi): Likewise.
4346         (cmpsi splitter): Likewise.
4347         (modsi3): Fail if <= 0.
4348         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4349         redundant test when HOST_BITS_PER_WIDE_INT != 32.
4350         (reg_or_sub_cint64_operand): Likewise.
4351         (num_insns_constant_wide): Optimize sign extension.
4352         (rs6000_legitimize_address): Likewise.
4353
4354 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
4355
4356         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4357         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4358
4359 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
4360
4361         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4362         address calculation.
4363
4364 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
4365
4366         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4367         scratch register to DImode / TImode.
4368         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4369         register used does not overlap the target.
4370
4371 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4372
4373         * Makefile.in (debug.o): Depend on debug.h.
4374         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4375         * debug.c (do_nothing_debug_hooks): Likewise.
4376         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4377         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4378         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4379         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4380         * dwarfout.c (dwarf_debug_hooks): Likewise.
4381         * integrate.c (output_inline_function): Likewise.
4382         * objc/objc-act.c (synth_module_prologue): Likewise.
4383         * sdbout.c (sdb_debug_hooks): Likewise.
4384         * toplev.c (debug_hooks): Likewise.
4385         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4386
4387 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4388
4389         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4390         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4391         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4392         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4393         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4394         * defaults.h (POINTER_SIZE): Define.
4395         * doc/tm.texi (POINTER_SIZE): Document default.
4396
4397 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4398
4399         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4400
4401 2002-03-11  Richard Henderson  <rth@redhat.com>
4402
4403         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4404         if rebuild_label_notes_after_reload.
4405
4406 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
4407
4408         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
4409         emit pic register load if "internal" visibility.
4410         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4411         (cris_expand_builtin_va_arg): Do all computations on trees.
4412
4413 2002-03-11  Richard Henderson  <rth@redhat.com>
4414
4415         * rtlanal.c: Include recog.h.
4416         (keep_with_call_p): Fix thinko.
4417         * Makefile.in (rtlanal.o): Update dependencies.
4418
4419 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
4420
4421         * genflags.c (gen_insn): Use IS_VSPACE.
4422         * genoutput.c (output_insn_data): Likewise.
4423         (process_template): Likewise.
4424
4425 2002-03-11  Richard Henderson  <rth@redhat.com>
4426
4427         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4428
4429 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4430
4431         * Makefile.in: Update.
4432         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4433         Update documentation.
4434         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4435         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4436
4437 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
4438
4439         * Makefile.in: Give texi2pod its input file as a command line
4440         argument, not on stdin.
4441
4442 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
4443             Daniel Berlin  <dan@dberlin.org>
4444
4445         C++ alias analysis improvement.
4446         * alias.c (record_component_aliases): Record aliases for base
4447         classes too.
4448
4449 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
4450
4451         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4452
4453 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4454
4455         * toplev.c (vms_fopen): Remove, not needed.
4456
4457         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4458
4459         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4460
4461         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4462         for FP, already done later.
4463
4464         * toplev.c (debug_args): Add entry for VMS_DEBUG.
4465         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4466
4467 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
4468
4469         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4470         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4471         LARGEST_EXPONENT_IS_NORMAL for the given mode.
4472         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4473         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4474         (ediv, emul, eldexp, esqrt): Likewise.
4475         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4476         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4477         (saturate): New function.
4478         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4479         (make_nan): Use a saturation value instead of a NaN if
4480         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4481         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4482         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4483         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4484         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4485         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4486         !ROUND_TOWARDS_ZERO.
4487         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4488         (ROUND_TOWARDS_ZERO): Document.
4489
4490 2002-03-11  Andreas Jaeger  <aj@suse.de>
4491
4492         * cfg.c (dump_flow_info): Remove unused variable.
4493
4494 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4495
4496         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4497         computations on trees.
4498
4499 2002-03-10  Richard Henderson  <rth@redhat.com>
4500
4501         PR 5693:
4502         * reload.c (copy_replacements_1): New.
4503         (copy_replacements): Use it to recurse through the rtx.
4504
4505 2002-03-10  Richard Henderson  <rth@redhat.com>
4506
4507         * loop.c (strength_reduce): Compute number of iterations as
4508         unsigned HOST_WIDE_INT.
4509
4510 2002-03-10  Richard Henderson  <rth@redhat.com>
4511
4512         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4513         to move away from the end of the block.
4514
4515 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4516
4517         PR preprocessor/5899
4518         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4519
4520 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4521
4522         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4523
4524         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4525
4526 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4527
4528         * config/mmix/mmix.c: Improve comments.
4529         (mmix_target_asm_function_prologue): Drop variable
4530         empty_stack_frame.  Don't allocate unused slot above fp.
4531         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4532         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4533         brace in first column.
4534         (enum reg_class): Ditto.
4535         (FIRST_PARM_OFFSET): Now 0.
4536         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4537
4538 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4539
4540         * combine.c (make_extraction): Fix error in last change.
4541
4542 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4543
4544         * c4x.c (c4x_fp_reglist): Const-ify.
4545         * cris.c (cris_print_operand): Likewise.
4546         * i386.c (ix86_va_arg): Likewise.
4547         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4548         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4549         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4550         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4551         * mcore.h (regno_reg_class): Likewise.
4552         * mips.c (gen_int_relational): Likewise.
4553         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4554         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4555         * pdp11.c (move_costs): Likewise.
4556         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4557         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4558         Likewise.
4559         * s390.h (regclass_map): Likewise.
4560         * sh.c (shift_amounts): Likewise.
4561         * sh.md (rotlsi3): Likewise.
4562
4563 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4564
4565         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4566         (ne0+5): Use new clobber to generate proper shift pattern.
4567         Patch by Michael Matz <matz@kde.org>.
4568
4569 2002-03-09  Andreas Schwab  <schwab@suse.de>
4570
4571         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4572
4573 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4574
4575         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4576
4577 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4578
4579         PR middle-end/5877
4580         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4581         even for non-representable constants.
4582
4583 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4584
4585         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4586         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4587         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4588         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4589         (pop_function_context): Compute MAY_SHARE parameter for
4590         fixup_var_refs.
4591         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4592         (gen_mem_addressof): Call fixup_var_refs with new parm.
4593
4594         * combine.c (make_extraction): Don't make extension of CONST_INT.
4595
4596 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4597
4598         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4599         in o32 and o64 ABIs.
4600         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4601         but getting fixed-size structs passed in registers regardless of
4602         padding in o32 and o64 ABIs.
4603
4604         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4605         offset before loading address of argument passed by transparent
4606         reference.
4607
4608 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4609
4610         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4611
4612 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4613
4614         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4615         marker such that registers after it are saved.
4616
4617 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4618
4619         * sparc.c (arith_4096_operand): Fix error in last change.
4620
4621 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4622
4623         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4624         defaults for MEABI.
4625
4626 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4627
4628         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4629         vectors.
4630
4631 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4632
4633         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4634
4635 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4636
4637         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4638         removed; fix return value.
4639         * combine.c (combine_instructions): Dirtify blocks where we failed to
4640         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4641         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4642
4643 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4644
4645         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4646
4647 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4648
4649         * recog.c (peephole2_optimize): Re-distribute EH edges.
4650
4651 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4652
4653         * expr.c (expand_expr): Use unsave lang hook.
4654         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4655         (LANG_HOOKS_INITIALIZER): Update.
4656         * langhooks.h (struct lang_hooks): New hook unsave.
4657         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4658         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4659         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4660         (unsave_expr_now): Remove.
4661         * tree.h (unsave_expr_now, lang_unsave,
4662         lang_unsave_expr_now): Remove.
4663         (lhd_unsave): New.
4664
4665 2002-03-08  Andreas Jaeger  <aj@suse.de>
4666
4667         * flow.c (propagate_block_delete_insn): Remove unused variable.
4668
4669 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4670
4671         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4672         insn length for memory load/store.
4673
4674 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4675
4676         * doc/install.texi (--with-libiconv-prefix): Document.
4677
4678 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4679
4680         * doc/sourcebuild.texi: Fix typo.
4681
4682 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4683
4684         PR c/3711
4685         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4686         trees.
4687
4688 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4689
4690         * rtl.c (copy_most_rtx): Move from here ...
4691         * emit-rtl.c (copy_most_rtx): ... to here.
4692
4693 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4694
4695         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4696         SUBTARGET_CPP_SIZE_SPEC.
4697         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4698
4699         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4700
4701 2002-03-07  Matt Hiller  <hiller@redhat.com>
4702
4703         * gensupport.c (first_dir_md_include): Renamed from include;
4704         change all references.
4705         (last_dir_md_include): Renamed from last_include; change all
4706         references.
4707         (init_md_reader): Unconditionally initialize base_dir whether or
4708         not filename is a relative path.
4709
4710 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4711
4712         * config/fp-bit.c (_unord_f2): Compile it in even if
4713         US_SOFTWARE_GOFAST is enabled.
4714
4715         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4716         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4717         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4718         NULL_RTX, try reversing the comparison and the operands.
4719
4720 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4721
4722         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4723         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4724         and MATCH_OP_DUP.
4725
4726 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4727
4728         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4729
4730 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4731
4732         * basic-block.h (fixup_abnormal_edges): Declare.
4733         * reload1.c (fixup_abnormal_edges): New function.
4734         * reg-stack.c (convert_regs): Use it.
4735
4736         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4737
4738         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4739
4740 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4741
4742         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4743         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4744         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4745         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4746         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4747         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4748         unless x and y could be infinite.
4749         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4750         Check that the common type of both arguments is a real, even for
4751         targets without unordered comparisons.  Allow an integer argument
4752         to be compared against a real.
4753         (expand_tree_builtin): Use expand_unordered_cmp.
4754         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4755         * cse.c (fold_rtx): Likewise.  Fix indentation.
4756         * fold-const.c (fold_real_zero_addition_p): New.
4757         (fold): Use it, and the new HONOR_... macros.
4758         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4759         * jump.c (reversed_comparison_code_parts): After searching for
4760         the true comparison mode, use HONOR_NANS to decide whether it
4761         can be safely reversed.
4762         (reverse_condition_maybe_unordered): Remove IEEE check.
4763         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4764         to decide which simplifications are valid.  Allow the following
4765         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4766         and (a - -b) to (a + b).
4767         (simplify_relational_operation): Use HONOR_NANS.
4768         * doc/tm.texi: Document the MODE_HAS_... macros.
4769
4770 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4771
4772         * combine.c (simplify_comparison): If simplifying a logical shift
4773         right and compare with constant, force the comparison to unsigned.
4774
4775 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4776
4777         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4778
4779         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4780         -mabi=no-altivec
4781         (alt_reg_names): Remove % for vrsave.
4782
4783 2002-03-06  Richard Henderson  <rth@redhat.com>
4784
4785         PR optimization/5844
4786         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4787         if used indicates we've already emitted one copy of an operand.
4788         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4789         (gen_split): Supply a non-null used.
4790
4791 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4792
4793         * reload1.c (reload): Unshare all rtl after reload is done.
4794
4795         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4796         but simply fail if the expression is too complex to simplify.
4797         (simplify_gen_binary): Handle simplify_plus_minus failures.
4798
4799 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4800
4801         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4802         consistently call delete_trivially_dead_insns after CSE and GCSE;
4803         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4804         after liveness2; update comment in last crossjumping.
4805         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4806
4807 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4808
4809         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4810         after completing fast dead code elimination.
4811
4812         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4813         COMPARE operator.
4814
4815 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4816
4817         * version.c:  Fix misplaced leading blanks on first line.
4818
4819 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4820
4821         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4822
4823 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4824
4825         * cfgcleanup.c (mentions_nonequal_regs): New function.
4826         (thread_jump): Use it.
4827         * toplev.c (rest_of_compilation): Run jump threading after
4828         liveness.
4829
4830 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4831
4832         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4833         patch.
4834
4835 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4836
4837         * predict.c (estimate_bb_frequencies): Do not reload the
4838         frequencies from notes.
4839
4840 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4841
4842         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4843         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4844
4845         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4846         delete_noop_moves): Return indeger.
4847         * flow.c (ndead): New variable.
4848         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4849         BB argument; update callers.
4850         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4851         (life_analysis): Do not call purge_all_dead_edges.
4852         (update_life_info): Return number of deleted insns; print statistics.
4853         (update_life_info_in_dirty_blocks): likewise.
4854         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4855         return number of insns deleted.
4856
4857         * cse.c: Include timevar.h
4858         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4859         iterate until stabilizes; print statistics; return number of killed
4860         insns.
4861         * Makefile.in: (cse.o): Add timevar.h dependency
4862         * rtl.h (delete_trivially_dead_insns): New.
4863         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4864         * toplev.c (rest_of_compilation): Update callers.
4865
4866         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4867         (try_optimize_cfg): Do not update liveness.
4868         (cleanup-cfg): Loop until try_optimize_cfg and dead code
4869         removal stabilizes; use delete_trivially_dead_insns.
4870
4871         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4872
4873 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
4874
4875         * cppmain.c (setup_callbacks): Disable #pragma and #ident
4876         callbacks when processing assembly language.
4877
4878 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4879
4880         * pa.h (ASM_FILE_END): Define.
4881         * som.h (ASM_FILE_END): Delete.
4882
4883         * pa.c (function_arg): Don't pass floats in general registers in
4884         indirect calls if TARGET_ELF32.
4885
4886 2002-03-05  Richard Henderson  <rth@redhat.com>
4887
4888         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4889
4890 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
4891
4892         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4893
4894 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4895
4896         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4897         -r command line.  Don't hide any symbols if not building
4898         shared libgcc.
4899
4900 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
4901
4902         * cfg.c (dump_flow_info): Warn about profile mismatches.
4903         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4904         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4905
4906 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4907
4908         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4909         wide volatile memory by parts.
4910
4911 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
4912
4913         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4914         is NULL.
4915
4916 2002-03-05  Richard Henderson  <rth@redhat.com>
4917
4918         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4919
4920 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4921
4922         * toplev.c (documented_lang_options): Document more
4923         language-specific options.
4924         * doc/invoke.texi (Warning Options): Correct documentation for
4925         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4926         * c-decl.c (c_decode_option): Use a table to handle warning options.
4927
4928 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
4929
4930         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4931         parameter to mmix_encode_section_info.
4932         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4933         relocatably.  Always produce ELF, not mmo if linking relocatably.
4934         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4935         first is non-zero, don't add symbol prefix.
4936         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4937         prototype accordingly.
4938
4939 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
4940
4941         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4942
4943 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4944
4945         * configure.in: Increase required makeinfo version to 4.1.
4946         * configure: Regenerate.
4947
4948 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
4949
4950         * .cvsignore: Remove *.info* and genrtl*; these files are generated
4951         elsewhere now.
4952
4953 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4954
4955         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4956         * doc/invoke.texi: Fix @math uses.
4957
4958 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4959
4960         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4961         removal
4962
4963 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
4964
4965         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4966         (powerpc-*-eabisimaltivec*): Same.
4967
4968         * config/rs6000/t-ppcendian: New.
4969
4970 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4971
4972         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4973         nonimmediate_src_operand and nonimmediate_lsrc_operand to
4974         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4975
4976 2002-03-03  Richard Henderson  <rth@redhat.com>
4977
4978         * toplev.c (rest_of_decl_compilation): Revert last two changes.
4979
4980 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
4981
4982         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4983         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4984         tree.c, config/m68k/m68k.c:
4985         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4986         REAL_ARITHMETIC blocks unconditional.  Delete some further
4987         #ifdef blocks predicated on REAL_ARITHMETIC.
4988         * flags.h, toplev.c: Delete remaining references to
4989         flag_pretend_float.
4990
4991         * doc/invoke.texi: Remove documentation of -fpretend-float.
4992         * doc/tm.texi: Describe the various REAL_* macros as provided by
4993         real.h, not by the target configuration files.
4994
4995         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4996         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4997         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4998         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4999         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5000         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5001         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5002         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5003         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5004         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5005         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5006         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5007         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5008         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5009         config/xtensa/xtensa.h:
5010         Do not define, undefine, or mention in comments any of
5011         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5012         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5013         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5014         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5015         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5016         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5017         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5018         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5019         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5020
5021 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5022
5023         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5024         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5025         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5026         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5027         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5028         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5029         Delete.
5030         * defaults.h (BITS_PER_WORD): Define.
5031         * doc/tm.texi (BITS_PER_WORD): Document default value.
5032
5033         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5034         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5035         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5036
5037 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5038
5039         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5040         lieu of explicit sizeof/sizeof.
5041         * i386.c (override_options, ix86_init_mmx_sse_builtins,
5042         ix86_expand_builtin): Likewise.
5043         * mips.c (mips_add_gc_roots): Likewise.
5044         * mmix.c (mmix_output_condition): Likewise.
5045         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5046         altivec_init_builtins): Likewise.
5047         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5048         * cppexp.c (Nsuff, parse_number): Likewise.
5049         * cppinit.c (builtin_array_end): Likewise.
5050         * gcc.c (n_default_compilers, process_command): Likewise.
5051         * genpreds.c (output_predicate_decls): Likewise.
5052         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5053         * lcm.c (N_ENTITIES): Likewise.
5054         * stor-layout.c (set_sizetype): Likewise.
5055
5056 2002-03-03  Richard Henderson  <rth@redhat.com>
5057
5058         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5059         for types or labels.
5060
5061 2002-03-03  Richard Henderson  <rth@redhat.com>
5062
5063         * c-decl.c (start_decl): Initialized variables are not common.
5064
5065 2002-03-02  Per Bothner  <per@bothner.com>
5066
5067         * gcc.c (option_map):  Suport new --bootclasspath option.
5068         --CLASSPATH is now just an alias for --classpath.
5069
5070 2002-03-02  Richard Henderson  <rth@redhat.com>
5071
5072         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5073         load if "internal" visibility.
5074         * doc/extend.texi: Document visibility meanings.
5075
5076 2002-03-02  Richard Henderson  <rth@redhat.com>
5077
5078         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5079         to functions as well.
5080
5081 2002-03-02  Richard Henderson  <rth@redhat.com>
5082
5083         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5084         (handle_visibility_attribute): Don't call assemble_visibility.
5085         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5086         without asmspec.  Invoke assemble_alias when needed.
5087         * varasm.c (maybe_assemble_visibility): New.
5088         (assemble_start_function, assemble_variable, assemble_alias): Use it.
5089
5090 2002-03-02  Richard Henderson  <rth@redhat.com>
5091
5092         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5093         invoke ENCODE_SECTION_INFO with first call flag.
5094
5095         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5096         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5097         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5098         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5099         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5100         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5101         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5102         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5103         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5104         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5105         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5106         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5107         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5108         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5109         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5110         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5111         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5112         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5113         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5114         config/sh/sh.h, config/sparc/sparc.h,
5115         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5116         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5117         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5118         FIRST argument.  As needed, examine it and do nothing.
5119
5120         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5121         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5122         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5123
5124         * config/arm/t-pe (pe.o): Add dependencies.
5125
5126 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5127
5128         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5129         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5130         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5131         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5132         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5133         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5134         * defaults.h (BITS_PER_UNIT): Define.
5135         * doc/tm.texi (BITS_PER_UNIT): Document default value.
5136
5137 2002-03-02  Kazu Hirata  <kazu@hxi.com>
5138
5139         * config/h8300/h8300-protos.h: Add a prototype for
5140         compute_a_shift_length.
5141         * config/h8300/h8300.c (h8300_asm_insn_count): New.
5142         (compute_a_shift_length): Likewise.
5143         (h8300_adjust_insn_length): Do not adjust insn length of shift
5144         insns.
5145         * config/h8300/h8300.md (anonymous shift patterns): Use
5146         compute_a_shift_length.
5147
5148 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5149
5150         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5151         trunc_int_for_mode.
5152
5153         * emit-rtl.c (offset_address): Call update_temp_slot_address.
5154
5155 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5156
5157         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5158         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5159         * flags.h (flag_zero_initialized_in_bss): Declare.
5160         * toplev.c (flag_zero_initialized_in_bss): New flag.
5161         (lang_independent_options): Add flag_zero_initialized_in_bss.
5162         * tree.c (initializer_zerop): New function.
5163         * tree.h (initializer_zerop): Declare.
5164         * varasm.c (assemble_variable): If we can emit bss, put zero
5165         initializers in the bss section.
5166
5167 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
5168
5169         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5170         like more than one symbol per .weak directive.
5171
5172 2002-03-01  Richard Henderson  <rth@redhat.com>
5173
5174         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5175         adjust argument_pointer by pretend_args_size.
5176         (ia64_va_start): Adjust va_start address by -pretend_args_size.
5177
5178 2002-03-01  Kazu Hirata  <kazu@hxi.com>
5179
5180         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5181
5182 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
5183
5184         * toplev.c (rest_of_compilation): Delete dead jumptables before
5185         loop.
5186         * flow.c (delete_dead_jumptables): Make global.
5187         * rtl.h (delete_dead_jumptables): Declare.
5188
5189 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
5190
5191         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5192         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5193         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5194
5195 2002-03-01  Kazu Hirata  <kazu@hxi.com>
5196
5197         * config/h8300/h8300-protos.h: Fix formatting.
5198         * config/h8300/h8300.c: Likewise.
5199         * config/h8300/h8300.h: Likewise.
5200
5201 2002-03-01  Kazu Hirata  <kazu@hxi.com>
5202
5203         * config/h8300/h8300.c (print_operand): Support 16-bit
5204         constant addresses.
5205         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5206
5207 2002-02-28  Richard Henderson  <rth@redhat.com>
5208
5209         * expmed.c (store_bit_field): Prevent generation of CONCATs;
5210         pun complex values as integers; use gen_lowpart instead of
5211         gen_rtx_SUBREG.
5212         (extract_bit_field): Likewise.
5213
5214 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
5215             David Edelsohn  <edelsohn@gnu.org>
5216
5217         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5218         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5219         (SUPPORTS_WEAK): Likewise.
5220         * output.h (add_weak): Add tree param.
5221         * varasm.c (add_weak): Likewise.  Save decl.
5222         (struct weak_syms): Add decl field.
5223         (mark_weak_decls): New function.
5224         (init_varasm_once): ggc_add_root mark_weak_decls.
5225         (assemble_start_function): Use ASM_WEAKEN_DECL.
5226         (assemble_variable): Likewise.
5227         (assemble_alias): Likewise.
5228         (declare_weak): Pass decl to add_weak.
5229         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5230         (remove_from_pending_weak_list): Declare and define for
5231         ASM_WEAKEN_DECL.
5232         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5233         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5234         * defaults.h (SUPPORTS_WEAK): Likewise.
5235         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5236         .weak for code sym.  Do emit .size for descriptor sym.
5237         (ASM_DECLARE_FUNCTION_SIZE): Define.
5238         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5239         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
5240         .lglobl unless TARGET_XCOFF.  Formatting fixes.
5241         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5242         .weak for code sym.
5243         (HANDLE_PRAGMA_WEAK): Remove.
5244         (ASM_WEAKEN_LABEL): Remove.
5245         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5246
5247 2002-03-01  Jason Merrill  <jason@redhat.com>
5248
5249         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5250         (TARGET_EXPR_CLEANUP): New macro.
5251
5252 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
5253
5254         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5255         to take ptr_extend into account as third type of extension.
5256         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5257         fields used by SUBREG_PROMOTED_UNSIGNED_P.
5258         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5259         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5260         * calls.c (precompute_arguments): Use new macro.
5261         (expand_call): Ditto.
5262         * combine.c (nonzero_bits): Ditto.
5263         (record_promoted_value): Ditto.
5264         * expr.c (store_expr): Ditto.
5265         (expand_expr): Ditto.
5266         * function.c (assign_parms): Ditto.
5267
5268 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
5269
5270         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5271         override -shared and -shared-libgcc.
5272
5273 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
5274
5275         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5276         of "ultrasparc".
5277         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
5278         to be broken.
5279
5280 2002-02-28  Richard Henderson  <rth@redhat.com>
5281
5282         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5283         4 cycle latency from MM producers.
5284         (ia64_internal_sched_reorder): Likewise with pipeline flush.
5285
5286 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5287
5288         * mklibgcc.in: Don't use GNU make extension.
5289
5290 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5291
5292         * c-parse.in (STATIC): New terminal.
5293         (scspec): New non-terminal.  Update productions accordingly.
5294         (program): Remove bogus ifc / end ifc.
5295         (array_declarator): Simplify production using STATIC.
5296
5297 2002-02-28  Jim Meyering  <meyering@lucent.com>
5298
5299         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5300         \a still means TARGET_BELL.
5301
5302 2002-02-28  Richard Henderson  <rth@redhat.com>
5303
5304         * haifa-sched.c (sched_emit_insn): New.
5305         (schedule_block): Use last_scheduled_insn to track last insn.
5306         * sched-int.h (sched_emit_insn): Prototype.
5307         * config/ia64/ia64.c (last_issued): Remove.
5308         (ia64_variable_issue): Don't set it.
5309         (nop_cycles_until): Use sched_emit_insn.
5310
5311 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
5312
5313         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5314         extended constants.
5315
5316 2002-02-28  Kazu Hirata  <kazu@hxi.com>
5317
5318         * config/h8300/h8300.c: Fix formatting.
5319         * config/h8300/h8300.h: Likewise.
5320
5321 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5322
5323         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5324         which may overwrite the high byte of the frame pointer.
5325
5326 2002-02-28  Bo Thorsen  <bo@suse.de>
5327
5328         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5329         (STARTFILE_SPEC): Add 64 bit files.
5330         (ENDFILE_SPEC): Likewise.
5331
5332 2002-02-28  Jason Merrill  <jason@redhat.com>
5333
5334         * c-decl.c (finish_function): Only warn about missing return
5335         statement with -Wreturn-type.
5336
5337 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5338
5339         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5340
5341         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5342         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5343
5344 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5345
5346         * basic-block.h (BB_REACHABLE): Renumber.
5347         (BB_DIRTY, BB_NEW): New flags.
5348         (clear_bb_flags): Declare.
5349         (update_life_info_in_dirty_blocks): Declare.
5350         * cfg.c (clear_bb_flags): New function.
5351         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5352         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5353         reorder_insns, emit_insn_after): Mark block as dirty.
5354         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5355         (update_life_info_in_dirty_blocks): New function.
5356         * recog.c (apply_change_group): Dirtify block.
5357
5358         * cse.c (cse_insn): Reorder emitting of jump insn to keep
5359         cfg consistent.
5360         * gcse.c (delete_null_pointer_checks): Likewise.
5361
5362         * toplev.c (dump_file_index): Move cse2 after bp,
5363         add DFI_null
5364         (dump_file_info): Similary.
5365         (rest_of_compilation): Avoid most of CFG rebuilds;
5366         do first if converision after null pointer checks, do cse2
5367         after branch prediction; avoid full liveness rebuild after
5368         initializing subregs.
5369         * invoke.texi (-d options): Document -du, renumber.
5370
5371         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5372         (notice_new_block): Do not set BB_UPDATE_LIFE.
5373         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5374          merge_blocks_move_successor_nojumps, merge_blocks,
5375          try_crossjump_to_edge): Likewise.
5376         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5377         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5378         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5379         (merge_of_block): Do not use life_data_ok.
5380         (find_if_case_1): Do not use SET_UPDATE_LIFE.
5381         (if_convert): Use BB_DIRTY mechanizm to update life.
5382         * lcm.c (optimize_mode_switching): Update
5383         update_life_info_in_dirty_blocks
5384
5385 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5386
5387         * Makefile.in (integrate.o): Update.
5388         * c-decl.c (copy_lang_decl): Rename.
5389         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5390         * integrate.c: Include langhooks.h.
5391         (copy_decl_for_inlining): Update to use langhook.
5392         * langhooks-def.h (lhd_do_nothing_t,
5393         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5394         (LANG_HOOKS_INITIALIZER): Update.
5395         * langhooks.c (lhd_do_nothing_t): New.
5396         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5397         * tree.h (copy_lang_decl): Remove.
5398 objc:
5399         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5400
5401 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
5402
5403         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5404         POST_DEC, and POST_MODIFY.
5405
5406 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5407
5408         * c-typeck.c (digest_init): Remove unused parameter; all
5409         callers changed.
5410
5411 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
5412
5413         * expmed.c (expand_shift): Correctly test for low part of a
5414         subreg.
5415
5416 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
5417
5418         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5419         insn UIDs with insn addresses.
5420
5421 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5422
5423         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5424         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5425         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5426         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5427         gcc.c, toplev.c: Delete code implementing -traditional mode.
5428
5429         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5430         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5431         Document removal of -traditional mode for compilation, and
5432         remove documentation only relevant to that mode.
5433
5434         * config/nextstep.h, config/ptx4.h, config/svr4.h,
5435         config/convex/convex.h, config/d30v/d30v.h,
5436         config/i386/dgux.h, config/i386/osf1elf.h,
5437         config/i386/osfelf.h, config/i386/osfrose.h,
5438         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5439         config/m68k/hp310.h, config/m88k/dgux.h,
5440         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5441         config/m88k/m88k.h, config/m88k/openbsd.h,
5442         config/mips/abi64.h, config/mips/osfrose.h,
5443         config/mips/svr4-5.h, config/mips/svr4-t.h,
5444         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5445         config/stormy16/stormy16.h: Remove all references to
5446         -traditional from target specs.  Delete all mention of the
5447         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
5448         delete a couple of commented-out definitions of
5449         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5450         to -traditional.
5451
5452         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5453         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5454
5455 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5456
5457         * mklibgcc.in: Don't use \n in a line subject to
5458         interpretation by echo.
5459
5460 2002-02-27  Graham Stott  <grahams@redhat.com>
5461
5462         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5463         Constify NAME.
5464
5465         * loop.c (prescan_loop): Handle PARALLEL.
5466
5467         * unroll.c (loop_iterations): Return 0 if the add_val for
5468         a BIV is REG.
5469
5470         * final.c (output_operand_lossage): Constify PFX_STR.
5471
5472         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5473
5474 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5475
5476         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5477         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5478
5479 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5480
5481         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5482
5483 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5484
5485         * cpplex.c (_cpp_lex_token): Handle directives in macro
5486         arguments.
5487         * cpplib.c (_cpp_handle_directive): Save and restore state
5488         if parsing macro args when entering a directive.
5489         * cppmacro.c (collect_args): No need to handle directives
5490         in macro arguments.
5491         (enter_macro_context, replace_args): Use the original macro
5492         definition in case it was redefined whilst collecting arguments.
5493 doc:
5494         * cpp.texi: Update.
5495
5496 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5497
5498         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5499         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5500         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5501         method on AIX.
5502         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5503         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5504         (load_toc_v4_PIC_2): Same.
5505
5506 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5507
5508         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5509
5510 2002-02-26  Richard Henderson  <rth@redhat.com>
5511
5512         * config/alpha/alpha.md (ashldi_se): Re-enable.
5513
5514 2002-02-26  Richard Henderson  <rth@redhat.com>
5515
5516         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5517         MODULE_LOCAL_P; improve commentary.
5518
5519 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5520
5521         * doc/cpp.texi: Clarify documentation of relationship between
5522         #line and #include.
5523
5524 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5525
5526         * config/h8300/h8300-protos.h: Update the prototype for
5527         compute_logical_op_length.  Add the prototype for
5528         compute_logical_op_cc.
5529         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5530         code from operands.
5531         (compute_logical_op_cc): New.
5532         * config/h8300/h8300.md: Combine all the logical op patterns
5533         in HImode and SImode.  Use compute_logical_op_cc.
5534
5535 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5536
5537         * config/i386/i386.c (print_operand): Don't append ATT-style
5538         length suffixs to x87 opcodes when in Intel mode.
5539
5540 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5541
5542         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5543         (init_emit_once): Update calls.
5544         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5545         (init_syntax_once): Prototype.
5546
5547 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5548
5549         * pa-linux.h (LIB_SPEC): Update definition.
5550         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5551
5552 2002-02-26  Richard Henderson  <rth@redhat.com>
5553
5554         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5555         if we emitted a stop bit.
5556
5557 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5558
5559         * configure.in (libgcc_visibility): Substitute.
5560         * configure: Rebuilt.
5561         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5562         defined symbols .hidden.
5563
5564 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5565
5566         * attribs.c (c_common_attribute_table): Add visibility.
5567         (handle_visibility_attribute): New function.
5568         * varasm.c (assemble_visibility): New function.
5569         * output.h (assemble_visibility): Add prototype.
5570         * tree.h (MODULE_LOCAL_P): Define.
5571         * crtstuff.c (__dso_handle): Use visibility attribute.
5572         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5573         for MODULE_LOCAL_P symbols too.
5574         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5575         MODULE_LOCAL_P symbols the same way as local symbols.
5576         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5577         into .sdata/.sbss by the user.
5578         * doc/extend.texi (Function Attributes): Document visibility
5579         attribute.
5580
5581 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5582
5583         PR debug/5770
5584         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5585         STRING_CST initializer spanning the whole variable without
5586         embedded zeros.
5587         If expand_expr returned MEM, don't use it.
5588
5589 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5590
5591         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5592         generate a die for the lexical block.
5593
5594 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5595
5596         * config/h8300/h8300-protos.h: Add a prototype for
5597         compute_logical_op_length.
5598         * config/h8300/h8300.c (compute_logical_op_length): New.
5599         * config/h8300/h8300.md (anonymous logical patterns): Use
5600         compute_logical_op_length for length.
5601
5602 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5603
5604         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5605         for vectors.
5606         (gen_type_die): Same.
5607
5608         * attribs.c (handle_vector_size_attribute): Set debug information.
5609
5610 2002-02-26  Daniel Egger  <degger@fhm.edu>
5611
5612         * config/rs6000/rs6000.md: Swap define_insn attributes to
5613         fix incorrect generation of merge high instructions instead
5614         of merge low.
5615
5616 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5617
5618         * c-typeck.c (really_start_incremental_init): Use
5619         bitsize_zero_node for vectors.
5620
5621 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5622
5623         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5624         ("*set_vrsave_internal"): Same.
5625
5626 2002-02-25  Richard Henderson  <rth@redhat.com>
5627
5628         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5629         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5630
5631 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5632
5633         PR target/5755
5634         * config/i386/i386.c (ix86_return_pops_args): Only pop
5635         fake structure return argument if it was passed on the stack.
5636
5637 2002-02-25  Jason Merrill  <jason@redhat.com>
5638
5639         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5640         RESULT_DECL.
5641
5642 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5643
5644         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5645         link with shared_name only.
5646         * doc/invoke.texi (Link Options): Document new behavior.
5647
5648 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5649
5650         * c-typeck.c (push_init_level): Handle vectors.
5651
5652 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5653
5654         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5655         operands of SPARC_SETHI_P.
5656         (input_operand): Likewise.
5657         (sparc_emit_set_const32): Likewise.
5658         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5659         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5660         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5661         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5662         (movdi_insn_sp64_vis): Likewise.
5663         (movdi split, movdf split): Use SETHI32.
5664         * doc/md.texi: Document SPARC constraints L, M and N.
5665
5666 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5667
5668         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5669         ("*set_vrsave_internal"): use mfspr for Darwin.
5670
5671         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5672         gen_get_vrsave_internal.
5673
5674 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5675
5676         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5677
5678 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5679
5680         * cpplex.c (cpp_interpret_charconst): Get signedness or
5681         otherwise of wide character constants correct.
5682         * cppexp.c (lex): Get signedness of wide charconsts correct.
5683
5684 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5685
5686         * optabs.c (widen_operand): Only call convert_modes for
5687         promoted SUBREG if signedness matches.
5688         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5689
5690 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5691
5692         * cpplib.c (glue_header_name): Use local buffer to build up
5693         header name.
5694
5695 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5696
5697         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5698
5699 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5700
5701         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5702         H8/300[HS] separately.
5703         * config/h8300/h8300.md: Remove the early clobber constraint
5704         from bit field patterns.
5705
5706 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5707
5708         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5709         register_operand.
5710         (mulhisi3): Likewise.
5711         (umulqisi3): Likewise.
5712         (umulhisi3): Likewise.
5713
5714 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5715
5716         * cppinit.c (output_deps): Correct test for stdout output.
5717         (init_dependency_output): Cure warning.
5718
5719 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5720
5721         * expr.c (store_expr): When converting expression to promoted
5722         equivalent type, allow using SUBREG_REG of TARGET as the target
5723         of the expansion of EXP.
5724         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5725         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5726         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5727         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5728         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5729
5730 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5731
5732         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5733         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5734         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5735
5736 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5737
5738         PR optimization/5747
5739         * loop.c (scan_loop): Update reg info if move_movables created new
5740         pseudos.
5741
5742 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5743
5744         * gcc.c (init_gcc_spec): Revert last change.
5745
5746 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5747
5748         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5749         gpc_reg_operand constraint.
5750
5751 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5752
5753         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5754         Simplify comparison of `low'.
5755         (add_operand): Fix formatting.
5756         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5757         (mask_operand): Disallow mask to wrap in 64-bit mode.
5758         (rs6000_stack_info): Remove redundant test setting push_p.
5759         (output_toc): Fix formatting.
5760         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5761         cc_reg_not_cr0_operand constraint.
5762         (booldi3, boolcdi3 splitters): Same.
5763
5764 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5765
5766         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5767
5768 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5769
5770         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5771         gcc invoked with -shared-libgcc.
5772
5773 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5774
5775         PR c++/5748
5776         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5777         decl if any of elements was TREE_USED.
5778
5779 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5780
5781         * config/sparc/sol2.h: Don't include sys/mman.h.
5782         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5783         (arith_4096_operand): Don't throw high bits away.
5784         (const64_operand): Take sign extension of CONST_INTs into account.
5785         (const64_high_operand, sparc_emit_set_const32): Likewise.
5786         (GEN_HIGHINT64): Likewise.
5787         (sparc_emit_set_const64_quick1): Likewise.
5788         (const64_is_2insns): Likewise.
5789         (print_operand): Use trunc_int_for_mode for sign extension.
5790         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5791         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5792         chars.  Assume CONST_INT is already properly sign-extended.
5793         (movdi split): Sign-extend each SImode part.
5794         (andsi3 split): Don't mask high bits off, so that result
5795         remains properly sign-extend.
5796         (iorsi3 split): Likewise.
5797         (xorsi3 split): Likewise.
5798
5799 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5800
5801         * fold-const.c (fold): Fix typo in comments.
5802
5803 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5804
5805         * Makefile.in (langhooks.o): Update dependencies.
5806
5807 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5808
5809         * langhooks.c: Include flags.h.
5810
5811 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5812
5813         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5814
5815         * c-common.c (c_common_post_options): Set inline trees by
5816         default.
5817
5818         * doc/extend.texi (Function Attributes): Document always_inline
5819         attribute.
5820         Update documentation about inlining when not optimizing.
5821
5822         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5823
5824         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5825         unless DECL_ALWAYS_INLINE.
5826
5827         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5828         unless DECL_ALWAYS_INLINE.
5829         (c_disregard_inline_limits): Disregard if always_inline set.
5830
5831         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5832         Disregard if always_inline set.
5833         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5834         unless DECL_ALWAYS_INLINE.
5835
5836         * attribs.c (handle_always_inline_attribute): New.
5837         (c_common_attribute_table): Add always_inline.
5838
5839         * config/rs6000/altivec.h: Add prototypes for builtins
5840         requiring the always_inline attribute.
5841
5842 2002-02-21  Eric Christopher  <echristo@redhat.com>
5843
5844         * expmed.c (store_bit_field): Try to simplify the subreg
5845         before generating a new one when when the mode size of
5846         value is less than maxmode.
5847
5848 2002-02-21  Richard Henderson  <rth@redhat.com>
5849
5850         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5851         than gen_rtx_PLUS to form the sum.
5852         * explow.c (force_reg): Rearrange to not allocate new pseudo
5853         when force_operand returns a register.
5854         * expr.c (expand_assignment): Allow offset_rtx expansion to
5855         return a sum.  Do not force addresses into registers.
5856         (expand_expr): Likewise.
5857         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5858         to canonicalize arithmetic that didn't simpify.
5859         (simplify_plus_minus): New argument force; update
5860         all callers.  Don't split CONST unless we can do something with it,
5861         and wouldn't lose the constness of the operands.
5862
5863         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5864         that we generated earlier.
5865
5866 2002-02-21  Tom Tromey  <tromey@redhat.com>
5867
5868         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5869         (output_line_info): Use constant `1', with a long explanatory
5870         comment.
5871         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5872
5873 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5874
5875         * jump.c (redirect_jump): If old label has no UID, don't try to
5876         delete it.
5877
5878 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5879
5880         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5881         If input is constant, do shifts at compile time.
5882
5883 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5884
5885         * doc/extend.texi: Fix some more overfull hboxes.
5886
5887 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5888
5889         PR optimization/4994
5890         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5891         register moves.
5892
5893 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5894
5895         PR c++/4574
5896         * expr.h (expand_and): Add mode argument.
5897         * expmed.c (expand_and): Add mode argument.
5898         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5899         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5900         * except.c (expand_builtin_extract_return_addr): Likewise.
5901         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5902         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5903         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5904         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5905         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5906         gen_rtx (CONST_INT, VOIDmode, x).
5907
5908 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5909
5910         PR c/4697:
5911         * stmt.c (warn_if_unused_value): Move side effects test once more.
5912
5913 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5914
5915         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5916         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5917
5918 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5919
5920         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5921         SUBREG or ZERO_EXTEND.
5922
5923 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5924
5925         * sh.h (current_function_anonymous_args): Remove.
5926         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5927         of current_function_varargs and current_function_stdarg is set.
5928         * sh.c (sh_expand_prologue): Check current_function_varargs /
5929         current_function_stdarg / TARGET_SH5 instead of
5930         current_function_anonymous_args.
5931
5932         * sh64.h (TARGET_VERSION): Define.
5933
5934 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5935
5936         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5937         VRSAVE_REGNO on TARGET_ALTIVEC.
5938
5939 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5940
5941         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5942         bits of SImode const_int.
5943         (includes_rshift_p): Likewise.
5944         (print_operand): Call mask_operand and mask64_operand with correct
5945         mode.
5946         (rs6000_output_function_epilogue): Pad traceback table to word.
5947         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5948         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5949         mask64_operand with correct mode.
5950         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5951
5952 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5953
5954         PR debug/4461
5955         * varasm.c (get_pool_constant_mark): New.
5956         * rtl.h (get_pool_constant_mark): Add prototype.
5957         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5958         be represented if it has not been output.
5959
5960 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5961
5962         * combine.c (do_SUBST): Sanity check substitutions of
5963         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5964         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5965         CONST_INT into its operand.
5966         (known_cond): Likewise, for ZERO_EXTEND.
5967         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5968         allow for simplification of wide modes.  Reject CONST_INTs in
5969         ZERO_EXTEND when their actual mode is not given.
5970
5971 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5972
5973         * c-decl.c (pushdecl): If no global declaration is found for an
5974         extern declaration in block scope, try a limbo one.
5975
5976 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5977
5978         PR c++/4401
5979         * c-common.c (pointer_int_sum): Moved from...
5980         * c-typeck.c (pointer_int_sum): ...here.
5981         * c-common.h (pointer_int_sum): Add prototype.
5982
5983 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5984
5985         PR c++/5713
5986         * c-decl.c (duplicate_decls): Return 0 if issued error about
5987         redeclaration.
5988
5989 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5990             Jakub Jelinek  <jakub@redhat.com>
5991
5992         PR c/4389
5993         * tree.c (host_integerp): Ensure that the constant integer is
5994         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5995         when pos is zero or non-zero respectively.  Clarify comment.
5996         * c-format.c (check_format_info_recurse): Fix host_integerp
5997         usage; the pos argument should be zero when assigning to a
5998         signed HOST_WIDE_INT.
5999
6000 2002-02-20  Richard Henderson  <rth@redhat.com>
6001
6002         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6003         of the operand, rather than assuming TImode.
6004         (ix86_expand_binop_builtin): Cope with commutative patterns
6005         using nonimmediate_operand for both operands.
6006         (ix86_expand_timode_binop_builtin): Likewise.
6007         (ix86_expand_store_builtin): Validate operand 1.
6008         (ix86_expand_unop1_builtin): Likewise.
6009
6010 2002-02-20  Philip Blundell  <philb@gnu.org>
6011
6012         PR 5705
6013         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6014
6015 2002-02-20  Richard Henderson  <rth@redhat.com>
6016
6017         PR c/5615
6018         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6019
6020 2002-02-20  Tom Tromey  <tromey@redhat.com>
6021
6022         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6023         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6024         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6025         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6026         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6027         unconditionally.
6028
6029 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6030
6031         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6032           for (const_int 0) in X not just INTVAL.
6033
6034 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6035
6036         * doc/extend.texi: Avoid or reduce overfull hboxes.
6037
6038 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
6039
6040         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6041         operations if the field does not start at a mode boundary.
6042
6043 2001-02-20      Joel Sherrill <joel@OARcorp.com>
6044
6045         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6046         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6047         Also done for -Acpu and -Amachine.
6048
6049 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6050
6051         * cppinit.c (init_dependency_output): Take deps output file
6052         from -o if none given with -MF.  Suppress normal output.
6053         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6054         * doc/cpp.texi, doc/invoke.texi: Update.
6055
6056 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
6057
6058         * toplev.c (output_quoted_string): Write unprintable
6059         characters with octal escapes.
6060
6061 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
6062
6063         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6064         really_call_used[VRSAVE_REGNO] if not Altivec.
6065
6066 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
6067
6068         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6069         MODE_MASK.
6070         (constant_pool_expr_1): Fix formatting.
6071         (rs6000_legitimize_reload_address): Likewise.
6072
6073 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6074
6075         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6076         now that we have one.
6077
6078 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
6079
6080         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
6081         end of first block of bitfields (which was only seven bits);
6082         rename dummy to unused_1; remove comment which is no longer true.
6083
6084 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
6085
6086         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6087
6088 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
6089
6090         PR 5399
6091         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6092         if generating PIC.
6093
6094         PR 5054
6095         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6096         arm_is_longcall_p rather than inspecting call-type cookie
6097         directly.
6098         (call_value_insn) [TARGET_THUMB]: Likewise.
6099
6100 2002-02-19  Graham Stott  <grahams@redhat.com>
6101
6102         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6103
6104 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
6105
6106         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6107         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6108         (FP_SAVE_INLINE): Delete.
6109
6110         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6111         * config/rs6000/eabi.asm: Remove ABI save restore routines.
6112         * config/rs6000/t-ppccomm: Build crtsavres.o.
6113         * config/rs6000/crtsavres.asm: New file.
6114
6115 2002-02-19  Philip Blundell  <philb@gnu.org>
6116
6117         * config/arm/arm.c (use_return_insn): Don't reject interrupt
6118         functions.
6119         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6120         (output_return_instruction): Allow interrupt functions to return with
6121         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
6122         (arm_expand_prologue): Subtract 4 before stacking LR in an
6123         interrupt function.
6124
6125 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
6126
6127         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6128         decl, not just FUNCTION_DECL.
6129         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6130         (arm_assemble_integer): Likewise.
6131         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6132         marked local.
6133
6134 2002-02-19  matthew green  <mrg@eterna.com.au>
6135
6136         * config.gcc (sparc-*-netbsdelf*): Enable target.
6137         (sparc64-*-netbsd*): New target.
6138         * config/sparc/netbsd-elf.h: New file.
6139         * config/sparc/t-netbsd64: New file.
6140
6141 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
6142
6143         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6144
6145 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
6146
6147         * doc/invoke.texi: explicitly list the style guidelines that
6148         -Weffc++ checks for.
6149
6150 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
6151
6152         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6153
6154 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6155
6156         PR other/5718
6157         * gcc.c (cpp_unique_options): Treat -o as indicating object file
6158         only if not -E.  If -E, pass -o through to the preprocessor.
6159
6160 2002-02-19  Kazu Hirata  <kazu@hxi.com>
6161
6162         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6163         register number with an appropriate macro.
6164
6165 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
6166
6167         * doc/rtl.texi (Constants): Close @code tag.
6168
6169 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
6170
6171         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6172         ("mmx_uavgv4hi3"): Same.
6173         ("pmulhrwv4hi3"): Same.
6174
6175         * tree-inline.c (walk_tree): Handle vectors.
6176
6177         * c-common.c (constant_expression_warning): Handle vectors.
6178         (overflow_warning): Same.
6179
6180         * sched-deps.c (sched_analyze_2): Handle vectors.
6181
6182         * rtlanal.c (rtx_unstable_p): Handle vectors.
6183         (rtx_varies_p): Same.
6184         (count_occurrences): Same.
6185         (regs_set_between_p): Same.
6186         (modified_between_p): Same.
6187         (modified_in_p): Same.
6188         (volatile_insn_p): Same.
6189         (volatile_refs_p): Same.
6190         (side_effects_p): Same.
6191         (may_trap_p): Same.
6192         (inequality_comparisons_p): Same.
6193         (replace_regs): Same.
6194         (computed_jump_p_1): Same.
6195
6196         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6197         argument.
6198         (inner_mode_array): New.
6199         (copy_rtx): Handle vectors.
6200         (copy_most_rtx): Same.
6201         (rtx_equal_p): Same.
6202         (get_mode_alignment): Adjust for vectors.
6203
6204         * resource.c (mark_referenced_resources): Handle vectors.
6205         (mark_set_resources): Same.
6206
6207         * reload1.c (eliminate_regs): Handle vectors.
6208         (elimination_effects): Same.
6209         (scan_paradoxical_subregs): Same.
6210
6211         * reload.c (subst_reg_equivs): Handle vectors.
6212
6213         * regrename.c (scan_rtx): Handle vectors.
6214
6215         * regclass.c (reg_scan_mark_refs): Handle vectors.
6216
6217         * recog.c (find_single_use_1): Handle vectors.
6218
6219         * local-alloc.c (equiv_init_varies_p): Handle vectors.
6220         (contains_replace_regs): Same.
6221         (memref_referenced_p): Same.
6222
6223         * integrate.c (copy_rtx_and_substitute): Handle vectors.
6224         (subst_constants): Same.
6225
6226         * genattrtab.c (attr_copy_rtx): Handle vectors.
6227         (encode_units_mask): Same.
6228         (clear_struct_flag): Same.
6229         (count_sub_rtxs): Same.
6230
6231         * gcse.c (want_to_gcse_p): Handle vectors.
6232         (oprs_unchanged_p): Same.
6233         (hash_expr_1): Same.
6234         (oprs_not_set_p): Same.
6235         (expr_killed_p): Same.
6236         (compute_transp): Same.
6237         (store_ops_ok): Same.
6238
6239         * function.c (purge_addressof_1): Do not allow paradoxical subregs
6240         of vectors.
6241         (fixup_var_refs_1): Same.
6242         (instantiate_virtual_regs_1): Same.
6243
6244         * fold-const.c (operand_equal_p): Handle vectors.
6245         (fold): Same.
6246         (rtl_expr_nonnegative_p): Same.
6247
6248         * flow.c (mark_used_regs): Handle vectors.
6249
6250         * df.c (df_uses_record): Handle vectors.
6251
6252         * cselib.c (cselib_subst_to_values): Handle vectors.
6253         (cselib_mem_conflict_p): Same.
6254         (hash_rtx): Same.
6255
6256         * cse.c (canon_reg): Handle vectors.
6257         (fold_rt): Same.
6258         (cse_process_notes): Same.
6259         (count_reg_usage): Same.
6260         (canon_hash): Same.
6261
6262         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6263
6264         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6265
6266         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6267         (gen_rtx): Handle CONST_VECTOR.
6268         (gen_const_vector_0): New.
6269         (copy_rtx_if_shared): CONST_VECTORs can be shared.
6270         (reset_used_flags): Same.
6271         (copy_insn_1): Same.
6272         (initializer_constant_valid_p): Handle VECTOR_CST.
6273
6274         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6275
6276         * doc/rtl.texi (Constants): Document const_vector.
6277         (CONST0_RTX): Update for vectors.
6278         (RTL sharing): Same.
6279
6280         * print-tree.c (print_node): Add case for VECTOR_CST.
6281
6282         * tree.h (TREE_VECTOR_CST_ELTS): New.
6283         (struct tree_vector): New.
6284         (union tree_node): Add vector node.
6285         (build_vector): Add prototype.
6286
6287         * tree.def (VECTOR_CST): New.
6288
6289         * tree.c (build_vector): New.
6290
6291         * expmed.c (make_tree): Handle CONST_VECTOR.
6292
6293         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6294         (CONST_VECTOR_ELT): New.
6295         (CONST_VECTOR_NUNITS): New.
6296
6297         * machmode.h (GET_MODE_INNER): New.
6298         (DEF_MACHMODE): Accept 8th arg.
6299
6300         * machmode.def: Add 8th argument for vector inner mode.
6301         Add inner vector modes for vectors.
6302
6303         * rtl.def (VEC_CONST): Remove.
6304         (CONST_VECTOR): New.
6305
6306         * expr.c (clear_storage): Allow vectors.
6307         (is_zeros_p): Handle VECTOR_CST.
6308
6309         * varasm.c (output_constant_pool): Handle vectors.
6310         (rtx_const): Add veclo and vechi fields.
6311         (kind): Add RTX_VECTOR.
6312         (decode_rtx_const): Add case for vector.
6313
6314         * config/rs6000/rs6000-protos.h: Add zero_constant.
6315
6316         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6317         constants.  Force easy vector constants into memory.
6318         (easy_vector_constant): New.
6319         (emit_easy_vector_constant): New.
6320         (rs6000_legitimize_reload_address): Do not generate bad reloads on
6321         darwin.
6322
6323         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6324         instruction does.
6325         ("altivec_lvxl"): Same.
6326         (altivec_lvebx): Same.
6327         (altivec_lvehx): Same.
6328         (altivec_lvewx): Same.
6329         ("*movv4si_const0"): New.
6330         ("*movv4sf_const0"): New.
6331         ("*movv8hi_const0"): New.
6332         ("*movv16qi_const0"): New.
6333
6334 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6335
6336         * config/h8300/h8300.c (notice_update_cc): Use
6337         cc_status.value2.
6338
6339 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6340
6341         * config/h8300/h8300.md (divmod patterns): Change the
6342         constraints for operands[1] to register_operand.
6343
6344 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6345
6346         * config/h8300/h8300-protos.h: Remove the prototype for
6347         p_operand.
6348         * config/h8300/h8300.c (p_operand): Remove.
6349         * config/h8300/h8300.md: Replace p_operand with
6350         const_int_operand.
6351
6352 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6353
6354         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6355         comment.
6356         (output_return_instruction): Allow use of LDR to unstack
6357         return addresss even for interrupt handlers or when
6358         interworking.  If compiling for ARMv5, use interworking-safe
6359         return instructions by default.  Remove duplicated code and
6360         lengthy "strcat" sequences.
6361
6362 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6363
6364         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6365         (LINK_EH_SPEC): Define.
6366         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6367
6368 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
6369
6370         * config/s390/s390.c (s390_emit_prologue): Do not set the
6371         frame_related flag for call-clobbered registers.
6372
6373 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6374
6375         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6376         (construct_container): Fix handling of SSE operands.
6377         (ix86_expand_builtin): Fix handling of 64bit pointers.
6378         (mmx_maskmovq_rex): New pattern.
6379
6380 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
6381
6382         * regrename.c (kill_set_value): Handle subregs properly.
6383
6384 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
6385
6386         * objc/objc-act.c (handle_impent): Remove leading '*'
6387         from objc_class_name.
6388
6389 2002-02-17  Richard Henderson  <rth@redhat.com>
6390
6391         * config/alpha/alpha.c (some_small_symbolic_operand,
6392         some_small_symbolic_operand_1, split_small_symbolic_operand,
6393         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6394         Handle small SYMBOL_REFs anywhere, not just inside memories.
6395         * config/alpha/alpha-protos.h: Update.
6396         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6397         * config/alpha/alpha.md (small symbolic operand splitter): Update.
6398
6399 2002-02-17  Roland McGrath  <roland@frob.com>
6400
6401         * config.gcc (powerpc-*-gnu-gnualtivec*,
6402         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6403         * config/rs6000/gnu.h: New file.
6404         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6405         Grok "gnu" in rs6000_abi_name.
6406         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6407         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6408         Grok -mcall-gnu analogous to -mcall-linux et al.
6409         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6410         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6411         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6412
6413 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
6414
6415         PR c/3444:
6416         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6417         shortening.
6418
6419 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6420
6421         * config/cris/cris.h: Undefine STARTFILE_SPEC and
6422         ENDFILE_SPEC before (re)defining them.
6423
6424 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6425
6426         * config/h8300/h8300.c: Fix formatting.
6427         * config/h8300/h8300.h: Likewise.
6428
6429 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6430
6431         * doc/tm.texi: Explain why empty strings should not be
6432         marked for translation.
6433
6434 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6435
6436         * final.c (output_operand_lossage): Changed to accept
6437         printf style arguments. Change calls where necessary.
6438         * output.h (output_operand_lossage): Change declaration
6439         accordingly. Update copyright.
6440         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6441         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6442         Update copyright date where necessary.
6443
6444         * config/i386/i386.c (print_operand): Likewise. Remove use of
6445         sprintf.
6446
6447         * config/cris/cris.c (cris_operand_lossage): Likewise.
6448         Rename parameter so that exgettext recognizes it as
6449         translatable message.
6450         (LOSE_AND_RETURN): Rename parameter to msgid.
6451
6452 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6453
6454         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6455         hard coded register number with an appropriate macro.
6456         (HARD_REGNO_MODE_OK): Likewise.
6457         (ARG_POINTER_REGNUM): Likewise.
6458         (STATIC_CHAIN_REGNUM): Likewise.
6459         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6460         * config/h8300/h8300.md (define_constants): Define more
6461         register numbers.
6462
6463 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6464
6465         * config/i386/i386.h: Don't mark empty strings for translation.
6466
6467 2002-02-16  H.J. Lu <hjl@gnu.org>
6468
6469         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6470
6471 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6472
6473         * cppinit.c (merge_include_chains): Check for brack being
6474         NULL before attempting to merge it with qtail.
6475
6476 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6477
6478         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6479         DBX_DEBUG.
6480
6481 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6482
6483         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6484
6485 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6486
6487         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6488         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6489         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6490
6491 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6492
6493         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6494         now only if !TARGET_FIX.
6495         (*movsi_nt_vms_fix): New pattern.
6496
6497 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6498
6499         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6500         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6501         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6502         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6503         (alpha_start_function, alpha_expand_epilogue): Likewise.
6504         (unicosmk_gen_dsib): Likewise.
6505
6506 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6507
6508         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6509
6510 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6511
6512         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6513         check_and_change_labels, s390_final_chunkify): Delete.
6514         (s390_split_branches, s390_chunkify_pool): New functions.
6515         (s390_function_prologue): Call them.
6516
6517         * config/s390/s390.h (S390_REL_MAX): Delete.
6518         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6519
6520         * config/s390/s390.md (cjump, icjump, jump): Fix length
6521         attribute calculation.
6522
6523
6524 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6525
6526         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6527         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6528
6529 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6530
6531         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6532         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6533         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6534
6535 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6536
6537         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6538
6539 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6540
6541         * reload.c (find_dummy_reload): Check that an output register
6542         is valid for its mode.
6543
6544 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6545
6546         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6547         to simplify it.
6548
6549         * function.c (assign_parms): Demote promoted argument passed by
6550         transparent reference.
6551
6552 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6553
6554         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6555         -Acpu() and -Amachine() to eliminate warnings.
6556
6557 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6558
6559         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6560
6561 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6562
6563         * config/h8300/h8300-protos.h: Update the prototype for
6564         const_costs.
6565         * config/h8300/h8300.c (const_costs): Treat SET as a little
6566         more expensive operation.
6567         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6568         reference to const_costs.
6569
6570 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6571
6572         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6573
6574 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6575
6576         PR c/5503:
6577         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6578         use arguments from newtype.
6579
6580 2002-02-13  Eric Christopher  <echristo@redhat.com>
6581
6582         * config/mips/mips.c (override_options): Add check for march/mipsX
6583         on the same command line. Fix error message in cpu processing.
6584         Remove architecture and ISA checks.
6585
6586 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6587
6588         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6589
6590         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6591
6592 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6593
6594         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6595         alternatives.
6596         ("*movv8hi_internal1"): Same.
6597         ("*movv16qi_internal1"): Same.
6598         ("*movv4sf_internal1"): Same.
6599
6600         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6601         not push_reload for altivec modes.
6602
6603 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6604
6605         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6606         all RTEMS targets including removal of #includes from config/*/rtems*.h
6607         file and adding them to tm_file setting. Added xm_defines=POSIX to
6608         many targets.
6609         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6610         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6611         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6612         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6613         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6614         config/m68k/rtemself.h: Ditto.
6615         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6616         config/mips/rtems64.h: Ditto.
6617         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6618         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6619         Ditto.
6620         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6621         config/sparc/rtemself.h: Ditto.
6622         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6623         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6624         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6625         more like arm-elf.
6626         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6627         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6628         target made more similar to i386-elf.
6629         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6630         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6631         be similar to config/m68k/t-m68kelf.
6632         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6633
6634 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6635
6636         * regmove.c (kill_value): Handle subregs.
6637
6638 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6639
6640         * i386.md (mul patterns): Allow memory operand to be first;
6641         add expanders where needed; fix constraints.
6642         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6643         Allow memory operand to be the first.
6644
6645         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6646         operands.
6647
6648 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6649
6650         PR c/5681:
6651         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6652         GET_MODE (x).
6653
6654 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6655
6656         PR optimization/5547:
6657         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6658         all valid IA-32 address modes involving non-scaled %ebx and
6659         GOT/GOTOFF as displacement.
6660
6661 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6662
6663         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6664         after emitting ltorg insns.
6665
6666         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6667         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6668         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6669         *abssf2): Fix "op_type" attribute.
6670
6671 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6672
6673         * mkconfig.sh: Avoid using a subshell redirect.
6674         ($output.T): Change to $(output)T.
6675         (ENABLE_NLS): Remove unneeded undef.
6676
6677         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6678         * config/alpha/x-vms (libsubdir): Define.
6679
6680         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6681         register frame procedures. Optimize retrieving context.
6682
6683         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6684         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6685         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6686
6687 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6688
6689         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6690         Make same change as for find_base_value.
6691
6692 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6693
6694         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6695         of QImode and SImode.
6696
6697 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6698
6699         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6700         length computation of movsi.
6701         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6702
6703 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6704
6705         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6706         operands[2] to register_operand.
6707
6708 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6709
6710         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6711
6712 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6713
6714         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6715         for altivec_lvx* and altivec_stvx*.
6716         ("*movv4si_internal"): Add constraint for loading from GPRs.
6717         ("*movv8hi_internal1"): Same.
6718         ("*movv16qi_internal1"): Same.
6719         ("*movv4sf_internal1"): Same.
6720
6721         * config/rs6000/rs6000.c (altivec_register_operand): New.
6722
6723         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6724         altivec_register_operand.
6725
6726 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6727
6728         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6729         handle SYMBOL_REF.
6730
6731 2002-02-13  Stan Shebs  <shebs@apple.com>
6732
6733         * c-typeck.c (digest_init): Handle vectors.
6734         (really_start_incremental_init): Same.
6735         (pop_init_level): Same.
6736         (process_init_element): Same.
6737
6738         * varasm.c (output_constant): Same.
6739
6740         * expr.c (clear_storage): Same.
6741         (store_constructor): Same.
6742
6743 2002-02-12  Eric Christopher  <echristo@redhat.com>
6744
6745         * explow.c (hard_function_value): Add comment explaining
6746         signed/unsigned comparison.
6747
6748 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6749
6750         * jump.c (never_reached_warning): Add finish argument.
6751         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6752         real insn after end.
6753         * rtl.h (never_reached_warning): Adjust prototype.
6754         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6755         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6756         never_reached_warning.
6757
6758 2002-02-12  Graham Stott  <grahams@redhat.com>
6759
6760         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6761
6762 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6763
6764         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6765         logical shifts on H8/300.
6766         (shift_alg_si): Improve several shifts on H8/300.
6767         (get_shift_alg): Likewise.
6768
6769 2002-02-12  Graham Stott  <grahams@redhat.com>
6770
6771         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6772
6773 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6774
6775         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6776         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6777
6778 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6779
6780         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6781         non-CONST_INT through default_assemble_integer.
6782         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6783         <case 8>: Abort for CONST_DOUBLE.
6784
6785 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6786
6787         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6788         is specified.
6789         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6790         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6791
6792 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6793
6794         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6795
6796 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6797
6798         * regrename.c (regrename_optimize): Don't accept a
6799         part-clobbered register if the replaced register is not part
6800         clobbered.
6801
6802         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6803         take padding into account when computing the argument value.
6804
6805         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6806
6807         * combine.c (try_combine): Apply substitutions in
6808         CALL_INSN_FUNCTION_USAGE too.
6809
6810 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6811
6812         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6813         __builtin_altivec_abs*.
6814         (bdesc_abs): New.
6815
6816         * config/rs6000/rs6000.h (rs6000_builtins): Add
6817         ALTIVEC_BUILTIN_ABS*.
6818
6819         * config/rs6000/altivec.h: Use const char for builtins expecting
6820         literals.
6821         (vec_abs): New versions for C and C++.
6822         (vec_abss): Same.
6823
6824 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6825
6826         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6827         using Pmode.
6828
6829 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6830
6831         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6832         constant definition from h8300.md.
6833         (FRAME_POINTER_REGNUM): Likewise.
6834         * config/h8300/h8300.md (define_constants): Add FP_REG.
6835
6836 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6837
6838         * config/h8300/h8300.c (print_operand): Remove redundant code.
6839
6840 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6841
6842         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6843         * config/h8300/h8300.c (byte_reg): Make it static.
6844
6845 2002-02-10  Richard Henderson  <rth@redhat.com>
6846
6847         PR c/5623
6848         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6849
6850 2002-02-10  Richard Henderson  <rth@redhat.com>
6851
6852         PR c++/5624
6853         * tree.c (append_random_chars): Don't abort if main_input_filename
6854         does not exist.
6855
6856 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6857
6858         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6859
6860 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6861
6862         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6863         (pushhi1): Likewise.
6864
6865 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6866
6867         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6868         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6869
6870 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6871
6872         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6873         remove MASK_VIS.
6874         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6875
6876 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6877
6878         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6879         a half of an SImode register on H8/300.
6880
6881 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6882
6883         * i386.md (movdi_2): Add missing '!'.
6884
6885 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6886
6887         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6888         definitions.
6889
6890 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6891
6892         * config/h8300/h8300.md (length): Correct the distance valid
6893         for the short branch.
6894
6895 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6896
6897         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6898
6899 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6900
6901         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6902         registers in SImode.
6903         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6904         part-clobbered.
6905
6906         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6907         patch.
6908
6909         Contribute sh64-elf.
6910         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6911         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6912         (sh_cannot_modify_jumps_p): New function.
6913         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6914         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6915         (sh_ms_bitfield_layout_p): New function.
6916         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6917                     Zack Weinberg  <zack@codesourcery.com>
6918         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6919         expand_simple_binop instead of expand_binop.
6920         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6921         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6922         use of .quad and .uaquad.
6923         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6924         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6925         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6926         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6927         movdi_const_16bit): Make sure all CONSTs have modes.
6928         (sym2PIC): Ditto, but by adjusting all callers.
6929         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6930         if the prologue calls the SHmedia argument decoder or register
6931         saver.
6932         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6933         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6934         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6935         (sh_expand_epilogue): Don't emit USE of return target register.
6936         (prepare_move_operands): Legitimize DImode PIC addresses.
6937         (sh_media_register_for_return): Skip tr0, used to initialize the
6938         PIC register.
6939         (sh_expand_prologue): Remove explicit USE of return register.
6940         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6941         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6942         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6943         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6944         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6945         EXTRA_CONSTRAINT_T.
6946         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6947         (MOVI_SHORI_BASE_OPERAND_P): New.
6948         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6949         (EXTRA_CONSTRAINT_T): Define in terms of them.
6950         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6951         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6952         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6953         alternatives supporting TARGET_REGS.
6954         (UNSPEC_GOTPLT): New constant.
6955         (movdi split): Move incrementing of LABEL_NUSES...
6956         (movdi_const, movdi_const_32bit): Here.  Use
6957         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6958         (movdi_const_16bit): New.
6959         (call, call_value) [flag_pic]: Use GOTPLT.
6960         (call_pop, call_value_pop): New expands.
6961         (call_pop_compact, call_pop_rettramp): New insns.
6962         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6963         (sibcall) [flag_pic]: Use GOT.
6964         (builtint_setjmp_receiver): Remove bogus, unused expand.
6965         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6966         (*pt, *ptb, ptrel): New insns.
6967         (sym2GOT): Handle DImode GOT.
6968         (sym2GOTPLT, symGOTPLT2reg): New expands.
6969         (sym2PIC): New expand.
6970         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6971         (shcompact_return_tramp_i): Use return register explicitly.
6972         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6973         disable flag_reorder_blocks.
6974         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6975         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6976         clobbers, for clarity.
6977         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6978         restoring of r0 in macl as MAYBE_DEAD.
6979         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6980         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6981         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6982         alter_subreg all over.
6983         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6984         reload, instead of emitting instructions that would require
6985         reloading.
6986         (casesi_load_media): Add missing modes.
6987         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6988         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6989         as used if the argument decoder is called.
6990         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6991         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6992         Pmode, then extend it to DImode if necessary.
6993         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6994         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6995         constants in FPU-enabled SHmedia, let them be loaded from memory.
6996         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6997         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6998         Adjust whitespace in assembly output templates.
6999         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7000         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7001         mode of if_then_else.
7002         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
7003         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7004         sh.h.
7005         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
7006                     Joern Rennecke <amylaar@redhat.com>
7007         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7008         (SUBTARGET_CPP_PTR_SPEC): New.
7009         (SUBTARGET_CPP_SPEC): Remove.
7010         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7011         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7012         Fix typo in previous checkin.
7013         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
7014         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7015         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
7016                     Alexandre Oliva  <aoliva@redhat.com>
7017         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7018         what single FP register can hold for SHmedia target.
7019         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7020                     Alexandre Oliva  <aoliva@redhat.com>
7021         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7022         Do not split into SUBREG.
7023         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
7024         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7025         and added new functions as specified in SH5 ABI r9.
7026         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
7027         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7028         8-byte boundary.
7029         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
7030         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7031         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
7032         and consttable_window_ends.
7033         2001-06-03  Graham Stott  <grahams@redhat,com>
7034         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7035         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
7036         * config/sh/sh.c (print_operand): Handle floating-point pair,
7037         vector and matrix registers.
7038         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7039         vector modes into account.
7040         * config/sh/sh.md (movv2sf): Split move between registers into
7041         movdf.
7042         (movv4sf, movv16sf): Introduce insns that get split only after
7043         reload.
7044         * config/sh/shmedia.h: Fix Copyright dates.
7045         * config/sh/ushmedia.h: Likewise.  Move loop counter
7046         declarations into conditionals that uses them.
7047         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7048         loop boundary.
7049         * config/sh/sshmedia.h: Fix Copyright dates.
7050         (sh_media_PUTCFG): Fix constraints.
7051         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
7052         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7053         ptrmemfunc_vbit_in_delta for SH5.
7054         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
7055         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7056         * invoke.texi: Likewise.
7057         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
7058         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7059         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7060         GCC_pop_shmedia_regs_nofpu): New global symbols.
7061         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7062         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7063         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7064         compact function with nonlocal labels.
7065         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7066         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7067         (initial_elimination_offset): Account for their stack space.
7068         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7069         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7070         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7071         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7072         least one of the operands to be a register.
7073         (movv2sf): Likewise.  Renamed to movv2sf_i.
7074         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7075         prepare_move_operands() before emitting SHmedia insns.
7076         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
7077         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7078         Don't save nor initialize r12.  Don't mis-align the stack.
7079         Pad the code with a nop.
7080         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
7081         stack.
7082         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
7083         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7084         [__SHMEDIA__]: Implement.
7085         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
7086         * config/sh/sh.md: Set latency of `pt' closer to reality.
7087         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7088         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7089         Set move, load and store type attributes.
7090         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7091         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7092         profiling.
7093         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7094         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7095         * config/sh/sh.c (sh_media_register_for_return): New function.
7096         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7097         branch-target register.
7098         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7099         * config/sh/sh.md (return_media_i): Use any call-clobbered
7100         branch-target register.
7101         (return_media): If r18 wasn't copied in the prologue, copy it
7102         here.
7103         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7104         Clear class FP0_REGS.
7105         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7106         from elf.h.
7107         2001-03-08  DJ Delorie  <dj@redhat.com>
7108         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7109         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
7110         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7111         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
7112         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7113         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
7114         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7115         return value correctly for call_cookie.
7116         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
7117         * config/sh/crt1.asm (start): Modified so as to call
7118         ___setup_argv_and_call_main.
7119         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
7120         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7121         SHmedia mode.
7122         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
7123         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7124         (STRIP_NAME_ENCODING): Use it.
7125         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
7126         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
7127         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7128         prepare_scc_operands().
7129         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7130         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7131         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
7132         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7133         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
7134         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7135         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7136         used in shcompact_incoming_args.
7137         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7138         change.
7139         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7140         mode.
7141         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7142         Adjust accordingly.
7143         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7144         Simplify.  Adjust.  Add sanity check.
7145         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7146         FPU_SINGLE_BIT.
7147         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7148         TARGET_SHCOMPACT.
7149         (udivsi3, divsi3): Use them.
7150         (force_mode_for_call): New insn.
7151         (call, call_value, sibcall_value): Emit it before SHcompact
7152         calls.
7153         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
7154         * config/sh/sh.md (call, call_value, sibcall): Make sure the
7155         call cookie is non-NULL before taking its value.
7156         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
7157         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7158         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
7159         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7160         block.
7161         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7162         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7163         temporary for stack adjusts.  Use MACL and MACH to pass
7164         arguments to shcompact_incoming_args.
7165         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
7166         clobber r1.
7167         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7168         (nested_trampoline): Load static chain address into r1.
7169         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7170         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
7171         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7172         fp_arith_reg_operand().
7173         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
7174         * config/sh/sh.md (casesi): Sign-extend the first two operands,
7175         and use signed compares for them.
7176         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7177         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
7178         ones properly aligned.
7179         (find_barrier): Account for extra alignment needed for 8-byte wide
7180         constants.
7181         (machine_dependent_reorg): Require a label for the second 4-byte
7182         constant after an 8-byte one.
7183         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7184         change.
7185         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
7186         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7187         last_float when switching float modes.
7188         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7189         auto-increment for general-purpose registers.
7190         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7191         result.
7192         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7193         for stack adjust.
7194         * config/sh/sh.c (sh_builtin_saveregs): Support using all
7195         registers for varargs.
7196         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
7197         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7198         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7199         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7200         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7201         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
7202         call_cookie accordingly.
7203         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7204         (SHCOMPACT_BYREF): Likewise.
7205         (SHCOMPACT_FORCE_ON_STACK): New macro.
7206         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7207         (sh_builtin_saveregs): Likewise.
7208         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7209         shcompact_incoming_args): Use new shift values.  Support
7210         sequences of consecutive and non-consecutive pushes/pops.
7211         * config/sh/sh.md (return): Don't explicitly use PR_REG.
7212         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
7213         * config/sh/sh.h (TEXT_SECTION): Define.
7214         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7215         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
7216         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7217         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7218         return values on FPU-enabled SHmedia.
7219         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7220         FPU-enabled SHmedia.
7221         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7222         value is returned in a non-FP reg and is not returned by
7223         reference.
7224         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7225         jump_ind.
7226         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
7227         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7228         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7229         quad-aligned to be passed by callee-copy reference.
7230         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
7231         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7232         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7233         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
7234         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7235         copying low-numbered FP regs to r7 and r8.
7236         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7237         FP regs to general-purpose regs only if the copy was passed on the
7238         stack.
7239         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7240         copying FP reg to r9.
7241         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7242         copy FP regs to general-purpose regs only in outgoing calls.
7243         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7244         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
7245         HOST_WIDE_INT.
7246         * config/sh/sh.h (struct sh_args): Document all fields.
7247         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7248         passed partially on the stack should not consider making
7249         sibcalls.
7250         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7251         stack_regs only for incoming calls.  When passing FP args,
7252         make sure there are FP regs available before modifying
7253         call_cookie.
7254         (SHCOMPACT_BYREF): Pass double args in general-purpose
7255         registers by reference.
7256         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
7257         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7258         attempt to generate sibcalls if the caller got any arguments
7259         by reference.
7260         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7261         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7262         to 8-byte boundaries.
7263         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7264         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7265         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7266         stored in the stack.
7267         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7268         for the offsets to have the ISA bit set.
7269         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
7270         invocation.  Use beq instead of bgt to mark end of sequence of
7271         loads.
7272         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
7273         bgt to mark end of sequence of stores.
7274         * config/sh/sh.c (arith_operand): Don't check whether
7275         CONST_OK_FOR_J for now.
7276         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7277         instead of long for conversion.
7278         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
7279         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7280         before passing it to fprintf.
7281         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
7282         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7283         Call set_fpscr before reading/writing SR.
7284         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7285         Call set_fpscr.
7286         * config/sh/lib1funcs.asm: Add `.align 2' directives before
7287         SHmedia code.
7288         (FMOVD_WORKS): Define on SH5 with FPU.
7289         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
7290         setting.
7291         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7292         _fpscr_values.
7293         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
7294         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7295         address.
7296         (ia_main_table): Ditto.
7297         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
7298         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7299         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7300         the definitions from sh.h.
7301         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7302         TARGET_SH5.
7303         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7304         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7305         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7306         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
7307         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7308         Increment LABEL_NUSES.
7309
7310         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7311         TARGET_SH5.
7312         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7313         defined.
7314         * config/sh/elf.h (SIZE_TYPE): Likewise.
7315         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7316         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7317         shcompact_incoming_args): Load switch table addresses using
7318         datalabel.
7319         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7320         (NO_BUILTIN_SIZE_TYPE): Define.
7321         (SIZE_TYPE): Don't define.
7322         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7323         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7324         definition of __SH5__=32 for -m5-compact-nofpu.
7325         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7326         ADDR_DIFF_VEC.
7327         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
7328         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7329         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
7330         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7331         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7332         (INSN_LENGTH_ALIGNMENT): Likewise.
7333         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7334         * config/sh/sh.md (call, call_value, sibcall): Simplify
7335         copying of non-branch-target register.
7336         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7337         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
7338         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7339         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7340         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7341         floating-point values as structs.
7342         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7343         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7344         general-purpose register.
7345         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7346         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7347         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7348         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7349         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7350         (ENCODE_SECTION_INFO): Enclose variables and constants in
7351         DATALABEL unspecs.
7352         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7353         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7354         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7355         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7356         only for LABEL_REFs.  For SYMBOL_REFs, prepend
7357         SH_DATALABEL_ENCODING to the symbol name.
7358         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7359         convert_mode().
7360         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7361         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7362         UNSPEC_DATALABEL.
7363         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7364         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7365         (DATALABEL_REF_P): Don't require CONST.
7366         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7367         REL label.
7368         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
7369         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7370         right.
7371         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7372         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7373         Use shallow_copy_rtx and PUT_MODE to change the mode of
7374         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7375         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7376         on SHmedia using GENERAL_REGs.
7377         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7378         bltu_media_i): Fix reversion of conditions.
7379         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7380         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7381         * config/sh/sh.c (output_far_jump): Save r13 in macl.
7382         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
7383         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7384         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7385         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7386         (GCC_nested_trampoline): Likewise.
7387         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7388         * config/sh/sh.c (gen_datalabel_ref): Define.
7389         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7390         (INITIALIZE_TRAMPOLINE): Likewise.
7391         (TRAMPOLINE_ADJUST_ADDRESS): Define.
7392         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7393         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7394         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7395         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7396         (ic_invalidate): Adjust for SH5.
7397         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7398         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7399         _nested_trampoline.
7400         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
7401         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7402         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7403         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7404         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7405         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7406         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7407         * config/sh/sh.c (target_reg_operand): Match only target-branch
7408         registers and pseudos that aren't virtual registers.
7409         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7410         Copy operands that don't match target_reg_operand to pseudos.
7411         (call_media, call_value_media, sibcall_media): Use
7412         target_reg_operand instead of target_operand.
7413         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
7414         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7415         * config/sh/sh.c (target_reg_operand): Match hardware registers
7416         other than branch-target registers.
7417         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7418         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7419         (fpscr_values) [SH5 == 32]: Define.
7420         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7421         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7422         Handle function addresses coming in SUBREGs.
7423         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
7424         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7425         shcompact_return_trampoline): Use datalabel where appropriate.
7426         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
7427         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7428         general-purpose register to copy one branch-target register to
7429         another.
7430         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7431         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7432         SYMBOL_REFs with VOIDmode.
7433         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7434         bltu_media_i): New insns.
7435         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7436         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7437         (INIT_CUMULATIVE_ARGS): Likewise.
7438         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7439         * machmode.def (V16SFmode): New mode.
7440         * c-common.c (type_for_mode): Support V2SF and V16SF.
7441         * tree.c (build_common_tree_nodes_2): Likewise.
7442         * tree.h (tree_index): Likewise.
7443         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7444         callers.  Introduce CALL_POPS_ARGS.
7445         * tm.texi (CALL_POPS_ARGS): Document.
7446         * config/sh/crt1.asm: Implement in SHmedia mode.
7447         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7448         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7449         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7450         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7451         Implement divsi and udivsi in SHmedia mode.  Introduce
7452         SHcompact trampolines.
7453         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7454         only in SHmedia64.
7455         (regno_reg_class): Rewrite.
7456         (fp_reg_names): Remove.
7457         (sh_register_names, sh_additional_register_names): New.
7458         (print_operand): Added `u'.  Support SUBREGs in addresses.
7459         Add parentheses around shifted CONSTs.
7460         (output_file_start): Output .mode and .abi directives.
7461         (shiftcosts, addsubcosts, multcosts): Adjust.
7462         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7463         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7464         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7465         bytes, not registers.  Take into account the need for the
7466         SHcompact incoming args trampoline.  Adjust all callers.
7467         (sh_expand_prologue): Take stack_regs into account.  Call
7468         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7469         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7470         stack aligned as per SH5 ABI.
7471         (sh_builtin_saveregs): Support SH5 ABI.
7472         (sh_build_va_list, sh_va_start): Likewise.
7473         (initial_elimination_offset): Take alignment into account.
7474         Compute location of PR according to the SH5 stack frame.
7475         (arith_reg_operand): Reject branch-target registers.
7476         (shmedia_6bit_operand): New.
7477         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7478         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7479         (target_operand): New.
7480         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7481         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7482         SIBCALL_REGS for SHmedia.
7483         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7484         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7485         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7486         (TARGET_SWITCHES): New SH5 flags.
7487         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7488         VALID_REGISTER_P to disable unsupported registers.
7489         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7490         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7491         (FUNCTION_ARG_PADDING): Define.
7492         (FASTEST_ALIGNMENT): Adjust.
7493         (SH_REGISTER_NAMES_INITIALIZER): New.
7494         (sh_register_names): Declare.
7495         (DEBUG_REGISTER_NAMES): Define.
7496         (REGISTER_NAMES): Define based on sh_register_names.
7497         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7498         (sh_additional_register_names): Declare.
7499         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7500         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7501         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7502         (REGISTER_NATURAL_MODE): Define.
7503         (FIRST_PSEUDO_REGISTER): Adjust.
7504         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7505         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7506         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7507         (VECTOR_MODE_SUPPORTED_P): Define.
7508         (REG_CLASS_CONTENTS): Adjust.
7509         (SMALL_REGISTER_CLASSES): Adjust.
7510         (REG_ALLOC_ORDER): Adjust.
7511         (INDEX_REG_CLASS): Adjust.
7512         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7513         (CONST_OK_FOR_LETTER_P): Adjust.
7514         (PREFERRED_RELOAD_CLASS): Adjust.
7515         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7516         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7517         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7518         (FIRST_FP_PARM_REG): Adjust.
7519         (CALL_POPS_ARGS): Define.
7520         (FUNCTION_ARG_REGNO_P): Adjust.
7521         (struct sh_args): New fields.
7522         (GET_SH_ARG_CLASS): Adjust.
7523         (INIT_CUMULATIVE_ARGS): Adjust.
7524         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7525         (FUNCTION_ARG_ADVANCE): Adjust.
7526         (FUNCTION_ARG): Adjust.
7527         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7528         (FUNCTION_ARG_CALLEE_COPIES): Define.
7529         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7530         (STRICT_ARGUMENT_NAMING): Define.
7531         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7532         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7533         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7534         (SETUP_INCOMING_VARARGS): Adjust.
7535         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7536         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7537         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7538         (SUBREG_OK_FOR_INDEX_P): Adjust.
7539         (EXTRA_CONSTRAINT_S): Update.
7540         (EXTRA_CONSTRAINT_T): New.
7541         (EXTRA_CONSTRAINT): Adjust.
7542         (GO_IF_LEGITIMATE_INDEX): Adjust.
7543         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7544         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7545         (MOVE_MAX): Adjust.
7546         (MAX_MOVE_MAX): Define.
7547         (Pmode): Adjust.
7548         (CONST_COSTS): Adjust.
7549         (REGISTER_MOVE_COST): Adjust.
7550         (BRANCH_COST): Adjust.
7551         (TEXT_SECTION_ASM_OP): Adjust.
7552         (DBX_REGISTER_NUMBER): Adjust.
7553         (ASM_OUTPUT_DOUBLE_INT): New.
7554         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7555         (PREDICATE_CODES): Adjust.
7556         (PROMOTE_MODE): Adjust.
7557         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7558         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7559         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7560         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7561         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7562         (TR0_REG, TR1_REG, TR2_REG): New.
7563         (XD0_REG): Renumber.
7564         (UNSPEC_COMPACT_ARGS): New.
7565         (type): Added pt and ptabs.
7566         (length): Default to 4 on SHmedia.  Default pt length to 12
7567         and     20 on SHmedia32 and SHmedia64, respectively.
7568         (pt): New function unit.
7569         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7570         Add whitespace between operands of SHmedia instructions.
7571         (movdicc): Fix.
7572         (adddi3_media, addsi3_media): Adjust constraints.
7573         (subsi3) [SHmedia]: Force operand 1 into a register.
7574         (udivsi3_i1_media, udivsi3_i4_media): New.
7575         (udivsi3): Support SHmedia.
7576         (divsi3_i1_media, divsi3_i4_media): New.
7577         (divsi3): Support SHmedia.
7578         (anddi3, iordi3, xordi3): Adjust constraints.
7579         (zero_extendhidi2, zero_extendqidi2): New.
7580         (extendsidi2, extendhidi2, extendqidi2): New.
7581         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7582         (pop_e, pop_fpul, pop_4): Likewise.
7583         (movsi_media): Support FP and BT registers.
7584         (movsi_media_nofpu): New.  Adjust splits to DImode.
7585         (lduw, ldub): Renamed to zero_extend* above.
7586         (movqi_media): Fix typo.
7587         (movdi_media): Support FP and BT registers.
7588         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7589         (movdi_const_32bit): New.
7590         (shori_media): Require immediate operand.  Use `u' for output.
7591         (movdf_media, movsf_media): Simplified.
7592         (movdf_media_nofpu, movsf_media_nofpu): New.
7593         (movdf, movsf): Adjust
7594         (movv2sf, movv2sf, movv16sf): New.
7595         (beq_media, beq_media_i): Adjust constraints.  Don't use
7596         scratch BT register.
7597         (bne_media, bne_media_i): Likewise.
7598         (bgt_media, bgt_media_i): Likewise.
7599         (bge_media, bge_media_i): Likewise.
7600         (bgtu_media, bgtu_media_i): Likewise.
7601         (bgeu_media, bgeu_media_i): Likewise.
7602         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7603         bunordered): Emit jump insn.  Force operands to registers when
7604         needed.
7605         (jump_media, jump): Simplify.
7606         (call_compact, call_compact_rettramp): New.
7607         (call_value_compact, call_value_compact_rettramp): New.
7608         (call_media, call_value_media): Simplify.
7609         (sibcall_compact, sibcall_media): New.
7610         (call, call_value): Adjust for SHmedia and SHcompact.
7611         (sibcall, sibcall_value, untyped_call): Likewise.
7612         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7613         (indirect_jump): Adjust for SHmedia.
7614         (casesi_jump_media): New.
7615         (nop): Re-enable for SHmedia.
7616         (call_site): Restrict to SH1.
7617         (casesi): Adjust for SHmedia.
7618         (casesi_shift_media, casesi_load_media): New.
7619         (return): Explicitly use PR register.  Call return trampoline
7620         on SHcompact.
7621         (return_i): Explicitly use PR register.
7622         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7623         (return_media): Adjust.
7624         (shcompact_incoming_args): New.
7625         (epilogue): Adjust.
7626         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7627         (movstrsi): Disable on SH5.
7628         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7629         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7630         (subsf3, subsf3_media): Likewise.
7631         (mulsf3, mulsf3_media, mac_media): Likewise.
7632         (divsf3, divsf3_media): Likewise.
7633         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7634         (floatsisf2, fux_truncsfsi2): Likewise.
7635         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7636         constraints.
7637         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7638         (cmpunsf_media, cmpsf): Likewise.
7639         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7640         (abssf2, abssf2_media): Likewise.
7641         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7642         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7643         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7644         (floatsidf2, fix_truncdfsi2): Likewise.
7645         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7646         constraints.
7647         (cmpeqdf_media, cmpgtdf_media): Likewise.
7648         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7649         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7650         (absdf2, absdf2_media): Likewise.
7651         (extendsfdf2, extendsfdf2_media): Likewise.
7652         (truncsfdf2, truncsfdf2_media): Likewise.
7653         * config/sh/sh64.h: New file.
7654         * config/sh/t-sh64: New file.
7655         * config/sh/shmedia.h: New file.
7656         * config/sh/ushmedia.h: New file.
7657         * config/sh/sshmedia.h: New file.
7658         * configure.in: Added sh64-*-elf.
7659         * configure: Rebuilt.
7660         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7661         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7662         (reg_class_from_letter): Use `b' for TARGET_REGS.
7663         (print_operand): Support `%M', `%m', `AND' and
7664         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7665         (andcosts): Adjust for SHmedia.
7666         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7667         Likewise.
7668         (target_reg_operand): New function.
7669         * config/sh/sh-protos.h (target_reg_operand): Declare.
7670         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7671         FP registers on SH5.
7672         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7673         on SH4.
7674         (TARGET_REGISTER_P): New macro.
7675         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7676         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7677         (EXTRA_CONSTRAINT_S): New macro.
7678         (EXTRA_CONSTRAINT): Adjust.
7679         (FLOAT_TYPE_SIZE): Define to 32.
7680         (Pmode): DImode on SHmedia.
7681         (CONST_COSTS): Adjust for SHmedia literals.
7682         (PREDICATE_CODES): Added target_reg_operand.
7683         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7684         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7685         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7686         (cmpdi): Accept SHmedia.
7687         (movdicc_false, movdicc_true): New insns.
7688         (movdicc): New expand.
7689         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7690         no_new_pseudos.
7691         (addsi3_media): Match `S' constraint.
7692         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7693         (negdi2): Expand for SHmedia.
7694         (one_cmpldi2): New expand.
7695         (zero_extendsidi2): Change from expand to insn.
7696         (extendsidi2): Add constraints.
7697         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7698         LD/ST address.  Fix SI immediate loading split.
7699         (movhi_media, movqi_media, lduw, ldub): New insns.
7700         (movhi, movqi): Accept SHmedia.
7701         (shori_media, movdi_media): Relax input constraints.  Split
7702         symbolic constants.
7703         (movdf_media, movsf_media): New insn.  New split to movdi.
7704         (movdf, movsf): Match on SHmedia.
7705         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7706         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7707         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7708         (bunordered): New expand.
7709         (jump_compact): Renamed from `jump'.
7710         (jump_media): New insn.
7711         (jump): New expand.
7712         (call_media, call_value_media): New insns.
7713         (call, call_value): Adjust.
7714         (indirect_jump_compact): Renamed from `indirect_jump'.
7715         (indirect_jump_media): New insn.
7716         (indirect_jump): New expand.
7717         (untyped_call, return): Accept SHmedia.
7718         (return_media): New insn.
7719         (prologue, epilogue, blockage): Accept SHmedia.
7720         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7721         (sunordered): New expand.
7722         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7723         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7724         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7725         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7726         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7727         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7728         abssf2_media): New insns.
7729         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7730         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7731         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7732         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7733         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7734         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7735         absdf2_media): New insns.
7736         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7737         (extendsfdf2_media, truncdfsf2_media): New insns.
7738         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7739         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7740         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7741         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7742         * config/sh/sh.md (adddi3): New expand.
7743         (adddi3_media, adddi3z_media): New insns.
7744         (adddi3_compact): Renamed from adddi3.
7745         (addsi3_media): Use add.l r63 to add constant zero.
7746         (subdi3): New expand.
7747         (subdi3_media): New insn.
7748         (subdi3_compact): Renamed from subdi3.
7749         (mulsidi3): New expand.
7750         (mulsidi3_media): New insn.
7751         (mulsidi3_compact): Renamed from mulsidi3.
7752         (umulsidi3): New expand.
7753         (umulsidi3_media): New insn.
7754         (umulsidi3_compact): Renamed from umulsidi3.
7755         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7756         (ashlsi3, ashrsi3, lshrsi3): Use them.
7757         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7758         (ashldi3, ashrdi3, lshrdi3): Use them.
7759         (zero_extendsidi2): New expand.
7760         (extendsidi2): New insn.
7761         (movsi_media): New insn.  Split to movdi to load constants.
7762         (movsi): Enable for shmedia.
7763         (movdi_media): New insn.  Use shori_media to load wide constants.
7764         (short_media): New insn.
7765         (movdi): Enable for shmedia.
7766         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7767         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7768         (SUBTARGET_CPP_SPEC): Added `!m5'.
7769         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7770         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7771         to all other SH variants.
7772         (TARGET_DEFAULT): Set to SH1_BIT.
7773         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7774         (BITS_PER_WORD): Raise to 64 on shmedia.
7775         (MAX_BITS_PER_WORD): Change to 64.
7776         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7777         (INT_TYPE_SIZE): Keep as 32.
7778         (UNITS_PER_WORD): Raise to 8 on shmedia.
7779         (MIN_UNITS_PER_WORD): Keep as 4.
7780         (POINTER_SIZE): Raise to 64 on shmedia.
7781         (CONST_OK_FOR_J): New macro.
7782         (CONST_OK_FOR_LETTER_P): Use it.
7783         (processor_type): Add PROCESSOR_SH5.
7784         * config/sh/sh.md: Conditionalize all expands, insns and
7785         splits to TARGET_SH1.
7786         (cpu): Added sh5.
7787         (addsi3_compact): Renamed from...
7788         (addsi3): Now an expand.
7789         (addsi3_media, subsi3_media): New insns.
7790         (subsi3): Don't negate constants with SHmedia.
7791
7792         * hooks.c: New file.
7793         * hooks.h: New file.
7794         * Makefile.in (HOOKS_H): New.
7795         (TARGET_DEF_H): Added $(HOOKS_H).
7796         (OBJS): Added hooks.o.
7797         (cfgcleanup.o, bb-reorder.o): Added target.h.
7798         (hooks.o): Added dependencies.
7799         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7800         (TARGET_INITIALIZER): this.
7801         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7802         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7803         * bb-reorder.c: Include target.h.
7804         (reorder_basic_blocks): Skip if cannot modify jumps.
7805         * cfgcleanup.c: Include target.h.
7806         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7807
7808 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7809
7810         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7811         Protect jump delay slot instructions with .set noreorder and
7812         .set nomacro.
7813
7814 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7815
7816         * config/mips/mips.md (casesi_internal_di): Calculate
7817         the index into the target offset table correctly.
7818
7819 2002-02-08  Richard Henderson  <rth@redhat.com>
7820
7821         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7822         * final.c (output_addr_const): Accept and discard SUBREG.
7823         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7824         mark them unknown instead.
7825         (simplify_subtraction): Handle RTX_UNKNOWN.
7826         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7827
7828 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7829
7830         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7831
7832 2002-02-08  Richard Henderson  <rth@redhat.com>
7833
7834         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7835
7836 2002-02-08  Andreas Jaeger  <aj@suse.de>
7837
7838         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7839         * config/i386/t-linux64: New file.
7840
7841 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7842
7843         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7844         * c-parse.in (compstmt): Clear last_expr_type.
7845
7846 2002-02-07  Richard Henderson  <rth@redhat.com>
7847
7848         * loop.c (strength_reduce): Sink final_value when not
7849         eliminating a biv.
7850
7851 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7852
7853         * config/sparc/freebsd.h: Fix mismatched spec {.
7854
7855 2002-02-07  Richard Henderson  <rth@redhat.com>
7856
7857         * cfgrtl.c: Include recog.h and insn-config.h.
7858         (keep_with_call_p): Fix general_operand invocation.
7859         * Makefile.in (cfgrtl.o): Update dependencies.
7860
7861 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7862
7863         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7864         comment.  Accept HImode only if TARGET_H8300.
7865
7866 2002-02-07  Eric Christopher  <echristo@redhat.com>
7867
7868         * config/mips/crtn.asm: Cleanup #ifdefs.
7869
7870 2002-02-07  Eric Christopher  <echristo@redhat.com>
7871
7872         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7873         register 7 as RA instead of $31.
7874         * config/mips/crtn.asm: Ditto.
7875         * config/mips/mips.c (mips_move_2words): Add case for
7876         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7877         (compute_frame_size): Fix typo.
7878         (save_restore_insns): Ditto.  Make documentation about using
7879         register $7 as return register more precise.
7880         (mips_expand_epilogue): Fix comment. Add code to work around not
7881         being able to add to the stack pointer directly.
7882         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7883         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7884         epilogue.
7885
7886 2002-02-07  Tom Rix  <trix@redhat.com>
7887
7888         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7889         immediates in ldu and stdu DS opcode field.
7890         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7891         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7892         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7893
7894 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7895
7896         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7897         offset for stack bias.
7898
7899 2002-02-07  H.J. Lu <hjl@gnu.org>
7900
7901         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7902
7903 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7904
7905         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7906
7907 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7908
7909         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7910         * i386.c (x86_order_regs_for_local_alloc): New global function.
7911         * i386.h (REG_ALLOC_ORDER): CLeanup.
7912         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7913
7914 2002-02-07  Richard Henderson  <rth@redhat.com>
7915
7916         PR optimization/2463
7917         * alias.c (find_base_value): Recall base values for fixed hard regs.
7918         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7919
7920 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7921
7922         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7923         length.
7924
7925 2002-02-06  Richard Henderson  <rth@redhat.com>
7926
7927         PR c/5609
7928         * stmt.c (resolve_operand_name_1): Take more care with mixed
7929         named and unnamed operands.
7930
7931 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7932             Jan Hubicka  <jh@suse.cz>
7933
7934         * loop.c (remove_constant_addition): Avoid clobbering a shared
7935         CONST expression.
7936
7937 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7938
7939         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7940         * config/s390/t-linux64: New file.
7941         * config/s390/libgcc-glibc.ver: New file.
7942
7943 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7944
7945         * config/s390/linux64.h: Delete file.
7946         * config/s390/s390x.h: New file.
7947         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7948         as target header file.
7949         * config/s390/linux.h (TARGET_VERSION): Define depending on
7950         DEFAULT_TARGET_64BIT.
7951         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7952         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7953         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7954         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7955         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7956         (EXTRA_SPEC): New define.
7957         * config/s390/s390.h (TARGET_VERSION): Define depending on
7958         DEFAULT_TARGET_64BIT.
7959         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7960
7961 2002-02-06  Jason Merrill  <jason@redhat.com>
7962
7963         * c-decl.c (finish_function): Warn about a non-void function with
7964         no return statement and no abnormal exit.
7965         (current_function_returns_abnormally): New variable.
7966         (start_function): Clear it.
7967         (struct c_language_function): Add returns_abnormally.
7968         (push_c_function_context): Save it.
7969         (pop_c_function_context): Restore it.
7970         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7971         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7972         an explicit return type.
7973         * c-tree.h: Declare current_function_returns_abnormally.
7974         (C_FUNCTION_IMPLICIT_INT): New macro.
7975         * c-typeck.c (build_function_call): Set it.
7976         (c_expand_return): Set current_function_returns_value even if the
7977         value is erroneous.
7978
7979 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7980
7981         PR c/5420:
7982         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7983         unsafe for reevaluation.
7984
7985 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7986
7987         PR c/5482:
7988         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7989         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7990
7991 2002-02-06  Richard Henderson  <rth@redhat.com>
7992
7993         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7994         be a general_operand.  Dest for function value must be a pseudo.
7995
7996 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7997
7998         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7999         as SYMBOL_REFs from the constant pool.
8000
8001 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
8002
8003         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8004         passed by invisible reference.
8005
8006 2002-02-05  Richard Henderson  <rth@redhat.com>
8007
8008         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8009
8010 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
8011
8012         Implement using "base addresses" in insn operands as default.
8013         * config/mmix/mmix.c (mmix_conditional_register_usage): if
8014         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8015         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8016         used to read the rtx value.
8017         (mmix_target_asm_function_epilogue): Fix spacing.
8018         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8019         (mmix_legitimate_address): Ditto.
8020         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8021         should be loaded with a GETA insn.  Don't allocate needless extra
8022         char for nul termination and fix misleading comment.
8023         (mmix_print_operand_address): Handle constants if
8024         TARGET_BASE_ADDRESSES.
8025         (mmix_output_register_setting): Use base addressing if
8026         TARGET_BASE_ADDRESSES and the number of insns is 3.
8027         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8028         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8029         to use R as constraint, add LDA to match s.
8030         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8031         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8032         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8033         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8034         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8035         order with other fixed registers.
8036         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8037         other parameter/call-clobbered registers.
8038         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8039         -mbase-addresses, -mno-base-addresses.
8040         (MMIX Options): Ditto.
8041
8042 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8043
8044         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8045
8046 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
8047
8048         * config/rs6000/altivec.h: Change elem to _S_elem.
8049
8050 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
8051
8052         * config/netbsd.h (WCHAR_TYPE): Define.
8053         (WCHAR_TYPE_SIZE): Ditto.
8054         (WINT_TYPE): Ditto.
8055         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8056         (WCHAR_UNSIGNED): Ditto.
8057         (WCHAR_TYPE_SIZE): Ditto.
8058         (WINT_TYPE): Ditto.
8059         * config/arm/netbsd.h: Likewise.
8060         * config/i386/netbsd-elf.h: Likewise.
8061         * config/i386/netbsd.h: Likewise.
8062         * config/m68k/netbsd-elf.h: Likewise.
8063         * config/m68k/netbsd.h: Likewise.
8064         * config/ns32k/netbsd.h: Likewise.
8065         * config/sparc/netbsd.h: Likewise.
8066         * config/vax/netbsd.: Likewise.
8067
8068 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8069
8070         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8071         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
8072         (TARGET_INITIALIZER): this.
8073         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8074         (BITFIELD_NBYTES_LIMITED): Markup fix.
8075         * tree.h (default_ms_bitfield_layout_p): Declare.
8076         (record_layout_info): Added prev_field.
8077         * tree.c (default_ms_bitfield_layout_p): New fn.
8078         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8079         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8080         * stor-layout.c: Include target.h.
8081         (start_record_layout): Initialize prev_field.
8082         (place_field): Handle MS bit-field layout, and disregard
8083         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8084         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
8085         * Makefile.in (stor-layout.o): Adjust dependencies.
8086
8087 2002-02-05  Jason Merrill  <jason@redhat.com>
8088
8089         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8090
8091 2002-02-05  Andreas Jaeger  <aj@suse.de>
8092
8093         * crtstuff.c: Fix comments.
8094
8095 2002-02-05  Richard Henderson  <rth@redhat.com>
8096
8097         PR fortran/3393
8098         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8099         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8100
8101         PR fortran/3392
8102         * config/mips/mips.c (function_arg): Handle TImode.
8103         (function_arg_advance): Likewise.
8104
8105 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8106
8107         * config/rs6000/altivec.h (vec_step_help): Rename to
8108         __vec_step_help.
8109
8110 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8111
8112         * config/rs6000/altivec.h: Fix typos.
8113
8114 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
8115
8116         * config/arm/netbsd.h: Correct a comment.
8117
8118 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8119
8120         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8121         building void typed builtins.
8122
8123         * config/rs6000/altivec.h (vec_ld*): Fix typos.
8124         (vec_step): Implement for C++.
8125
8126 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8127
8128         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8129
8130 2002-02-04  Richard Henderson  <rth@redhat.com>
8131
8132         * combine.c (nonzero_bits): Re-introduce special case for
8133         sp/fp/ap wrt REGNO_POINTER_ALIGN.
8134
8135 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8136
8137         * doc/extend.texi: Warn about unsupported usage of altivec
8138         builtins.
8139
8140         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8141         (altivec_predicate_*): New.
8142
8143         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8144         Add C++ version of vec_*() functions.
8145
8146         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8147         (bdesc_2arg): Remove altivec predicates.
8148         (altivec_expand_builtin): Handle predicates.
8149         (altivec_init_builtins): Handle predicates.
8150         (altivec_expand_predicate_builtin): New.
8151
8152 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8153
8154         * pa.c (DO_FRAME_NOTES): Move forward.
8155         (store_reg): Revise handling of frame notes.
8156         (load_reg): Likewise.
8157         (set_reg_plus_d): Likewise.
8158         (hppa_expand_prologue): Likewise.
8159         (hppa_expand_epilogue): Likewise.
8160
8161 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8162
8163         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8164
8165 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8166
8167         PR c/4475, c++/3780:
8168         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8169         * c-common.h (SWITCH_TYPE): Define.
8170         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8171         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8172         Rename spareness variable to sparseness.
8173         (expand_end_case_type): Renamed from expand_end_case, use orig_type
8174         if non-NULL instead of TREE_TYPE (orig_index).
8175         * tree.h (expand_end_case_type): Renamed from expand_end_case.
8176         (expand_end_case): Define using expand_end_case_type.
8177         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8178         to expand_end_case_type.
8179         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8180
8181 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8182
8183         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8184         (BIGGEST_ALIGNMENT): Change to 128.
8185
8186 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8187
8188         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8189
8190 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8191
8192         * pa.md (call_internal_reg_64bit): Remove unused variable.
8193
8194 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
8195
8196         * config/arm/arm.h (machine_function): Add uses_anonymous_args
8197         field.
8198         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8199         * config/arm/arm.c (current_function_anonymous_args): Delete,
8200         replace uses with cfun->machine->uses_anonymous_args.
8201         (arm_reorg): Do not reset uses_anonymous_args.
8202
8203         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8204         any geenral register.
8205
8206 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
8207
8208         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8209         the entry block.
8210
8211 2002-02-04  Richard Henderson  <rth@redhat.com>
8212
8213         * combine.c (force_to_mode): Remove STACK_BIAS code.
8214         (nonzero_bits): Likewise.  Replace sp/fp special case with
8215         REGNO_POINTER_ALIGN.
8216
8217         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8218         (HARD_FRAME_POINTER_REGNUM): New.
8219         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8220         (FIXED_REGS, CALL_USED_REGS): Update.
8221         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8222         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8223         (HARD_REGNO_NREGS): Update for SFP.
8224         (STACK_POINTER_OFFSET): Include bias here ...
8225         (FIRST_PARM_OFFSET): ... not here.
8226         (STACK_BIAS): Remove.
8227         (INIT_EXPANDERS): New.
8228         (STARTING_FRAME_OFFSET): Do not include bias.
8229         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8230         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8231         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8232         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8233         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8234         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8235         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8236         (MUST_SAVE_REGISTER): Likewise.
8237         (sparc_flat_function_prologue): Likewise.
8238         (sparc_flat_function_epilogue): Likewise.
8239         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8240         (sparc_init_modes): SFP is GENERAL_REGS.
8241         (sparc_builtin_saveregs): SFP does not have bias applied.
8242
8243 2002-02-04  Richard Henderson  <rth@redhat.com>
8244
8245         * config/alpha/alpha.c (current_function_is_thunk): Don't check
8246         current_function_is_thunk.
8247         (alpha_sa_mask): Distinguish between current_function_is_thunk
8248         called from ASM_OUTPUT_MI_THUNK and not.
8249         (alpha_does_function_need_gp): Thunks always need gp.
8250         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8251         (alpha_output_mi_thunk_osf): New.
8252         * config/alpha/alpha-protos.h: Update.
8253         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8254
8255 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
8256
8257         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8258         function types, not when they're taken away.
8259
8260 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
8261
8262         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8263         CODE_LABEL and jump table when replacing a table jump with a
8264         simple jump.
8265
8266 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8267
8268         * config/s390/s390-protos.h (legitimize_la_operand,
8269         s390_secondary_input_reload_class, s390_plus_operand,
8270         s390_expand_plus_operand): Add prototypes.
8271
8272         config/s390/s390.c (s390_secondary_input_reload_class,
8273         s390_plus_operand, s390_expand_plus_operand): New functions.
8274
8275         (struct s390_address): New member 'pointer'.
8276         (s390_decompose_address): Compute it.
8277         (legitimate_la_operand_p): Use it.
8278         (legitimize_la_operand): New function.
8279         (movti, movdi, movdf splitters): Call it.
8280
8281         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8282         (PREDICATE_CODES): Add s390_plus_operand.
8283
8284         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8285         (la_ccclobber): Allow GENERAL_REGS as output operand.
8286
8287         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8288         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8289         (*la_64, *la_31, reload_indi, reload_insi): ... these.
8290
8291 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8292
8293         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8294         register names for regular asm () construct.
8295
8296 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8297
8298         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8299         registers.
8300
8301 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8302
8303         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8304         pat for recog.
8305
8306 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
8307
8308         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8309         constant pool to be identical by string address and index.
8310
8311 2002-02-04  Anthony Green  <green@redhat.com>
8312
8313         * output.h (SECTION_OVERRIDE): Define.
8314         * varasm.c (named_section): Obey SECTION_OVERRIDE.
8315
8316 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8317
8318         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8319         by existing arm*-*-netbsd* (a.out) target.
8320         (ns32k-*-netbsdelf*): Likewise.
8321         (sparc-*-netbsdelf*): Likewise.
8322         (vax-*-netbsdelf*): Likewise.
8323
8324 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
8325
8326         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8327         headers and libobjc headers.
8328
8329 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
8330
8331         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8332         (_mingw.h): Remove duplicate include.
8333
8334 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8335
8336         * config.gcc: Set cpu_type to m68k for 68010, as well.
8337         (m68010-*-netbsdelf*): New...
8338         (m68k*-*-netbsdelf*): ...targets.
8339         * config/m68k/netbsd-elf.h: New file.
8340
8341 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8342
8343         * config/h8300/h8300.c (hand_list): Move inside function_arg.
8344
8345 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8346
8347         * config/h8300/h8300.c (h8_push_ops): Move inside
8348         h8300_init_once.
8349         (h8_pop_ops): Likewise.
8350         (h8_move_ops): Likewise.
8351
8352 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8353
8354         * config/h8300/h8300.c (os_task): Make it static.
8355         (monitor): Likewise.
8356         (pragma_saveall): Likewise.
8357
8358 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
8359
8360         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8361         constant is a valid sign-extension for Pmode.
8362
8363 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8364
8365         * config/h8300/h8300.c: Fix formatting.
8366
8367 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8368
8369         * config/h8300/h8300.md: Fix formatting.
8370
8371 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8372
8373         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8374         predicates of operands[1].  Split the patterns for each
8375         processor variant.
8376
8377 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8378
8379         * config/h8300/h8300.md (xor patterns): Tighten the predicates
8380         of operands[1] to register_operand.
8381
8382 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8383
8384         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8385         * cpphash.c (_cpp_init_hashtable): Similarly.
8386         * cppinit.c (cpp_create_reader): Default the signed_char flag.
8387         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8388         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8389         (cpp_handle_option): Handle the new options.
8390         * cpplex.c (cpp_interpret_charconst): Use new flag.
8391         * cpplib.h (struct cpp_options): New member signed_char.
8392         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8393         (cpp_options): Handle -fsigned-char and -funsigned-char.
8394         (static_specs): Remove signed_char_spec.
8395         (do_spec1): Don't handle %c.
8396         * system.h: Poison SIGNED_CHAR_SPEC.
8397         * tradcif.y (yylex): Use flag_signed_char.
8398         * tradcpp.h (flag_signed_char): New.
8399         * tradcpp.c (flag_signed_char): New.
8400         (main): Handle new command-line options.
8401         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8402 config:
8403         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8404         * avr/avr.h: Remove old comments.
8405         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8406         (CC1_SPEC): Pass -fsigned-char if -mic*.
8407         (SIGNED_CHAR_SPEC): Remove.
8408 doc:
8409         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8410
8411 2002-02-01  Eric Christopher  <echristo@redhat.com>
8412
8413         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8414         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8415         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8416         (ASM_OUTPUT_REG_POP): Ditto.
8417
8418 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8419
8420         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8421         patch.
8422
8423 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8424
8425         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8426
8427 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8428
8429         PR c/5304:
8430         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8431         unconditionally.
8432
8433 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8434
8435         * cfganal.c: Include tm_p.h.
8436         (keep_with_call_p): Fix the test that determines if a register holds
8437         the return value of a call.
8438
8439 2002-02-01  DJ Delorie  <dj@redhat.com>
8440
8441         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8442         we are given conflicting registers, switch to the other one we
8443         had allocated for us.
8444         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8445         as TImode so we know when the "other" register is available.
8446
8447 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8448
8449         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8450         sparc/sparc_bi.h.
8451
8452 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8453
8454         * cfganal.c (keep_with_call_p): New function.
8455         (flow_call_edges_add): Prevent splitting a block between a call and
8456         a single-set instruction that should be kept in the same block.
8457
8458 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8459
8460         * doc/install.texi (avr): Update outdated URL.
8461
8462 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8463
8464         * config/stormy16/stormy16.md (pushqi): New.
8465         (popqi): New.
8466         (pushhi): New.
8467         (pophi): New.
8468         (movhi): Remove stack operands.
8469         (movqi): Likewise.
8470         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8471         nonimmediate_nonstack_operand.
8472         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8473         New.
8474         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8475         New.
8476
8477 2002-01-31  Jason Merrill  <jason@redhat.com>
8478
8479         * Makefile.in (c-parse.c): Handle .output file.
8480         * objc/Make-lang.in (objc-parse.c): Likewise.
8481
8482 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8483
8484         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8485         the -me[lb] option is given.  Don't output the default flag
8486         twice.
8487
8488 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8489
8490         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8491         the primary source file; this has not been done yet.
8492         * c-decl.c (c_expand_body): Reset input_filename from
8493         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8494
8495 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8496
8497         * rtlanal.c (subreg_regno_offset): Do not use
8498         SUBREG_REGNO_OFFSET.
8499         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8500         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8501
8502 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8503
8504         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8505         version rather than GNATS version in --version output.
8506
8507 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8508
8509         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8510         when copying back from a temporary.
8511
8512 2002-01-30  Richard Henderson  <rth@redhat.com>
8513
8514         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8515         and new_dest are the same.
8516
8517 2002-01-30  Richard Henderson  <rth@redhat.com>
8518
8519         PR opt/5076
8520         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8521         * rtl.c (note_insn_name): Update.
8522         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8523         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8524         to perform loop rotation.
8525         (expand_exit_loop_top_cond): New.
8526         * tree.h (expand_exit_loop_top_cond): Declare it.
8527         * c-semantics.c (genrtl_while_stmt): Use it.
8528         (genrtl_for_stmt): Likewise.
8529
8530 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8531
8532         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8533         arguments to 64-bit boundaries on 64-bit ABIs.
8534
8535 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8536
8537         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8538
8539 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8540
8541         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8542         invalid type.
8543
8544 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8545
8546         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8547         * config/sparc/sparc_bi.h: Remove file.
8548         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8549
8550 2002-01-30  Richard Henderson  <rth@redhat.com>
8551
8552         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8553
8554 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8555
8556         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8557
8558 2002-01-30  Jason Merrill  <jason@redhat.com>
8559
8560         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8561         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8562         (reg_save): Use DW_CFA_offset_extended_sf instead.
8563
8564         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8565
8566 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8567
8568         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8569         in cselib_lookup.
8570
8571 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8572
8573         * rs6000.md ("*call_value_local32"): Remove constraints.
8574         ("*call_value_local64"): Same.
8575         ("*call_value_indirect_nonlocal_aix32"): Same.
8576         ("*call_value_nonlocal_aix32"): Same.
8577         ("*call_value_indirect_nonlocal_aix64"): Same.
8578         ("*call_value_nonlocal_aix64"): Same.
8579         ("*call_value_nonlocal_sysv"): Same.
8580
8581 2002-01-29  Richard Henderson  <rth@redhat.com>
8582
8583         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8584
8585 2002-01-29  Richard Henderson  <rth@redhat.com>
8586
8587         * expr.c (force_operand): Ignore flag_pic for detecting pic
8588         address loads.
8589         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8590         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8591         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8592         instead of open-coded loop.
8593         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8594         be fixed when in use.
8595
8596 2002-01-29  Richard Henderson  <rth@redhat.com>
8597
8598         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8599         * sched-rgn.c (propagate_deps): Update them.
8600         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8601         clobbers list when either gets too long.
8602
8603 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8604
8605         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8606         and INDEX_REGS the same as GENERAL_REGS.
8607         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8608
8609 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8610
8611         * tree.c (build_nonstandard_integer_type): Correct prototype.
8612
8613 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8614
8615         * config/s390/s390.md (movstrsico, movstrdix_64,
8616         movstrsix_31): Remove, replace by ...
8617         (movstrdi_short, movstrsi_short, movstrdi_long,
8618         movstrsi_long): ... these.  New.
8619         (movstrdi, movstrsi): Adapt.
8620
8621         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8622         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8623         Remove unnecessary CC clobber.
8624         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8625         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8626
8627         (divmoddi4): Don't partially initialize TImode register.
8628
8629 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8630
8631         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8632
8633 2002-01-29  Richard Henderson  <rth@redhat.com>
8634
8635         * flow.c (print_rtl_and_abort): Remove.
8636         (print_rtl_and_abort_fcn): Remove.
8637         (verify_local_live_at_start): Use dump_bb instead.
8638         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8639         (verify_wide_reg_1): Return 2 on mode test failure.
8640
8641 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8642
8643         PR c/3325, c/3326, c/2511, c/3347
8644         * c-decl.c (enum_decl_context): Remove BITFIELD.
8645         (grokdeclarator): Take bitfield width as an input.
8646         Ensure bitfields are given the correct type.  Perform
8647         bitfield width validation with build_bitfield_integer_type
8648         rather than waiting for finish_struct.
8649         (grok_typename, grok_typename_in_parm_context, start_decl,
8650         push_parmdecl, grokfield, start_function): Update calls to
8651         grokdeclarator.
8652         (build_bitfield_integer_type): New function.
8653         (finish_struct): Move bitfield validation to grokdeclarator
8654         and build_bitfield_integer_type.
8655         * tree.c (build_nonstandard_integer_type): New function.
8656         * tree.h (build_nonstandard_integer_type): New prototype.
8657 objc:
8658         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8659
8660 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8661
8662         PR other/1502:
8663         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8664         don't ignore unrecognized -W* options.
8665         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8666         * cpplib.h (cpp_handle_option): Adjust prototype.
8667         * c-decl.c (c_decode_options): Pass 0 as last argument to
8668         cpp_handle_option.
8669
8670         PR c/2896:
8671         * gcc.c (cpp_unique_options): Split from cpp_options.
8672         (cpp_options): Source cpp_unique_options.
8673         (default_compilers): Use cpp_unique_options instead of cpp_options
8674         when used together with cc1_options.
8675         (static_specs): Add cpp_unique_options.
8676         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8677         when used together with cc1_options.
8678
8679 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8680
8681         * config/h8300/h8300-protos.h: Update the prototype of
8682         output_a_shift.
8683         * config/h8300/h8300.c (output_a_shift): Remove an unused
8684         argument 'insn'.  Remove redundant code.
8685         * config/h8300/h8300.md: Adust to the new prototype of
8686         output_a_shift.
8687
8688 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8689
8690         * config/h8300/h8300-protos.h: Update the prototypes of
8691         emit_a_rotate and expand_a_rotate.
8692         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8693         first argument to 'enum rtx_code'.
8694         (expand_a_rotate): Likewise.
8695
8696 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8697
8698         * config/h8300/h8300-protos.h: Update the prototype of
8699         output_simode_bld.
8700         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8701         'log2'.
8702         * config/h8300/h8300.md: Adjust to the new prototype.
8703
8704 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8705
8706         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8707         redundant code.
8708
8709 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8710
8711         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8712         is a fixed register before returning pic_offset_table_rtx.
8713         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8714         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8715
8716 2002-01-28  Jason Merrill  <jason@redhat.com>
8717
8718         * dwarf2.h: Sync with src version.
8719
8720 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8721
8722         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8723         BT_FN_VOID_PTR_VAR.
8724         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8725         * doc/extend.texi (__builtin_prefetch): Update documentation:
8726         first argument is now const void ptr.
8727
8728 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8729
8730         * config/h8300/h8300-protos.h: Remove an unused prototype.
8731
8732 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8733
8734         * toplev.c (lang_independent_init): Round up identifier size.
8735
8736 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8737
8738         * config.gcc: Revert previous change.
8739
8740 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8741
8742         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8743
8744 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8745
8746         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8747         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8748         other non-elf netbsd config frags.
8749         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8750         collect2 will does that.
8751         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8752         shared-lib frobbing will work.
8753
8754 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8755
8756         * config/h8300/h8300.h: Fix formatting.
8757         * config/h8300/h8300.md: Likewise.
8758
8759 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8760
8761         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8762         the old, removed AAA_standards fix.
8763         * fixinc/fixincl.x: Rebuilt.
8764
8765 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8766
8767         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8768         atexit call in crtbegin, hooked in after call to frame_dummy;
8769         register EH before registering __fini__start.
8770
8771 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8772
8773         * config/rs6000/altivec.h: Remove spurious semicolons.
8774
8775 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8776
8777         * config/h8300/h8300.md: Replace dead bit extraction patterns
8778         with ones that work.
8779
8780 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8781
8782         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8783         if not STRICT_ALIGNMENT.
8784         * rtl.h (MEM_ALIGN): Likewise.
8785
8786 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8787
8788         * doc/invoke.texi (-fdump-translation-unit): Revert this
8789         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8790
8791 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8792
8793         * config/h8300/h8300.md (define_constants): New.
8794         (anonymous patterns) Use defined constants appropriately.
8795
8796 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8797
8798         * config/h8300/h8300.c (function_arg): Remove redundant code.
8799
8800 2002-01-26  Richard Henderson  <rth@redhat.com>
8801
8802         * sched-deps.c (reg_pending_uses_head): New.
8803         (reg_pending_barrier): Rename from reg_pending_sets_all.
8804         (find_insn_list): Don't mark inline.
8805         (find_insn_mem_list): Remove.
8806         (add_dependence_list, add_dependence_list_and_free): New.
8807         (flush_pending_lists): Replace only_write param with separate
8808         for_read and for_write parameters.  Update all callers.  Use
8809         add_dependence_list_and_free.
8810         (sched_analyze_1): Do not add reg dependencies here; just set
8811         the pending bits.  Use add_dependence_list.
8812         (sched_analyze_2): Likewise.
8813         (sched_analyze_insn): Replace schedule_barrier_found with
8814         reg_pending_barrier.  Add all dependencies for pending reg
8815         uses, sets, and clobbers.
8816         (sched_analyze): Don't add reg dependencies for calls, just
8817         set pending bits.  Use regs_invalidated_by_call.  Treat
8818         sched_before_next_call as a normal list, not a fake insn.
8819         (init_deps): No funny init for sched_before_next_call.
8820         (free_deps): Free pending mems lists.  Don't zero reg_last.
8821         (init_deps_global): Init reg_pending_uses.
8822         (finish_deps_global): Free it.
8823         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8824         (find_insn_mem_list): Remove.
8825         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8826         (propagate_deps): Use them.  Zero temp mem lists.
8827
8828 2002-01-26  Richard Henderson  <rth@redhat.com>
8829
8830         * Makefile.in (CRTSTUFF_CFLAGS): New.
8831         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8832         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8833         crtstuff.c instead of alpha assembly version.
8834         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8835         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8836         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8837         (__do_global_dtors_aux): Mark used.
8838         (frame_dummy, __do_global_ctors_aux): Mark used.
8839         (fini_dummy, init_dummy): Remove.
8840
8841         * config/alpha/crtbegin.asm: Remove file.
8842         * config/alpha/crtend.asm: Remove file.
8843         * config/alpha/t-crtbe: Remove file.
8844         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8845         (LINK_EH_SPEC): New.
8846
8847         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8848         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8849         calling constructors.
8850         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8851
8852         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8853         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8854         CRT_END_INIT_DUMMY hack.
8855         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8856         FORCE_{INIT,FINI}_SECTION_ALIGN.
8857
8858         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8859         FORCE_{INIT,FINI}_SECTION_ALIGN.
8860
8861         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8862         invocation sequence.
8863         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8864
8865         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8866         (FORCE_CODE_SECTION_ALIGN): New.
8867
8868 2002-01-26  Richard Henderson  <rth@redhat.com>
8869
8870         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8871
8872 2002-01-26  Richard Henderson  <rth@redhat.com>
8873
8874         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8875         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8876
8877 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8878
8879         * config/h8300/h8300.md: Remove bit extraction patterns that
8880         cannot be triggered.
8881         Restrict each bit extraction pattern to a variant on which the
8882         pattern is tested.
8883
8884 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8885
8886         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8887
8888 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8889
8890         * config/h8300/h8300.md: Remove bit test patterns that cannot
8891         be triggered.
8892         Restrict each bit test pattern to a variant on which the
8893         pattern is tested.
8894
8895 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8896
8897         * builtins.c (expand_builtin_strncat): Remove redundant check for
8898         INTEGER_CST.
8899
8900 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8901
8902         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8903         default setting.
8904         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8905         existing setting.
8906
8907 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8908
8909         * dbxout.c (dbxout_init): Use assemble_name rather than just
8910         stripping off the first character.
8911         (dbxout_source_file): Likewise.
8912
8913 2002-01-25  DJ Delorie  <dj@redhat.com>
8914
8915         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8916         using rtx_equal_p, not by comparing pointers.
8917
8918 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8919
8920         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8921         for PIC_OFFSET_TABLE_REGNUM.
8922         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8923
8924 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8925
8926         * config.gcc (x86_64-*-freebsd*): New target.
8927         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8928         value.
8929         (i[34567]86-*-freebsd*): Don't include svr4.h.
8930         * config/i386/freebsd64.h: New file.
8931
8932 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8933
8934         * config/alpha/x-vms (version): Make static.
8935
8936         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8937         in previous checkin.
8938
8939         * Makefile.in (install-headers-cp): New target.
8940         * config.gcc (alpha-dec-*vms*): Install headers with
8941         install-headers-cp
8942
8943 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8944
8945         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8946         avoid it's copies.
8947
8948 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8949
8950         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8951         of compare_tree_int.
8952         (expand_builtin_strncat): Likewise.
8953         * c-decl.c (finish_struct): Use tree_low_cst.
8954         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8955         * tree.c (compare_tree_int): Likewise.
8956
8957 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8958
8959         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8960         adjustments even if they are implemented by more than two insns.
8961
8962 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8963
8964         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8965         * df.h (struct ref): Kill B.
8966         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8967
8968         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8969         * flow.c (propagate_one_insn): Use it.
8970         (mark_used_regs): Handle NIL.
8971
8972 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8973
8974         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8975         to help folding.
8976
8977 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8978
8979         * rs6000.md (prefetch): Make address V4SI mode so that the address
8980         is restricted to legitimate form for instruction.
8981
8982 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8983
8984         * doc/install.texi (xtensa-*-elf): New target.
8985         (xtensa-*-linux*): New target.
8986         * doc/contrib.texi: Add myself.
8987
8988 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8989
8990         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8991         purpose register to hold an SImode (or smaller) value.
8992
8993 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8994
8995         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8996         registry only.
8997         * crtstuff.c: Likewise.
8998
8999 2002-01-25  Kazu Hirata  <kazu@hxi.com>
9000
9001         * config/h8300/h8300.md (negation patterns): Tighten
9002         predicates to register_operand.
9003
9004 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
9005
9006         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9007         mode, not Pmode.
9008
9009         * builtins.c (expand_builtin_prefetch): Same.
9010
9011 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9012
9013         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9014         modes.
9015
9016 2002-01-24  Kazu Hirata  <kazu@hxi.com>
9017
9018         * config/h8300/h8300.c (print_operand): Remove support for
9019         operand character 'A'.
9020         * config/h8300/h8300.md (three anonymous patterns): Replace
9021         operand character 'A' with either 'T' or 'S'.
9022
9023 2002-01-24  Kazu Hirata  <kazu@hxi.com>
9024
9025         * config/h8300/h8300.c (print_operand): Remove support for
9026         operand character 'U'.
9027
9028 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
9029
9030         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9031
9032 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
9033
9034         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9035         values to be assigned to the stack pointer.
9036
9037 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9038
9039         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9040         to const_double needs to be done right for big-endian systems.
9041
9042 2002-01-24  Jason Merrill  <jason@redhat.com>
9043
9044         PR c++/2432
9045         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9046         to can_throw_internal.
9047
9048 2002-01-23  Richard Henderson  <rth@redhat.com>
9049
9050         * fold-const.c (fold): Change UINT_MAX test to check vs precision
9051         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
9052
9053 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9054
9055         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9056         (symGOT2reg): Use them, then set as GOT value as unchanging.
9057         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
9058         as a temporary, if possible.
9059         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
9060         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9061
9062 2002-01-23  Kazu Hirata  <kazu@hxi.com>
9063
9064         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9065         accept to accept 0x80 as operands[2].
9066
9067 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9068
9069         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9070
9071 2002-01-23  Richard Henderson  <rth@redhat.com>
9072
9073         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9074
9075 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
9076
9077         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9078         (parmlist_or_identifiers_1): Verify that only a parmlist follows
9079         an attribute.
9080
9081 2002-01-23  Richard Henderson  <rth@redhat.com>
9082
9083         * expr.c (move_by_pieces_1): Extend size before negation.
9084
9085         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9086         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9087         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9088         * config/m68k/t-m68kelf: Likewise.
9089
9090 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
9091
9092         * config/xtensa/elf.h: New file.
9093         * config/xtensa/lib1funcs.asm: New file.
9094         * config/xtensa/lib2funcs.S: New file.
9095         * config/xtensa/linux.h: New file.
9096         * config/xtensa/t-xtensa: New file.
9097         * config/xtensa/xtensa-config.h: New file.
9098         * config/xtensa/xtensa-protos.h: New file.
9099         * config/xtensa/xtensa.c: New file.
9100         * config/xtensa/xtensa.h: New file.
9101         * config/xtensa/xtensa.md: New file.
9102         * config.gcc (xtensa-*-elf*): New target.
9103         (xtensa-*-linux*): New target.
9104         * cse.c (canon_hash): Compare rtx pointers instead of register
9105         numbers.  This is required for the Xtensa port.
9106         * integrate.c (copy_insn_list): Handle case where the static
9107         chain is in memory and the memory address has to be copied to
9108         a register.
9109         * doc/invoke.texi (Option Summary): Add Xtensa options.
9110         (Xtensa Options): New node.
9111         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9112
9113 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
9114
9115         * diagnostic.c (internal_error): Do ICE suppression only
9116         when ENABLE_CHECKING is not defined.
9117
9118         * c-typeck.c (require_complete_type): Return error_mark_node
9119         if type is error_mark_node.
9120
9121 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
9122
9123         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9124         -Os and issue a warning.
9125
9126 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
9127
9128         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9129         current (lack of) need for host configuration by hand.
9130
9131         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9132         references.  Documentation of some target macros moved from
9133         hostconfig.texi to tm.texi.
9134
9135 2002-01-23  Will Cohen  <wcohen@redhat.com>
9136
9137         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9138         defined.
9139
9140 2002-01-23  Kazu Hirata  <kazu@hxi.com>
9141
9142         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9143         operand[3].
9144
9145 2002-01-23  Jason Merrill  <jason@redhat.com>
9146
9147         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9148
9149         * function.c (assign_parms): Don't put args of inline functions
9150         into registers when not optimizing.
9151
9152 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
9153
9154         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9155         (prologue_use): New pattern.
9156         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9157         preference to gen_rtx_USE.
9158         (thumb_expand_prologue): Use gen_prologue_use in preference to
9159         gen_rtx_USE.
9160         (thumb_expand_epilogue): Use gen_prologue_use in preference to
9161         gen_rtx_USE.
9162
9163 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
9164
9165         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9166
9167 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9168
9169         PR c/3504
9170         * doc/extend.texi: Correct documentation of __alignof__.
9171
9172 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
9173
9174         * params.h: Rename arguments of DEFPARAM so that it will be
9175         recognized as a translation keyword.
9176
9177 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9178
9179         * extend.texi: Document altivec functions.
9180         Fix N-bit adjectives in X86 builtin documentation.
9181
9182 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
9183
9184         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9185         auto_inc_dec values.
9186
9187 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
9188
9189         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9190         after backslash.
9191         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9192
9193 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
9194
9195         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9196
9197 2002-01-22  Richard Henderson  <rth@redhat.com>
9198
9199         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9200         copy_insn not copy_rtx.
9201
9202 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
9203
9204         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9205         "nonzero" as that might add "1" bits.  Ensure "constop" is
9206         properly sign extened.
9207         (force_to_mode): Tweak for sign extended constop.
9208
9209 2002-01-22  Richard Henderson  <rth@redhat.com>
9210
9211         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9212         for_each_rtx instead of assuming we're already looking at the MEM.
9213         (split_small_symbolic_mem_operand): Likewise.
9214         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9215         * config/alpha/alpha.md (small symbolic memory splitters): Update.
9216
9217 2002-01-22  Richard Henderson  <rth@redhat.com>
9218
9219         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9220         sequence number for the literal.
9221         (divmoddi_internal_er): Likewise.
9222
9223 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9224
9225         PR java/4972
9226         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9227         in LIBICONV variable.
9228         * configure: Regenerated.
9229
9230 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
9231
9232         * dependence.c (build_def_use): Remove array_idx.
9233
9234         * dwarfout.c (last_filename): Remove.
9235         (output_compile_unit_die): Remove last_filename.
9236
9237 2002-01-22  Roger Sayle  <roger@eyesopen.com>
9238             Richard Henderson  <rth@redhat.com>
9239
9240         PR opt/3640
9241         * fold-const.c (fold): Optimize unsigned comparisons against
9242         UINT_MAX (and similar unsigned constants).
9243
9244 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
9245
9246         * Makefile.in (loop.o): Depend on OPTABS_H.
9247         * loop.c (emit_prefetch_instructions): Check the prefetch operand
9248         against the predicate.
9249
9250         PR target/5379
9251         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9252         for the address operand.
9253
9254 2002-01-22  Richard Henderson  <rth@redhat.com>
9255
9256         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9257
9258 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9259
9260         PR other/5450
9261         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9262         preprocessor flags.
9263
9264 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
9265
9266         * config.gcc (x86_64-*-netbsd*): New target.
9267         * config/i386/netbsd64.h: New file.
9268
9269 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9270
9271         * regrename.c (kill_value): Fix typo.
9272
9273 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9274
9275         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9276
9277         * config/rs6000/rs6000.h: Same.
9278
9279         * function.c (instantiate_virtual_regs): Remove
9280         STARTING_FRAME_PHASE.
9281         (assign_stack_local_1): Same.
9282         Calculate frame phase.
9283
9284 2002-01-22  Nick Clifton  <nickc@redhat.com>
9285
9286         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9287         variable declaration to outer scope in order to simplify
9288         future extensions.
9289         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9290         arm_hard_regno_mode_ok.
9291         * config/arm/arm-protos.h: Add a prototype for
9292         arm_hard_regno_mode_ok.
9293         * config/arm/arm.c (soft_df_operand): Remove now redundant
9294         check for DImode values using IP_REGNUM.
9295         (nonimmediate_soft_df_operand): Remove now redundant check for
9296         DImode values using IP_REGNUM.
9297         (arm_hard_regno_mode_ok): New function. New check: make sure
9298         that DImode values are not stored in IP_REGNUM.
9299
9300         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9301         note with a USE.
9302         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9303
9304 2002-01-22  Jason Merrill  <jason@redhat.com>
9305
9306         * c-semantics.c (genrtl_compound_stmt): Only check nesting
9307         consistency if this COMPOUND_STMT is scoped.
9308
9309 2002-01-22  Kazu Hirata  <kazu@hxi.com>
9310
9311         * predict.c: Fix formatting.
9312         * print-tree.c: Likewise.
9313         * protoize.c: Likewise.
9314         * real.h: Likewise.
9315         * rtl.h: Likewise.
9316         * sbitmap.h: Likewise.
9317         * scan.c: Likewise.
9318         * sched-deps.c: Likewise.
9319         * sched-vis.c: Likewise.
9320         * sdbout.c: Likewise.
9321         * sibcall.c: Likewise.
9322         * ssa.c: Likewise.
9323         * ssa-ccp.c: Likewise.
9324         * ssa-dce.c: Likewise.
9325         * stmt.c: Likewise.
9326         * stor-layout.c: Likewise.
9327         * system.h: Likewise.
9328
9329 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9330
9331         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9332         if fits in bounds of base type.
9333
9334         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9335         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9336         (add_bound_info, default): If can't find a context, make a
9337         SAVE_EXPR.
9338         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9339
9340 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
9341
9342         * c-typeck.c (parser_build_binary_op): If result from
9343         build_binary_op is ERROR_MARK just return error_mark_node without
9344         further processing.
9345
9346 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
9347
9348         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9349         Split a.out-specific bits into...
9350         * config/netbsd-aout.h: ...this.
9351         * config/netbsd-elf.h: New file.
9352         * config/alpha/netbsd-elf.h: Remove.
9353         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9354         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9355         (STARTFILE_SPEC): Remove redundant definition.
9356         (ENDFILE_SPEC): Likewise.
9357         (LINK_SPEC): Likewise.
9358         (CPP_SPEC): Likewise.
9359         (ASM_SPEC): Likewise.
9360         (LIB_SPEC): Likewise.
9361         (SWITCH_TAKES_ARG): Likewise.
9362         (TARGET_MEM_FUNCTIONS): Likewise.
9363         (CPP_PREDEFINES): Redefine.
9364         (ASM_FINAL_SPEC): Remove redefinition.
9365         (ASM_COMMENT_START): Redefine.
9366         (FUNCTION_PROFILER): Define.
9367         (TARGET_VERSION): Redefine.
9368         Comment and formatting cleanup.
9369         * config/i386/netbsd.h: Include <netbsd-aout.h>.
9370         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9371         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9372         big- or little-endian.
9373         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9374         * config.gcc (*-*-netbsd*): Add definitions common to all
9375         NetBSD configs.
9376         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9377         gnu_ld definitions.  Add netbsd-elf.h to and remove
9378         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
9379         tmake_file, and don't lose previous tmake_file contents.
9380         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9381         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9382         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
9383         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9384         (mipsel-*-netbsd*): Rename this to...
9385         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
9386         mips/little.h to tm_file for mips*el-*.
9387         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9388         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9389         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9390
9391 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9392
9393         * pa-protos.h (reg_before_reload_operand): New function prototype.
9394         * pa.c (reg_before_reload_operand): New function implementation.
9395         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
9396         contraints to "*m".
9397
9398 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9399
9400         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9401
9402 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9403
9404         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9405         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9406         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9407         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9408         (ENDFILE_SPEC): Undefine.
9409         (STARTFILE_SPEC): Redefine for PA.
9410
9411 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9412
9413         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9414
9415 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
9416
9417         * config.gcc: Add entries to supported PowerPC --with-cpu
9418         types.
9419
9420 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
9421
9422         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9423         true for 64-bit mode only SSE registers in 32-bit mode.
9424
9425 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9426
9427         * unwind-dw2.c: Fix formatting.
9428         * unwind-dw2-fde.c: Likewise.
9429         * unwind-dw2-fde.h: Likewise.
9430         * unwind-pe.h: Likewise.
9431         * varasm.c: Likewise.
9432         * varray.h: Likewise.
9433
9434 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9435
9436         Remove workaround for register stack overwrite bug in mmix.
9437         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9438         support for TARGET_REG_STACK_FILL_BUG.
9439         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9440         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9441         Delete.
9442         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9443         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9444         -mno-reg-stack-fill-bug-workaround.
9445         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9446         machine member has_call_without_parameters.
9447         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9448         -mreg-stack-fill-bug-workaround and
9449         -mno-reg-stack-fill-bug-workaround.
9450         (MMIX Options): Ditto.
9451
9452 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9453
9454         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9455         as appropriate.
9456         Remove redundant code.
9457
9458 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9459
9460         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9461         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9462         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9463         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9464         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9465         out target macro definitions and non-target-specific comments
9466         mostly taken from old versions of the manual.
9467
9468 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9469
9470         * config/h8300/h8300.h: Fix comment formatting.
9471         * config/ia64/aix.h: Likewise.
9472         * config/ia64/ia64-protos.h: Likewise.
9473         * config/ia64/ia64.c: Likewise.
9474         * config/ia64/ia64.h: Likewise.
9475         * config/ia64/ia64intrin.h: Likewise.
9476         * config/ia64/linux.h: Likewise.
9477         * config/ia64/unwind-aix.c: Likewise.
9478         * config/ia64/unwind-ia64.c: Likewise.
9479
9480 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9481
9482         * config/h8300/h8300.c: Revise comments about shift code.
9483
9484 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9485
9486         * config/h8300/h8300.c (function_arg): Update a comment.
9487
9488 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9489
9490         * config/h8300/h8300.md: Update the comments at the beginning
9491         of the file.
9492
9493 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9494
9495         * config/i370/i370.c: Fix comment formatting.
9496         * config/i370/i370.h: Likewise.
9497         * config/i370/i370.md: Likewise.
9498         * config/i370/linux.h: Likewise.
9499
9500 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9501
9502         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9503
9504         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9505         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9506         in incomplete case.
9507
9508 2002-01-20  Graham Stott  <grahams@redhat.com>
9509
9510         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9511
9512 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9513
9514         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9515
9516 2002-01-19  Tom Rix  <trix@redhat.com>
9517
9518         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9519
9520 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9521
9522         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9523
9524         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9525         STARTING_FRAME_PHASE.
9526         (STARTING_FRAME_PHASE): New.
9527         (instantiate_virtual_regs): Check saneness of
9528         STARTING_FRAME_PHASE.
9529
9530         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9531
9532 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9533
9534         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9535
9536 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9537
9538         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9539         be used for bootstrapping GCC 3.0.
9540
9541 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9542
9543         * config/h8300/h8300.md: Fix an insn length.
9544
9545 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9546
9547         * bitmap.h: Fix comment formatting.
9548         * combine.c: Likewise.
9549         * cppfiles.c: Likewise.
9550         * c-pragma.h: Likewise.
9551         * c-typeck.c: Likewise.
9552         * df.c: Likewise.
9553         * dwarf2out.c: Likewise.
9554         * function.c: Likewise.
9555         * gcc.c: Likewise.
9556         * genattrtab.c: Likewise.
9557         * gthr-win32.h: Likewise.
9558         * haifa-sched.c: Likewise.
9559         * predict.c: Likewise.
9560         * rtlanal.c: Likewise.
9561         * rtl.h: Likewise.
9562         * unwind-dw2-fde.h: Likewise.
9563         * unwind-pe.h: Likewise.
9564         * vmsdbgout.c: Likewise.
9565
9566 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9567
9568         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9569         if type_required and passed decl.
9570
9571 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9572
9573         * config.gcc (cpu_type): Include altivec.h in powerpc
9574         extra_headers.
9575         Same for darwin.
9576
9577         * config/rs6000/altivec.h: New.
9578
9579 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9580
9581         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9582         handling information.
9583         * doc/trouble.texi (Interoperation): Add libstdc++ information
9584         for AIX.
9585         (Misunderstandings): Add template instantiation and static template
9586         member information for AIX.
9587
9588 2002-01-17  Jason Merrill  <jason@redhat.com>
9589
9590         * dbxout.c (dbxout_type): Support const and volatile.
9591
9592         * except.c (add_partial_entry): Remove backwards compatibility code.
9593         (end_protect_partials): Likewise.
9594
9595 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9596
9597         * config/ia64/ia64.md (prologue_use): New.
9598         * config/ia64/ia64.c (ia64_expand_prologue): Use
9599         gen_prologue_use instead of gen_rtx_USE.
9600         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9601         as CODE_FOR_pred_rel_mutex.
9602         (ia64_sched_reorder2): Likewise.
9603
9604 2002-01-16  Eric Christopher  <echristo@redhat.com>
9605
9606         * config/mips/r3900.h: Reformat.
9607         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9608         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9609         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9610         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9611         * config/mips/t-elf: Remove mips3 multilib.
9612
9613 2002-01-16  H.J. Lu <hjl@gnu.org>
9614
9615         * config/mips/linux.h: Include "mips/abi64.h".
9616
9617 2002-01-16  H.J. Lu <hjl@gnu.org>
9618
9619         * config/mips/t-linux: New.
9620
9621         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9622
9623         * config/mips/linux.h: Don't include "gofast.h".
9624         (INIT_SUBTARGET_OPTABS): Removed.
9625
9626 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9627
9628         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9629         output_a_shift.
9630         * config/h8300/h8300.c: Likewise.
9631         * config/h8300/h8300.md: Likewise.
9632
9633 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9634
9635         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9636         spaces after an opcode name.
9637         (pushqi1_h8300hs): Likewise.
9638         (pushhi1_h8300hs): Likewise.
9639
9640 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9641
9642         * doc/extend.texi: Replace "option" with "attribute"
9643         appropriately.
9644
9645 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9646
9647         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9648         (and:DI () (const_int -8)).
9649         (split_small_symbolic_mem_operand): Split
9650         (mem (and:DI () (const_int -8)).
9651
9652 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9653
9654         PR target/5309:
9655         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9656         same way as TYPE_IMUL.
9657         (ultrasparc_sched_reorder): Likewise.
9658         * config/sparc/sparc.md (type): Add comment to update
9659         ultrasparc_sched_reorder when making changes.
9660
9661 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9662
9663         * doc/invoke.texi: Change the dump file name of block
9664         reordering pass from 28.bbro to 29.bbro.
9665         Mention -dk option.
9666
9667 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9668
9669         * i386.md (minsf splitter): Fix pasto.
9670
9671 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9672
9673         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9674         to frame pointer initialisation instruction.
9675         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9676         initialisation instruction.
9677         (soft_df_operand): Do not accept the IP register.
9678         (nonimmediate_soft_df_operand): Do not accept the IP register.
9679
9680 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9681
9682         PR target/5357:
9683         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9684         MASK_V8 being both set.
9685
9686 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9687
9688         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9689         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9690         config/s390/s390.md (call, call_value): Add GOT register to
9691         CALL_INSN_FUNCTION_USAGE where needed.
9692         (call_exp, call_value_exp): New.
9693
9694 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9695
9696         * config/arm/arm.c: General formatting tidy up.
9697
9698 2002-01-16  Graham Stott  <grahams@redhat.com>
9699
9700         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9701         cast and when casting an integer literal to "rtx" pointer.
9702         (expand_call): Likewise.
9703         * flow.c (try_pre_increment): Likewise.
9704         (find_use_as_address): Likewise.
9705         * integrate.c (expand_iline_function): Likewise.
9706         * regmove.c (try_auto_increment): Likewise.
9707
9708 2002-01-16  Graham Stott  <grahams@redhat.com>
9709
9710         * sched-rgn.c (passed): Use sbitmap_free.
9711         (header): Likewise.
9712         (inner): Likewise.
9713         (in_queue): Likewise.
9714         (in_stack): Likewise.
9715
9716 2002-01-15  Eric Christopher  <echristo@redhat.com>
9717
9718         * flow.c (propagate_one_insn): Change to use fatal_insn.
9719
9720 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9721
9722         * expmed.c (extract_fixed_bit_field): Remove unused code.
9723         * system.h: Poison SLOW_ZERO_EXTEND.
9724         * doc/tm.texi: Remove.
9725         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9726         * config/arm/arm.h: Likewise.
9727         * config/avr/avr.h: Likewise.
9728         * config/clipper/clipper.h: Likewise.
9729         * config/convex/convex.h: Likewise.
9730         * config/d30v/d30v.h: Likewise.
9731         * config/dsp16xx/dsp16xx.h: Likewise.
9732         * config/elxsi/elxsi.h: Likewise.
9733         * config/fr30/fr30.h: Likewise.
9734         * config/h8300/h8300.h: Likewise.
9735         * config/i370/i370.h: Likewise.
9736         * config/i386/i386.h: Likewise.
9737         * config/m68k/m68k.h: Likewise.
9738         * config/mips/mips.h: Likewise.
9739         * config/ns32k/ns32k.h: Likewise.
9740         * config/pdp11/pdp11.h: Likewise.
9741         * config/pj/pj.h: Likewise.
9742         * config/s390/s390.h: Likewise.
9743         * config/sh/sh.h: Likewise.
9744         * config/stormy16/stormy16.h: Likewise.
9745         * config/v850/v850.h: Likewise.
9746         * config/vax/vax.h: Likewise.
9747         * config/we32k/we32k.h: Likewise.
9748
9749 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9750
9751         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9752         (altivec_lvsl): Change constraint to b.
9753         (altivec_lvsr): Same.
9754         (altivec_lvebx): Same.
9755         (altivec_lvehx): Same.
9756         (altivec_lvewx): Same.
9757         (altivec_lvxl): Same.
9758         (altivec_lvx): Same.
9759         (altivec_stvx): Add parallel.
9760         (altivec_stvxl): Same.
9761         (altivec_stvehx): Same.
9762         (altivec_stvebx): Same.
9763         (altivec_stvebx): Same.
9764
9765 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9766
9767         * config.gcc: Change altivec.h to altivec-defs.h.
9768
9769         * config/rs6000/altivec.h: Delete.
9770
9771         * config/rs6000/altivec-defs.h: Add.
9772
9773 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9774
9775         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9776         and UMOD modes.
9777
9778         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9779         less than or equal to eight bytes.
9780
9781         * vax.md (andsi3): Remove constraints and change SET destination
9782         operand type to nonimmediate_operand.
9783         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9784         when it is a CONST_INT.
9785
9786 2002-01-15  Jason Merrill  <jason@redhat.com>
9787
9788         * c-common.def (FILE_STMT): New code.
9789         * c-common.c (statement_code_p): It's a statement.
9790         * c-common.h (stmt_tree_s): Add x_last_filename.
9791         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9792         (last_expr_filename): New macro.
9793         * c-semantics.c (begin_stmt_tree): Initialize it.
9794         (add_stmt): If the filename changed, also insert a
9795         FILE_STMT.
9796         (expand_stmt): Handle seeing one.
9797
9798 2002-01-15  Eric Christopher  <echristo@redhat.com>
9799
9800         * flow.c (propagate_one_insn): Add error message and print out
9801         insn for debugging.
9802
9803 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9804
9805         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9806         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9807         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9808         TRAMPOLINE_ALIGNMENT.
9809         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9810         to be in bits.
9811         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9812         PCC_BITFIELD_TYPE_MATTERS.
9813         * config/interix.h (STDC_VALUE): Remove.  Use
9814         STDC_0_IN_SYSTEM_HEADERS.
9815         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9816         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9817         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9818
9819 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9820
9821         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9822         not work on this platform currently.
9823
9824 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9825
9826         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9827         readonly_warning in _().
9828
9829 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9830
9831         * gcc.c (delete_if_ordinary): Backout previous change.
9832
9833 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9834
9835         * config/h8300/h8300.c (print_operand): Remove support for
9836         unused operand characters.
9837
9838         * read-rtl.c: Fix formatting.
9839         * real.c: Likewise.
9840         * recog.c: Likewise.
9841         * regclass.c: Likewise.
9842         * regmove.c: Likewise.
9843         * reg-stack.c: Likewise.
9844         * reload1.c: Likewise.
9845         * rtlanal.c: Likewise.
9846
9847 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9848
9849         * config/i386/i386.c: Fix formatting.
9850
9851 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9852
9853         * c-typeck.c (process_init_element): Don't save_expr
9854         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9855
9856 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9857
9858         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9859         emit optional traceback table if optimize_size or TARGET_ELF.
9860         * config/rs6000/rs6000.md (prefetch): New.
9861
9862 2002-01-15  Andreas Jaeger  <aj@suse.de>
9863
9864         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9865
9866 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9867
9868         * mips-tfile.c: Fix formatting.
9869
9870 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9871
9872         * unroll.c (final_reg_note_copy): Fix previous commit.
9873
9874 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9875
9876         * config/h8300/h8300-protos.h: Remove the prototype for
9877         eq_operator.
9878         * config/h8300/h8300.c (eq_operator): Remove.
9879
9880 2002-01-14  Richard Henderson  <rth@redhat.com>
9881
9882         * config/i386/i386.md (prefetch): Tidy.
9883         (prefetch_3dnow): Fix locality operand.
9884
9885 2002-01-14  Richard Henderson  <rth@redhat.com>
9886
9887         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9888         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9889
9890 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9891
9892         * reload1.c (reload_combine): Pass reg_sum replacement through
9893         copy_rtx in loop performing multiple changes.
9894
9895 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9896
9897         * except.c (remove_unreachable_regions): New.
9898         (free_eh_status): Clear exception_handler_labels.
9899         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9900         (find_exception_handler_labels): Don't add the same label more than
9901         once.
9902         (remove_exception_handler_label): Don't die if
9903         find_exception_handler_labels hasn't been called for the current
9904         function yet.
9905
9906 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9907
9908         * toplev.c (rest_of_compilation): Rebuild jump labels after
9909         gcse.
9910
9911 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9912
9913         * doc/extend.texi: Move documentation of X86 built-in functions
9914         here.
9915         * doc/invoke.texi: From here.
9916         * doc/sourcebuild.texi: Document location of documentation for
9917         machine built-in functions.
9918
9919 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9920
9921         * cppfiles.c (TEST_THRESHOLD): New macro.
9922         (SHOULD_MMAP): Ditto.
9923         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9924         be used.
9925
9926 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9927
9928         * unroll.c (final_reg_note_copy): Properly handle
9929         REG_LABEL
9930         (unroll_loops): Fix LOOP_CONDITION heuristics.
9931
9932 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9933
9934         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9935         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9936
9937 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9938
9939         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9940         threaded loop.
9941
9942 2002-01-14  Tom Rix  <trix@redhat.com>
9943
9944         * config/rs6000/rs6000.md: Fix typo with sradi.
9945
9946 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9947
9948         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9949         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9950         (clrstrdi, clrstrsi): Adapt callers.
9951
9952         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9953
9954         (movti splitter): Never use register 0 as base register.
9955
9956 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9957
9958         * combine.c (simplify_shift_const): Always generate new rtx
9959         for shift expression instead of reusing given expression.
9960
9961 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9962
9963         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9964         alpha_legitimize_address unless mode is Pmode.
9965
9966 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9967
9968         * doc/md.texi (Modifiers): Document the '*' constraint for the
9969         user.
9970
9971         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9972         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9973         for xstormy16 too.
9974
9975 2002-01-13  Richard Henderson  <rth@redhat.com>
9976
9977         * reload.c (find_reloads): Use a hard reg destination as reload reg
9978         for an input reload of the source.
9979
9980 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9981
9982         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9983         more generic.
9984
9985 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9986
9987         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9988         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9989
9990         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9991
9992 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9993
9994         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9995
9996 2002-01-12  Tom Rix  <trix@redhat.com>
9997
9998         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9999         TARGET_POWERPC64.
10000
10001 2002-01-12  Richard Henderson  <rth@redhat.com>
10002
10003         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10004
10005         * doc/invoke.texi: Update Alpha options.
10006
10007         * doc/invoke.texi: Update i386 built-in function lists.
10008
10009 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10010
10011         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10012         referencing outside.
10013
10014 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10015
10016         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10017         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10018         offsets, and change line folding.
10019         * optabs.c (expand_binop): Remove warnings.
10020         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10021
10022 2002-01-12  Graham Stott <grahams@redhat.com>
10023
10024         * attribs.c (handle_deprecated_attribute): constify WHAT.
10025         * diagnostic.c (warn_deprecated_use): Add braces, fixes
10026         dangling else warning and constify WHAT.
10027         * except.h (struct function, struct inline_remap): Move
10028         struct tag forward defs before all prototypes.
10029         (duplicate_eh_regions): Whitespace.
10030
10031 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
10032
10033         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10034         MODE_BASE_REG_CLASS.
10035         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10036
10037 2002-01-12  Richard Henderson  <rth@redhat.com>
10038
10039         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10040         (ix86_expand_vector_move): New.
10041         (bdesc_2arg): Remove andps, andnps, orps, xorps.
10042         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
10043         Remove old prefetch builtins.  Special case the logicals removed above.
10044         (ix86_expand_builtin): Likewise.
10045         (safe_vector_operand): Use V4SFmode, not TImode.
10046         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
10047         (ix86_expand_timode_binop_builtin): New.
10048         * config/i386/i386-protos.h: Update.
10049         * config/i386/i386.h (enum ix86_builtins): Update.
10050         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10051         Use ix86_expand_vector_move in vector move expanders.
10052         (movti_internal, movti_rex64): Add xorps alternative.
10053         (sse_clrv4sf): Rename and adjust from sse_clrti.
10054         (prefetch): Don't work so hard.
10055         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10056         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10057         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10058
10059 2002-01-11  Richard Henderson  <rth@redhat.com>
10060
10061         * config/i386/mmintrin.h: New file.
10062         * config/i386/xmmintrin.h: New file.
10063         * config.gcc (i?86-*-*): Add extra_headers.
10064         * simplify-rtx.c (simplify_unary_operation): Handle saturating
10065         truncation codes.
10066         (simplify_binary_operation): Handle saturating arithmetic codes.
10067         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10068         not the lowpart subreg.
10069         (ix86_expand_builtin): Return a TImode dummy register instead of 0
10070         on error.
10071         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10072
10073 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10074
10075         * conflict.c (conflict_graph_compute): Free regsets when finished.
10076         * ssa.c (compute_coalesced_reg_partition): Likewise.
10077
10078 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10079
10080         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10081         every where we allocate a register.
10082
10083 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10084
10085         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10086         * lcm.c (compute_earliest, compute_farthest): Likewise.
10087
10088 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
10089
10090         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10091
10092 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
10093
10094         * doc/rtl.texi (Insns): Fix 2 typos.
10095
10096 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
10097
10098         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
10099         options.  Use @table @gcctabopt for MMIX options.  Add index
10100         entries for MMIX options.  Start new paragraph with first
10101         heading of the machine-dependent options.
10102
10103 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10104
10105         PR other/5299
10106         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10107         * combine.c (force_to_mode): Same.
10108         * reload1.c (clear_reload_reg_in_use): Same.
10109
10110 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
10111
10112         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10113         and 'subtargets'.
10114
10115 2002-01-11  Andreas Jaeger  <aj@suse.de>,
10116             Brad Lucier <lucier@math.purdue.edu>
10117
10118         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10119         mcpu.
10120
10121 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
10122
10123         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10124         Protect with IN_LIBGCC.
10125         (LINK_EH_SPEC): Add required trailing space.
10126
10127 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
10128
10129         * c-tree.h: Move function declarations so that they are listed
10130         under the filename which contains them.
10131         (check_identifier, finish_decl_top_level,
10132         lookup_name_current_level_global, shadow_record_fields): Remove.
10133
10134 2002-01-11  Andreas Jaeger  <aj@suse.de>
10135
10136         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10137         march.
10138
10139 2002-01-10  Richard Henderson  <rth@redhat.com>
10140
10141         * config/alpha/alpha.c (print_operand): Add 'J'.
10142         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10143         new operand with the sequence number for the lituse.  When splitting
10144         the insns, use gen_movdi_er_high_g and generate a sequence number.
10145         (gen_movdi_er_high_g): Print the sequence number if non-zero.
10146
10147 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
10148
10149         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10150         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10151         stvxl.
10152         (altivec_expand_builtin): Same.
10153         (altivec_expand_stv_builtin): New.
10154
10155         * config/rs6000/rs6000.h (rs6000_builtins): Same.
10156
10157         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10158         ("altivec_lvehx"): New.
10159         ("altivec_lvewx"): New.
10160         ("altivec_lvxl"): New.
10161         ("altivec_lvx"): New.
10162         ("altivec_stvx"): New.
10163         ("altivec_stvebx"): New.
10164         ("altivec_stvehx"): New.
10165         ("altivec_stvewx"): New.
10166         ("altivec_stvxl"): New.
10167
10168 2002-01-10  Richard Henderson  <rth@redhat.com>
10169
10170         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10171         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
10172         care not to delete instructions twice.
10173
10174 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
10175
10176         * toplev.c: Don't declare environ (it's not used anywhere).
10177         * configure.in: Don't check for declaration of environ.
10178         * config/i386/xm-mingw32.h: Don't #define environ.
10179         * config.in, configure: Regenerate.
10180
10181 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
10182
10183         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10184         * configure: Regenerate.
10185
10186         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10187         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10188         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10189         alpha/xm-vms.h.
10190         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10191         LIMITS_H_TEST here, not in m68k/x-next.
10192         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10193         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10194
10195         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10196         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10197         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
10198
10199         * config/i386/x-djgpp: Renamed i386/t-djgpp.
10200         * config/m88k/x-dolph: Renamed m88k/t-dolph.
10201         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10202         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
10203         replacement of quadlib.asm with quadlib.c.
10204
10205         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10206         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10207         config/rs6000/xm-beos.h: Delete file.
10208
10209         * config.gcc: Update to match above changes.
10210
10211 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10212
10213         * config/h8300/h8300.h: Fix comment typos.
10214         * config/h8300/h8300.md: Likewise.
10215         * config/h8300/lib1funcs.asm: Likewise.
10216
10217 2002-01-10  Dale Johannesen  <dalej@apple.com>
10218
10219         PR optimization/5269
10220         * unroll.c (precondition_loop_p): Make *increment be the correct
10221         sign when n_iterations known, to avoid confusing caller.
10222
10223 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10224
10225         * doc/extend.texi (deprecated): Fix a typo.
10226
10227 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10228
10229         * basic-block.h (update_br_prob_note): Declare.
10230         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10231         (try_forward_edges): Care negative frequencies and update note.
10232         (outgoing_edges_match): Tweek conditional merging heuristics.
10233         (try_crossjump_to_edge): use update_br_prob_note.
10234         * cfglayout.c (fixup_reorder_chain): Likewise.
10235         * cfrtl.c (update_br_prob_note): New.
10236         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10237
10238         * i386.c (ix86_decompose_address): Return -1 if address contains
10239         shift.
10240         (legitimate_address_p): Require ix86_decompose_address to return 1.
10241
10242         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10243         (cprop_insn): Likewise.
10244
10245 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10246
10247         * toplev.c: Fix formatting.
10248         * tree.c: Likewise.
10249         * tree-dump.c: Likewise.
10250         * unroll.c: Likewise.
10251         * unwind-dw2.c: Likewise.
10252         * unwind-dw2-fde.c: Likewise.
10253         * unwind-dw2-fde-glibc.c: Likewise.
10254         * unwind-sjlj.c: Likewise.
10255
10256 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10257
10258         * doc/invoke.texi: Document PDP-11 options.
10259
10260 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10261
10262         * config/h8300/h8300.h: Fix formatting.
10263
10264 2002-01-10  Ira Ruben   <ira@apple.com>
10265
10266         Add __attribute__ ((deprecated)).
10267         * extend.texi: Document __attribute__ ((deprecated)).
10268         * invoke.texi: Document -Wno-deprecated-declarations.
10269         * testsuite/g++.dg/other/deprecated.C: New C++ test.
10270         * testsuite/gcc.dg/deprecated.c: New C test.
10271         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10272         (c_common_attribute_table): Add "deprecated" entry.
10273         (handle_deprecated_attribute): New function.
10274         * c-decl.c (deprecated_states): New enum.
10275         deprecated_state: State of "deprecated" handling.
10276         (start_decl): Set deprecated_state based on attributes.
10277         (grokdeclarator): Test for deprecated uses, propagate attribute.
10278         * c-typeck.c (build_component_ref): Test for deprecated fields.
10279         (build_external_ref): Test for deprecated primaries.
10280         * diagnostic.c (warn_deprecated_use) New function to issue
10281         warnings about __attribute__ ((depricated)) references.
10282         * flags.h (warn_deprecated_decl): Extern declared for
10283         -W[no-]deprecated-declarations option.
10284         * print-tree.c (print_node): Show deprecated flag status.
10285         * toplev.c (warn_deprecated_decl): Defined.
10286         (W_options): Added "deprecated-declaration".
10287         * toplev.h (warn_deprecated_use): Extern declared.
10288         * tree.h (struct tree_common): Define deprecated_flag.
10289         (TREE_DEPRECATED): New macro to access flag.
10290         * cp/call.c (build_call): Test for deprecated calls.
10291         * cp/class.c (add_implicitly_declared_members): Set global
10292         flag to tell grokdeclarator to not issue deprecated warnings.
10293         * cp/cp-tree.h: Add extern for adding_implicit_members.
10294         * cp/decl.c (deprecated_states): New enum.
10295         (start_decl): Set deprecated_state based on attributes.
10296         (grokdeclarator): Test for deprecated uses, propagate attribute.
10297         * cp/lex.c (do_identifier): Test for deprecated primaries.
10298         * cp/typeck.c (build_component_ref): Test for deprecated fields.
10299
10300 2002-01-10  Ira Ruben   <ira@apple.com>
10301
10302         Fix to assign attributes to inline member functions.
10303         * cp/decl.c (start_method): Handle attrlist.
10304
10305 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10306
10307         * combine.c (expand_field_assignment): Use subreg_lsb().
10308
10309 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
10310
10311         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10312         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10313         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10314         Recurse for any operand of AND as long as constant is non-zero.
10315
10316 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10317
10318         * config/h8300/h8300.md: Remove constraints from expanders.
10319
10320 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10321
10322         * varasm.c: Fix formatting.
10323         * varray.c: Likewise.
10324         * vmsdbgout.c: Likewise.
10325         * xcoffout.c: Likewise.
10326
10327 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10328
10329         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10330         update edge probabilities to match.
10331
10332 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10333
10334         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10335         dependencies.
10336         * doc/languages.texi, doc/sourcebuild.texi: New files.
10337         * doc/configfiles.texi: Make a subsubsection.  Update.
10338         * doc/configterms.texi: Add @node.  Remove warning that this isn't
10339         instructions for building GCC.
10340         * doc/makefile.texi: Make a subsection.
10341         * doc/gccint.texi: Update.
10342
10343 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10344
10345         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10346
10347 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
10348
10349         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10350
10351 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
10352
10353         * optabs.c (expand_fix): Look for wider integer modes first.
10354
10355         * i386.md (mov?f): Avoid the fake const double trick for medium
10356         memory model.
10357         (min?f*/max?f*): Prohibit memory operands for i387 variant.
10358         (fop_df_4): Disable for SSE compilation.
10359
10360 2002-01-10  Graham Stott  <grahams@redhat.com>
10361
10362         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10363         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10364
10365 2002-01-10  Richard Henderson  <rth@redhat.com>
10366
10367         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10368
10369 2002-01-10  Richard Henderson  <rth@redhat.com>
10370
10371         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10372         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
10373
10374 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10375
10376         * combine.c (can_combine_p): Fix a comment typo.
10377
10378 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
10379
10380         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10381         empty list correctly.  Change loop index $t to $f for
10382         consistency with rest of Makefile.
10383
10384 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
10385
10386         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10387         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10388
10389         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10390         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10391         (altivec_init_builtins): Same.
10392         (altivec_expand_unop_builtin): Return NULL_RTX on error.
10393         (altivec_expand_binop_builtin): Same.
10394         (altivec_expand_ternop_builtin): Same.
10395         (bdesc_dst): New.
10396
10397         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10398         ("altivec_vctuxs"): Fix typo.
10399         ("altivec_vnmsubfp"): Same.
10400         ("altivec_dssall"): New.
10401         ("altivec_mfvscr"): New.
10402         ("altivec_dss"): New.
10403         ("altivec_lvsl"): New.
10404         ("altivec_lvsr"): New.
10405         ("altivec_dstt"): New.
10406         ("altivec_dstst"): New.
10407         ("altivec_dststt"): New.
10408         ("altivec_dst"): New.
10409
10410         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10411         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10412
10413 2002-01-09  Richard Henderson  <rth@redhat.com>
10414
10415         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10416
10417 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
10418
10419         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10420         function.
10421         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10422         prototype.
10423         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10424
10425 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10426
10427         * read-rtl.c: Fix formatting.
10428         * real.c: Likewise.
10429         * regclass.c: Likewise.
10430         * regrename.c: Likewise.
10431         * reg-stack.c: Likewise.
10432         * reload1.c: Likewise.
10433         * reload.c: Likewise.
10434         * rtl.c: Likewise.
10435
10436 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10437
10438         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10439         to extract items in the expr_list chain.
10440
10441 2002-01-09  Richard Henderson  <rth@redhat.com>
10442
10443         * config/vax/vax.c (vax_rtx_cost): Never abort.
10444
10445         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10446
10447 2002-01-09  Jan Hubicka  <jh@suse.cz>
10448
10449         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10450
10451 2002-01-09  Richard Henderson  <rth@redhat.com>
10452
10453         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10454         Unify code from various alternatives.
10455
10456 2002-01-09  Richard Henderson  <rth@redhat.com>
10457
10458         * regrename.c (copy_value): Ignore the copy if the source register
10459         is present in the value chain with a narrower mode.
10460
10461 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10462
10463         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10464         for the c4x target. Also improve layout.
10465
10466 2002-01-09  Richard Henderson  <rth@redhat.com>
10467
10468         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10469         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10470         to match insn patterns.
10471
10472 2002-01-09  Richard Henderson  <rth@redhat.com>
10473
10474         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10475         (copyprop_hardreg_forward_1): Likewise.
10476
10477 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10478
10479         * pa.md (decrement_and_branch_until_zero): Change predicate for
10480         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10481
10482 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10483
10484         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10485         gets undefined. For Darwin.
10486
10487 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10488
10489         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10490
10491 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10492
10493         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10494
10495 2002-01-08  Richard Henderson  <rth@redhat.com>
10496
10497         * regrename.c (copy_value): Ignore overlapping copies.
10498
10499 2002-01-08  Richard Henderson  <rth@redhat.com>
10500
10501         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10502         as needed to avoid shared structure.
10503
10504 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10505
10506         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10507         H8/300H and H8/S.
10508
10509 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10510
10511         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10512         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10513         documentation of obsolete macros.
10514         * system.h: Poison these macros.
10515         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10516         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10517         config/c4x/c4x.h, config/clipper/clipper.h,
10518         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10519         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10520         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10521         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10522         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10523         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10524         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10525         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10526         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10527         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10528         config/sparc/sparc.h, config/stormy16/stormy16.h,
10529         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10530         definitions and commented out definitions of obsolete macros.
10531         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10532         of MAX_INT_TYPE_SIZE.
10533
10534 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10535
10536         * config/s390/s390.c (s390_preferred_reload_class): Never
10537         return ADDR_REGS if it isn't a subset of the given class.
10538         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10539         FP_REGS, but all superclasses as well.
10540
10541         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10542
10543         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10544         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10545         must not be a const_int.
10546
10547 2002-01-08  Richard Henderson  <rth@redhat.com>
10548
10549         * Makefile.in (toplev.o): Depend on options.h.
10550         (gcc.o): Depend on specs.h.
10551
10552 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10553
10554         * expr.c (store_expr): Convert VOIDmode constants back to target's
10555         mode.
10556
10557 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10558
10559         * doc/invoke.texi: Markup gcc as @command.  Refer to
10560         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10561         of http://gcc.gnu.org/thanks.html.
10562
10563 2002-01-08  Dale Johannesen  <dalej@apple.com>
10564
10565         * config/rs6000/rs6000.md: Add missing int register
10566         target case to movdf_low.
10567
10568 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10569
10570         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10571         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10572         (cppinit.o): Depend on except.h.
10573         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10574         s-specs): New rules.
10575
10576         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10577         Don't create specs.h/options.h/gencheck.h here.  Remove
10578         unnecessary variable settings from last argument of AC_OUTPUT.
10579         * config.in, configure: Regenerate.
10580         * intl.c: Hardcode package name as "gcc".
10581
10582         * cppinit.c: Include except.h.
10583         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10584         appropriate.
10585         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10586         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10587         (!)USING_SJLJ_EXCEPTIONS.
10588         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10589
10590 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10591
10592         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10593         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10594         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10595         documentation of obsolete macros.
10596         * system.h: Poison these macros.
10597         * config/d30v/d30v.h, config/ns32k/encore.h,
10598         config/stormy16/stormy16.h: Remove definitions and commented out
10599         definitions of obsolete macros.
10600
10601 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10602
10603         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10604         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10605         warnings.
10606
10607 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10608
10609         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10610         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10611         to insn adjusting stack/frame pointer.
10612         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10613         accept operands that cause the insn to be non-splittable.
10614
10615 2002-01-08  Graham Stott  <grahams@redhat.com>
10616
10617         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10618         (C_TYPE_FIELDS_VOLATILE): Likewise.
10619         (C_TYPE_BEING_DEFINED): Likewise.
10620         (C_IS_RESERVED_WORD): Likewise.
10621         (C_TYPE_VARIABLE_SIZE): Likewise.
10622         (C_DECL_VARIABLE_SIZE): Likewise.
10623         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10624         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10625         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10626         parenthesis.
10627         (C_DECL_ANTICIPATED): Likewise.
10628         (c_build_type_variant): Add parenthesis.
10629
10630 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10631
10632         * gcc.c (option_map): Remove --version.
10633         (process_command): Handle -fversion following the GNU Coding
10634         Standards.  Partially addresses PR other/704.
10635
10636 2002-01-08  Graham Stott  <grahams@redhat.com>
10637
10638         * combine.c (combine_instructions): Fix typo.
10639
10640 2002-01-08  Graham Stott  <grahams@redhat.com>
10641
10642         * debug.h: Use "tree" and "rtx" throughout.
10643
10644         * debug.c: Likewise.
10645
10646 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10647
10648         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10649         constant pool, use the pool's version of the symbol instead.
10650
10651 2002-01-07  Richard Henderson  <rth@redhat.com>
10652
10653         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10654         the original register was copied in a mode with a fewer number of
10655         hard registers than the desired mode.
10656         (copyprop_hardreg_forward_1): Likewise.
10657         (debug_value_data): Fix loop test.
10658         * toplev.c (parse_options_and_default_flags): Reenable
10659         -fcprop-registers at -O1.
10660
10661 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10662
10663         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10664         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10665
10666         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10667         predicates.
10668
10669         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10670
10671 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10672
10673         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10674         (pa_output_function_prologue): Output local label at the beginning of
10675         the prologue when profiling.
10676         (hppa_profile_hook): Use the local label rather than the function label.
10677         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10678
10679 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10680
10681         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10682         (altivec_expand_unop_builtin): Fix thinko.
10683         (altivec_expand_binop_builtin): Same.
10684         (altivec_expand_ternop_builtin): Same.
10685         (altivec_expand_builtin): Same.
10686
10687 2002-01-07  Richard Henderson  <rth@redhat.com>
10688
10689         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10690
10691 2002-01-07  Jason Merrill  <jason@redhat.com>
10692
10693         * unwind-dw2.c (execute_cfa_program): Use < again.
10694
10695 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10696
10697         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10698
10699 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10700
10701         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10702         Don't allow -1 - x -> ~x simplifications in the first pass.
10703
10704 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10705
10706         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10707         arguments.
10708         (altivec_expand_binop_builtin): Same.
10709         (altivec_expand_unop_builtin): Same.
10710         (print_operand): Fix typo.
10711         (bdesc_1arg): Add vupk* variants.
10712
10713         * rs6000.h (rs6000_builtins): Add vupk* enums.
10714
10715         * rs6000.md: Add altivec_vupk* variants.
10716
10717 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10718
10719         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10720         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10721         and last update dates.
10722
10723 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10724
10725         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10726
10727 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10728
10729         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10730         * config/avr/avr.h (CPP_SPEC): Likewise.
10731         (LINK_SPEC): Likewise.
10732         (CRT_BINUTILS_SPECS): Likewise.
10733         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10734         * doc/invoke.texi (AVR Options): Document them.
10735
10736 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10737
10738         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10739         LABEL_NUSES.
10740
10741 2002-01-07  Graham Stott  <grahams@redhat.com>
10742
10743         * config/i386/i386.h: Update copyright date.
10744         (HALF_PIC_PTR): Add parenthesis.
10745         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10746         (CONSTANT_ALIGNMENT): Add parenthesis.
10747         (DATA_ALIGNMENT): Likewise.
10748         (LOCAL_ALIGNMENT): Likewise.
10749         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10750         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10751         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10752         (HARD_REGNO_NREGS): Add paranethesis.
10753         (VALID_SSE_REG_MODE): Whitespace.
10754         (VALID_MMX_REG_MODE): Whitespace.
10755         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10756         (ix86_hard_regno_mode_ok): Add parenthesis.
10757         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10758         (RETURN_IN_MEMORY): Whitespace.
10759         (N_REG_CLASSES): Add parenthesis.
10760         (INTEGER_CLASS_P): Add parenthesis and wrap.
10761         (FLOAT_CLASS_P): Likewise.
10762         (SSE_CLASS_P): Likewise.
10763         (MMX_CLASS_P): Likewise.
10764         (MAYBE_INTEGER_CLASS_P): Likewise.
10765         (MAYBE_FLOAT_CLASS_P): Likewise.
10766         (MAYBE_SSE_CLASS_P): Likewise.
10767         (MAYBE_MMX_CLASS_P): Likewise.
10768         (Q_CLASS_P): Likewise.
10769         (GENERAL_REGNO_P): Uppercase macro parameter.
10770         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10771         (FP_REGNO_P): Likewise.
10772         (ANY_FP_REGNO_P): Uppercase macro parameter.
10773         (SSE_REGNO_P): Likewise.
10774         (SSE_REGNO): Likewise.
10775         (SSE_REG_P): Likewise.
10776         (SSE_FLOAT_MODE_P): Likewise.
10777         (MMX_REGNO_P): Likewise.
10778         (MMX_REG_P):Likewise.
10779         (STACK_REG_P): Likewise.
10780         (NON_STACK_REG_P): Likewise.
10781         (STACK_TOP_P): Likewise.
10782         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10783         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10784         (SECONDARY_MEMORY_NEEDED): Likewise.
10785         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10786         (MD_ASM_CLOBBERS): Whitespace and wrap.
10787         (MUST_PASS_IN_STACK): Whitespace and wrap.
10788         (RETURN_POPS_ARGS): Add parenthesis.
10789         (INIT_CUMULATIVE_ARGS): Likewise.
10790         (FUNCTION_ARG): Likewise.
10791         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10792         (SETUP_INCOMING_VARARGS): Likewise.
10793         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10794         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10795         parenthsis.
10796         (EXPAND_BUILTIN_VA_ARG): Likewise.
10797         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10798         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10799         (INITIAL_ELIMINATION_OFFSET): Likewise.
10800         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10801         (REGNO_OK_FOR_BASE_P): Likewise.
10802         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10803         (REGNO_OK_FOR_DIREG_P): Likewise.
10804         (REG_OK_FOR_INDEX_P): Whitespace.
10805         (REG_OK_FOR_BASE_P): Whitespace.
10806         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10807         parenthesis.
10808         (FIND_BASE_TERM): Fix typo.
10809         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10810         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10811         (SYMBOLIC_CONST; Whitespace.
10812         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10813         (ENCODE_SECTION_INFO): Whitespace.
10814         (FINALIZE_PIC): Remove do { ... } while (0).
10815         (PROMOTE_MODE): Wrap in do { ... } while (0).
10816         (CONST_COSTS): Whitespace.
10817         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10818         (REGISTER_MOVE_COST): Add parenthesis.
10819         (MEMORY_MOVE_COST): Likewise.
10820         (EXTRA_CC_MODES): Whitespace.
10821         (SELECT_CC_MODE): Add parenthesis and whitespace.
10822         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10823         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10824         (ASM_OUTPUT_LABEL): Add paramethesis.
10825         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10826         (ASM_OUTPUT_REG_POP): Likewise.
10827         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10828         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10829
10830         * config/i386/i386.c: Update copyright.
10831         (CHECK_STACK_LIMIT): Add parenthesis.
10832         (AT_BP): Uppercase macro parameter.
10833         (x86_64_int_parameter_registers): Constify.
10834         (x86_64_int_return_registers): Likewise.
10835         (ix86_compare_op0): Use rtx.
10836         (construct_container): Constify INTREG parameter.
10837         (function_arg): Use rtx.
10838
10839         * diagnostic.h: Update copyright date.
10840         (output_buffer_state): Add parenthesis.
10841         (output_buffer_format_args): Likewise.
10842
10843         * combine.c (combine_instructions): Replace XEXP (links, 0)
10844         with link.
10845
10846 2002-01-06  H.J. Lu <hjl@gnu.org>
10847
10848         * cfgcleanup.c (thread_jump): Fix 2 typos.
10849
10850 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10851
10852         * config.gcc: Add support for --enable-altivec.
10853
10854 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10855
10856         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10857
10858 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10859
10860         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10861         __objc_class_name_*.
10862
10863 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10864
10865         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10866
10867 2002-01-06  Richard Henderson  <rth@redhat.com>
10868
10869         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10870         nop them out.  Increment label reference count for REG_LABEL.
10871         (fill_slots_from_thread): Frob label reference count around
10872         delete_related_insns.
10873
10874 2002-01-05  Richard Henderson  <rth@redhat.com>
10875
10876         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10877         jump threading.
10878
10879 2002-01-05  Richard Henderson  <rth@redhat.com>
10880
10881         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10882         * integrate.c (output_inline_function): Likewise.
10883         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10884         to remove_unnecessary_notes after emitting abstract instance.
10885         Force an emitted nested function to have its parent emited as well.
10886         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10887         for null.
10888         (rtl_for_decl_location): Do not look at reload data structures
10889         before reload has run.
10890
10891 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10892
10893         * cse.c: Fix formatting.
10894         * dwarf2asm.c: Likewise.
10895         * dwarf2out.c: Likewise.
10896         * explow.c: Likewise.
10897         * expmed.c: Likewise.
10898         * function.c: Likewise.
10899         * gcov.c: Likewise.
10900         * gencheck.c: Likewise.
10901         * genrecog.c: Likewise.
10902         * ggc-common.c: Likewise.
10903         * ggc-page.c: Likewise.
10904         * global.c: Likewise.
10905
10906 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10907
10908         * combine.c: Fix formatting.
10909
10910 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10911
10912         PR middle-end/1557
10913         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10914
10915 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10916
10917         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10918         as 1 for __powerpc64__ as well.
10919
10920         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10921
10922         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10923         return it.
10924
10925 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10926
10927         * lcm.c: Revert change, due to performance regression it causes on
10928         SPEC because it's slightly more conservative (sigh, I hate
10929         edge-based LCM).
10930
10931 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10932
10933         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10934
10935 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10936
10937         * doc/cppinternals.texi: Update.
10938
10939 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10940
10941         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10942         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10943         negatives.
10944         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10945         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10946         kludge for pre-october-14th mmix versions to handle new-found bug
10947         with PUSHJ/PUSHGO and the register stack.
10948         * config/mmix/mmix.h (struct machine_function): Rename member
10949         has_call_value_without_parameters to has_call_without_parameters.
10950         All referers changed.
10951         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10952         TARGET_MASK_BRANCH_PREDICT): New macros.
10953         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10954         -mno-reg-stack-fill-bug-workaround.
10955         * config/mmix/mmix.md ("call"): Set struct machine member
10956         has_call_without_parameters.
10957
10958 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10959
10960         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10961
10962 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10963
10964         * cfgcleanup.c: Include tm_p.h
10965         (mark_effect): Fix handling of hard register; fix handling of SET
10966
10967 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10968
10969         * config/h8300/h8300.md (anonymous patterns): Check that
10970         operands are registers before using REGNO on them.
10971
10972 2002-01-03  Roland McGrath  <roland@frob.com>
10973
10974         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10975
10976 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10977
10978         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10979         * c-common.h (genrtl_expr_stmt_value): Likewise.
10980         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10981         (expand_expr_stmt_value): Add maybe_last argument.
10982         Don't warn about statement with no effect if it is the last statement
10983         in expression statement.
10984         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10985         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10986         expand_expr_stmt_value.
10987         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10988         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10989         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10990         as maybe_last to expand_expr_stmt_value.
10991
10992 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10993
10994         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10995         be passed in, do not build it.
10996         (c_begin_if_stmt): New function.
10997         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10998         * c-common.h (c_expand_start_cond): Update prototype.
10999         (c_begin_if_stmt): Prototype new function.
11000         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11001         * c-parse.in (if_prefix): Use c_begin_if_stmt,
11002         c_begin_while_stmt and c_finish_while_stmt_cond.
11003
11004 2002-01-04  William Cohen  <wcohen@redhat.com>
11005
11006         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11007         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11008         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11009         * config/pa/som.h (ASM_FILE_START): Likewise.
11010
11011 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
11012
11013         * lcm.c: Include df.h.
11014         Add available_transfer_function prototype.
11015         (compute_available): Rework to use iterative dataflow framework.
11016         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11017         with bb_info in df.h
11018         (available_transfer_function): New function.
11019
11020         * Makefile.in (lcm.o): add df.h to dependencies.
11021
11022 2002-01-04  Richard Henderson  <rth@redhat.com>
11023
11024         * config/alpha/alpha.c (some_operand): Accept HIGH.
11025         (input_operand): Likewise; accept simple references to globals.
11026         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11027         (alpha_const_double_ok_for_letter_p): Likewise.
11028         (alpha_extra_constraint): Likewise.
11029         (alpha_preferred_reload_class): Likewise.  Do not force
11030         symbolic constants to memory.
11031         (alpha_legitimate_address_p): Accept simple references
11032         to small_symbolic_operand.
11033         (alpha_legitimize_address): New arg scratch.  Be prepared to be
11034         called when no_new_pseudos.  Emit simple symbolic references.
11035         Split integers into low, high, and rest.
11036         (alpha_expand_mov): Use alpha_legitimize_address.
11037         (some_small_symbolic_mem_operand): New.
11038         (split_small_symbolic_mem_operand): New.
11039         * config/alpha/alpha-protos.h: Update.
11040         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11041         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11042         (EXTRA_CONSTRAINT): Likewise.
11043         (PREFERRED_RELOAD_CLASS): Likewise.
11044         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11045         (PREDICATE_CODES): Update.
11046         * config/alpha/alpha.md: New post-reload splitters to convert
11047         simplfied symbolic operands to the form that references $29.
11048         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11049         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11050
11051 2002-01-03  Richard Henderson  <rth@redhat.com>
11052
11053         * local-alloc.c (function_invariant_p): Update commentary.
11054
11055 2002-01-04  H.J. Lu <hjl@gnu.org>
11056
11057         * toplev.c (rest_of_compilation): Fix a typo when calling
11058         cleanup_cfg.
11059
11060 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11061
11062         * c-common.c: Fix formatting.
11063         * diagnostic.c: Likewise.
11064         * doloop.c: Likewise.
11065         * dwarf2out.c: Likewise.
11066
11067 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11068
11069         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11070         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11071
11072 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11073
11074         * cpperror.c: Update comments and copyright.
11075         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11076         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11077
11078 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11079
11080         * collect2.c (main): Use strcmp when testing for "-shared".
11081
11082 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11083
11084         * cppmacro.c: Don't include intl.h.  Update comments.
11085         (new_number_token): Allocate enough buffer for 64-bit unsigned
11086         integers; update prototype.
11087         * cppmain.c: Update comments.
11088
11089 2002-01-03  William Cohen  <wcohen@redhat.com>
11090
11091         * function.h (struct function): Add profile.
11092         (current_function_profile): New.
11093         doc/extend.texi: Update documentation.
11094         * final.c (final_start_function): Use current_function_profile
11095         instead of profile_flag.
11096         (profile_after_prologue): Likewise.
11097         * function.c (expand_function_start): Likewise.
11098         (expand_function_start): Likewise.
11099         * config/alpha/alpha.c (direct_call_operand):
11100         (alpha_does_function_need_gp): Likewise.
11101         (alpha_expand_prologue): Likewise.
11102         * config/arm/arm.c (arm_expand_prologue): Likewise.
11103         thumb_expand_prologue: Likewise.
11104         * config/d30v/d30v.c (d30v_stack_info): Likewise.
11105         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11106         (fr30_expand_prologue): Likewise.
11107         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11108         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11109         * config/i386/i386.h (FINALIZE_PIC): Likewise.
11110         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11111         * config/i960/i960.c (i960_output_function_prologue): Likewise.
11112         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11113         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11114         (m32r_expand_prologue): Likewise.
11115         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11116         (m88k_expand_prologue): Likewise.
11117         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11118         * config/mips/mips.c (compute_frame_size): Likewise.
11119         (mips_expand_prologue): Likewise.
11120         (mips_can_use_return_insn): Likewise.
11121         * config/pa/elf.h (ASM_FILE_START): Likewise.
11122         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11123         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11124         * config/pa/som.h (ASM_FILE_START): Likewise.
11125         * config/romp/romp.c (romp_using_r14): Likewise.
11126         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11127         (rs6000_stack_info): Likewise.
11128         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11129         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11130         * config/v850/v850.c (compute_register_save_size): Likewise.
11131
11132 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
11133
11134         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11135         gen_lowpart_common fails, use gen_lowpart_SUBREG.
11136
11137 2002-01-03  Turly O'Connor  <turly@apple.com>
11138
11139         * darwin.c (machopic_output_possible_stub_label): Don't generate
11140         stub routines for pseudo-stubs which we've just defined.
11141
11142 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11143
11144         * builtins.c: Fix formatting.
11145         * c-typeck.c: Likewise.
11146         * combine.c: Likewise.
11147         * expr.c: Likewise.
11148         * loop.c: Likewise.
11149
11150 2002-01-03  Andreas Schwab  <schwab@suse.de>
11151
11152         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11153         and return true if _cpp_push_next_buffer pushed a new include
11154         file.
11155         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11156         _cpp_pop_file_buffer did not push a new file.
11157         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11158
11159 2002-01-02  Eric Christopher  <echristo@redhat.com>
11160
11161         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11162         FIND_REG_INC_NOTE call. Update copyright.
11163         * loop.c (canonicalize_condition): Ditto.
11164         * reorg.c (delete_scheduled_jump): Ditto.
11165
11166 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11167
11168         * gcse.c: Fix formatting.
11169
11170 2002-01-03  Graham Stott  <grahams@redhat.com>
11171
11172         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11173         forward defs for struct tags rtx_def, union_tree, rtvec_def
11174         also output corresponding typedefs for rtx, tree, and rtvec.
11175
11176         * system.h: Move forward defs for struct tags rtx_def, union_tree,
11177         rtvec_def along with corresponding typedefs for rtx, tree, and
11178         rtvec to config.h, hconfig.h, tconfig.h.
11179
11180 2002-01-03  Graham Stott  <grahams@redhat.com>
11181
11182         * tree.h: Update copyright date.
11183         (IS_EXPR_CODE_CLASS): Add parenthesis.
11184         (TREE_SET_CODE): Add whitespace.
11185         (TREE_CHECK): Add parenthesis.
11186         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11187         (CST_OR_CONSTRUCTOR_CHECK):
11188         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11189         (TREE_SYMBOL_REFERENCED): Whitespace.
11190         (INT_CST_LT): Likewise.
11191         (INT_CST_LT_UNSIGNED): Likewise.
11192         (tree_real_cst): Unwrap comment.
11193         (tree_string): Likewise.
11194         (tree_complex): Likewise.
11195         (IDENTIFIER_POINTER): correct cast.
11196         (SAVE_EXPR_CONTEXT): Whitespace.
11197         (EXPR_WFL_FILENAME_NODE): Likewise.
11198         (EXPR_WFL_FILENAME): Remove parenthesis.
11199         (DECL_ORIGIN): Add parenthesis.
11200         (DECL_FROM_INLINE): Use NULL_TREE.
11201         (build_int_2): Whitespace.
11202         (build_type_variant): Add parenthesis.
11203
11204         * gcc/jcf-parse.c: Update copyright date.
11205         (yyparse): Constify resource_filename.
11206
11207 2002-01-03  Graham Stott  <grahams@redhat.com>
11208
11209         * rtl.h: Update copyright date.
11210         (RTL_CHECK1): Wrap long line.
11211         (RTL_CHECK2): Likewise.
11212         (RTL_CHECKC1): Wrap long line and whitespace.
11213         (RTL_CHECKC2): Likewise.
11214         (XWINT): Whitespace.
11215         (XINT): Likewise.
11216         (XSTR): Likewise.
11217         (XEXP): Likewise.
11218         (XVEC): Likewise.
11219         (XMODE): Likewise.
11220         (XBITMAP): Likewise.
11221         (XTREE): Likewise.
11222         (XBBDEF): Likewise.
11223         (XTMPL): Likewise.
11224         (X0WINT): Likewise.
11225         (X0INT):Likewise.
11226         (X0UINT): Likewise.
11227         (X0STR): Likewise.
11228         (X0EXP): Likewise.
11229         (X0VEC): Likewise.
11230         (X0MODE): Likewise.
11231         (X0BITMAP): Likewise.
11232         (X0TREE): Likewise.
11233         (X0BBDEF): Likewise.
11234         (X0ADVFLAGS): Likewise.
11235         (X0CSELIB): Likewise.
11236         (X0MEMATTR): Likewise.
11237         (XCWINT): Likewise.
11238         (XCINT): Likewise.
11239         (XCUINT): Likewise.
11240         (XCSTR): Likewise.
11241         (XCEXP): Likewise.
11242         (XCVEC): Likewise.
11243         (XCMODE): Likewise.
11244         (XCBITMAP): Likewise.
11245         (XCTREE): Likewise.
11246         (XCBBDEF): Likewise.
11247         (XCADVFLAGS): Likewise.
11248         (XCCSELIB): Likewise.
11249         (XC2EXP): Likewise.
11250         (INSN_UID): Likewise.
11251         (PREV_INSN): Likewise.
11252         (PATTERN): Likewise.
11253         (INSN_CODE): Likewise.
11254         (PUT_REG_NOTE_KIND): Likewise.
11255         (CODE_LABEL_NUMBER): Likewise.
11256         (NOTE_SOURCE_FILE): Likewise.
11257         (NOTE_BLOCK): Likewise.
11258         (NOTE_EH_HANDLER): Likewise.
11259         (NOTE_RANGE_INFO): Likewise.
11260         (NOTE_LIVE_INFO): Likewise.
11261         (NOTE_BASIC_BLOCK): Likewise.
11262         (NOTE_EXPECTED_VALUE): Likewise.
11263         (NOTE_LINE_NUMBER): Likewise.
11264         (LABEL_NAME): Likewise.
11265         (LABEL_NUSES): Likewise.
11266         (LABEL_ALTERNATE_NAME): Likewise.
11267         (ADDRESSOF_DECL): Likewise.
11268         (JUMP_LABEL): Likewise.
11269         (LABEL_NEXTREF): Likewise.
11270         (REGNO): Likewise.
11271         (ORIGINAL_REGNO: Likewise.
11272         (HARD_REGISTER_NUM_P): Add parenthesis.
11273         (SUBREG_REG): Whitespace.
11274         (SUBREG_BYTE): Likewise.
11275         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11276         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11277         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11278         (ASM_OPERANDS_INPUT_VEC): Likewise.
11279         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11280         (ASM_OPERANDS_INPUT): Likewise.
11281         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11282         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11283         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11284         (ASM_OPERANDS_INPUT_MODE): Likewise.
11285         (ASM_OPERANDS_SOURCE_FILE): Likewise.
11286         (ASM_OPERANDS_SOURCE_LINE): Likewise.
11287         (MEM_SET_IN_STRUCT_P): Minor reformat.
11288         (TRAP_CONDITION): Whitespace.
11289         (TRAP_CODE): Likewise.
11290         (COND_EXEC_TEST): Likewise.
11291         (COND_EXEC_CODE): Likewise.
11292         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11293         (PHI_NODE_P): Add parenthesis.
11294         (plus_constant): Whitespace and add parenthesis.
11295
11296 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11297
11298         * config/avr/avr.c: Fix comment typos.
11299         * config/c4x/c4x.md: Likewise.
11300         * config/dsp16xx/dsp16xx.h: Likewise.
11301         * config/dsp16xx/dsp16xx.md: Likewise.
11302         * config/i386/i386.md: Likewise.
11303         * config/ia64/ia64.c: Likewise.
11304         * config/m32r/m32r.h: Likewise.
11305         * config/m68hc11/m68hc11.md: Likewise.
11306         * config/mmix/mmix.c: Likewise.
11307         * config/mn10200/mn10200.c: Likewise.
11308         * config/romp/romp.c: Likewise.
11309         * config/sh/sh.c: Likewise.
11310         * config/stormy16/stormy16.c: Likewise.
11311         * config/stormy16/stormy16.h: Likewise.
11312         * config/stormy16/stormy16.md: Likewise.
11313
11314 2002-01-03  Graham Stott  <grahams@redhat.com>
11315
11316         * loop.h: Update copyright date.
11317         (LOOP_MOVABLES): Fix typo.
11318         (LOOP_REGS): Likewise.
11319         (LOOP_IVS): Likewise.
11320
11321 2002-01-03  Graham Stott  <grahams@redhat.com>
11322
11323         * cppinit.c: Update copyright date.
11324         Don't include output.h
11325         * Makefile.in: Update copyright date.
11326         Update dependency.
11327
11328 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11329
11330         PR c/5226
11331         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11332         (-pthread) Add to RS/6000 options.
11333
11334 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11335
11336         * except.c: Fix comment typos.
11337         * loop.c: Likewise.
11338         * varasm.c: Likewise.
11339         * doc/tm.texi: Fix a typo.
11340
11341 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
11342
11343         * c-typeck.c (output_init_element): Allow initializing static storage
11344         duration objects with compound literals.
11345
11346 2002-01-02  Richard Henderson  <rth@redhat.com>
11347
11348         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11349         after abusing it.
11350
11351 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11352
11353         * gcc.c (default_compilers): Const-ify.
11354         * mips-tdump.c (stab_names): Likewise.
11355         * mips-tfile.c (map_coff_types, map_coff_storage,
11356         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11357         pseudo_ops_t, pseudo_ops): Likewise.
11358         * protoize.c (default_include): Likewise
11359
11360         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11361         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11362         Add array size in declaration.
11363         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11364         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11365         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11366         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11367         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11368         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11369         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11370         emtens, make_nan): Const-ify.
11371         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11372         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11373
11374 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
11375
11376         * config.gcc (ia64-*-*): Set extra_headers.
11377         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
11378         * config/alpha/t-osf: Remove.
11379         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11380
11381 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
11382
11383         * config/rs6000/t-aix43: Revert previous change.
11384
11385 2002-01-02  Jason Merrill  <jason@redhat.com>
11386
11387         * c-decl.c (c_expand_body): Call outlining_inline_function when
11388         emitting an inline function out of line.
11389
11390 2002-01-02  Richard Henderson  <rth@redhat.com>
11391
11392         * dwarf2out.c (limbo_die_node): Add created_for member.
11393         (new_die): New argument created_for.  Update all callers.
11394         (mark_limbo_die_list): New.
11395         (dwarf2out_init): Register limbo_die_list as a root.
11396         (dwarf2out_finish): Force insert limbo dies into their function
11397         context.
11398
11399 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
11400
11401         PR c++/5089
11402         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11403
11404 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11405
11406         * config/h8300/fixunssfsi.c: Update copyright.
11407         Fix comment typos.
11408         Fix formatting.
11409         * config/h8300/h8300.c: Update copyright.
11410         Eliminate warnings.
11411
11412 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11413
11414         * config/romp/romp.c: Fix comment formatting.
11415         * config/romp/romp.h: Likewise.
11416         * config/romp/romp.md: Likewise.
11417         * config/s390/s390.c: Likewise.
11418         * config/stormy16/stormy16.c: Likewise.
11419         * config/stormy16/stormy16.h: Likewise.
11420
11421 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
11422
11423         * c-common.h (genrtl_expr_stmt_value): Declare.
11424         * c-semantics.c (genrtl_goto_stmt): Redirect to...
11425         (genrtl_goto_stmt_value): ... this new function.  Pass new
11426         argument down to expand_expr_stmt_value, taking
11427         TREE_ADDRESSABLE into account.
11428         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11429         STMT_EXPR as addressable, i.e., one whose result we want.
11430         * expr.c (expand_expr): Don't save expression statement value
11431         of labeled_blocks or loop_exprs.
11432         * stmt.c (expand_expr_stmt): Redirect to...
11433         (expand_expr_stmt_value): ... this new function.  Use new
11434         argument to tell whether to save expression value.
11435         (expand_end_stmt_expr): Reset last_expr_type and
11436         last_expr_value if we don't have either.
11437         * tree-inline.c (declare_return_variable): Mark its use
11438         statement as addressable.
11439         * tree.h: Document new use of TREE_ADDRESSABLE.
11440         (expand_expr_stmt_value): Declare.
11441
11442 2002-01-01  Tom Rix  <trix@redhat.com>
11443
11444         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11445         rs6000_emit_allocate_stack.
11446
11447 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11448
11449         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11450         ${srcdir}/ginclude/ to every entry in extra_headers.
11451         * configure: Regenerate.
11452         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11453         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11454         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11455         * ginclude/proto.h: Rename to config/convex/proto.h.
11456
11457 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11458
11459         * attribs.c (handle_vector_size_attribute): Use host_integerp
11460         and tree_int_cst; remove warnings.
11461         * caller-save.c (insert_restore): Add cast to get rid of warning.
11462         (insert_save): Likewise.
11463         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11464         * regmove.c (find_matches): Add temporary var to kill a warning.
11465
11466 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11467
11468         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11469         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11470         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11471         (vms-dwarf2eh.o): Add Makefile rule.
11472         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11473         * config/alpha/vms-dwarf2eh.asm: New file.
11474
11475         * gcc.c (delete_if_ordinary): Delete all versions.
11476
11477 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11478
11479         * config/mmix/mmix.md: Update FIXME to not mention
11480         define_constants.
11481         (MMIX_rJ_REGNUM): New define_constants constant.
11482         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11483         "*movdicc_real"): Adjust contraints formatting.
11484         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11485         for branch prediction.
11486         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11487         output template.
11488         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11489         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11490         number.  Delete related FIXMEs.
11491         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11492         from number to MMIX_rJ_REGNUM.
11493         (TARGET_MASK_BRANCH_PREDICT): New.
11494         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11495         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11496         value.  Add -mbranch-predict and -mno-branch-predict.
11497         (TARGET_VERSION): Drop date.
11498         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11499         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11500         for finding out global symbols.
11501         (mmix_asm_output_labelref): Revert condition for global symbol.
11502         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11503         (mmix_print_operand_punct_valid_p): A '+' is valid.
11504
11505 See ChangeLog.6 for earlier changes.