OSDN Git Service

93dd23b892613c2ca75f3a5fbb6f6b84dbd7e049
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
4         (HAVE_NO_R_OPERAND): Remove.
5         (HAVE_VALUE): Remove.
6         (op_to_prio): Update.
7         (UNARY): Don't alter flags.
8         (_cpp_parse_expr): want_value used to indicate whether
9         a number or unary operator is expected next.  Distinguish
10         unary and binary +/-.
11         (op_as_text): Update for unary operators.
12
13 2002-04-25  Richard Henderson  <rth@redhat.com>
14
15         PR c/2161
16         * c-parse.in (yyoverflow): New.
17
18 2002-04-25  Richard Henderson  <rth@redhat.com>
19
20         PR c/2098
21         * c-common.c (shorten_compare): Simplfy conditions leading to
22         the generation of a warning.
23
24 2002-04-25  Richard Henderson  <rth@redhat.com>
25
26         PR c/2035
27         * expmed.c (extract_bit_field): Fall through to generic code rather
28         than aborting on subreg special case.
29
30 2002-04-25  David S. Miller  <davem@redhat.com>
31
32         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
33         for DECL being NULL.
34
35 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
36
37         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
38
39 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
40
41         * c-decl.c (grokdeclarator): Remove outdated ??? note
42         on invalid declaration of flexible array members.
43
44 2002-04-25  Richard Henderson  <rth@redhat.com>
45
46         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
47
48 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
49
50         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
51         needed by the compiler, even if they are used as global regs.
52
53 2002-04-25  Matt Hiller  <hiller@redhat.com>
54
55         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
56         functions.
57         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
58         of the corresponding functions.
59         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
60         New prototypes.
61         
62 2002-04-25  Matt Hiller  <hiller@redhat.com>
63
64         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
65
66         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
67         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
68         registers, adjust comment accordingly.
69         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
70         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
71         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
72         for coprocessor registers.
73         (ADDITIONAL_REGISTER_NAMES): Include
74         ALL_COP_ADDITIONAL_REGISTER_NAMES.
75         
76         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
77         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
78         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
79         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
80         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
81
82         (mips_char_to_class): Adjust comment to include coprocessor
83         constraint letters.
84
85         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
86         New functions.
87         (mips_reg_names, mips_regno_to_class): Include coprocessor
88         information.
89         (mips_sw_reg_names): Ditto, make non-static.
90         (mips_move_1word): Handle moves to and from coprocessor registers.
91         (mips_move_2words): Handle moves to and from coprocessor
92         registers.
93         (mips_class_max_nregs, mips_register_move_cost): Handle
94         coprocessor register classes.
95         (override_options): Initialize mips_char_to_class and
96         mips_hard_regno_mode_ok properly for coprocessor registers.
97
98         * config/mips/mips.md (movdi_internal, movdi_internal2,
99         movsi_internal1, movsi_internal2): Add constraint-sets for
100         coprocessor registers.
101         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
102         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
103         isn't mips.
104         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
105         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
106         isn't mips.
107         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
108         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
109         isn't mips.
110         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
111         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
112         isn't mips.
113         
114         * doc/tm.texi: Document feature.
115
116 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
117
118         * integrate.c (function_attribute_inlinable_p): Simplify.
119         Check the table pointer is not NULL.
120
121 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
122
123         * doc/c-tree.texi: Fix typo in introduction.
124
125 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
126
127         * c-common.h (c_common_parse_file): Update.
128         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
129         * c-lex.c (YYDEBUG): Get from c-lex.h.
130         (c_common_parse_file): Update.
131         * c-lex.h (YYDEBUG, yydebug): New.
132         * c-parse.in (YYDEBUG): Get from c-lex.h.
133         (c_set_yydebug): Remove.
134         * c-tree.h (c_set_yydebug): Remove.
135         * langhooks-def.h (lhd_do_nothing_i): New.
136         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
137         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
138         * langhooks.c  (lhd_do_nothing_i): New.
139         (lhd_set_yydebug): Remove.
140         * langhooks.h (struct lang_hooks): Update.
141         * toplev.c (set_yydebug): New.
142         (compile_file): Update call to parse_file hook.
143         (decode_d_option): Update.
144 objc:
145         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
146
147 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
148
149         * loop.c (load_mems): Don't change the interface of called functions.
150
151         * calls.c (expand_call): Take current_function_pretend_args_size
152         into account when setting argblock for sibcalls.
153
154 2002-04-24  Matt Hiller  <hiller@redhat.com>
155
156         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
157         * c-lex.c: Ditto.
158
159         * cpplex.c (skip_line_comment): Process comment one multibyte
160         character at a time rather than one char at a time, if
161         appropriate.
162         (parse_string): Process string one multibyte character at a time
163         rather than one char at a time, if appropriate.
164         * c-lex.c (lex_string): Lex and copy multibyte strings
165         appropriately.
166         * cpplib.h (cppchar_t): Change to unsigned.
167
168 2002-04-24  Richard Henderson  <rth@redhat.com>
169
170         PR c/3467
171         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
172         for c99.
173
174 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
175
176         * sh.c (sh_va_arg): If argument was passed by reference,
177         dereference the pointer.
178
179         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
180
181         * sh.md (divsi3_i4_media): Use match_operand for input values
182         rather than hard registers.
183         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
184         unnecessarily through hard registers.  Keep copies of pseudo
185         registers outside of the libcall sequence.
186
187         * sh.md (casesi_shift_media): Add modes.
188
189         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
190         values in memory.
191
192 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
193
194         * attribs.c (c_common_attribute_table): Move table and handlers
195         to c-common.c.
196         (format_attribute_table, lang_attribute_table,
197         lang_attribute_common): Remove.
198         (init_attributes): Replace NULL pointers with pointers to the
199         empty table.
200         (handle_packed_attribute, handle_nocommon_attribute,
201         handle_common_attribute, handle_noreturn_attribute,
202         handle_noinline_attribute, handle_always_inline_attribute,
203         handle_used_attribute, handle_unused_attribute,
204         handle_const_attribute, handle_transparent_union_attribute,
205         handle_constructor_attribute, handle_destructor_attribute,
206         handle_mode_attribute, handle_section_attribute,
207         handle_aligned_attribute, handle_weak_attribute,
208         handle_alias_attribute, handle_visibility_attribute,
209         handle_no_instrument_function_attribute, handle_malloc_attribute,
210         handle_no_limit_stack_attribute, handle_pure_attribute,
211         handle_deprecated_attribute, handle_vector_size_attribute,
212         vector_size_helper): Move to c-common.c.
213         * c-common.c (c_common_attribute_table,
214         handle_packed_attribute, handle_nocommon_attribute,
215         handle_common_attribute, handle_noreturn_attribute,
216         handle_noinline_attribute, handle_always_inline_attribute,
217         handle_used_attribute, handle_unused_attribute,
218         handle_const_attribute, handle_transparent_union_attribute,
219         handle_constructor_attribute, handle_destructor_attribute,
220         handle_mode_attribute, handle_section_attribute,
221         handle_aligned_attribute, handle_weak_attribute,
222         handle_alias_attribute, handle_visibility_attribute,
223         handle_no_instrument_function_attribute, handle_malloc_attribute,
224         handle_no_limit_stack_attribute, handle_pure_attribute,
225         handle_deprecated_attribute, handle_vector_size_attribute,
226         vector_size_helper): Move from attribs.c.
227         * c-common.h (c_common_attribute_table,
228         c_common_format_attribute_table): New.
229         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
230         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
231         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
232         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
233         (LANG_HOOKS_INITIALIZER): Update.
234         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
235         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
236         * target.h: Update comment.
237         * tree.c (default_target_attribute_table): Remove.
238         * tree.h (default_target_attribute_table, format_attribute_table,
239         lang_attribute_table, lang_attribute_common): Remove.
240 objc:
241         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
242         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
243
244 2002-04-24  Jason Merrill  <jason@redhat.com>
245
246         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
247         * dwarf2out.c (dwarf_attr_name): Support it.
248         (gen_array_type_die): Emit it.
249         (lookup_type_die): No special handling for VECTOR_TYPE.
250         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
251
252 2002-04-24  Richard Henderson  <rth@redhat.com>
253
254         * config/mips/mips.md (movdi_usd): Renumber.
255
256 2002-04-24  David S. Miller  <davem@redhat.com>
257
258         PR target/6420
259         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
260         32-bit Sparc and current_function_returns_struct is true.
261
262 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
263
264         * loop.c (canonicalize_condition): Use gen_int_mode.
265
266 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
267
268         * config/rs6000/altivec.h: Cleanup file.  Add non individual
269         variants.
270         (vec_vaddubm): New.
271         (vec_vadduhm): New.
272         (vec_vadduwm): New.
273         (vec_vaddfp): New.
274         (vec_vaddcuw): New.
275         (vec_vaddubs): New.
276         (vec_vaddsbs): New.
277         (vec_vadduhs): New.
278         (vec_vadduws): New.
279         (vec_vaddsws): New.
280         (vec_vand): New.
281         (vec_vandc): New.
282         (vec_vavgub): New.
283         (vec_vavgsb): New.
284         (vec_vavguh): New.
285         (vec_vavgsh): New.
286         (vec_vavguw): New.
287         (vec_vavgsw): New.
288         (vec_vrfip): New.
289         (vec_vcmpbfp): New.
290         (vec_vcmpequb): New.
291         (vec_vcmpequh): New.
292         (vec_vcmpequw): New.
293         (vec_vcmpeqfp): New.
294         (vec_vcmpgefp): New.
295         (vec_vcmpgtub): New.
296         (vec_vcmpgtsb): New.
297         (vec_vcmpgtuh): New.
298         (vec_vcmpgtsh): New.
299         (vec_vcmpgtuw): New.
300         (vec_vcmpgtsw): New.
301         (vec_vcmpgtfp): New.
302         (vec_vcmpgefp): New.
303         (vec_vcfux): New.
304         (vec_vcfsx): New.
305         (vec_vctsxs): New.
306         (vec_vctuxs): New.
307         (vec_vexptefp): New.
308         (vec_vrfim): New.
309         (vec_lvx): New.
310         (vec_lvebx): New.
311         (vec_lvehx): New.
312         (vec_lde): Add vector float variant.
313         (vec_lvewx): New.
314         (vec_lvxl): New.
315         (vec_vlogefp): New.
316         (vec_vmaddfp): New.
317         (vec_vmhaddshs): New.
318         (vec_vmaxub): New.
319         (vec_vmaxsb): New.
320         (vec_vmaxuh): New.
321         (vec_vmaxsh): New.
322         (vec_vmaxuw): New.
323         (vec_vmaxsw): New.
324         (vec_vmaxsw): New.
325         (vec_vmaxfp): New.
326         (vec_vmrghb): New.
327         (vec_vmrghh): New.
328         (vec_vmrghw): New.
329         (vec_vmrglb): New.
330         (vec_vmrglh): New.
331         (vec_vmrglw): New.
332         (vec_vminub): New.
333         (vec_vminsb): New.
334         (vec_vminuh): New.
335         (vec_vminsh): New.
336         (vec_vminuw): New.
337         (vec_vminsw): New.
338         (vec_vminfp): New.
339         (vec_vmladduhm): New.
340         (vec_vmhraddshs): New.
341         (vec_msumubm): New.
342         (vec_vmsummbm): New.
343         (vec_vmsumuhm): New.
344         (vec_vmsumshm): New.
345         (vec_vmsumuhs): New.
346         (vec_vmsumshs): New.
347         (vec_vmuleub): New.
348         (vec_vmulesb): New.
349         (vec_vmuleuh): New.
350         (vec_vmulesh): New.
351         (vec_vmuloub): New.
352         (vec_mulosb): New.
353         (vec_vmulouh): New.
354         (vec_vmulosh): New.
355         (vec_vnmsubfp): New.
356         (vec_vnor): New.
357         (vec_vor): New.
358         (vec_vpkuhum): New.
359         (vec_vpkuwum): New.
360         (vec_vpkpx): New.
361         (vec_vpkuhus): New.
362         (vec_vpkshss): New.
363         (vec_vpkuwus): New.
364         (vec_vpkswss): New.
365         (vec_vpkshus): New.
366         (vec_vpkswus): New.
367         (vec_vperm): New.
368         (vec_vrefp): New.
369         (vec_vrlb): New.
370         (vec_vrlh): New.
371         (vec_vrlw): New.
372         (vec_vrfin): New.
373         (vec_vrsqrtefp): New.
374         (vec_vsel): New.
375         (vec_vslb): New.
376         (vec_vslh): New.
377         (vec_vslw): New.
378         (vec_vsldoi): New.
379         (vec_vsl): New.
380         (vec_vslo): New.
381         (vec_vspltb): New.
382         (vec_vsplth): New.
383         (vec_vspltw): New.
384         (vec_vspltisb): New.
385         (vec_vspltish): New.
386         (vec_vspltisw): New.
387         (vec_vsrb): New.
388         (vec_vsrh): New.
389         (vec_vsrw): New.
390         (vec_vsrab): New.
391         (vec_vsrah): New.
392         (vec_vsraw): New.
393         (vec_vsr): New.
394         (vec_vsro): New.
395         (vec_stvx): New.
396         (vec_stvebx): New.
397         (vec_stvehx): New.
398         (vec_stvewx): New.
399         (vec_stvxl): New.
400         (vec_vsububm): New.
401         (vec_vsubuhm): New.
402         (vec_vsubuwm): New.
403         (vec_vsubfp): New.
404         (vec_vsubcuw): New.
405         (vec_vsububs): New.
406         (vec_vsubsbs): New.
407         (vec_vsubuhs): New.
408         (vec_vsubshs): New.
409         (vec_vsubuws): New.
410         (vec_vsubsws): New.
411         (vec_vsum4ubs): New.
412         (vec_vsum4sbs): New.
413         (vec_vsum4shs): New.
414         (vec_vsum2sws): New.
415         (vec_vsumsws): New.
416         (vec_vrfiz): New.
417         (vec_vupkhsb): New.
418         (vec_vupkhpx): New.
419         (vec_vupkhsh): New.
420         (vec_vupklsb): New.
421         (vec_vupklpx): New.
422         (vec_vupklsh): New.
423         (vec_vxor): New.
424
425 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
426
427         PR c/5430
428         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
429         added literals from substracted literals.
430         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
431         (fold) [associate]: Preserve MINUS_EXPR if needed.
432
433 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
434
435         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
436         are obsoleted.
437
438 2002-04-23  Tom Tromey  <tromey@redhat.com>
439
440         * gcc.c: Added --resource.  For PR java/6314.
441
442 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
443
444         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
445         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
446         these libraries.
447
448 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
449
450         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
451
452 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
453
454         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
455         workaround.
456         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
457         (ix86_expand_clrstr): Fix typo.
458         * loop.c (gen_load_of_final_value): New.
459         (loop_givs_rescan, strength_reduce, check_dbra_loop):
460         Use it.
461
462 2002-04-23  Roger Sayle  <roger@eyesopen.com>
463
464         * builtins.c (builtin_memset_gen_str): New function.
465         (expand_builtin_memset): Optimize the case of constant length, but
466         unknown value.
467
468 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
469
470         * config/rs6000/altivec.h (vec_step): Remove extraneous
471         parentheses.
472         (vec_ctu): Cast return.
473
474 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
475
476         PR target/6413
477         * function.h: (struct function): Add profile_label_no field.
478         (current_function_profile_label_no): Define.
479         * function.c: (profile_label_no): New static var.
480         (expand_function_start): Increment it, and copy to
481         current_function_profile_label_no.
482         * output.h (profile_label_no): Delete.
483         * final.c (profile_label_no): Delete.
484         (profile_function): Use current_function_profile_label_no.
485         (final_end_function): Don't increment profile_label_no here.
486         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
487         profile_label_no with current_function_profile_label_no.
488         * config/pa/pa.c (current_function_number): Delete.
489         (pa_output_function_prologue): Don't output profile label here.
490         (hppa_profile_hook): Use label_no param rather than
491         current_function_number.
492         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
493         * config/pa/pa.h: .. here.
494         (FUNCTION_PROFILER): Output profile label here.
495
496 2002-04-22  Eric Christopher  <echristo@redhat.com>
497
498         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
499         patch of 2002-04-09 due to binutils issues.
500         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
501
502 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
503
504         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
505         constraint to 'o' for m=r and r=m alternatives.
506         ("*movv8hi_internal1"): Same.
507         ("*movv16qi_internal1"): Same.
508         ("*movv4sf_internal1"): Same.
509
510 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
511
512         * rtl.h (RTX_FLAG): New macro.
513         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
514         * final.c (alter_subreg): Use macro to access rtx flag.
515         * integrate.c (copy_rtx_and_substitute): Use new access macro.
516         * print-rtl.c (print_rtx): Use new access macro.
517
518         * cse.c (insert): Check rtx code before accessing flag.
519
520         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
521         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
522         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
523         convert_const_symbol_ref, make_canonical, make_alternative_compare,
524         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
525         simplify_test_exp, optimize_attrs, simplify_by_exploding,
526         find_and_mark_used_attributes, unmark_used_attributes,
527         add_values_to_cover, simplify_with_current_value,
528         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
529         copy_rtx_unchanging, main): Use new access macros.
530
531 2002-04-22  Tom Rix  <trix@redhat.com>
532
533         * expmed.c (init_expmed): Generate shifted constant once.
534
535 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
536
537         * c-lex.c (lex_charconst): Call convert to get constant in
538         proper type; don't just smash the type field.
539         Fixes PR c/6300.
540
541         * config.gcc: Add list of obsolete configurations.  Disallow
542         building these without --enable-obsolete.
543         * doc/install.texi: Document --enable-obsolete and obsoletion
544         policy.  Mention obsoletion of individual targets in
545         appropriate places.
546
547 2002-04-22  Richard Henderson  <rth@redhat.com>
548
549         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
550
551 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
552
553         PR f/6138.
554         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
555         (walk_fixup_memory_subreg): Likewise.
556         (fixup_var_refs_insn): Adjust accordingly.
557         (fixup_var_refs_1): Likewise.
558
559 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
560
561         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
562         LIBPATH_ARCH64_SPEC): Define.
563         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
564         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
565         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
566         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
567
568 2002-04-22      Joel Sherrill <joel@OARcorp.com>
569
570         * gthr-rtems.h: Correct prototypes to remove warnings.
571
572 2002-04-22  Richard Henderson  <rth@redhat.com>
573
574         PR c/6344
575         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
576
577         * gcse.c (free_insn_expr_list_list): New.
578         (clear_modify_mem_tables): Use it.  Fix bit set usage.
579         (canon_list_insert): Use EXPR_LISTs for expressions.
580         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
581
582 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
583
584         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
585         file change and include code to _cpp_pop_buffer.
586         * cpphash.h (struct pending_option): Predeclare.
587         (struct cpp_reader): New member next_include_file.
588         (_cpp_pop_file_buffer): Update.
589         (_cpp_push_next_buffer): Update, rename.
590         * cppinit.c (cpp_destroy): Free include chain and pending here.
591         (cpp_finish_options): Simplify.
592         (_cpp_push_next_buffer): Rename and clean up.
593         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
594         Clarify.
595         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
596
597 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
598
599         * config/rs6000/altivec.h (vec_xor): Add variant for both args
600         being vector signed int.
601         (vec_andc): Same.
602         (vec_xor): Add variant for both args being vector signed char.
603         Remove redundant variant.
604         (vec_andc): Same.
605
606 2002-04-21  David S. Miller  <davem@redhat.com>
607
608         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
609         compare mode in output RTL.
610
611 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
612
613         * config/rs6000/rs6000.c (rs6000_override_options): Correct
614         style and formatting of previous patch.
615
616 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
617
618         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
619         flag_pic for ABI_AIX.
620
621 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
622
623         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
624         * cppfiles.c (read_include_file): Similarly.
625         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
626         uxstrdup ustrchr, ufputs): Similarly.
627         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
628         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
629         cpp_ideq, parse_identifier, parse_number): Similarly.
630         * cpplib.c (struct directive, dequote_string, D, run_directive,
631         cpp_push_buffer): Similarly.
632         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
633         _cpp_create_definition, check_trad_stringification,
634         cpp_macro_definition): Similarly.
635
636 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
637
638         * cppmacro.c (funlike_invocation_p): Don't step back
639         over CPP_EOF.
640
641 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
642
643         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
644         labelno.
645
646 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
647
648         * doc/invoke.texi: Remove Chill references.
649         * doc/gcc.texi: Update last modified date.
650
651 2002-04-20  Kazu Hirata  <kazu@hxi.com>
652
653         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
654         push and pop.  Replace add.l with add.w.
655
656 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
657
658         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
659         multiply instructions for H8/300H case.
660
661 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
662
663         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
664         Bum three instructions from each routine.
665
666 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
667
668         * Makefile.in: Update.
669         * decl.c (push_c_function_context, pop_c_function_context,
670         mark_c_function_context): Rename for consistency.
671         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
672         * c-tree.h (push_c_function_context, pop_c_function_context,
673         mark_c_function_context): Rename for consistency.
674         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
675         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
676         * function.c (init_lang_status, save_lang_status,
677         restore_lang_status, mark_lang_status, free_lang_status):
678         Move to langhooks.h.
679         (push_function_context_to, pop_function_context_from,
680         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
681         Update.
682         * function.h (init_lang_status, save_lang_status,
683         restore_lang_status, mark_lang_status, free_lang_status):
684         Move to langhooks.h.
685         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
686         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
687         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
688         LANG_HOOKS_FUNCTION_INITIALIZER): New.
689         (LANG_HOOKS_INITIALIZER): Update.
690         (lhd_do_nothing_f): New.
691         * langhooks.h (struct lang_hooks_for_functions): New.
692         (struct lang_hooks): New hooks.
693         * langhooks.c (lhd_do_nothing_f): New.
694 objc:
695         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
696         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
697
698 2002-04-19  David S. Miller  <davem@redhat.com>
699
700         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
701         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
702
703 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
704
705         PR optimization/3756
706         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
707         x = ((int) y < 0) ? cst1 : cst2.
708
709 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
710
711         PR c/6358
712         * function.c: Reapply patch for c/6358.
713         (expand_function_end): Copy decl_rtl's mode, not
714         current_function_return_rtx mode.
715
716 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
717
718         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
719         targets.
720
721 2002-04-19  Tom Tromey  <tromey@redhat.com>
722
723         * doc/install.texi (Specific): Update status of Solaris 2.8.
724         For PR libgcj/6158.
725
726 2002-04-19  Andreas Schwab  <schwab@suse.de>
727
728         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
729         (PUT_REAL): Restore old definition.
730
731 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
732             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
733
734         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
735         binutils 2.11.2 and higher generate smaller binaries than Sun's
736         native tools.
737
738 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
739
740         PR c++/6352
741         * toplev.c (rest_of_compilation): Do not defer functions for which
742         TREE_SYMBOL_REFERENCED has already been set.
743
744 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
745
746         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
747         alternative.
748
749 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
750
751         * builtins.c: Include langhooks.h.
752         (lang_type_promotes_to): Remove.
753         (expand_builtin_va_arg): Use new hook.
754         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
755         (simple_type_promotes_to): Move to c-typeck.c.
756         * c-common.h (simple_type_promotes_to): Remove.
757         * c-decl.c (duplicate_decls, grokdeclarator): Update.
758         * c-format.c: Include langhooks.h.
759         (check_format_types): Update.
760         * c-tree.h (c_type_promotes_to): New.
761         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
762         (type_lists_compatible_p): Update.
763         * langhooks-def.h (lhd_type_promotes_to): New.
764         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
765         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
766         * langhooks.c (lhd_type_promotes_to): New.
767         * langhooks.h (struct lang_hooks_for_types): New hook.
768         * tree.h (lang_type_promotes_to): Remove.
769 objc:
770         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
771
772 2002-04-18  Richard Henderson  <rth@redhat.com>
773
774         * function.c: Revert patch for c/6358.
775
776 2002-04-18  Richard Henderson  <rth@redhat.com>
777
778         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
779         blocks.  Handle multiple references to the TRAP block.  Handle
780         non-adjacent THEN and OTHER blocks.
781
782 2002-04-18  Richard Henderson  <rth@redhat.com>
783
784         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
785         crash with no type for by-mode libcalls.
786
787         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
788
789 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
790
791         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
792         __xtensa_nonlocal_goto): Use a syscall instructions to flush
793         the register windows.
794
795 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
796
797         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
798         appropriate.  Document need for extended precision even when
799         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
800         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
801         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
802         instead of relying on later syntax error when REAL_WIDTH > 5.
803         * real.c: Define NE based only on whether or not we have a
804         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
805         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
806         define GET_REAL and PUT_REAL as simple memcpy operations; no
807         need to byteswap or round.
808         Use #error instead of #ifdef-ing out the entire file, for
809         prompt error detection.
810
811         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
812
813 2002-04-18  David S. Miller  <davem@redhat.com>
814
815         * config/sparc/sparc.h (BRANCH_COST): Define.
816
817         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
818         does it.
819
820 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
821
822         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
823         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
824         propagate_block calls after relaxation loop using new variable
825         stabilized_prop_flags.
826
827 2002-04-18  Richard Henderson  <rth@redhat.com>
828
829         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
830         (ia64_va_arg): Expect variable sized types by reference.
831         * config/ia64/ia64-protos.h: Update.
832         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
833         ia64_function_arg_pass_by_reference.
834
835 2002-04-18  Richard Henderson  <rth@redhat.com>
836
837         * ifcvt.c: Include except.h.
838         (block_has_only_trap): Break out from find_cond_trap.
839         (find_cond_trap): Use it.  Always delete the trap block.
840         (merge_if_block): Allow then block null.  Be less simplistic about
841         what insns can end a block.
842         * Makefile.in (ifcvt.o): Depend on except.h.
843
844         * config/ia64/ia64.md (trap, conditional_trap): New.
845
846 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
847
848         PR c/6358
849         * function.c (assign_parms): Assign hard current_function_return_rtx
850         register here...
851         (expand_function_end): ...not here.
852
853 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
854
855         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
856         * c-tree.h (c_incomplete_type_error): New.
857         * c-typeck.c (require_complete_type, build_component_ref): Update.
858         (incomplete_type_error): Rename.
859         * langhooks-def.h (lhd_incomplete_type_error): New.
860         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
861         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
862         * langhooks.c (lhd_incomplete_type_error): New.
863         * langhooks.h (struct lang_hooks_for_types): New hook.
864         * tree.c (size_in_bytes): Use new hook.
865         * tree.h (incomplete_type_error): Remove.
866 objc:
867         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
868
869 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
870
871         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
872         TARGET_FLOAT_FORMAT blocks.
873
874 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
875
876         * doc/install.texi (Downloading the source): Do not mention Chill
877         any longer, but mention Ada.
878         (Configuration): Do not mention Chill any longer.
879
880 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
881
882         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
883
884 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
885
886         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
887         in last patch.
888
889 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
890
891         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
892         instead of unsigned_type.
893
894 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
895
896         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
897         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
898         later.
899
900 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
901
902         * attribs.c (vector_type_node_list): New static variable.
903         (handle_vector_size_attribute): Use it to avoid generating a
904         new type node each time we are called.
905
906         * combine.c (subst): Avoid trying to make a vector mode subreg of
907         an integer constant.
908         (gen_lowpart_for_combine): Likewise.
909
910 2002-04-18  Roger Sayle  <roger@eyesopen.com>
911             Jakub Jelinek  <jakub@redhat.com>
912
913         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
914         for integer constant c (if x has unsigned type or sign bit is not
915         set in c).  This folds the zero/sign extension into the bit-wise and
916         operation.
917
918 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
919
920         PR middle-end/6205
921         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
922         otherwise xorps.
923
924 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
925
926         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
927
928 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
929
930         * gcc.c (read_specs): Detect and fail if an attempt is made to
931         rename a spec string to an already existing string.
932
933 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
934
935         * config/s390/s390.c (legitimize_pic_address): Do not generate
936         illegal address constant without CONST.
937
938 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
939
940         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
941         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
942
943 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
944
945         PR optimization/6305
946         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
947         to make sure previous reloads are taken into account.  Generate
948         better code if one operand is an in-range immediate constant.
949
950 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
951
952         * doc/install.texi (Building): libgcj requires GNU make.
953
954 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
955
956         PR bootstrap/6315
957         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
958         even if hard quad and register is not floating.
959         (movtf reg<-mem split): Disallow splitting if hard quad and
960         register is floating.
961         (movtf mem<-reg split): Likewise.
962         * config/sparc/sparc.c (fp_register_operand): New predicate.
963         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
964
965 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
966
967         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
968         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
969         (unprotoize.o): Ditto.  Build from protoize.c.  Define
970         UNPROTOIZE on command line.
971         * protoize.c: Include cppdefault.h.  Delete include_defaults.
972         (in_system_include_dir): Use cpp_include_defaults (defined in
973         cppdefault.o).
974         * unprotoize.c: Delete file.
975
976 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
977
978         * config/rs6000/altivec.h (vec_ld): Add array variants.
979         (vec_lde): Same.
980         (vec_ldl): Same.
981
982 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
983             Aldy Hernandez <aldyh@redhat.com>
984
985         * config/rs6000/altivec.h: Define __ALTIVEC__.
986         (bool): New.
987         (__pixel): New.
988         (pixel): New.
989         (vec_cfux): New.
990         (vec_vmaddfp): New.
991         (vec_vsldoi): New.
992         Add parentheses to all macro arguments.
993
994 2002-04-16  Richard Henderson  <rth@redhat.com>
995
996         PR c++/6320
997         * except.c (remove_eh_handler): Insert inner regions at beginning
998         of sibling chain.  Refactor expressions.
999
1000 2002-04-16  Richard Henderson  <rth@redhat.com>
1001
1002         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1003         * config/sparc/sol2-gas-bi.h: New file.
1004         * config.gcc (sparc*-solaris): Add it as needed.
1005         * configure.in (AS_SPARC64_FLAG): Remove check.
1006         * config.in, configure: Regenerate.
1007
1008         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1009
1010 2002-04-16  Richard Henderson  <rth@redhat.com>
1011
1012         * config/mips/mips.c (override_options): Don't override N32 for
1013         a 64-bit ISA.
1014
1015         PR 6202
1016         * config/mips/mips.md (can_delay): Split out of existing define_delays.
1017         (HILO_delay): Set can_delay false.
1018
1019 2002-04-16  Dale Johannesen <dalej@apple.com>
1020
1021         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1022         instruction addresses.
1023         (rs6000_output_function_epilogue): Likewise.
1024
1025 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
1026
1027         * c-parse.in (poplevel, compstmt_start,
1028         compstmt_primary_start): Add ending ';', in accordance
1029         with POSIX.
1030
1031 2002-04-16  Richard Henderson  <rth@redhat.com>
1032
1033         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1034         Adjust tm_file order to get TARGET_DEFAULT set properly.
1035         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1036         * doc/install.texi (sparc-solaris): Update.
1037
1038 2002-04-16  Dale Johannesen <dalej@apple.com>
1039
1040         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1041         comparison operands do not match each other or if modes of
1042         conditions do not match result.
1043
1044 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
1045
1046         PR target/6305
1047         * config/s390/s390.md (mulsidi3): Set both subregs of the
1048         multiword register.
1049
1050 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
1051
1052         * config/rs6000/altivec.h (vec_addc): Type check.
1053
1054 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1055
1056         PR middle-end/6279
1057         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1058
1059         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1060
1061 2002-04-15  Richard Henderson  <rth@redhat.com>
1062
1063         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1064         call_really_used_regs too.
1065
1066 2002-04-15  Richard Henderson  <rth@redhat.com>
1067
1068         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1069
1070 2002-04-15  David S. Miller  <davem@redhat.com>
1071
1072         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1073         as being CLOBBERed.
1074
1075 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1076
1077         PR c/6290
1078         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1079         CONST_VECTOR is { 0, ... 0 }.
1080
1081 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
1082
1083         * doc/install.texi (Installing GCC: Configuration): Clarify
1084         the only supported ways to configure gcc.
1085
1086 2002-04-15  Roland McGrath  <roland@frob.com>
1087
1088         * config.gcc (alpha*-*-gnu*): New target configuration.
1089         * config/alpha/gnu.h: New file for it.
1090         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1091
1092 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
1093
1094         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1095         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1096         * tree.h (expand_start_stmt_expr): Update prototype.
1097         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1098         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1099         on the STMT_EXPR created for the inline function.
1100
1101 2002-04-15  Richard Henderson  <rth@redhat.com>
1102
1103         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1104         config/i386/linux-aout.h, config/i386/linux-oldld.h,
1105         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1106         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1107         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1108         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1109         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1110         Define __gnu_linux__, not gnu_linux.
1111         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1112
1113 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
1114
1115         Remove Chill front end.
1116         * gcc.c (default_compilers): Remove Chill entries.
1117         * ch: Remove directory.
1118         * doc/frontends.texi: Remove information about Chill.
1119         * doc/sourcebuild.texi: Likewise.
1120         * doc/standards.texi: Likewise.
1121
1122 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
1123
1124         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1125         (LONGLONG_STANDALONE): Define.
1126
1127 2002-04-15  David S. Miller  <davem@redhat.com>
1128
1129         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1130         Call emit_library_call with LCT_NORMAL.
1131         (sparc_initialize_trampoline): Use LCT_foo instead of
1132         magic constant in emit_library_call invocations.
1133         (sparc64_initialize_trampoline): Likewise.
1134         (sparc_profile_hook): Likewise.
1135         * config/sparc/sparc.md: Likewise.
1136
1137         * config/sparc/sparc.c (sparc_extra_constraint_check):
1138         Fix type of argument 'c'.
1139         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1140         Likewise.
1141
1142 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1143
1144         * diagnostic.h (output_buffer_state): Redefine.
1145         (output_format_decoder): New macro.
1146         (output_prefixing_rule): Likewise.
1147         (output_line_cutoff): Likewise.
1148         (diagnostic_format_decoder): Adjust.
1149         (diagnostic_prefixing_rule): Likewise.
1150         (diagnostic_line_cutoff): Likewise.
1151         (diagnostic_state): Likewise.
1152         (diagnostic_kind_count): Likewise.
1153         (diagnostic_buffer): Now a macro.
1154
1155         * diagnostic.c (diagnostic_buffer): Remove definition.
1156         (output_is_line_wrapping): Adjust.
1157         (set_real_maximum_length): Likewise.
1158         (output_set_maximum_length): Likewise.
1159         (init_output_buffer): Likewise.
1160         (lhd_print_error_function): Likewise.
1161         (output_do_verbatim): Likewise.
1162
1163 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1164
1165         * cpperror.c (print_location): Don't print include chain
1166         if line == 0.
1167         (cpp_begin_message): Update to use DL_ macros.
1168         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1169         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1170         cpp_notice, cpp_notice_from_errno): Remove.
1171         (cpp_error, cpp_error_with_line): Update to take a diagnostic
1172         level.
1173         (cpp_errno): New.
1174         * cppexp.c (CPP_ICE): Remove.
1175         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1176         lex, integer_overflow, _cpp_parse_expr): Update.
1177         * cppfiles.c (read_include_file, find_include_file,
1178         handle_missing_header, _cpp_read_file, remap_filename): Update.
1179         * cpphash.h (enum error_type): Remove.
1180         (_cpp_begin_message): Update.
1181         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1182         cpp_handle_option, cpp_post_options): Update.
1183         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1184         skip_whitespace, parse_identifier, parse_slow, parse_string,
1185         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1186         cpp_interpret_charconst): Update.
1187         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1188         lex_macro_node, do_undef, glue_header_name, parse_include,
1189         do_include_common, read_flag, do_line, do_linemarker, do_ident,
1190         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1191         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1192         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1193         _cpp_pop_buffer, do_diagnostic): Update.
1194         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1195         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1196         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1197         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1198         cpp_notice, cpp_notice_from_errno): Remove.
1199         (cpp_error, cpp_error_with_line): Update to take a diagnostic
1200         level.
1201         (cpp_errno): New.
1202         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1203         collect_args, enter_macro_context, save_parameter, parse_params,
1204         _cpp_create_definition, check_trad_stringification,
1205         cpp_macro_definition): Update.
1206         * cppmain.c (cpp_preprocess_file): Update.
1207         * fix-header.c (read_scan_file): Update.
1208
1209 2002-04-14  Andreas Schwab  <schwab@suse.de>
1210
1211         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1212
1213 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1214
1215         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1216
1217 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
1218
1219         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1220         not gnu_hurd.
1221
1222 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
1223
1224         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1225
1226 2002-04-13      Joel Sherrill <joel@OARcorp.com>
1227
1228         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
1229         sparc-elf and sparc-rtems targets.
1230
1231 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
1232
1233         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1234         defined, and __gnu_hurd__ wherever __GNU__ is defined.
1235         * arm/linux-elf.h: Likewise.
1236         * cris/aout.h: Likewise.
1237         * cris/linux.h: Likewise.
1238         * i370/linux.h: Likewise.
1239         * i386/gnu.h: Likewise.
1240         * i386/linux-aout.h: Likewise.
1241         * i386/linux-oldld.h: Likewise.
1242         * i386/linux.h: Likewise.
1243         * i386/linux64.h: Likewise.
1244         * ia64/linux.h: Likewise.
1245         * m68k/linux-aout.h: Likewise.
1246         * m68k/linux.h: Likewise.
1247         * mips/linux.h: Likewise.
1248         * pa/pa-linux.h: Likewise.
1249         * pj/linux.h: Likewise.
1250         * rs6000/sysv4.h: Likewise.
1251         * s390/linux.h: Likewise.
1252         * sh/linux.h: Likewise.
1253         * sparc/linux-aout.h: Likewise.
1254         * sparc/linux.h: Likewise.
1255         * sparc/linux64.h: Likewise.
1256         * xtensa/linux.h: Likewise.
1257
1258 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
1259
1260         * stmt.c (check_unique_operand_names): Expect operand names to
1261         be strings rather than identifiers.  Use simple_cst_equal to
1262         compare them.
1263         (resolve_operand_name_1): Make same identifier to string change here.
1264         * c-parse.in (asm_operand): Convert a named operand into a string.
1265         * cp/parse.y (asm_operand): Likewise.
1266
1267 2002-04-13  Andreas Schwab  <schwab@suse.de>
1268
1269         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1270
1271 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
1272
1273         Revert these changes:
1274
1275         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1276
1277         PR c++/5571
1278         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1279
1280 2002-04-12  Richard Henderson  <rth@redhat.com>
1281
1282         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1283         (sparc*-*-solaris): Clean up header files.
1284         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1285         and plan on generating 64-bit code.
1286         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1287         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1288         * config/sparc/sol2-sld-64.h: Rename ...
1289         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
1290         for AS_SPARC64_FLAG not defined.
1291         * config/sparc/sol2-gld-bi.h: New.
1292         * config/sparc/sol2-sld.h: Remove.
1293         * config/sparc/sol26-sld.h: New.
1294         * config/sparc/sol2.h: Tidy comments.
1295         * doc/install.texi: Document sparc-solaris configury changes.
1296
1297 2002-04-12  Richard Henderson  <rth@redhat.com>
1298
1299         * recog.c (offsettable_address_p): Match the logic in adjust_address.
1300
1301         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1302         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
1303
1304 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1305
1306         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1307
1308 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
1309
1310         * pa.c (pa_can_combine_p): Call extract_insn before calling
1311         constrain_operands.
1312
1313 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
1314
1315         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1316         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1317         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1318         (CPP_PREDEFINES): Handle __declspec.
1319         * config/i386/t-interix (USER_H): Remove.
1320
1321 2002-04-12  DJ Delorie  <dj@redhat.com>
1322
1323         * integrate.c (compare_blocks): Make comparisons safe for when
1324         sizeof(int) < sizeof(char *).
1325         (find_block): Likewise.
1326
1327 2002-04-12  Jan Hubicka  <jh@suse.cz>
1328             David Edelsohn  <edelsohn@gnu.org>
1329
1330         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1331         registers.
1332         (symbol_ref_operand): New.
1333         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1334         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1335
1336 2002-04-12  Andreas Schwab  <schwab@suse.de>
1337
1338         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1339         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1340         overrides the definition in config/svr4.h.
1341
1342 2002-04-12      Eric Norum <eric.norum@usask.ca>
1343
1344         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1345         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1346         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1347         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1348         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1349         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1350         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1351         definitions to config/rtems.h and make the targets more similar.
1352
1353 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1354
1355         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1356         POINTERS_EXTEND_UNSIGNED.
1357         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1358         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1359
1360         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1361         not specified.
1362
1363 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
1364
1365         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1366         depends on TARGET_SHMEDIA, not TARGET_SH5.
1367
1368 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
1369
1370         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1371         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1372
1373 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1374
1375         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1376         no r0 clobber.
1377
1378 2002-04-12  Andreas Schwab  <schwab@suse.de>
1379
1380         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1381
1382 2002-04-12  Richard Henderson  <rth@redhat.com>
1383
1384         PR bootstrap/4191
1385         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1386
1387         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1388         modes spanning multiple hard regs.
1389
1390         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1391
1392 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1393
1394         * pa.c (pa_output_function_prologue): Don't accumulate the total
1395         number of code bytes when using TARGET_64BIT, or gas, SOM and not
1396         the portable runtime.
1397         (output_deferred_plabels): Handle 64bit plabels.
1398         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1399         generating pic code using the GAS assembler for object formats that
1400         are not SOM (ie., ELF32 and ELF64).
1401         (output_millicode_call): Check attribute type if attribute length is 28.
1402         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
1403         dbr_sequence_length once.
1404         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1405         dbr_sequence_length once.
1406         * pa.h (TARGET_SOM): Define if not defined.
1407         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1408         with GAS and not SOM.
1409         (jump, call_internal_reg, call_value_internal_reg): Likewise.
1410         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
1411
1412 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1413
1414         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1415         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1416         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1417         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1418         elfos.h and dbxelf.h values are fine now.
1419         * config/i386/freebsd.h, config/alpha/freebsd.h
1420         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1421
1422 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1423
1424         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1425         or set Acpu or Amachine.  Reformat.
1426         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1427         define.
1428         (LINK_SPEC): Do not need to undef.
1429         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1430         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1431         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1432         define.
1433         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1434         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1435         (LINK_SPEC): Do not need to undef.
1436         (DONT_USE_BUILTIN_SETJMP): Do not define.
1437         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1438         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
1439         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1440         Remove trailing spaces.
1441         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1442         __ELF__, or set Acpu or Amachine.  Reformat.
1443         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1444         define.
1445
1446 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1447
1448         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1449         all other *-*-freebsd* targets.
1450
1451 2002-04-11  Richard Henderson  <rth@redhat.com>
1452
1453         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1454
1455 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
1456
1457         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1458         Include {cpu}/{cpu}.h thru tm_file.
1459         (alpha*-*-linux*ecoff): Remove target.
1460         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1461         (LINK_SPEC): Remove, is not OS independent.
1462         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1463         (LINK_SPEC): Do not need to #undef any longer.
1464         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1465         any longer.
1466         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1467         __ELF__.
1468         (LINK_SPEC): Moved here from alpha/elf.h.
1469         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1470         SUB_CPP_PREDEFINES.
1471         * config/alpha/linux-ecoff.h: Remove.
1472         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1473         (CPP_SPEC): Define _POSIX_SOURCE as needed.
1474         (CPP_SUBTARGET_SPEC): Do not define.
1475         (LINK_SPEC): Do not need to #undef any longer.
1476         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1477         * config/alpha/vms.h: Likewise.
1478
1479 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
1480
1481         * doc/extend.texi: Remove old claim that typedefs cannot have
1482         an alignment attribute.
1483
1484 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1485
1486         PR optimization/6177
1487         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1488         bitpos is 0 and bitsize CONCAT size.
1489
1490 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
1491
1492         PR c/6223
1493         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1494
1495 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
1496
1497         * config/alpha/freebsd.h: Minor reformatting.
1498         (CPP_SPEC): Define ELF and add cpp_subtarget.
1499         (ASM_SPEC): No longer needed.
1500
1501 2002-04-11  Richard Henderson  <rth@redhat.com>
1502
1503         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1504         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
1505         (dimode mem/zero splitter): New.
1506
1507 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
1508
1509         * config/cris/cris.c (cris_override_options): Tweak error message
1510         for PIC not implemented.
1511
1512         * config/cris/cris.h: Tweak comments related to parameter-passing.
1513
1514         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1515
1516 2002-04-10  Richard Henderson  <rth@redhat.com>
1517
1518         * except.c (add_ehl_entry): Allow duplicates after landing pad
1519         creation.
1520
1521 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
1522
1523         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1524
1525 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
1526
1527         * c-decl.c (c_init_decl_processing): Move generation of
1528         decls for g77_integer_type_node and friends from here ...
1529         * c-common.c (c_common_nodes_and_builtins): ... to here.
1530
1531 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
1532
1533         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1534         is only used as frame pointer when frame_pointer_needed is true.
1535
1536 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
1537
1538         PR target/817
1539         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1540         for the fact that the pool entry uses two words.
1541         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
1542         1k bytes.
1543         (movdf_soft_insn): Similarly.
1544         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1545         for the fact that the pool entry uses three words.
1546
1547 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
1548
1549         * config/mips/mips.c (mips_va_arg): When using the struct version
1550         of the EABI va_list, allow arguments in the register save area to
1551         take up less room than a stack argument.
1552
1553 2002-04-10  Richard Henderson  <rth@redhat.com>
1554
1555         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1556         if EXPAND_INITIALIZER.
1557
1558 2002-04-09  Richard Henderson  <rth@redhat.com>
1559
1560         * config/alpha/alpha.md (movdi_er_maybe_g): New.
1561         * config/alpha/alpha.c (alpha_expand_mov): Use it.
1562
1563 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
1564
1565         PR optimization/6233
1566         * rtlanal.c (pure_call_p): New function.
1567         * rtl.h (pure_call_p): Declare.
1568         * loop.c (prescan_loop): Use it to set has_nonconst_call.
1569         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1570
1571 2002-04-09  Eric Christopher  <echristo@redhat.com>
1572
1573         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1574         information to .comm directive.
1575
1576 2002-04-09  Richard Henderson  <rth@redhat.com>
1577
1578         PR c/5078
1579         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1580
1581 2002-04-09  Richard Henderson  <rth@redhat.com>
1582
1583         * basic-block.h (flow_delete_block_noexpunge): Declare.
1584         (expunge_block_nocompact): Declare.
1585         * cfg.c (expunge_block_nocompact): Split out from ...
1586         (expunge_block): ... here.
1587         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1588         (flow_delete_block_noexpunge): Split out from ...
1589         (flow_delete_block): ... here.
1590         * cfgcleanup.c (delete_unreachable_blocks): Compact while
1591         removing dead blocks.
1592         * except.c (exception_handler_labels): Remove.
1593         (exception_handler_label_map): New.
1594         (struct eh_region): Add aka member.
1595         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1596         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1597         (for_each_eh_label, for_each_eh_label_1): New.
1598         (init_eh): Register exception_handler_label_map.
1599         (free_eh_status): Use free_region.
1600         (find_exception_handler_labels): Use the map, not the list.
1601         (remove_exception_handler_label): Likewise.
1602         (maybe_remove_eh_handler): Likewise.
1603         (remove_eh_handler): Use the region aka bitmap.
1604         * except.h (exception_handler_labels): Remove.
1605         (for_each_eh_label): Declare.
1606         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1607         * loop.c (invalidate_loops_containing_label): New.
1608         (find_and_verify_loops): Use it.  Use for_each_eh_label.
1609         * sched-rgn.c (is_cfg_nonregular): Use
1610         current_function_has_exception_handlers.
1611
1612 2002-04-09  Richard Henderson  <rth@redhat.com>
1613
1614         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1615         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1616         Do not return changed status.
1617         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1618         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1619         New functions that do return changed status.
1620         * sbitmap.h: Update decls.
1621         * gcse.c, lcm.c: Use _cg functions as needed.
1622
1623 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1624
1625         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1626         (sh64-*-elf*, sh-*-rtemself*): Likewise.
1627         * config/sh/embed_bb.c: New file.
1628         * config/sh/embed-elf.h: New file.
1629         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1630         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
1631         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1632         __PTRDIFF_TYPE__ .
1633         (SUBTARGET_CPP_PTR_SPEC): Don't define.
1634         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1635         Add subtarget_asm_endian_spec.
1636         (ASM_SPEC): Use subtarget_asm_endian_spec.
1637         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1638         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1639         (WCHAR_UNSIGNED): Define.
1640         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1641         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1642         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1643         Fix value.
1644         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1645         (sh_adjust_cost): Likewise.
1646         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1647         __PTRDIFF_TYPE__ .
1648         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1649         (WCHAR_TYPE_SIZE): Likewise.
1650         (ASM_SPEC): Use subtarget_asm_endian_spec.
1651         (SH_ELF_WCHAR_TYPE): #undef/ #define.
1652         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1653         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1654         (MAX_WCHAR_TYPE_SIZE): Don't #define .
1655         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1656         (USER_LABEL_PREFIX): Don't #undef /#define .
1657         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1658         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1659         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1660         (ASM_SPEC): Likewise.
1661         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1662         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1663         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1664         (LIB2FUNCS_EXTRA): Define.
1665         * t-sh64 (LIB2FUNCS_EXTRA): Define.
1666         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1667         (LIB1ASMFUNCS_CACHE): Define.
1668         (LIB2FUNCS_EXTRA): Redefine empty.
1669
1670 2002-04-08  Richard Henderson  <rth@redhat.com>
1671
1672         * reorg.c (get_branch_condition): Use reversed_comparison_code.
1673
1674 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1675
1676         * config/m68hc11/larith.asm (__map_data_section): Fix condition
1677         and optimize for size.
1678         (__do_global_ctors): Fix pointer comparison.
1679         (__do_global_dtors): Likewise.
1680
1681 2002-04-09  David S. Miller  <davem@redhat.com>
1682
1683         * config/sparc/sparc.c (sparc_extra_constraint_check): New
1684         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
1685         allow reloading pseudos.
1686         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1687         * config/sparc/sparc-protos.h: Declare it.
1688
1689         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1690         unsigned comparison warning.
1691         (output_restore_regs): Mark leaf_function as unused.
1692
1693 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1694
1695         * expr.c (is_aligning_offset): New function.
1696         (expand_expr, case COMPONENT_EXPR): Call it.
1697
1698 2002-04-08  David S. Miller  <davem@redhat.com>
1699
1700         PR target/6082
1701         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1702
1703         Make init_priority work on Sparc when using GNU ld.
1704         * config/sparc/linux.h, config/sparc/linux64.h,
1705         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1706         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1707         * config/sparc/sol2-gld.h: New file to do the same.
1708         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1709         sparc/sol2-gld.h to tm_file.
1710
1711         PR optimization/4328
1712         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1713         * doc/md.texi: Document it.
1714         * config/sparc/sparc.md (movdi_insn_sp64_novis,
1715         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1716         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1717         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1718         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1719
1720 2002-04-08  Andreas Jaeger  <aj@suse.de>
1721
1722         * stmt.c (expand_asm_operands): Revert last patch from Richard
1723         Henderson.
1724
1725 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1726
1727         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1728         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
1729
1730 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1731
1732         * doc/contrib.texi (Contributors): Add David O'Brien.
1733
1734 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
1735
1736         * configure.in (auto-build.h): Use target_alias and build_alias
1737         when running configure.
1738         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1739         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1740         * configure: Regenerate.
1741
1742 2002-04-07  David S. Miller  <davem@redhat.com>
1743
1744         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1745
1746 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1747
1748         PR 5933
1749         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1750         generating 32-bit pic code.
1751
1752 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
1753
1754         * cppinit.c (cpp_create_reader): Initialize
1755         discard_comments_in_macro_exp.
1756         (COMMAND_LINE_OPTIONS): Add "-CC" option.
1757         (cpp_handle_option): Handle "-CC" option.
1758         * cpplex.c (save_comment): If saving a C++ comment in
1759         a directive, convert it to a C comment.
1760         (_cpp_lex_direct): Pass second comment start character to
1761         save_comment to indicate comment type.
1762         * cpplib.c (_cpp_handle_directive): If processing
1763         a "#define" directive and discard_comments_in_macro_exp
1764         is false,  re-enable saving of comments.
1765         (lex_macro_node): If discard_comments_in_macro_exp is false,
1766         discard any comments before the macro identifier.
1767         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1768         member.
1769         * cppmacro.c (cpp_get_token): If expanding a macro while
1770         processing a directive, discard any comments we might encounter.
1771         (parse_params): If discard_comments_in_macro_exp is false,
1772         ignore comments in the macro parameter list.
1773         * gcc.c (cpp_unique_options): Add "-CC" option.
1774         (option_map): Map "--comments-in-macros" to "-CC".
1775         * doc/cppopts.texi: Document "-CC" option.
1776         * f/lang-specs.h: Add "-CC" option.
1777         * testsuite/gcc.dg/cpp/maccom1.c: New test.
1778         * testsuite/gcc.dg/cpp/maccom2.c: New test.
1779         * testsuite/gcc.dg/cpp/maccom3.c: New test.
1780         * testsuite/gcc.dg/cpp/maccom4.c: New test.
1781         * testsuite/gcc.dg/cpp/maccom5.c: New test.
1782         * testsuite/gcc.dg/cpp/maccom6.c: New test.
1783
1784 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1785
1786         PR middle-end/6180
1787         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1788
1789 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
1790
1791         PR c++/5571
1792         * stor-layout.c (layout_decl): Reset the RTL for the decl.
1793
1794         PR opt/5120
1795         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1796         RTX_UNCHANGING_P for the functions arguments when a tail call
1797         is made.
1798
1799 2002-04-06  Jason Merrill  <jason@redhat.com>
1800
1801         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1802         (parse_options_and_default_flags): Set them appropriately.
1803         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1804
1805 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
1806
1807         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1808         here.
1809
1810         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1811         semicolon.
1812
1813         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1814         types come in by-reference.  Fix typo in comment.
1815
1816 2002-04-05  David S. Miller  <davem@redhat.com>
1817
1818         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1819         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1820         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1821         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1822
1823 2002-04-05  David S. Miller  <davem@redhat.com>
1824
1825         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1826         are not going to emit return instructions, emit at least a nop
1827         for the sake of sane backtraces.
1828
1829 2002-04-05  Richard Henderson  <rth@redhat.com>
1830
1831         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1832
1833 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
1834
1835         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1836
1837 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
1838
1839         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1840         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1841         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1842
1843 2002-04-05  Andreas Schwab  <schwab@suse.de>
1844
1845         * c-convert.c: Include c-common.h.
1846         * Makefile.in (c-convert.o): Updated.
1847
1848 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1849
1850         * mklibgcc.in: Use separate libgcc.map for each multilib.
1851         * Makefile.in (distclean): Don't remove libgcc.map here.
1852
1853 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
1854
1855         * Makefile.in (s-mlib): Handle --disable-multilib by separate
1856         genmultilib invocation.
1857
1858 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
1859
1860         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1861         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
1862         to num_gprs for symmetry.
1863         * config/mips/mips.c: Adjust accordingly.
1864
1865 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1866
1867         * c-common.c (truthvalue_conversion): Rename, update.
1868         * c-common.h (c_common_truthvalue_conversion): New.
1869         * c-convert.c (convert): Update.
1870         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1871         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1872         * c-typeck.c (build_binary_op, build_unary_op,
1873         build_conditional_expr): Update.
1874         * fold-const.c (constant_boolean_node, fold): Use langhook.
1875         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1876         * langhooks.h (struct lang_hooks): New hook.
1877         * stmt.c (expand_decl_cleanup): Use langhook.
1878         * tree.h (truthvalue_conversion): Remove.
1879 objc:
1880         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1881
1882 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
1883
1884         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1885         Add rules to make null object file.
1886
1887 2002-04-04  Jim Blandy  <jimb@redhat.com>
1888
1889         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1890         macro formal parameter names.
1891
1892 2002-04-04  David S. Miller  <davem@redhat.com>
1893
1894         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1895
1896 2002-04-04  Richard Henderson  <rth@redhat.com>
1897
1898         PR middle-end/5099
1899         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1900         Support copies into and out of memory.  Don't accept allows_reg
1901         and allows_mem as gospel.
1902
1903 2002-04-04  Richard Henderson  <rth@redhat.com>
1904
1905         PR opt/6165
1906         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1907         (write_dependence_p): Likewise.
1908
1909 2002-04-04  Richard Henderson  <rth@redhat.com>
1910
1911         * predict.c (estimate_bb_frequencies): Do frequency calculation
1912         with a volatile temporary.
1913
1914 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
1915
1916         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1917
1918 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1919
1920         PR c++/6119
1921         * final.c (final_start_function): Don't bump profile_label_no here...
1922         (final_end_function): ...but here.
1923
1924 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1925
1926         * config/sparc/sparc.md (pic): New attribute.
1927         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1928         into stack slots.
1929         (split after do_builtin_setjmp_setup): New.
1930
1931 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1932
1933         PR fortran/6106
1934         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1935         change.
1936
1937 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
1938
1939         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1940         UNITS_PER_WORD for zero sized aggregates.
1941
1942 2002-04-03  David S. Miller  <davem@redhat.com>
1943
1944         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1945         one-character spec for this, just use %(link_gcc_c_sequence).
1946
1947 2002-04-03  David S. Miller  <davem@redhat.com>
1948
1949         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1950         handling.
1951
1952 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1953
1954         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1955         (DWARF_FRAME_RETURN_COLUMN): Move.
1956         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1957         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1958         * pa.c (except.h, predict.h): Include.
1959         (FRP): Delete.
1960         (store_reg_modify, set_reg_plus_d): Revise prototypes.
1961         (output_ascii): Add cast.
1962         (store_reg_modify): Revise to add frame notes.
1963         (set_reg_plus_d): Likewise.
1964         (compute_frame_size): Include space for eh data registers in frame if
1965         the current function calls eh_return.
1966         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
1967         function calls eh_return.  Save eh data registers if the current
1968         function calls eh_return.  Fix code to add frame notes.  Emit
1969         blockage to prevent insns with frame notes being scheduled in the
1970         delay slot of calls.
1971         (hppa_expand_epilogue): Restore eh data registers and do final stack
1972         adjustment if the current function calls eh_return.  Don't add frame
1973         notes.
1974         (output_call): Revise for change in length of call insn.  Don't do
1975         return pointer adjustment for an unconditional jump in the delay slot
1976         of a call when using frame notes.
1977         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1978         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1979         (ARG_POINTER_CFA_OFFSET): Define.
1980         * pa.md (return_external_pic): New pattern.
1981         (prologue): Correct formatting.  Use return_external_pic if current
1982         function calls eh_return.
1983         (call_internal_symref, call_value_internal_symref,
1984         sibcall_internal_symref, sibcall_value_internal_symref): Change default
1985         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1986         respectively.
1987         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1988
1989         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1990         list of targets to check using "nop" insn.
1991         * configure: Rebuilt.
1992
1993 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
1994
1995         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1996
1997 2002-04-03  David S. Miller  <davem@redhat.com>
1998
1999         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2000         library sequence passed to the linker.
2001         (LINK_COMMAND_SPEC): Use it.
2002         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2003         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2004         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2005
2006 2002-04-03  Jason Merrill  <jason@redhat.com>
2007
2008         * except.c (struct eh_status): Remove protect_list.
2009         (begin_protect_partials, end_protect_partials): Remove.
2010         (add_partial_entry): Remove.
2011         * except.h: Remove prototypes.
2012
2013         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2014         expand_decl_cleanup_eh.
2015
2016         PR c++/5636
2017         * tree.h (CLEANUP_EH_ONLY): New macro.
2018         * stmt.c (expand_decl_cleanup_eh): New fn.
2019         (expand_cleanups): Check CLEANUP_EH_ONLY.
2020         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2021         Use expand_decl_cleanup_eh.
2022         (expand_stmt): Adjust.
2023         * c-common.h: Adjust prototype.
2024
2025 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
2026
2027         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2028         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2029         (cris_target_asm_function_epilogue): Ditto.
2030         (cris_initial_frame_pointer_offset): Ditto.
2031         (cris_simple_epilogue): Ditto.
2032         (cris_expand_builtin_va_arg): Variable-size types come in
2033         by-reference.
2034
2035 2002-04-03  David S. Miller  <davem@redhat.com>
2036
2037         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2038         little-endian.
2039         (set_fast_math): Correct 'fsr' type.
2040
2041 2002-04-03  Richard Henderson  <rth@redhat.com>
2042
2043         PR opt/3569
2044         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2045         * toplev.c (check_global_declarations): Use it.
2046         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2047         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2048         (LANG_HOOKS_DECLS): Add it.
2049         * langhooks.c (lhd_warn_unused_global_decl): New.
2050         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2051         * c-objc-common.c (c_warn_unused_global_decl): New.
2052         * c-tree.h (c_warn_unused_global_decl): Declare.
2053         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2054
2055 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2056
2057         * langhooks-def.h (lhd_set_decl_assembler_name,
2058         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2059         (LANG_HOOKS_INITIALIZER): Update.
2060         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2061         * langhooks.h (struct lang_hooks): New hook.
2062         * tree.c (set_decl_assembler_name): Move to langhooks.c.
2063         (lang_set_decl_assembler_name): Remove.
2064         (init_obstacks): Don't set hook.
2065         (decl_assembler_name): New function.
2066         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2067         (decl_assembler_name): New.
2068         (lang_set_decl_assembler_name): Remove.
2069
2070 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2071
2072         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2073         works properly with .hidden symbols.
2074         * configure: Rebuilt.
2075         * config.in: Rebuilt.
2076         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2077         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2078         properly with .hidden symbols.
2079
2080 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2081
2082         PR middle-end/6102
2083         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2084         USE argument.
2085
2086 2002-04-03  Richard Henderson  <rth@redhat.com>
2087
2088         PR opt/4120
2089         * sched-rgn.c (sets_likely_spilled): New.
2090         (sets_likely_spilled_1): New.
2091         (add_branch_dependences): Use it.
2092
2093 2002-04-02  Richard Henderson  <rth@redhat.com>
2094
2095         PR opt/4311
2096         * loop.h (LOOP_FIRST_PASS): New.
2097         * loop.c (strength_reduce): Mind it when deciding to unroll.
2098         * toplev.c (rest_of_compilation): Set it.
2099
2100 2002-04-02  David S. Miller  <davem@redhat.com>
2101
2102         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2103         mems_ok_for_ldd_peep when the order of the loads being examined
2104         is reversed.
2105         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2106         existing comment to increase comprehension of this situation.
2107
2108 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
2109
2110         * config/sh/sh.md: Don't use union real_extract.
2111
2112 2002-04-02  Richard Henderson  <rth@redhat.com>
2113
2114         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2115
2116 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2117
2118         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2119         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2120         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2121         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2122         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2123         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2124         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2125         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2126         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2127         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2128         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2129         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2130         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2131         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2132         Include as many configury headers via tm_file as possible.  This
2133         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2134         * config/openbsd-oldgas.h: New file.
2135         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2136         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2137         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2138         config/i386/i386-coff.h, config/i386/i386-interix.h,
2139         config/i386/iscdbx.h, config/i386/linux-aout.h,
2140         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2141         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2142         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2143         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2144         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2145         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2146         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2147         config/i386/vxi386.h: Do not directly include configury headers.
2148         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2149         Directly include configury headers that are no longer automatically
2150         included by the above headers.
2151         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2152         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2153         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2154         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2155         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2156         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2157         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2158         (TARGET_VERSION): Define.
2159         * config/i386/beos-elf.h, config/i386/freebsd.h,
2160         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2161         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2162         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2163         config/i386/sco5.h, config/i386/sysv4.h
2164         (TARGET_VERSION): Do not need to protect.
2165         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2166         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2167         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2168         config/i386/i386-interix.h, config/i386/linux-aout.h,
2169         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2170         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2171         (YES_UNDERSCORES): Do not define - not needed.
2172         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2173         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2174         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2175         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2176         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2177         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2178         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2179         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2180
2181 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
2182             Richard Henderson  <rth@redhat.com>
2183
2184         PR c/5484
2185         * function.c (assign_temp): Accept either type or decl argument.
2186         Detect variables whose size is too large to fit into an integer.
2187         * stmt.c (expand_decl): Pass the decl, not the type.
2188
2189 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2190
2191         * protoize.c: Match include directory usage with cppdefault.c.
2192
2193 2002-04-03  Jeffrey A Law  (law@redhat.com)
2194             Hans-Peter Nilsson  <hp@bitrange.com>
2195
2196         * combine.c (simplify_comparison): Avoid narrowing a comparison
2197         with a paradoxical subreg when doing so would drop signficant bits.
2198
2199 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
2200
2201         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2202         if POINTERS_EXTEND_UNSIGNED is defined.
2203
2204 2002-04-02  Richard Henderson  <rth@redhat.com>
2205
2206         PR opt/3967
2207         * local-alloc.c (contains_replace_regs): LO_SUM may contain
2208         replace regs.
2209
2210 2002-04-02  Richard Henderson  <rth@redhat.com>
2211
2212         * doc/standards.texi: Document required freestanding libc entry points.
2213
2214 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
2215
2216         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2217         associated splitter.  Remove MQ constraint.
2218         (ctrdi_internal4): Correct CCmode clobber.
2219
2220 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2221
2222         * milli64.S ($$dyncall): New function.
2223         * t-linux (LIB1ASMFUNCS): Revise module list.
2224         (LIB1ASMSRC): Use pa/milli64.S.
2225
2226 2002-04-02  Richard Henderson  <rth@redhat.com>
2227
2228         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2229         rename solaris_sys_varargs_h.
2230
2231 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2232
2233         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2234         the same mode as its component.
2235
2236 2002-04-02  Richard Henderson  <rth@redhat.com>
2237
2238         PR opt/190
2239         * final.c (this_is_asm_operands): Export.
2240         * output.h (this_is_asm_operands): Declare.
2241         * config/i386/i386.c (print_operand): Error odd asm operands.
2242
2243 2002-04-02  Richard Henderson  <rth@redhat.com>
2244
2245         PR opt/420
2246         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2247
2248 2002-04-01  Richard Henderson  <rth@redhat.com>
2249
2250         PR target/1538
2251         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2252         * fixinc/fixincl.x: Rebuild.
2253
2254 2002-04-01  Richard Henderson  <rth@redhat.com>
2255
2256         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2257         (atomic_alloc, atomic_free): New.
2258         (SIZE, MASK_FOR, PTR_IN): New.
2259         (emergency_reg_state, emergency_reg_state_free): New.
2260         (emergency_labeled_state, emergency_labeled_state_free): New.
2261         (reg_state_alloced, labeled_state_alloced): New.
2262         (alloc_reg_state, free_reg_state): New.
2263         (alloc_label_state, free_label_state, free_label_states): New.
2264         (push, pop, dup_state_stack, free_state_stack): Use them.
2265         (desc_label_state): Likewise.
2266         (uw_frame_state_for): Free label states and state stack.
2267         (uw_update_reg_address): Eliminate warnings.
2268
2269 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
2270
2271         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2272         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2273
2274 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2275
2276         * c-decl.c (grokdeclarator): Update.
2277         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2278         * c-tree.h (c_mark_addressable): New.
2279         * c-typeck.c (default_function_array_conversion, build_unary_op,
2280         build_array_ref, convert_for_assignment): Update.
2281         (mark_addressable): Rename.
2282         * calls.c (try_to_integrate, expand_call): Use langhook.
2283         * expr.c (expand_expr): Use langhook.
2284         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2285         * langhooks.h (struct lang_hooks): New hook.
2286         * stmt.c (expand_asm_operands): Use langhook.
2287         * tree.h (mark_addressable): Remove.
2288 objc:
2289         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2290
2291 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
2292
2293         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2294         in previous change.
2295
2296 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
2297
2298         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2299         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2300
2301 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2302
2303         * c-common.c (unsigned_conversion_warning, convert_and_check,
2304         unsigned_type, signed_type, shorten_compare,
2305         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2306         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2307         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2308         New.
2309         * c-decl.c (grokdeclarator): Update.
2310         * c-format.c (check_format_types): Update.
2311         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2312         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2313         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2314         * convert.c (convert_to_integer): Use new hooks.
2315         * expmed.c (make_tree): Use new hooks.
2316         * expr.c (store_expr): Use new hooks.
2317         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2318         all_ones_mask_p, unextend, fold): Use new hooks.
2319         * langhooks.h (struct lang_hooks_for_types): New hooks.
2320         * tree.h (signed_or_unsigned_type, signed_type,
2321         unsigned_type): Remove.
2322 objc:
2323         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2324         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2325
2326 2002-03-31  Richard Henderson  <rth@redhat.com>
2327
2328         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2329         (desc_frgr_mem): Fix reference to f16-f31.
2330
2331 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2332
2333         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2334         RTVEC_ELT): Const-ify.
2335         * varray.h (VARRAY_CHECK): Const-ify.
2336         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2337         ggc_mark_rtvec, ggc_mark): Const-ify.
2338
2339 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2340
2341         * diagnostic.c: Include langhooks-def.h.
2342         * Makefile.in (diagnostic.o): Update.
2343
2344 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2345
2346         * c-common.c (c_unsafe_for_reeval): Rename.
2347         * c-common.h (c_unsafe_for_reeval): Rename.
2348         * c-decl.c (finish_incomplete_decl): Rename.
2349         (c_init_decl_processing): Don't set langhook.
2350         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2351         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2352         * c-objc-common.c (c_objc_common_init): Don't set langhook.
2353         * c-tree.h (finish_incomplete_decl): Rename.
2354         * langhooks-def.h (lhd_unsafe_for_reeval): New.
2355         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2356         (LANG_HOOKS_INITIALIZER): Update.
2357         * langhooks.c (lhd_unsafe_For_reeval): New.
2358         * langhooks.h (struct langhooks): New hooks.
2359         * toplev.c (incomplete_decl_finalize_hook): Remove.
2360         (wrapup_global_declarations): Update.
2361         * tree.c (lang_unsafe_for_reeval): Remove.
2362         (unsafe_for_reeval): Update.
2363         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2364         Remove.
2365 objc:
2366         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2367         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2368
2369 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2370
2371         * diagnostic.c (print_error_function): Remove.
2372         (default_print_error_function): Rename.
2373         (report_error_function): Update.
2374         * diagnostic.h (print_error_function): Remove.
2375         (default_print_error_function): Remove.
2376         * langhooks-def.h (struct diagnostic_context): Predeclare.
2377         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2378         (LANG_HOOKS_INITIALIZER): Update.
2379         * langhooks.h (struct diagnostic context): Predeclare.
2380         (struct lang_hooks): New hook.
2381
2382 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2383
2384         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2385         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2386         !flag_pic.
2387         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2388         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2389         of PIC_OFFSET_TABLE_REGNUM thruout.
2390         * config/rs6000/rs6000.md: Likewise.
2391         * config/rs6000/darwin.h: Likewise.
2392
2393 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2394
2395         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2396         unsigned HOST_WIDE_INT, not unsigned int.
2397
2398 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
2399
2400         PR middle-end/6096, middle-end/6098, middle-end/6099
2401         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2402         CODE_LABELs.
2403         (fill_slots_from_thread): Likewise.
2404
2405 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
2406
2407         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2408         floating fields in float regs.
2409         (function_arg_record_value_2): Likewise.
2410
2411 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
2412
2413         * config/mmix/mmix.md (define_constants): Remove misleading
2414         FIXME.  Add MMIX_fp_rO_OFFSET.
2415         ("nonlocal_goto_receiver"): Don't have stack-frame address of
2416         saved rO as part of the pattern.  Remove FIXME.
2417         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
2418         here, at output-time.
2419
2420 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
2421
2422         PR middle-end/6100
2423         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2424         REG_BR_PRED.
2425         (output_v9branch): Likewise.
2426
2427 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
2428
2429         * gcc.c: Revert previous patch for now.
2430         * config/i386/djgpp.h: Likewise.
2431
2432 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
2433
2434         * config/mmix/crti.asm (_init): Register _fini with atexit.
2435         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2436
2437 2002-03-31  Richard Henderson  <rth@redhat.com>
2438
2439         PR target/3997
2440         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2441         (ASM_OUTPUT_DEF_FROM_DECLS): New.
2442
2443 2002-03-31  Richard Henderson  <rth@redhat.com>
2444
2445         * libgcc2.c (__bb_exit_func): Make static.
2446
2447         * config/alpha/alpha.md (trap): New.
2448
2449 2002-03-31  Richard Henderson  <rth@redhat.com>
2450
2451         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2452         promoted argument types; build trap.
2453         (expand_builtin_trap): New.
2454         (expand_builtin): Use it.
2455         * stmt.c (expand_nl_goto_receivers): Likewise.
2456         * expr.h (expand_builtin_trap): Declare.
2457         * libfuncs.h (LTI_abort, abort_libfunc): New.
2458         * optabs.c (init_optabs): Init abort_libfunc.
2459
2460 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
2461
2462         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2463         (LINK_COMMAND_SPEC): ... from here.
2464         (init_gcc_specs): Duplicate it here too, omitting
2465         shared_name in the second copy.
2466         (init_spec): Test for duplicate
2467         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2468
2469 2002-03-30  David S. Miller  <davem@redhat.com>
2470
2471         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2472         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2473
2474 2002-03-30  Roger Sayle <roger@eyesopen.com>
2475             Richard Henderson  <rth@redhat.com>
2476
2477         * regmove.c (combine_stack_adjustments_for_block): Avoid
2478         emitting a stack adjustment of zero bytes.  Let delete_insn
2479         update bb->head.
2480
2481 2002-03-30  Richard Henderson  <rth@redhat.com>
2482
2483         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2484         (sparc_emitting_epilogue): New.
2485         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2486         * config/sparc/sparc-protos.h: Update.
2487         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2488         (TARGET_SWITCHES): Update.
2489         * config/sparc/sparc.md (return): Remove.
2490         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2491         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2492         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2493         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2494         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2495         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2496         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2497         Remove MASK_EPILOGUE.
2498         * doc/invoke.texi: Update.
2499
2500 2002-03-30  Daniel Berlin  <dan@dberlin.org>
2501
2502         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2503         CPP will start the file for us.
2504
2505 2002-03-30  Richard Henderson  <rth@redhat.com>
2506
2507         PR target/5446
2508         * config/ia64/ia64.c (group_barrier_needed_p): Special case
2509         prologue_allocate_stack.
2510         (ia64_single_set): Use insn codes for recognition of special
2511         cases, not rtl matching.
2512         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2513
2514 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
2515
2516         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2517
2518 2002-03-30  Richard Henderson  <rth@redhat.com>
2519
2520         PR target/6032
2521         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2522         or -fomit-frame-pointer with profiling.
2523         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2524         (FUNCTION_PROFILER): Do nothing.
2525         (PROFILE_HOOK): New.
2526         * config/sparc/sparc.c (sparc_override_options): Don't check
2527         code models for profiling.
2528         (sparc_function_profiler): Remove.
2529         (sparc_profile_hook): New.
2530         * config/sparc/sparc-protos.h: Update.
2531
2532 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2533
2534         PR optimization/6086
2535         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2536         of SUBREG of volatile MEM or because the MEM was mode dependent,
2537         return CLOBBER instead of unmodified SUBREG.
2538
2539 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
2540
2541         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2542         when not optimizing.
2543
2544         * toplev.c (rest_of_compilation): Cann mark_constant_function
2545         only when optimizing.
2546
2547         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2548         are NULL.
2549
2550         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2551         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2552         (try_optimize_cfg): clear all AUX fields.
2553
2554         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2555         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2556         (ix86_address_cost): Be prepared for SUBREGed registers.
2557         (legitimate_address_p): Accept SUBREGed registers.
2558
2559 2002-03-29  Richard Henderson  <rth@redhat.com>
2560
2561         PR target/5672
2562         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2563
2564 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2565
2566         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2567         for aggregate and TFmode types.
2568
2569 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2570
2571         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2572
2573 2002-03-29  Richard Henderson  <rth@redhat.com>
2574
2575         PR target/5886
2576         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2577         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2578
2579 2002-03-29  Richard Henderson  <rth@redhat.com>
2580
2581         PR target/6041
2582         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2583         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2584         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2585         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2586         conditional.
2587         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2588
2589 2002-03-29  Dale Johannesen <dalej@apple.com>
2590
2591         * loop.c (combine_movables): Do allow combination of pseudos.
2592
2593 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
2594
2595         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2596         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2597         No functional change except ...
2598         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
2599         * doc/install.texi (*-*-freebsd*): Document port configuration.
2600
2601 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2602
2603         * Makefile.in (convert.o, calls.o, expmed.o): Update.
2604         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2605         Use new hooks.
2606         * builtin-types.def (BT_PTRMODE): Update.
2607         * c-common.c (type_for_size): Rename c_common_type_for_size.
2608         (type_for_mode): Similarly.
2609         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2610         Use new hook.
2611         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2612         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2613         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2614         Redefine.
2615         * c-typeck.c (common_type, comptypes, default_conversion):
2616         Use new hooks.
2617         * calls.c: Include langhooks.h.
2618         (emit_library_call_value_1): Use new hooks.  Avoid redundant
2619         calls.
2620         * convert.c: Include langhooks.h
2621         (convert_to_pointer, convert_to_integer): Use new hooks.
2622         * except.c (init_eh): Similarly.
2623         * expmed.c: Include langhooks.h.
2624         (expand_mult_add): Use new hooks.
2625         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2626         try_casesi): Similarly.
2627         * fold-const.c (optimize_bit_field_compare, make_range,
2628         decode_field_reference, fold_truthop, fold): Similarly.
2629         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2630         put_var_into_stack): Similarly.
2631         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2632         LANG_HOOKS_TYPE_FOR_SIZE): New.
2633         (LANG_HOOKS_TYPES_INITIALIZER): Update.
2634         * langhooks.h (lang_hooks_for_types): New hooks.
2635         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2636         * tree.c (get_unwidened, get_narrower): Similarly.
2637         * tree.h (type_for_mode, type_for_size): Remove.
2638         * varasm.c (force_const_mem): Use new hooks.
2639         * utils2.c (nonbinary_modular_operation): Update.
2640 objc:
2641         * objc-act.c (handle_impent): Update.
2642         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2643         Redefine.
2644
2645 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
2646
2647         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2648         * config/ia64/ia64.c (basereg_operand): New.
2649         * config/ia64/ia64-protos.h (basereg_operand): Declare.
2650         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2651
2652 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
2653
2654         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2655         unwind information when frame_pointer_needed.
2656         (mmix_assemble_integer): Tweak wording in comment.
2657
2658 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2659
2660         * Makefile.in (except.o): Update.
2661         * except.c: Include langhooks.h.
2662         (init_eh): Use langhook.
2663         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2664         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2665         (LANG_HOOKS_INITIALIZER): Update.
2666         * langhooks.h (lang_hooks_for_types): New.
2667         (struct lang_hooks): Add it.
2668         * tree.c (make_lang_type_fn, make_lang_type): Remove.
2669         * tree.h (make_lang_type_fn, make_lang_type): Remove.
2670 config:
2671         * alpha/alpha.c: Include langhooks.h.
2672         (alpha_build_va_list): Use langhook.
2673         * d30v/d30v.c: Include langhooks.h.
2674         (d30v_build_va_list): Use langhook.
2675         * i386/i386.c: Include langhooks.h.
2676         (ix86_build_va_list): Use langhook.
2677         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2678         * s390/s390.c: Include langhooks.h.
2679         (s390_build_va_list): Use langhook.
2680         * stormy16/stormy16.c: Include langhooks.h.
2681         (stormy16_build_va_list): Use langhook.
2682
2683 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2684
2685         PR c++/5964
2686         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2687         attributes.
2688         (length): Compute variable length for branches/calls/jumps here.
2689         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2690         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2691         define branch_type attribute.
2692         (divsi3_sp32): Maximum length is 6 not 7.
2693         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2694         call_address_untyped_struct_value_sp32,
2695         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2696         * config/sparc/sparc.c (empty_delay_slot): New function.
2697         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2698         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2699
2700 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2701
2702         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2703         nonzero_bits if not needed.
2704         (nonzero_bits) [XOR]: Likewise.
2705         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2706         reg_last_set_mode and mode are both MODE_INT, but not equal.
2707         (record_value_for_reg): Compute reg_last_set_nonzero_bits
2708         in nonzero_bits_mode for MODE_INT modes.
2709
2710 2002-03-28  Richard Henderson  <rth@redhat.com>
2711
2712         PR target/5715
2713         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2714         to GAS.  Correct drift between alternatives.
2715
2716 2002-03-28  Richard Henderson  <rth@redhat.com>
2717
2718         PR target/6087
2719         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2720
2721 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
2722
2723         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2724         emulation to the linker.
2725
2726 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
2727
2728         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2729         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2730
2731 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
2732
2733         * combine.c (simplify_and_const_int): Make sure to apply mask
2734         when force_to_mode returns a constant integer.  PR3311.
2735
2736 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2737
2738         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2739
2740 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2741
2742         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2743         and Objective-C Dialect Options.
2744
2745 2002-03-28  Richard Henderson  <rth@redhat.com>
2746
2747         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2748         comparison should be done vs !=0 not >0 return code.  Tidy cases.
2749
2750 2002-03-28  Richard Henderson  <rth@redhat.com>
2751
2752         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
2753         on to c_expand_body.
2754         * c-tree.h (finish_function): Update decl.
2755         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2756
2757 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
2758
2759         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2760
2761 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
2762
2763         * rtlanal.c: Include flags.h
2764         (may_trap_p): Do not mark FP operations if trapping
2765         if !flag_trapping_math
2766         * Makefile.in (rtlanal.o): Add dependency on flag.h
2767         * ifcvt.c (noce_operand_ok): Avoid the lameness.
2768
2769 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
2770
2771         * mips.md: Use dconst1, not 1.0, as first argument of
2772         REAL_VALUE_LDEXP.  Don't use union real_extract.
2773
2774 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2775
2776         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2777         rather than $target.  Heed program_prefix and
2778         program_transform_name.  Search for gas in cross-compiler case too.
2779         "test -x" rather than "test -f".
2780         (gcc_cv_ld): Likewise.
2781         (gcc_cv_nm): Heed program_prefix and program_transform_name.
2782         (gcc_cv_objdump): Likewise.
2783         * configure: Regenerate.
2784
2785 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2786
2787         * Makefile.in (attribs.o): Update.
2788         * attribs.c: Include langhooks.h.
2789         (decl_attributes): Use langhook.
2790         * c-decl.c (insert_default_attributes): Rename.
2791         * c-tree.h (c_insert_default_attributes): New.
2792         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2793         (LANG_HOOKS_INITIALIZER): Update.
2794         * langhooks.h (struct lang_hooks): New hook.
2795         * tree.h (insert_default_attributes): Remove.
2796 objc:
2797         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2798
2799 2002-03-27  Andreas Schwab  <schwab@suse.de>
2800
2801         * config/i386/i386.c (classify_argument): Also check for
2802         QUAL_UNION_TYPE.
2803
2804 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2805
2806         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2807         any more.
2808
2809 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
2810
2811         * i960.md (ret): Set PC.
2812         (nonlocal_goto): Fix expander.
2813         * builtins.c (epxand_builin_longjmp): Check that we've emitted
2814         some jump or call.
2815
2816 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2817
2818         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2819         of libcall regions.
2820
2821 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2822
2823         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2824         assigning to BLOCK_FOR_INSN directly.
2825
2826 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
2827
2828         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2829
2830 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2831
2832         * c-common.c (c_expand_expr): Fix prototype.
2833         * c-common.h (c_expand_expr): Always declare, update.
2834         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2835         * c-objc-common.c (c_objc_common_init): No global hook.
2836         * expr.c (expand_expr): Use langhook.
2837         * expr.h (enum expand_modifier): Conditionally declare.
2838         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2839         (LANG_HOOKS_INITIALIZER): Update.
2840         * langhooks.c (lhd_expand_expr): New.
2841         * langhooks.h (struct lang_hooks): New hook.
2842         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2843         (lang_independent_init): Don't default hook.
2844 objc:
2845         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2846
2847 2002-03-27  Richard Henderson  <rth@redhat.com>
2848
2849         PR target/6054
2850         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2851         TARGET_CONST_GP.  Simplify conditions.
2852
2853 2002-03-27  Richard Henderson  <rth@redhat.com>
2854
2855         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2856         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2857         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2858
2859 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
2860
2861         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2862         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2863         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2864         Remove unnecessary masks.
2865         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2866         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2867         -mwindows, -mdll switches and their negations.
2868
2869 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2870
2871         * gcc-common.c (lang_mark_false_label_stack): Remove.
2872         * ggc.h (lang_mark_false_label_stack): Similarly.
2873
2874 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2875
2876         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2877
2878         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2879         or __rtems_ is defined.
2880
2881 2002-03-26  Richard Henderson  <rth@redhat.com>
2882
2883         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2884         if a non-trivial load was emitted.
2885         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
2886         in high+extra+low case.
2887
2888 2002-03-26  Richard Henderson  <rth@redhat.com>
2889
2890         * config.gcc (sparc*-solaris): Use float_format=sparc.
2891
2892 2002-03-26  Richard Henderson  <rth@redhat.com>
2893
2894         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2895         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2896         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2897         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2898         (WINT_TYPE_SIZE): Fix at 32.
2899
2900 2002-03-26  Richard Henderson  <rth@redhat.com>
2901
2902         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2903         until after eh landing pad generation.
2904         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2905         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2906
2907 2002-03-26  Richard Henderson  <rth@redhat.com>
2908
2909         * expr.h (ADD_PARM_SIZE): One more convert for INC.
2910
2911 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
2912
2913         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
2914         and warning switches.
2915         (cc1_options):  Likewise.
2916
2917 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
2918
2919         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2920         Restore more of the signal context.  Set no_reg_stack_frame.
2921         * config/ia64/unwind-ia64.c (unw_state_record):
2922         Add no_reg_stack_frame, comments.
2923         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2924         (uw_update_context): Adjust bsp when unwinding from leaf,
2925         but not signal frame.
2926
2927 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
2928
2929         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2930
2931 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2932
2933         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2934
2935 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2936
2937         PR target/5621
2938         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2939         "Add a pool_range attribute", which was lost during the ARM/Thumb
2940         merge.
2941
2942 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
2943
2944         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2945         a register into the MAC16 accumulator.
2946
2947 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
2948
2949         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2950         (Warning Options): Document -Wswitch-enum.
2951         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
2952         -Wswitch.
2953         (warn_switch_enum): Define variables.
2954         * flags.h (warn_switch_enum): Declare variables.
2955         * stmt.c (expand_end_case_type): When warn_switch_enum /
2956         -Wswitch-enum, perform switch checks.
2957         Fix PR c/5044.
2958
2959 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
2960
2961         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2962         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2963         (reload_muladdsi_compare0_scratch): Delete.
2964
2965 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
2966
2967         * doc/install.texi (*-*-freebsd*): Update.
2968
2969 2002-03-26  Richard Henderson  <rth@redhat.com>
2970
2971         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2972         (SUB_PARM_SIZE): Cast DEC to ssizetype.
2973
2974         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2975         types from the normal argument frame.
2976
2977         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2978         variable sized objects by reference.
2979         (sparc_va_arg): Receive them by reference too.
2980
2981 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
2982
2983         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2984         code to not restoring global registers.
2985
2986 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2987
2988         * Makefile.in (ggc-common.o): Update.
2989         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2990         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2991         * c-tree.h (c_mark_tree): New.
2992         * ggc-common.c: Include langhooks.h.
2993         (gcc_mark_trees): Use new langhook.
2994         * ggc-callbacks.c: Delete file.
2995         * ggc.h (lang_mark_tree): Remove.
2996         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2997         (LANG_HOOKS_INITIALIZER): Update.
2998         * langhooks.h (struct lang_hooks): New hook.
2999 objc:
3000         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3001
3002 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3003
3004         * doc/cpp.texi: Exclude entire Top node from printed manual.
3005         Move option index after directive index.  Insert page breaks
3006         before GFDL and concept index.  Index environment variables
3007         with command line options.
3008         * doc/cppenv.texi: Use @vtable for environment variable list.
3009         Add paragraph explaining semantics of empty elements in path
3010         variables.  Exclude a cross-reference to Fishkill from the
3011         manpage.  Remove an unnecessary cross-reference of the entry
3012         right above the referer.  Don't use @anchor in text that goes
3013         into manpage.
3014         * doc/cppopts.texi: Cross-reference the environment variables
3015         section, not the specific environment variable, for consistency.
3016
3017 2002-03-25  Richard Henderson  <rth@redhat.com>
3018
3019         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3020         anywhere in the block.  Don't refer to insns that have been
3021         removed from the chain.  Iterate backward through the new insns.
3022         Don't refer to edges that have been removed.
3023
3024 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
3025
3026         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3027         test for overflow of constant.
3028
3029 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
3030
3031         PR target/2623
3032         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3033         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3034         these patterns on arm_archv4.
3035
3036 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
3037
3038         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3039         int".
3040
3041 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3042
3043         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
3044         float_handled, float_handler, float_signal, set_float_handler,
3045         and do_float_handler.  Set handler for SIGFPE to crash_signal.
3046         * toplev.h: Don't prototype do_float_handler.
3047
3048         * c-lex.c: Fold parse_float into lex_number.  Make warning
3049         about portability of hex float constants more informative, and
3050         don't issue it on top of a syntax error.
3051         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3052         their callers.
3053         * real.h: Define REAL_VALUE_ABS here...
3054         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
3055         simplify_unary_real, simplify_binary_real, and
3056         simplify_binary_is2orm1 into their callers.
3057         * tree.c: Fold build_real_from_int_cst_1 into caller.
3058
3059         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3060
3061         * tsystem.h: Include float.h here...
3062         * libgcc2.c: ... not here.
3063
3064 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
3065
3066         Fixes for: PR bootstrap/3591, target/5676
3067         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3068         defined.  Do not disable exceptions or rtti.
3069         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3070         mcore.h.  Disable exceptions and rtti, since they are not
3071         supported by EPOC.
3072
3073 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3074
3075         * c-decl.c (maybe_build_cleanup): Remove.
3076         * expr.c (expand_expr): Use langhook.
3077         * langhooks-def.h (lhd_return_null_tree,
3078         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3079         (LANGHOOKS_INITIALIZER): Update.
3080         * langhooks.c (lhd_return_null_tree): New.
3081         * langhooks.h (struct lang_hooks): New hook.
3082         * tree-inline.c (initialize_inlined_parameters): Use langhook.
3083         * tree.h (maybe_build_cleanup): Remove.
3084
3085 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3086
3087         * regrename.c (build_def_use): Move recog_memoized
3088         before extract_insn.
3089
3090 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3091
3092         PR target/6043
3093         * expr.c (emit_group_store): Handle storing into CONCAT.
3094
3095 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3096
3097         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3098         corresponding MATCH_DUP.
3099
3100 2002-03-24  Richard Henderson  <rth@redhat.com>
3101
3102         * unroll.c (unroll_loop): Zero label_map.
3103
3104         * gcse.c: Include except.h.
3105         * Makefile.in (gcse.o): Update.
3106
3107 2002-03-24  Richard Henderson  <rth@redhat.com>
3108
3109         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3110         Do resolve_unique_section before shared data clause.
3111
3112 2002-03-24  Richard Henderson  <rth@redhat.com>
3113
3114         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3115
3116 2002-03-24  Richard Henderson  <rth@redhat.com>
3117
3118         * recog.c (peephole2_optimize): Split blocks when EH insns are
3119         generated in the middle of a block.  Do global life update if
3120         zapped EH edges.
3121
3122 2002-03-24  Richard Henderson  <rth@redhat.com>
3123
3124         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3125
3126 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3127
3128         preprocessor/3951
3129         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3130         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3131         (init_dependency_output): Don't make no_output decision here.
3132
3133 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
3134
3135         * stmt.c (check_for_full_enumeration_handling): Remove tests of
3136         warn_switch.  Update description.
3137         (expand_end_case_type): Call check_for_full_enumeration_handling
3138         when warn_switch.
3139
3140 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3141
3142         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3143         (m68hc11_split_move): Call it to see if the source and destination
3144         operands use the same direction auto inc/dec mode, otherwise make the
3145         source an offsetable memory operand and generate an add.
3146
3147 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3148
3149         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3150         register for operand 2.
3151         ("*subsi3_zero_extendqi"): Likewise.
3152         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3153         bits so that it is compatible with a pop.
3154         ("*andhi3_gen"): Likewise.
3155         ("xorhi3"): Likewise.
3156
3157 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3158
3159         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3160         -pedantic here...
3161         (cpp_post_options): ... not here.
3162
3163 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3164             Aldy Hernandez  <aldyh@redhat.com>
3165
3166         Removal of separate preprocessor cpp0.
3167
3168         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3169         cpp0, install-common): Update.
3170         * c-common.c (flag_preprocess_only): New.
3171         (c_common_init): Preprocess for -E.
3172         * c-common.h (flag_preprocess_only): New.
3173         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3174         * c-objc-common.c (c_init_decl_processing): Exit quickly
3175         for NULL return from c_common_init.
3176         * cpplib.h (cpp_preprocess_file): New.
3177         * cppmain.c (main, general_init, pfile, progname): Remove.
3178         (do_preprocessing): Rename cpp_preprocess_file, don't call
3179         cpp_finish.  Don't close stdout here.
3180         (setup_callbacks): Update prototype.
3181         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3182         Update.
3183         * tradcpp.c (main): Ignore -quiet.
3184 objc:
3185         * lang-specs.h (default_compilers): Preprocess with cc1obj.
3186
3187 2002-03-24  Richard Henderson  <rth@redhat.com>
3188
3189         PR optimization/5742
3190         * machmode.def: Add inner mode field to complex modes.
3191         * config/mips/mips.c (mips_function_value): Always define.  Add
3192         new argument to handle libcalls.
3193         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3194         (FUNCTION_VALUE): Likewise.
3195         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3196         * config/mips/mips-protos.h: Update.
3197
3198 2002-03-23  Richard Henderson  <rth@redhat.com>
3199
3200         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3201         * config/sparc/sparc-protos.h: Update.
3202         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3203
3204 2002-03-23  Richard Henderson  <rth@redhat.com>
3205
3206         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3207         _start or _init begins the text segment.
3208
3209 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
3210
3211         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
3212         not HOST_WIDEST_INT.
3213         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3214
3215 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
3216
3217         PR java/5489
3218         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3219         operand argument to output_return_instruction.
3220         * arm.c (arm_print_operand, case 'd'): If the operand is
3221         const_true_rtx then just return.
3222         (arm_print_operand, case 'D'): If the operand is const_true_rtx
3223         then abort.
3224
3225 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
3226
3227         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3228         (Warning Options): Document -Wswitch-default.
3229         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
3230         -Wswitch.
3231         (warn_switch_default): Define variable.
3232         (warn_switch): Update comment.
3233         * flags.h (warn_switch_default): Declare variable.
3234         (warn_switch): Update comment.
3235         * stmt.c (expand_end_case): Check for and, when
3236         warn_switch_no_default, warn of a missing default case.
3237
3238 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
3239
3240         * real.h (N): Special case 128 bit doubles.
3241
3242         * combine.c (simplify_comparison): When widening modes, ignore
3243         sign extension on CONST_INTs.
3244
3245 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
3246
3247         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3248         passed to adjust_address.  Fix comment formatting.
3249
3250
3251 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
3252
3253         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3254         Always make REAL_VALUE_TYPE a struct containing an array of
3255         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
3256         big it is.  Don't declare or use union real_extract.
3257
3258         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3259         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3260         (print_operand), config/arm/arm.c (output_move_double),
3261         config/arm/arm.md (consttable_4, consttable_8),
3262         config/romp/romp.c (output_fpops), config/s390/s390.h
3263         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3264         (xtensa_output_literal): Don't use union real_extract.
3265
3266         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3267         (sfmode_constant_to_ulong), config/ns32k/merlin.h
3268         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3269         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3270         (PRINT_OPERAND): Don't use local version of union
3271         real_extract.
3272
3273         * config/convex/convex.c (check_float_value), config/vax/vax.c
3274         (vax_float_literal), config/m88k/m88k.md (divdf3),
3275         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3276         config/pdp11/pdp11.c (output_move_quad): Don't do host
3277         arithmetic on target floating point quantities.
3278
3279         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3280         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3281
3282         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3283         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3284
3285         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3286         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3287         INFINITY.
3288         * print-rtl.c (print_rtx): Disable code which needs
3289         floating-point emulator.
3290         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3291         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3292         depending on HOST_FLOAT_FORMAT to be defined properly.
3293
3294         * config/1750a/1750a.c (get_double, float_label): Delete.
3295         (print_operand): Delete huge commented-out chunk.  Use
3296         REAL_VALUE_TO_DECIMAL.
3297         * config/1750a/1750a-protos.h: Delete prototypes of deleted
3298         functions.
3299         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3300         IEEE_FLOAT_FORMAT.
3301         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3302         Use REAL_VALUE_TO_DECIMAL as ELF version does.
3303         * config/m88k/m88k.c (real_power_of_2_operand,
3304         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3305         real_extract out of the union; run the input through
3306         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3307         from that into the union.
3308         * config/pdp11/pdp11.c (output_move_double): Rearrange
3309         parentheses to make automatic indenter happy.
3310
3311         * doc/tm.texi (Cross-compilation): Rename node to "Floating
3312         Point" and rewrite to describe current situation.  Also adjust
3313         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3314         match code.
3315         * doc/rtl.texi: Adjust cross reference.
3316
3317 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
3318
3319         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3320         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3321         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3322         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3323         prevent use of sp as a reload register.
3324         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3325         non_acc_reg_operand.
3326         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3327         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3328         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3329         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3330
3331 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3332
3333         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3334         * cpplex.c (unterminated): Delete.
3335         (parse_string): No string literal may extend over multiple
3336         lines.  Suppress the error when preprocessing assembly.
3337         * cppmain.c (scan_translation_unit): Strings are single-line.
3338
3339         * doc/cpp.texi: Update to match.
3340
3341 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
3342
3343         PR optimization/5854
3344         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3345         Shut up warnings.
3346         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3347         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3348         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3349         const0 if scratch register was not allocated.
3350         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3351         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3352         with GEN_INT (...).
3353         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3354         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3355         with GEN_INT (...) everywhere.  Remove constraints in define_split
3356         patterns.
3357         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3358         require scratch register for setting 0 into regs/non-pushable memory.
3359
3360 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
3361
3362         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3363         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3364
3365 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
3366
3367         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
3368         * cppinit.c (cpp_create_reader):  On by default.
3369         (cpp_handle_option):  Handle -W[no-]endif-labels.
3370         (cpp_post_options):  Also enable if -pedantic.
3371         * cpplib.c (do_else):  Use it.
3372         (do_endif):  Likewise.
3373         * doc/cppopts.texi:  Document new option.
3374         * doc/invoke.texi:  Document new option.
3375
3376 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
3377
3378         * config/i386/i386.c, config/i386/i386.md: Change all occurences
3379         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3380
3381 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
3382
3383         * flow.c (calculate_global_regs_live): Clear aux fields of
3384         ENTRY and EXIT.
3385
3386 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
3387
3388         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3389         REG or MEM subregs, pass rtx * instead of rtx to it.
3390         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3391         rtx * instead of rtx to alter_subreg.
3392         * config/m32r/m32r.c (gen_split_move_double): Likewise.
3393         * config/pj/pj.c (pj_output_rval): Likewise.
3394
3395 2002-03-22  Richard Henderson  <rth@redhat.com>
3396
3397         PR target/3177
3398         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3399         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3400         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3401         (ia64_expand_prologue): Look at int_regs, not words, for number
3402         of incomming int regs.
3403
3404 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
3405
3406         * expr.c (expand_expr): A RESULT_DECL is part of a call.
3407
3408 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
3409
3410         * toplev.c (flag_loop_optimize, flag_crossjumping):
3411         New static variables.
3412         (rest_of_compilation): Conditionalize crossjumping and
3413         loop optimizer.
3414         (parse_options_and_default_flags): Default loop_optimize and
3415         crossjumping.
3416         (lang_independent_options): Add -fcrossjumping and -floop-optimize
3417         * invoke.texi (crossjumping, loop-optimize): Document.
3418
3419 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3420
3421         * real.c (eiisneg): Move outside #ifdef NANS.
3422
3423 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3424
3425         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3426         frequencies match; avoid match on different loop depths.
3427         (try_crossjump_to_bb): Kill tests that no longer brings time
3428         savings.
3429         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3430         updating code.
3431         (split_edge): Likewise.
3432
3433         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3434         variable.
3435
3436         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3437         * cfgrtl.c: Include insn-config.h
3438         (split_block) Dirtify block in presence of conditional execution
3439
3440 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3441
3442         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3443         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3444         (function_arg): Constify CUMULATIVE_ARGS.
3445         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3446         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3447         (UNITS_PER_DOUBLE): New macro.
3448         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
3449         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
3450         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
3451         fp_regs and stack_words.
3452         (EABI_FLOAT_VARARGS_P): New macro.
3453         * config/mips/mips.c (struct mips_arg_info): New.
3454         (mips_arg_info): New function.
3455         (function_arg_advance): Use it.  Add adjustment instructions here
3456         rather than in function_arg.
3457         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
3458         for VOIDmode at the beginning of the function.
3459         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
3460         (function_arg_pass_by_reference): Likewise.
3461         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3462         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3463         (mips_va_start): Likewise.  Use the new stack_words field of
3464         CUMULATIVE_ARGS to set up overflow area.  Reformat.
3465         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
3466         doubles and other types, aligning the overflow pointer for non-doubles
3467         too.  Remove some code duplication.  Replace hard-coded constants.
3468
3469 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
3470
3471         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3472         (CLASS_UNITS): Undefine.
3473         (CLASS_MAX_NREGS): Use FP_INC.
3474         * config/mips/mips.c (compute_frame_size): Likewise.
3475         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3476
3477 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3478
3479         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3480         prototype, and handle lexing numbers and identifiers.
3481         (parse_identifier): Update to new form of parse_slow.
3482         (parse_number): Fast path only, use parse_slow otherwise.
3483         (_cpp_lex_direct): Update calls to parse_number.
3484
3485 2002-03-21  DJ Delorie  <dj@redhat.com>
3486
3487         * bb-reorder.c (make_reorder_chain_1): Protect against
3488         when redundant edges are omitted.
3489         * predict.c (dump_prediction): Likewise.
3490
3491 2002-03-21  Richard Henderson  <rth@redhat.com>
3492
3493         PR target/5996
3494         * fixinc/inclhack.def (solaris_stdio_tag): New.
3495         * fixinc/fixincl.x: Regenerate.
3496
3497 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3498
3499         PR c/5597
3500         * c-typeck.c (process_init_element): Flag non-static
3501         initialization of a flexible array member as illegal.
3502
3503 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
3504
3505         * config/rs6000/t-linux64: New.
3506         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3507         t-ppccomm.  Use t-rs6000 and t-linux64.
3508         (powerpc64-*-gnu* <tmake_file>): Likewise.
3509         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3510         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3511         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3512
3513 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
3514
3515         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3516         flag_really_no_inline instead of optimize == 0.
3517
3518         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3519
3520         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3521
3522         * flags.h (flag_really_no_inline): New.
3523
3524         * c-common.c (c_common_post_options): Initialize
3525         flag_really_no_inline.
3526
3527         * toplev.c (flag_really_no_inline): New.
3528
3529 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3530
3531         * config/avr/avr.md (length): Fix length computation for
3532         conditional branches.
3533
3534 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3535
3536         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3537         sdbout.o, profile.o): Update.
3538         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3539         langhook.
3540         * c-common.h (gettags): Move here from tree.h.
3541         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3542         insert_block, getdecls, kept_level_p, global_bindings_p): New.
3543         * dbxout.c (dbxout_init): Use getdecls langhook.
3544         * expr.c (expand_expr): Use insert_block langhook.
3545         * fold-const.c: Include langhooks.h.
3546         (fold_range_test, fold_binary_op_with_conditional_arg,
3547         fold): Use global_bindings_p langhook.
3548         * integrate.c (expand_inline_function): Use insert_block langhook.
3549         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3550         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3551         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3552         LANG_HOOKS_GETDECLS): New.
3553         (LANG_HOOKS_INITIALIZER): Update.
3554         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3555         langhook.
3556         * langhooks.h (struct lang_hooks_for_decls): New.
3557         (struct lang_hooks): Update.
3558         * profile.c: Include langhooks.h.
3559         (output_func_start_profiler): Use new langhooks.
3560         * sdbout.c: Include langhooks.h.
3561         (sdbout_init, sdbout_finish): Use getdecls langhook.
3562         * stmt.c: Include langhooks.h.
3563         (expand_fixup, fixup_gotos): Use new langhooks.
3564         * stor-layout.c: Include langhooks.h.
3565         (variable_size): Use global_bindings_p langhook.
3566         * toplev.c (compile_file): Use getdecls langhook.
3567         * tree-inline.c (remap_block): Use insert_block langhook.
3568         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3569         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3570
3571 2002-03-21  Richard Henderson  <rth@redhat.com>
3572
3573         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3574         constants in .data when -fpic.
3575
3576 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3577
3578         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3579         where appropriate.
3580
3581 2002-03-21  Tom Tromey  <tromey@redhat.com>
3582
3583         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
3584
3585 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3586
3587         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3588
3589         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3590
3591 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
3592             Richard Henderson  <rth@redhat.com>
3593
3594         PR c/5354
3595         * c-common.c (c_expand_expr): Preserve result of a statement
3596         expression if needed.
3597
3598 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
3599
3600         PR bootstrap/4195
3601         * genrecog.c (maybe_both_true_mode): Remove.
3602         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3603         * machmode.def (Pmode): Likewise.
3604
3605 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
3606
3607         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3608         (nonlocal_mentioned_p_1): New function.
3609         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3610         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3611         (mark_constant_function): Recognize pure functions.
3612         * rtl.h (global_reg_mentioned_p): New prototype.
3613         * rtlanal.c (global_reg_mentioned_p,
3614         global_reg_mentioned_p_1): New function.
3615
3616 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3617
3618         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3619         UNIX assert.h.
3620         * fixinc/fixincl.x: Regenerate.
3621
3622 2002-03-20  Jason Merrill  <jason@redhat.com>
3623
3624         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3625
3626 2002-03-20  Michael Meissner  <meissner@redhat.com>
3627
3628         * doc/invoke.texi (Optimize Options): Document that -O2 sets
3629         -fstrict-aliasing.
3630
3631 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3632
3633         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3634         ".literal_position" directive before the constant pool.
3635
3636 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3637
3638         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3639         Add Craig Rodrigues.
3640         Add Brad Lucier to testers.
3641
3642 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3643
3644         PR target/4792
3645         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3646         to if_then_else.
3647         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3648         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3649         instead of insn_extract.
3650
3651 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3652
3653         PR bootstrap/4192
3654         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3655
3656         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3657         stmt if some case has been output.
3658
3659 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
3660
3661         PR c/5972
3662         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3663         movsfcc_1, movdfcc_1): Add %O2.
3664         * config/i386/i386.c (print_operand): Handle %ON.
3665         Print . before float condition codes in Sun as cmov syntax.
3666         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3667         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3668         no longer true.
3669
3670 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
3671
3672         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3673         return instruction if PC was popped.
3674
3675 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
3676
3677         * config/xtensa/xtensa.md: Remove unused type attributes.
3678         (adddi_carry, subddi_carry): Change type attribute to "multi".
3679
3680 2002-03-19  Dale Johannesen  <dalej@apple.com>
3681
3682         PR optimization/5999, middle-end/5731
3683         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3684         multiplications by reciprocals.
3685
3686 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3687
3688         * Makefile.in: Update.
3689         * c-common.c: Include langhooks.h.
3690         (inline_forbidden_p): Use new hook.
3691         * diagnostic.c: Include langhooks.h.
3692         (format_with_decl, announce_function,
3693         default_print_error_function): Use new hook.
3694         * dwarf2out.c (dwarf2_name): Use new hook.
3695         * function.c: Include langhooks.h.
3696         (init_function_start): Use new hook.
3697         * langhooks-def.h (lhd_decl_printable_name): New.
3698         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3699         (LANGHOOKS_INITIALIZER): Update.
3700         * langhooks.c (lhd_decl_printable_name): New.
3701         * langhooks.h (struct lang_hooks): New hook.
3702         * toplev.c (decl_name, decl_printable_name): Remove.
3703         (open_dump_file): Use new hook.
3704         (process_options): Remove old hook.
3705         * tree.h (decl_printable_name): Remove.
3706 objc:
3707         * objc-act.c (objc_init): Remove old hook.
3708         (objc_printable_name): Export.
3709         * objc-act.h (objc_printable_name): New.
3710         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3711
3712 2002-03-19  Jim Blandy  <jimb@redhat.com>
3713
3714         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3715         the start_source_file debug hook, not the current line number.
3716
3717 2002-03-19  Richard Henderson  <rth@redhat.com>
3718
3719         * flow.c (EH_USES): Provide default.
3720         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3721         * doc/tm.texi (EH_USES): New.
3722
3723         * config/ia64/ia64.c (ia64_eh_uses): New.
3724         * config/ia64/ia64-protos.h: Update.
3725         * config/ia64/ia64.h (EH_USES): New.
3726
3727 2002-03-19  Richard Henderson  <rth@redhat.com>
3728
3729         * varasm.c (output_constant_def): Fix stupid typo.
3730
3731 2002-03-19  Richard Henderson  <rth@redhat.com>
3732
3733         PR 5879
3734         * except.c (current_function_has_exception_handlers): New.
3735         * except.h: Declare it.
3736         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3737         Combine tests that disable all sibcalls for the function.
3738
3739 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
3740
3741         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3742         for INTEGER_CST.
3743
3744 2002-03-19  Richard Henderson  <rth@redhat.com>
3745
3746         PR 5977, 5991
3747         * config/ia64/ia64.c: Revert 2002-03-01 patch.
3748         * config/ia64/ia64.h (INIT_EXPANDERS): New.
3749
3750 2002-03-19  Jim Blandy  <jimb@redhat.com>
3751
3752         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3753         name, even if the replacement list contains no tokens, as required
3754         by Dwarf.
3755
3756 2002-03-19  Jason Merrill  <jason@redhat.com>
3757
3758         * varasm.c (globalize_decl): Get the name from the RTL, not
3759         DECL_ASSEMBLER_NAME.
3760
3761         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3762
3763 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
3764
3765         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3766         subdi_carry): Define.
3767
3768 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3769
3770         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3771         about -fpic/-fPIC if extra_warnings set.
3772
3773 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
3774
3775         * expr.c (expand_expr): Sign-extend CONST_INT generated from
3776         TREE_STRING_POINTER.
3777         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3778
3779 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3780
3781         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3782         in favor of SP if FRAME_POINTER_REQUIRED is false.
3783
3784 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
3785
3786         * emit-rtl.c (gen_int_mode): New function.
3787         * rtl.h: Prototype for it.
3788         * combine.c (make_extraction, simplify_comparison), expmed.c
3789         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3790         (convert_modes, store_field), optabs.c (expand_fix),
3791         simplify-rtx.c (neg_const_int, simplify_unary_real),
3792
3793         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3794         Use it instead of GEN_INT (trunc_int_for_mode (...)).
3795
3796 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
3797
3798         PR c/5656
3799         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3800         convert_parm_for_inlining.
3801         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3802         Define.
3803         * langhooks-def.h: Likewise.
3804         * objc/objc-lang.c: Likewise.
3805         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3806         function.
3807         * tree-inline.c (initialize_inlined_parameters):
3808         Call convert_parm_for_inlining lang hook if needed.
3809         * c-typeck.c (c_convert_parm_for_inlining): New function.
3810         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3811
3812 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
3813
3814         * calls.c (precompute_arguments): Do not assume that temporaries
3815         can be destroyed after expanding the argument.
3816         (expand_call): Likewise.
3817
3818 2002-03-15  Eric Christopher  <echristo@redhat.com>
3819
3820         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3821         Fix register preference on last change.
3822         * config/mips/mips.c (mips_return_in_memory): New function.
3823         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3824         * config/mips/mips-protos.h: Declare.
3825         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3826         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3827
3828 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3829
3830         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3831         a register too.
3832         (anddi3, iorsi3): Likewise.
3833
3834         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3835         use %gprel for symbols that are going to be placed in linkonce
3836         sections.
3837
3838         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3839         RETURN_ADDRESS_POINTER_REGNUM to $ra.
3840         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3841         not needed.  Disregard leaf_function_p().
3842         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3843         mips16 frame pointer.
3844         * config/mips/mips.md (store ra): Only to small SP offsets.
3845         2001-08-22  Graham Stott  <grahams@redhat.com>
3846         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3847         return a REG rtx for the return address register.
3848
3849 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
3850
3851         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3852         constant-pool addresses as "mode-dependent".
3853         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3854
3855 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
3856
3857         PR target/5740
3858         * expr.c (emit_group_load): Use extract_bit_field if
3859         needed for CONCAT arguments.
3860
3861 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
3862
3863         PR target/4863
3864         * arm.md (tablejump): Make this a define_expand.  For PIC add the
3865         offset to the base of the table.
3866         (thumb_tablejump): Matcher for Thumb tablejump insn.
3867         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3868         as the difference of two labels.
3869         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3870         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3871         tables in the code.
3872         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3873         * arm.c (get_jump_table_size): If the table is not in the text
3874         section, return zero.
3875
3876 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
3877
3878         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3879         of gen_rtx_SUBREG.
3880         (arm_reload_out_hi): Use gen_lowpart instead of
3881         gen_rtx_SUBREG to access QImode components.
3882         * config/arm/arm.md: Disable zero_extend split for QImode
3883         subregs in BIG_ENDIAN mode.
3884         (storehi_bigend): Match use of least significant byte.
3885         (storeinthi): Remove extraneous SUBREG.
3886         Add missing construction of operands[2].
3887         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3888         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3889         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3890
3891 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
3892
3893         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3894         any_operand.
3895
3896 2002-03-17  Richard Henderson  <rth@redhat.com>
3897
3898         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3899         explicitly.
3900
3901 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3902
3903         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3904         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3905
3906 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3907
3908         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3909
3910         * predict.c (estimate_bb_frequencies): Delete unused variables.
3911
3912 2002-03-17  Richard Henderson  <rth@redhat.com>
3913
3914         * config/ia64/ia64.c (ia64_attribute_table): Move before
3915         targetm definition.  Make static.
3916
3917 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3918
3919         * c-common.h (yyparse, c_common_parse_file): New.
3920         * c-lang.c: Include c-common.h.
3921         (LANG_HOOKS_PARSE_FILE): Redefine.
3922         * c-lex.c: Include c-common.h.
3923         (yyparse): Rename c_common_parse_file.  Call yyparse.
3924         * c-parse.in (yyparse): Remove macro.
3925         * c-tree.h (yyparse_1): Remove.
3926         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3927         (LANG_HOOKS_INITIALIZER): Update.
3928         * langhooks.h (struct lang_hoooks): New hook parse_file.
3929         * toplev.c (compile_file): Use parse_file hook.
3930         * tree.h (yyparse): Remove.
3931         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3932
3933 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
3934
3935         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3936         float_truncate, not fix.
3937         ("*truncdfsf2_real"): Ditto.
3938         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3939
3940         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3941
3942 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
3943
3944         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3945         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
3946         where appropriate.  Make the second reference to
3947         leaf_function_p a function call, as intended.  Reindented.
3948
3949         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3950         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3951
3952         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3953         add register to non-constant into sp.
3954
3955         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3956         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3957         (mips16_gp_pseudo_rtx): Lose.
3958         (INIT_EXPANDERS): Deleted.
3959         * config/mips/mips.c (mips_init_machine_status): New.
3960         (mips_free_machine_status): New.
3961         (mips_mark_machine_status): New.
3962         (override_options): Set them.
3963         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3964         (struct machine_function): ... new.  Replaced all references.
3965         (mips_add_gc_roots): Don't mark them.
3966         (embedded_pic_fnaddr_reg): New, extracted from...
3967         (embedded_pic_offset): ... here.
3968         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3969         (movsi): Likewise.
3970
3971 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3972
3973         * cppinit.c: Revert -MD removal.
3974
3975 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3976
3977         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3978         soft registers by default for 68HC12.
3979         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3980         when compiling with -fomit-frame-pointer.
3981         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3982         (expand_epilogue): Likewise.
3983         (m68hc11_gen_rotate): Use exg when rotating by 8.
3984
3985 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3986
3987         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3988         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3989         (splits): Remove unused add splits.
3990         ("*addhi3_68hc12"): Tune constraints.
3991         ("addhi_sp"): Try to use X instead of Y in all cases and if the
3992         constant fits in 8-bits and D is dead use abx/aby instructions.
3993         ("*addhi3"): Remove extern declaration of ix_reg.
3994         ("*subsi3"): Optimize and provide new split.
3995         ("subhi3"): Cleanup.
3996         ("*subhi3_sp"): Avoid saving X if we know it is dead.
3997         (arith splits): For 68hc12 save the address register on the stack
3998         and do the arithmetic operation with a pop.
3999
4000 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4001
4002         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4003         allocating QImode in address registers.
4004         ("*movqi_m68hc11"): Likewise.
4005
4006 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
4007
4008         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4009
4010 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4011
4012         * cppinit.c (print_help): Display -MD and -MMD.
4013         Don't display usage string.  Update assertion syntax and
4014         typo.
4015         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4016         (cpp_handle_option): Update.
4017
4018 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
4019
4020         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4021         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4022         and define it so that regardless of target CPU size,
4023         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4024         of "int" rather than "long."
4025
4026 2002-03-15  Richard Henderson  <rth@redhat.com>
4027
4028         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4029         size as a tree.
4030
4031 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4032
4033         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4034         ("tstqi" split): Avoid using memory for tstqi on address register.
4035         (splits): Remove constraints.
4036         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4037         ("cmpdf", "cmpsf"): Remove since not used.
4038         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4039         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4040
4041 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4042
4043         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4044         ("neghi2"): Tighten constraints.
4045         ("one_cmplsi2"): Optimize and simplify split.
4046         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4047
4048 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4049
4050         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4051         and split of AND operation to clear the upper bits.
4052         ("*logicalsi3_zextqi"): Likewise.
4053         ("*logicallhi3_zexthi_ashift8"): Likewise.
4054         ("*logicalsi3_silshr16"): Likewise.
4055         ("logicalsi3_silshl16"): Likewise.
4056         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4057
4058 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4059
4060         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4061         (m68hc11_indirect_p): New function.
4062         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4063         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4064         TARGET_M6812.
4065         (asm_print_register): Likewise.
4066         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4067         (m68hc11_indirect_p): Declare.
4068         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4069         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4070         (TARGET_SWITCHES): New option -mrelax.
4071         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4072         destination.
4073         ("iorsi3", "xorsi3"): Likewise.
4074         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4075         ("*andhi3_mem"): New to handle destination in memory with bclr
4076         and a scratch register.
4077         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4078         ("*andhi3_const"): New when operand2 is constant.
4079         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4080         ("*andhi3_gen"): Cleanup of the old "andhi3".
4081         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4082         ("xorqi3"): Update constraints.
4083
4084 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4085
4086         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4087         for reg_equiv_memory_loc when the operand is a register that does
4088         not get a hard register (stack location).
4089         (tst_operand): After reload, accept all memory operand.
4090         (symbolic_memory_operand): Fix detection of symbolic references.
4091         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4092         accept symbols and any constant.
4093
4094 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4095
4096         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4097         note on the insn that sets the soft frame register.
4098         (must_parenthesize): ix and iy are also reserved names.
4099         (print_operand_address): One more place where parenthesis are required
4100         to avoid confusion with register names.
4101         (m68hc11_gen_movhi): Allow push of stack pointer.
4102         (m68hc11_check_z_replacement): Fix handling of parallel with a
4103         clobber.
4104         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4105         the replacement register is.
4106         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4107         and D8_REGS classes.
4108         (MODES_TIEABLE_P): All modes are tieable except QImode.
4109
4110 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4111
4112         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4113         (___subdi3): Likewise.
4114         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4115         (__map_data_section): Optimize 68hc11 case.
4116
4117 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4118
4119         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4120         than a shift to avoid adding a register with itself.
4121         (m68hc11_memory_move_cost): Take into account NO_REGS.
4122         (m68hc11_register_move_cost): Update and use memory move cost
4123         for soft registers.
4124         (m68hc11_address_cost): Make cost of valid offset not 0 so that
4125         it gives more opportunities to cse to optimize.
4126         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4127         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4128
4129 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
4130
4131         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4132         * c-common.def (CLEANUP_STMT): New tree node.
4133         * c-common.h (CLEANUP_DECL): New macro.
4134         (CLEANUP_EXPR): Likewise.
4135         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4136         * expr.c (expand_expr): Tidy.
4137         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4138         * tree-inline.c (initialize_inlined_parameters): Clean up
4139         new local variables.
4140
4141 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4142
4143         PR bootstrap/4128
4144         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4145         before movrXX only, use reg_overlap_mentioned_p.
4146         Only special case NE if just one insn can be generated.
4147
4148 2002-03-15  Jason Merrill  <jason@redhat.com>
4149
4150         * varasm.c (assemble_variable): Call resolve_unique_section before
4151         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
4152         of error_mark_node.
4153
4154 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4155
4156         PR target/5170
4157         * arm.md (split pattern for thumb shiftable immediates): Add comment
4158         explaining non-obvious test.
4159
4160 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4161
4162         PR target/5712
4163         * arm.md (movaddr, movaddr_insn): Delete.
4164
4165 2002-03-15  Jason Merrill  <jason@redhat.com>
4166
4167         * toplev.c (wrapup_global_declarations): Clarify variable handling.
4168         -fkeep-static-consts doesn't apply to comdats.
4169
4170 2002-03-14  Richard Henderson  <rth@redhat.com>
4171
4172         * c-decl.c: Include c-pragma.h.
4173         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4174         (finish_function): Tidy.
4175         * c-pragma.c: Include c-common.h.
4176         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4177         (handle_pragma_weak): Use them.
4178         (init_pragma): Register pending_weaks.
4179         * c-pragma.h (maybe_apply_pragma_weak): Declare.
4180         * print-tree.c (print_node): Print DECL_WEAK.
4181         * varasm.c (mark_weak_decls): Remove.
4182         (remove_from_pending_weak_list): Remove.
4183         (add_weak): Remove.
4184         (asm_emit_uninitialised): Call globalize_decl for weak commons.
4185         (weak_decls): Make a tree_list.
4186         (declare_weak): Cons weak_decls directly.
4187         (globalize_decl): Remove weak_decls elements directly.
4188         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
4189         symbols.  Don't pretend to handle aliases.
4190         (init_varasm_once): Update weak_decls registry.
4191         * Makefile.in: Update dependencies.
4192
4193 2002-03-14  Richard Henderson  <rth@redhat.com>
4194
4195         PR target/5312
4196         * config/ia64/ia64.c: Include tm_p.h last.
4197         (gen_nop_type): Remove duplicate definition.
4198         (cycle_end_fill_slots): Set sched_data for second L slot.
4199         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4200         (nop_cycles_until): Fix typos.
4201
4202 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4203
4204         PR optimization/5891
4205         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4206
4207 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4208
4209         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4210           descriptors correctly.
4211
4212 2002-03-14  Michael Meissner  <meissner@redhat.com>
4213
4214         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4215         100, allowing MAX_UNROLLED_INSNS to be overridden.
4216
4217         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4218         --param.
4219
4220         * unroll.c (params.h): Include.
4221         (MAX_UNROLLED_INSNS): Delete, now in params.h.
4222
4223         * doc/invoke.texi (--param max-unroll-insns): Document.
4224
4225         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4226
4227 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
4228
4229         * arm.md: Fix warnings about constraints in peepholes and splits.
4230
4231 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
4232
4233         * cpphash.h (struct lexer_state): Remove line_extension member.
4234         * cpplib.c (dequote_string, do_linemarker): New functions.
4235         (linemarker_dir): New data object.
4236         (DIRECTIVE_TABLE): No longer need to interpret #line in
4237         preprocessed source.  Delete obsolete comment about return
4238         values of handlers.
4239         (end_directive, directive_diagnostics, _cpp_handle_directive):
4240         Don't muck with line_extension.
4241         (directive_diagnostics): No need to issue warnings for
4242         linemarkers here.
4243         (_cpp_handle_directive): Issue warnings for linemarkers here,
4244         when appropriate.  Dispatch linemarkers to do_linemarker, not
4245         do_line.
4246         (do_line): Code to handle linemarkers split out to do_linemarker.
4247         Convert escape sequences in filename argument, both places.
4248
4249         * cppmacro.c (quote_string): Rename cpp_quote_string and
4250         export.  All callers changed.
4251         * cpplib.h (cpp_quote_string): Prototype.
4252         * cppmain.c (print_line): Call cpp_quote_string on to_file
4253         before printing it.
4254
4255         * doc/cpp.texi: Document that escapes are now interpreted in
4256         #line and in linemarkers, and that non-printing characters are
4257         converted to octal escapes when linemarkers are generated.
4258
4259 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
4260
4261         * emit-rtl.c (try_split): Use delete_insns.
4262         * recog.c (split_all_insns): Fix terminating condition.
4263
4264 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
4265             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4266
4267         PR target/5828
4268         * arm.c (arm_output_epilogue): Fix floating-point register save
4269         adjustment when using a frame pointer.
4270
4271 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
4272
4273         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4274         * config/mips/mips.c (compute_frame_size): Retrofit them here.
4275         (save_restore_insns, mips_expand_epilogue): And here.
4276         (build_mips16_call_stub): And here.
4277         (mips_function_value): Use the new macros to decide whether a single
4278         or complex float can be returned in floating-point registers.  Return
4279         a parallel rtx in the complex case.
4280
4281 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
4282
4283         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4284         call after liveness analysis.
4285
4286         * recog.c (split_insn): Use delete_insn_and_edges.
4287
4288         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4289         instructions to have branch prediction notes.
4290         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4291
4292 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
4293
4294         * configure.in: Don't pass -Wno-long-long to a ADA compiler
4295         that doesn't support it.
4296         * configure: Regenerate.
4297
4298 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4299
4300         PR target/5626
4301         * config/sparc/sparc.md (normal_branch, inverted_branch,
4302         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4303         inverted_fp_branch): Adjust calls to output_cbranch.
4304         Set length attribute.
4305         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4306         output_v9branch.  Set length attribute.
4307         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4308         predicates.
4309         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4310         (output_cbranch): Likewise.  Handle far branches.
4311         (output_v9branch): Handle far branches.
4312         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4313         Adjust prototypes.
4314         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4315         noov_compare64_op predicates.
4316
4317 2002-03-13  Jason Merrill  <jason@redhat.com>
4318
4319         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4320         into the function and constify it.
4321         * gthr-dce.h, gthr-solaris.h: Likewise.
4322
4323 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
4324
4325         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4326         * config/rs6000/rs6000.c (rs6000_va_arg): Use
4327         std_expand_builtin_va_arg if not ABI_V4.
4328
4329 2002-03-13  Jason Merrill  <jason@redhat.com>
4330
4331         * varasm.c (globalize_decl): New fn.
4332         (assemble_start_function): Use it.
4333         (asm_emit_uninitialized): Use it.
4334         (assemble_alias): Use it.
4335         (assemble_variable): Use it.
4336
4337 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
4338
4339         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4340         2002-03-12 internal visibility change.
4341         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4342         visibility into SYMBOL_REF_FLAG.
4343
4344 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
4345
4346         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4347         VOIDmode operand.  Add compile-time optimization for constant results.
4348
4349 2002-03-12  Jason Merrill  <jason@redhat.com>
4350
4351         * c-typeck.c (convert_for_assignment): Don't allow conversions
4352         between pointers and references.  Only allow lvalues to convert to
4353         reference.
4354
4355 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
4356
4357         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4358         before prologue, to avoid scheduling problems.
4359
4360 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4361
4362         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4363         (ELIMINABLE_REGS): Add sfp->sp.
4364         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4365
4366 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4367
4368         PR optimization/5892
4369         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4370
4371 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4372
4373         * loop.c (basic_induction_var): Don't call convert_modes if mode
4374         classes are different.
4375
4376 2002-03-12  Richard Henderson  <rth@redhat.com>
4377
4378         PR optimization/5901
4379         * function.c (reposition_prologue_and_epilogue_notes): Position
4380         the markers after/before the last/first insn not deleted.
4381
4382 2002-03-12  Richard Henderson  <rth@redhat.com>
4383
4384         PR optimization/5878
4385         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4386         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4387         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4388
4389         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4390         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4391         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4392
4393         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4394         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4395         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4396         also.  Don't set it if not flag_pic.
4397         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4398         to be INVALID_REGNUM when not used.
4399
4400 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
4401
4402         * expmed.c (store_bit_field): Reset alias set for memory.
4403         (extract_bit_field): Same.
4404
4405 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4406
4407         * c-common.c (c_tree_code_type, c_tree_code_length,
4408         c_tree_code_name, add_c_tree_codes): Delete.
4409         * c-common.h (add_c_tree_codes): Delete.
4410         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4411         Define.
4412         * c-objc-common.c (c_objc_common_init): Don't call
4413         add_c_tree_codes, instead set lang_unsafe_for_reeval.
4414         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4415         objc_tree_code_name, add_objc_tree_codes): Delete.
4416         (objc_init): Don't call add_objc_tree_codes.
4417         * objc/objc-lang.c (tree_code_type, tree_code_length,
4418         tree_code_name): Define.
4419         * toplev.c (lang_independent_init): Don't set
4420         tree_code_length[IDENTIFIER_NODE].
4421         * tree.c (tree_code_type, tree_code_length, tree_code_name):
4422         Delete definitions, moved to language front-ends.
4423         * tree.def (IDENTIFIER_NODE): Hardwire the length.
4424         * tree.h (tree_code_type, tree_code_length, tree_code_name):
4425         Const-ify.
4426         (tree_code_length): Change type to unsigned char.
4427
4428 2002-03-12  Richard Henderson  <rth@redhat.com>
4429
4430         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4431         internal visibility change.
4432
4433 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4434
4435         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4436         validize_mem() instead of change_address to avoid clobbering
4437         memory attributes.
4438
4439 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4440
4441         * c-lex.h (position_after_whitespace): Remove.
4442
4443 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
4444
4445         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4446         (lex_string): Use unsigned char pointers.
4447
4448 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
4449
4450         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4451         is not a valid memory_operand.
4452
4453 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4454
4455         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4456         * config/xtensa/lib1funcs.asm: Fix copyright to include
4457         special case for libgcc files.
4458         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4459         (__divsi3): Likewise.
4460         (__umodsi3): Likewise.
4461         (__modsi3): Likewise.
4462         * config/xtensa/lib2funcs.S: Fix copyright to include
4463         special case for libgcc files.
4464
4465 2002-03-12  Tom Rix  <trix@redhat.com>
4466
4467         * collect2.c (resolve_lib_name): Move outside of
4468         OBJECT_FORMAT_COFF ifdef.
4469         (ignore_library): Same.
4470
4471 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4472
4473         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4474
4475 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
4476
4477         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4478         to function_section before writing out the constant pool.
4479
4480 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
4481
4482         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4483         zero_constant.
4484         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4485
4486 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
4487
4488         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4489         (adddi3): Likewise.
4490         (movdf): Likewise.
4491         (movdi): Likewise.
4492         (cmpsi splitter): Likewise.
4493         (modsi3): Fail if <= 0.
4494         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4495         redundant test when HOST_BITS_PER_WIDE_INT != 32.
4496         (reg_or_sub_cint64_operand): Likewise.
4497         (num_insns_constant_wide): Optimize sign extension.
4498         (rs6000_legitimize_address): Likewise.
4499
4500 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
4501
4502         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4503         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4504
4505 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
4506
4507         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4508         address calculation.
4509
4510 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
4511
4512         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4513         scratch register to DImode / TImode.
4514         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4515         register used does not overlap the target.
4516
4517 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4518
4519         * Makefile.in (debug.o): Depend on debug.h.
4520         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4521         * debug.c (do_nothing_debug_hooks): Likewise.
4522         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4523         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4524         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4525         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4526         * dwarfout.c (dwarf_debug_hooks): Likewise.
4527         * integrate.c (output_inline_function): Likewise.
4528         * objc/objc-act.c (synth_module_prologue): Likewise.
4529         * sdbout.c (sdb_debug_hooks): Likewise.
4530         * toplev.c (debug_hooks): Likewise.
4531         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4532
4533 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4534
4535         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4536         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4537         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4538         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4539         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4540         * defaults.h (POINTER_SIZE): Define.
4541         * doc/tm.texi (POINTER_SIZE): Document default.
4542
4543 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4544
4545         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4546
4547 2002-03-11  Richard Henderson  <rth@redhat.com>
4548
4549         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4550         if rebuild_label_notes_after_reload.
4551
4552 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
4553
4554         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
4555         emit pic register load if "internal" visibility.
4556         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4557         (cris_expand_builtin_va_arg): Do all computations on trees.
4558
4559 2002-03-11  Richard Henderson  <rth@redhat.com>
4560
4561         * rtlanal.c: Include recog.h.
4562         (keep_with_call_p): Fix thinko.
4563         * Makefile.in (rtlanal.o): Update dependencies.
4564
4565 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
4566
4567         * genflags.c (gen_insn): Use IS_VSPACE.
4568         * genoutput.c (output_insn_data): Likewise.
4569         (process_template): Likewise.
4570
4571 2002-03-11  Richard Henderson  <rth@redhat.com>
4572
4573         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4574
4575 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4576
4577         * Makefile.in: Update.
4578         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4579         Update documentation.
4580         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4581         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4582
4583 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
4584
4585         * Makefile.in: Give texi2pod its input file as a command line
4586         argument, not on stdin.
4587
4588 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
4589             Daniel Berlin  <dan@dberlin.org>
4590
4591         C++ alias analysis improvement.
4592         * alias.c (record_component_aliases): Record aliases for base
4593         classes too.
4594
4595 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
4596
4597         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4598
4599 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4600
4601         * toplev.c (vms_fopen): Remove, not needed.
4602
4603         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4604
4605         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4606
4607         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4608         for FP, already done later.
4609
4610         * toplev.c (debug_args): Add entry for VMS_DEBUG.
4611         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4612
4613 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
4614
4615         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4616         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4617         LARGEST_EXPONENT_IS_NORMAL for the given mode.
4618         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4619         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4620         (ediv, emul, eldexp, esqrt): Likewise.
4621         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4622         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4623         (saturate): New function.
4624         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4625         (make_nan): Use a saturation value instead of a NaN if
4626         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
4627         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4628         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
4629         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
4630         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4631         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4632         !ROUND_TOWARDS_ZERO.
4633         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4634         (ROUND_TOWARDS_ZERO): Document.
4635
4636 2002-03-11  Andreas Jaeger  <aj@suse.de>
4637
4638         * cfg.c (dump_flow_info): Remove unused variable.
4639
4640 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
4641
4642         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4643         computations on trees.
4644
4645 2002-03-10  Richard Henderson  <rth@redhat.com>
4646
4647         PR 5693:
4648         * reload.c (copy_replacements_1): New.
4649         (copy_replacements): Use it to recurse through the rtx.
4650
4651 2002-03-10  Richard Henderson  <rth@redhat.com>
4652
4653         * loop.c (strength_reduce): Compute number of iterations as
4654         unsigned HOST_WIDE_INT.
4655
4656 2002-03-10  Richard Henderson  <rth@redhat.com>
4657
4658         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4659         to move away from the end of the block.
4660
4661 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4662
4663         PR preprocessor/5899
4664         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4665
4666 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4667
4668         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4669
4670         * attribs.c (decl_attributes): Fix signed/unsigned warning.
4671
4672 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
4673
4674         * config/mmix/mmix.c: Improve comments.
4675         (mmix_target_asm_function_prologue): Drop variable
4676         empty_stack_frame.  Don't allocate unused slot above fp.
4677         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4678         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4679         brace in first column.
4680         (enum reg_class): Ditto.
4681         (FIRST_PARM_OFFSET): Now 0.
4682         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4683
4684 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4685
4686         * combine.c (make_extraction): Fix error in last change.
4687
4688 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4689
4690         * c4x.c (c4x_fp_reglist): Const-ify.
4691         * cris.c (cris_print_operand): Likewise.
4692         * i386.c (ix86_va_arg): Likewise.
4693         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4694         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4695         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4696         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4697         * mcore.h (regno_reg_class): Likewise.
4698         * mips.c (gen_int_relational): Likewise.
4699         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4700         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4701         * pdp11.c (move_costs): Likewise.
4702         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4703         * s390.c (s390_branch_condition_mnemonic, regclass_map):
4704         Likewise.
4705         * s390.h (regclass_map): Likewise.
4706         * sh.c (shift_amounts): Likewise.
4707         * sh.md (rotlsi3): Likewise.
4708
4709 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4710
4711         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4712         (ne0+5): Use new clobber to generate proper shift pattern.
4713         Patch by Michael Matz <matz@kde.org>.
4714
4715 2002-03-09  Andreas Schwab  <schwab@suse.de>
4716
4717         * gcc.c (validate_all_switches): Also handle `%W{...}'.
4718
4719 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
4720
4721         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4722
4723 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
4724
4725         PR middle-end/5877
4726         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4727         even for non-representable constants.
4728
4729 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4730
4731         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4732         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4733         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4734         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4735         (pop_function_context): Compute MAY_SHARE parameter for
4736         fixup_var_refs.
4737         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4738         (gen_mem_addressof): Call fixup_var_refs with new parm.
4739
4740         * combine.c (make_extraction): Don't make extension of CONST_INT.
4741
4742 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4743
4744         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4745         in o32 and o64 ABIs.
4746         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4747         but getting fixed-size structs passed in registers regardless of
4748         padding in o32 and o64 ABIs.
4749
4750         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4751         offset before loading address of argument passed by transparent
4752         reference.
4753
4754 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4755
4756         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4757
4758 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
4759
4760         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4761         marker such that registers after it are saved.
4762
4763 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4764
4765         * sparc.c (arith_4096_operand): Fix error in last change.
4766
4767 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4768
4769         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4770         defaults for MEABI.
4771
4772 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4773
4774         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4775         vectors.
4776
4777 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
4778
4779         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4780
4781 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
4782
4783         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4784         removed; fix return value.
4785         * combine.c (combine_instructions): Dirtify blocks where we failed to
4786         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4787         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4788
4789 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4790
4791         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4792
4793 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
4794
4795         * recog.c (peephole2_optimize): Re-distribute EH edges.
4796
4797 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4798
4799         * expr.c (expand_expr): Use unsave lang hook.
4800         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4801         (LANG_HOOKS_INITIALIZER): Update.
4802         * langhooks.h (struct lang_hooks): New hook unsave.
4803         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4804         (unsave_expr_1): Remove unused lang_unsave_expr_now.
4805         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
4806         (unsave_expr_now): Remove.
4807         * tree.h (unsave_expr_now, lang_unsave,
4808         lang_unsave_expr_now): Remove.
4809         (lhd_unsave): New.
4810
4811 2002-03-08  Andreas Jaeger  <aj@suse.de>
4812
4813         * flow.c (propagate_block_delete_insn): Remove unused variable.
4814
4815 2002-03-08  Kazu Hirata  <kazu@hxi.com>
4816
4817         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4818         insn length for memory load/store.
4819
4820 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4821
4822         * doc/install.texi (--with-libiconv-prefix): Document.
4823
4824 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
4825
4826         * doc/sourcebuild.texi: Fix typo.
4827
4828 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
4829
4830         PR c/3711
4831         * builtins.c (std_expand_builtin_va_arg): Do all computations on
4832         trees.
4833
4834 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4835
4836         * rtl.c (copy_most_rtx): Move from here ...
4837         * emit-rtl.c (copy_most_rtx): ... to here.
4838
4839 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
4840
4841         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4842         SUBTARGET_CPP_SIZE_SPEC.
4843         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4844
4845         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4846
4847 2002-03-07  Matt Hiller  <hiller@redhat.com>
4848
4849         * gensupport.c (first_dir_md_include): Renamed from include;
4850         change all references.
4851         (last_dir_md_include): Renamed from last_include; change all
4852         references.
4853         (init_md_reader): Unconditionally initialize base_dir whether or
4854         not filename is a relative path.
4855
4856 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
4857
4858         * config/fp-bit.c (_unord_f2): Compile it in even if
4859         US_SOFTWARE_GOFAST is enabled.
4860
4861         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4862         NULL_RTX.  Set all HFmode operations as NULL_RTX.
4863         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4864         NULL_RTX, try reversing the comparison and the operands.
4865
4866 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4867
4868         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4869         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4870         and MATCH_OP_DUP.
4871
4872 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
4873
4874         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4875
4876 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4877
4878         * basic-block.h (fixup_abnormal_edges): Declare.
4879         * reload1.c (fixup_abnormal_edges): New function.
4880         * reg-stack.c (convert_regs): Use it.
4881
4882         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4883
4884         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4885
4886 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
4887
4888         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4889         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4890         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4891         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4892         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4893         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4894         unless x and y could be infinite.
4895         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4896         Check that the common type of both arguments is a real, even for
4897         targets without unordered comparisons.  Allow an integer argument
4898         to be compared against a real.
4899         (expand_tree_builtin): Use expand_unordered_cmp.
4900         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4901         * cse.c (fold_rtx): Likewise.  Fix indentation.
4902         * fold-const.c (fold_real_zero_addition_p): New.
4903         (fold): Use it, and the new HONOR_... macros.
4904         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4905         * jump.c (reversed_comparison_code_parts): After searching for
4906         the true comparison mode, use HONOR_NANS to decide whether it
4907         can be safely reversed.
4908         (reverse_condition_maybe_unordered): Remove IEEE check.
4909         * simplify-rtx.c (simplify_binary_operation): Use the new macros
4910         to decide which simplifications are valid.  Allow the following
4911         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4912         and (a - -b) to (a + b).
4913         (simplify_relational_operation): Use HONOR_NANS.
4914         * doc/tm.texi: Document the MODE_HAS_... macros.
4915
4916 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4917
4918         * combine.c (simplify_comparison): If simplifying a logical shift
4919         right and compare with constant, force the comparison to unsigned.
4920
4921 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
4922
4923         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4924
4925         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4926         -mabi=no-altivec
4927         (alt_reg_names): Remove % for vrsave.
4928
4929 2002-03-06  Richard Henderson  <rth@redhat.com>
4930
4931         PR optimization/5844
4932         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
4933         if used indicates we've already emitted one copy of an operand.
4934         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4935         (gen_split): Supply a non-null used.
4936
4937 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
4938
4939         * reload1.c (reload): Unshare all rtl after reload is done.
4940
4941         * simplify-rtx.c (simplify_plus_minus): Do not abort,
4942         but simply fail if the expression is too complex to simplify.
4943         (simplify_gen_binary): Handle simplify_plus_minus failures.
4944
4945 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
4946
4947         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4948         consistently call delete_trivially_dead_insns after CSE and GCSE;
4949         fix DFI_life dumping; do jump threading after liveness; do crossjumping
4950         after liveness2; update comment in last crossjumping.
4951         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4952
4953 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
4954
4955         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4956         after completing fast dead code elimination.
4957
4958         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4959         COMPARE operator.
4960
4961 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
4962
4963         * version.c:  Fix misplaced leading blanks on first line.
4964
4965 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
4966
4967         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4968
4969 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
4970
4971         * cfgcleanup.c (mentions_nonequal_regs): New function.
4972         (thread_jump): Use it.
4973         * toplev.c (rest_of_compilation): Run jump threading after
4974         liveness.
4975
4976 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
4977
4978         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4979         patch.
4980
4981 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4982
4983         * predict.c (estimate_bb_frequencies): Do not reload the
4984         frequencies from notes.
4985
4986 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
4987
4988         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4989         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4990
4991         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4992         delete_noop_moves): Return indeger.
4993         * flow.c (ndead): New variable.
4994         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4995         BB argument; update callers.
4996         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4997         (life_analysis): Do not call purge_all_dead_edges.
4998         (update_life_info): Return number of deleted insns; print statistics.
4999         (update_life_info_in_dirty_blocks): likewise.
5000         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5001         return number of insns deleted.
5002
5003         * cse.c: Include timevar.h
5004         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5005         iterate until stabilizes; print statistics; return number of killed
5006         insns.
5007         * Makefile.in: (cse.o): Add timevar.h dependency
5008         * rtl.h (delete_trivially_dead_insns): New.
5009         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5010         * toplev.c (rest_of_compilation): Update callers.
5011
5012         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5013         (try_optimize_cfg): Do not update liveness.
5014         (cleanup-cfg): Loop until try_optimize_cfg and dead code
5015         removal stabilizes; use delete_trivially_dead_insns.
5016
5017         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5018
5019 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5020
5021         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5022         callbacks when processing assembly language.
5023
5024 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5025
5026         * pa.h (ASM_FILE_END): Define.
5027         * som.h (ASM_FILE_END): Delete.
5028
5029         * pa.c (function_arg): Don't pass floats in general registers in
5030         indirect calls if TARGET_ELF32.
5031
5032 2002-03-05  Richard Henderson  <rth@redhat.com>
5033
5034         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5035
5036 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
5037
5038         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5039
5040 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5041
5042         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5043         -r command line.  Don't hide any symbols if not building
5044         shared libgcc.
5045
5046 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
5047
5048         * cfg.c (dump_flow_info): Warn about profile mismatches.
5049         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5050         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5051
5052 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5053
5054         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5055         wide volatile memory by parts.
5056
5057 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5058
5059         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5060         is NULL.
5061
5062 2002-03-05  Richard Henderson  <rth@redhat.com>
5063
5064         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5065
5066 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5067
5068         * toplev.c (documented_lang_options): Document more
5069         language-specific options.
5070         * doc/invoke.texi (Warning Options): Correct documentation for
5071         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5072         * c-decl.c (c_decode_option): Use a table to handle warning options.
5073
5074 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
5075
5076         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5077         parameter to mmix_encode_section_info.
5078         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5079         relocatably.  Always produce ELF, not mmo if linking relocatably.
5080         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5081         first is non-zero, don't add symbol prefix.
5082         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5083         prototype accordingly.
5084
5085 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
5086
5087         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5088
5089 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5090
5091         * configure.in: Increase required makeinfo version to 4.1.
5092         * configure: Regenerate.
5093
5094 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5095
5096         * .cvsignore: Remove *.info* and genrtl*; these files are generated
5097         elsewhere now.
5098
5099 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5100
5101         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5102         * doc/invoke.texi: Fix @math uses.
5103
5104 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5105
5106         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5107         removal
5108
5109 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
5110
5111         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5112         (powerpc-*-eabisimaltivec*): Same.
5113
5114         * config/rs6000/t-ppcendian: New.
5115
5116 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5117
5118         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5119         nonimmediate_src_operand and nonimmediate_lsrc_operand to
5120         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5121
5122 2002-03-03  Richard Henderson  <rth@redhat.com>
5123
5124         * toplev.c (rest_of_decl_compilation): Revert last two changes.
5125
5126 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
5127
5128         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5129         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5130         tree.c, config/m68k/m68k.c:
5131         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5132         REAL_ARITHMETIC blocks unconditional.  Delete some further
5133         #ifdef blocks predicated on REAL_ARITHMETIC.
5134         * flags.h, toplev.c: Delete remaining references to
5135         flag_pretend_float.
5136
5137         * doc/invoke.texi: Remove documentation of -fpretend-float.
5138         * doc/tm.texi: Describe the various REAL_* macros as provided by
5139         real.h, not by the target configuration files.
5140
5141         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5142         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5143         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5144         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5145         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5146         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5147         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5148         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5149         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5150         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5151         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5152         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5153         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5154         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5155         config/xtensa/xtensa.h:
5156         Do not define, undefine, or mention in comments any of
5157         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5158         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5159         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5160         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5161         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5162         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5163         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5164         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5165         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5166
5167 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5168
5169         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5170         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5171         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5172         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5173         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5174         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5175         Delete.
5176         * defaults.h (BITS_PER_WORD): Define.
5177         * doc/tm.texi (BITS_PER_WORD): Document default value.
5178
5179         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5180         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5181         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5182
5183 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5184
5185         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5186         lieu of explicit sizeof/sizeof.
5187         * i386.c (override_options, ix86_init_mmx_sse_builtins,
5188         ix86_expand_builtin): Likewise.
5189         * mips.c (mips_add_gc_roots): Likewise.
5190         * mmix.c (mmix_output_condition): Likewise.
5191         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5192         altivec_init_builtins): Likewise.
5193         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5194         * cppexp.c (Nsuff, parse_number): Likewise.
5195         * cppinit.c (builtin_array_end): Likewise.
5196         * gcc.c (n_default_compilers, process_command): Likewise.
5197         * genpreds.c (output_predicate_decls): Likewise.
5198         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5199         * lcm.c (N_ENTITIES): Likewise.
5200         * stor-layout.c (set_sizetype): Likewise.
5201
5202 2002-03-03  Richard Henderson  <rth@redhat.com>
5203
5204         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5205         for types or labels.
5206
5207 2002-03-03  Richard Henderson  <rth@redhat.com>
5208
5209         * c-decl.c (start_decl): Initialized variables are not common.
5210
5211 2002-03-02  Per Bothner  <per@bothner.com>
5212
5213         * gcc.c (option_map):  Suport new --bootclasspath option.
5214         --CLASSPATH is now just an alias for --classpath.
5215
5216 2002-03-02  Richard Henderson  <rth@redhat.com>
5217
5218         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5219         load if "internal" visibility.
5220         * doc/extend.texi: Document visibility meanings.
5221
5222 2002-03-02  Richard Henderson  <rth@redhat.com>
5223
5224         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5225         to functions as well.
5226
5227 2002-03-02  Richard Henderson  <rth@redhat.com>
5228
5229         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5230         (handle_visibility_attribute): Don't call assemble_visibility.
5231         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5232         without asmspec.  Invoke assemble_alias when needed.
5233         * varasm.c (maybe_assemble_visibility): New.
5234         (assemble_start_function, assemble_variable, assemble_alias): Use it.
5235
5236 2002-03-02  Richard Henderson  <rth@redhat.com>
5237
5238         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5239         invoke ENCODE_SECTION_INFO with first call flag.
5240
5241         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5242         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5243         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5244         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5245         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5246         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5247         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5248         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5249         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5250         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5251         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5252         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5253         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5254         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5255         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5256         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5257         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5258         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5259         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5260         config/sh/sh.h, config/sparc/sparc.h,
5261         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5262         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5263         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5264         FIRST argument.  As needed, examine it and do nothing.
5265
5266         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5267         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5268         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5269
5270         * config/arm/t-pe (pe.o): Add dependencies.
5271
5272 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5273
5274         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5275         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5276         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5277         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5278         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5279         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5280         * defaults.h (BITS_PER_UNIT): Define.
5281         * doc/tm.texi (BITS_PER_UNIT): Document default value.
5282
5283 2002-03-02  Kazu Hirata  <kazu@hxi.com>
5284
5285         * config/h8300/h8300-protos.h: Add a prototype for
5286         compute_a_shift_length.
5287         * config/h8300/h8300.c (h8300_asm_insn_count): New.
5288         (compute_a_shift_length): Likewise.
5289         (h8300_adjust_insn_length): Do not adjust insn length of shift
5290         insns.
5291         * config/h8300/h8300.md (anonymous shift patterns): Use
5292         compute_a_shift_length.
5293
5294 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5295
5296         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5297         trunc_int_for_mode.
5298
5299         * emit-rtl.c (offset_address): Call update_temp_slot_address.
5300
5301 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5302
5303         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5304         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5305         * flags.h (flag_zero_initialized_in_bss): Declare.
5306         * toplev.c (flag_zero_initialized_in_bss): New flag.
5307         (lang_independent_options): Add flag_zero_initialized_in_bss.
5308         * tree.c (initializer_zerop): New function.
5309         * tree.h (initializer_zerop): Declare.
5310         * varasm.c (assemble_variable): If we can emit bss, put zero
5311         initializers in the bss section.
5312
5313 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
5314
5315         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5316         like more than one symbol per .weak directive.
5317
5318 2002-03-01  Richard Henderson  <rth@redhat.com>
5319
5320         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5321         adjust argument_pointer by pretend_args_size.
5322         (ia64_va_start): Adjust va_start address by -pretend_args_size.
5323
5324 2002-03-01  Kazu Hirata  <kazu@hxi.com>
5325
5326         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5327
5328 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
5329
5330         * toplev.c (rest_of_compilation): Delete dead jumptables before
5331         loop.
5332         * flow.c (delete_dead_jumptables): Make global.
5333         * rtl.h (delete_dead_jumptables): Declare.
5334
5335 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
5336
5337         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5338         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5339         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5340
5341 2002-03-01  Kazu Hirata  <kazu@hxi.com>
5342
5343         * config/h8300/h8300-protos.h: Fix formatting.
5344         * config/h8300/h8300.c: Likewise.
5345         * config/h8300/h8300.h: Likewise.
5346
5347 2002-03-01  Kazu Hirata  <kazu@hxi.com>
5348
5349         * config/h8300/h8300.c (print_operand): Support 16-bit
5350         constant addresses.
5351         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5352
5353 2002-02-28  Richard Henderson  <rth@redhat.com>
5354
5355         * expmed.c (store_bit_field): Prevent generation of CONCATs;
5356         pun complex values as integers; use gen_lowpart instead of
5357         gen_rtx_SUBREG.
5358         (extract_bit_field): Likewise.
5359
5360 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
5361             David Edelsohn  <edelsohn@gnu.org>
5362
5363         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5364         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5365         (SUPPORTS_WEAK): Likewise.
5366         * output.h (add_weak): Add tree param.
5367         * varasm.c (add_weak): Likewise.  Save decl.
5368         (struct weak_syms): Add decl field.
5369         (mark_weak_decls): New function.
5370         (init_varasm_once): ggc_add_root mark_weak_decls.
5371         (assemble_start_function): Use ASM_WEAKEN_DECL.
5372         (assemble_variable): Likewise.
5373         (assemble_alias): Likewise.
5374         (declare_weak): Pass decl to add_weak.
5375         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5376         (remove_from_pending_weak_list): Declare and define for
5377         ASM_WEAKEN_DECL.
5378         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5379         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5380         * defaults.h (SUPPORTS_WEAK): Likewise.
5381         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5382         .weak for code sym.  Do emit .size for descriptor sym.
5383         (ASM_DECLARE_FUNCTION_SIZE): Define.
5384         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5385         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
5386         .lglobl unless TARGET_XCOFF.  Formatting fixes.
5387         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5388         .weak for code sym.
5389         (HANDLE_PRAGMA_WEAK): Remove.
5390         (ASM_WEAKEN_LABEL): Remove.
5391         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5392
5393 2002-03-01  Jason Merrill  <jason@redhat.com>
5394
5395         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5396         (TARGET_EXPR_CLEANUP): New macro.
5397
5398 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
5399
5400         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5401         to take ptr_extend into account as third type of extension.
5402         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5403         fields used by SUBREG_PROMOTED_UNSIGNED_P.
5404         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5405         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5406         * calls.c (precompute_arguments): Use new macro.
5407         (expand_call): Ditto.
5408         * combine.c (nonzero_bits): Ditto.
5409         (record_promoted_value): Ditto.
5410         * expr.c (store_expr): Ditto.
5411         (expand_expr): Ditto.
5412         * function.c (assign_parms): Ditto.
5413
5414 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
5415
5416         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5417         override -shared and -shared-libgcc.
5418
5419 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
5420
5421         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5422         of "ultrasparc".
5423         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
5424         to be broken.
5425
5426 2002-02-28  Richard Henderson  <rth@redhat.com>
5427
5428         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5429         4 cycle latency from MM producers.
5430         (ia64_internal_sched_reorder): Likewise with pipeline flush.
5431
5432 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5433
5434         * mklibgcc.in: Don't use GNU make extension.
5435
5436 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5437
5438         * c-parse.in (STATIC): New terminal.
5439         (scspec): New non-terminal.  Update productions accordingly.
5440         (program): Remove bogus ifc / end ifc.
5441         (array_declarator): Simplify production using STATIC.
5442
5443 2002-02-28  Jim Meyering  <meyering@lucent.com>
5444
5445         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5446         \a still means TARGET_BELL.
5447
5448 2002-02-28  Richard Henderson  <rth@redhat.com>
5449
5450         * haifa-sched.c (sched_emit_insn): New.
5451         (schedule_block): Use last_scheduled_insn to track last insn.
5452         * sched-int.h (sched_emit_insn): Prototype.
5453         * config/ia64/ia64.c (last_issued): Remove.
5454         (ia64_variable_issue): Don't set it.
5455         (nop_cycles_until): Use sched_emit_insn.
5456
5457 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
5458
5459         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5460         extended constants.
5461
5462 2002-02-28  Kazu Hirata  <kazu@hxi.com>
5463
5464         * config/h8300/h8300.c: Fix formatting.
5465         * config/h8300/h8300.h: Likewise.
5466
5467 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5468
5469         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5470         which may overwrite the high byte of the frame pointer.
5471
5472 2002-02-28  Bo Thorsen  <bo@suse.de>
5473
5474         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5475         (STARTFILE_SPEC): Add 64 bit files.
5476         (ENDFILE_SPEC): Likewise.
5477
5478 2002-02-28  Jason Merrill  <jason@redhat.com>
5479
5480         * c-decl.c (finish_function): Only warn about missing return
5481         statement with -Wreturn-type.
5482
5483 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5484
5485         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5486
5487         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5488         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5489
5490 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5491
5492         * basic-block.h (BB_REACHABLE): Renumber.
5493         (BB_DIRTY, BB_NEW): New flags.
5494         (clear_bb_flags): Declare.
5495         (update_life_info_in_dirty_blocks): Declare.
5496         * cfg.c (clear_bb_flags): New function.
5497         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5498         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5499         reorder_insns, emit_insn_after): Mark block as dirty.
5500         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5501         (update_life_info_in_dirty_blocks): New function.
5502         * recog.c (apply_change_group): Dirtify block.
5503
5504         * cse.c (cse_insn): Reorder emitting of jump insn to keep
5505         cfg consistent.
5506         * gcse.c (delete_null_pointer_checks): Likewise.
5507
5508         * toplev.c (dump_file_index): Move cse2 after bp,
5509         add DFI_null
5510         (dump_file_info): Similary.
5511         (rest_of_compilation): Avoid most of CFG rebuilds;
5512         do first if converision after null pointer checks, do cse2
5513         after branch prediction; avoid full liveness rebuild after
5514         initializing subregs.
5515         * invoke.texi (-d options): Document -du, renumber.
5516
5517         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5518         (notice_new_block): Do not set BB_UPDATE_LIFE.
5519         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5520          merge_blocks_move_successor_nojumps, merge_blocks,
5521          try_crossjump_to_edge): Likewise.
5522         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5523         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5524         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5525         (merge_of_block): Do not use life_data_ok.
5526         (find_if_case_1): Do not use SET_UPDATE_LIFE.
5527         (if_convert): Use BB_DIRTY mechanizm to update life.
5528         * lcm.c (optimize_mode_switching): Update
5529         update_life_info_in_dirty_blocks
5530
5531 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5532
5533         * Makefile.in (integrate.o): Update.
5534         * c-decl.c (copy_lang_decl): Rename.
5535         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5536         * integrate.c: Include langhooks.h.
5537         (copy_decl_for_inlining): Update to use langhook.
5538         * langhooks-def.h (lhd_do_nothing_t,
5539         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5540         (LANG_HOOKS_INITIALIZER): Update.
5541         * langhooks.c (lhd_do_nothing_t): New.
5542         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5543         * tree.h (copy_lang_decl): Remove.
5544 objc:
5545         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5546
5547 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
5548
5549         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5550         POST_DEC, and POST_MODIFY.
5551
5552 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5553
5554         * c-typeck.c (digest_init): Remove unused parameter; all
5555         callers changed.
5556
5557 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
5558
5559         * expmed.c (expand_shift): Correctly test for low part of a
5560         subreg.
5561
5562 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
5563
5564         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5565         insn UIDs with insn addresses.
5566
5567 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5568
5569         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5570         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5571         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5572         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5573         gcc.c, toplev.c: Delete code implementing -traditional mode.
5574
5575         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5576         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5577         Document removal of -traditional mode for compilation, and
5578         remove documentation only relevant to that mode.
5579
5580         * config/nextstep.h, config/ptx4.h, config/svr4.h,
5581         config/convex/convex.h, config/d30v/d30v.h,
5582         config/i386/dgux.h, config/i386/osf1elf.h,
5583         config/i386/osfelf.h, config/i386/osfrose.h,
5584         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5585         config/m68k/hp310.h, config/m88k/dgux.h,
5586         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5587         config/m88k/m88k.h, config/m88k/openbsd.h,
5588         config/mips/abi64.h, config/mips/osfrose.h,
5589         config/mips/svr4-5.h, config/mips/svr4-t.h,
5590         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5591         config/stormy16/stormy16.h: Remove all references to
5592         -traditional from target specs.  Delete all mention of the
5593         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
5594         delete a couple of commented-out definitions of
5595         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5596         to -traditional.
5597
5598         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5599         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5600
5601 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5602
5603         * mklibgcc.in: Don't use \n in a line subject to
5604         interpretation by echo.
5605
5606 2002-02-27  Graham Stott  <grahams@redhat.com>
5607
5608         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5609         Constify NAME.
5610
5611         * loop.c (prescan_loop): Handle PARALLEL.
5612
5613         * unroll.c (loop_iterations): Return 0 if the add_val for
5614         a BIV is REG.
5615
5616         * final.c (output_operand_lossage): Constify PFX_STR.
5617
5618         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5619
5620 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5621
5622         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5623         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5624
5625 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
5626
5627         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5628
5629 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5630
5631         * cpplex.c (_cpp_lex_token): Handle directives in macro
5632         arguments.
5633         * cpplib.c (_cpp_handle_directive): Save and restore state
5634         if parsing macro args when entering a directive.
5635         * cppmacro.c (collect_args): No need to handle directives
5636         in macro arguments.
5637         (enter_macro_context, replace_args): Use the original macro
5638         definition in case it was redefined whilst collecting arguments.
5639 doc:
5640         * cpp.texi: Update.
5641
5642 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
5643
5644         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5645         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5646         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5647         method on AIX.
5648         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5649         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5650         (load_toc_v4_PIC_2): Same.
5651
5652 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
5653
5654         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5655
5656 2002-02-26  Richard Henderson  <rth@redhat.com>
5657
5658         * config/alpha/alpha.md (ashldi_se): Re-enable.
5659
5660 2002-02-26  Richard Henderson  <rth@redhat.com>
5661
5662         * config/alpha/alpha.c (alpha_encode_section_info): Examine
5663         MODULE_LOCAL_P; improve commentary.
5664
5665 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
5666
5667         * doc/cpp.texi: Clarify documentation of relationship between
5668         #line and #include.
5669
5670 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5671
5672         * config/h8300/h8300-protos.h: Update the prototype for
5673         compute_logical_op_length.  Add the prototype for
5674         compute_logical_op_cc.
5675         * config/h8300/h8300.c (compute_logical_op_length): Figure out
5676         code from operands.
5677         (compute_logical_op_cc): New.
5678         * config/h8300/h8300.md: Combine all the logical op patterns
5679         in HImode and SImode.  Use compute_logical_op_cc.
5680
5681 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5682
5683         * config/i386/i386.c (print_operand): Don't append ATT-style
5684         length suffixs to x87 opcodes when in Intel mode.
5685
5686 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5687
5688         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5689         (init_emit_once): Update calls.
5690         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5691         (init_syntax_once): Prototype.
5692
5693 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5694
5695         * pa-linux.h (LIB_SPEC): Update definition.
5696         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5697
5698 2002-02-26  Richard Henderson  <rth@redhat.com>
5699
5700         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5701         if we emitted a stop bit.
5702
5703 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5704
5705         * configure.in (libgcc_visibility): Substitute.
5706         * configure: Rebuilt.
5707         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5708         defined symbols .hidden.
5709
5710 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5711
5712         * attribs.c (c_common_attribute_table): Add visibility.
5713         (handle_visibility_attribute): New function.
5714         * varasm.c (assemble_visibility): New function.
5715         * output.h (assemble_visibility): Add prototype.
5716         * tree.h (MODULE_LOCAL_P): Define.
5717         * crtstuff.c (__dso_handle): Use visibility attribute.
5718         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5719         for MODULE_LOCAL_P symbols too.
5720         * config/ia64/ia64.c (ia64_encode_section_info): Handle
5721         MODULE_LOCAL_P symbols the same way as local symbols.
5722         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5723         into .sdata/.sbss by the user.
5724         * doc/extend.texi (Function Attributes): Document visibility
5725         attribute.
5726
5727 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5728
5729         PR debug/5770
5730         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5731         STRING_CST initializer spanning the whole variable without
5732         embedded zeros.
5733         If expand_expr returned MEM, don't use it.
5734
5735 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5736
5737         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5738         generate a die for the lexical block.
5739
5740 2002-02-26  Kazu Hirata  <kazu@hxi.com>
5741
5742         * config/h8300/h8300-protos.h: Add a prototype for
5743         compute_logical_op_length.
5744         * config/h8300/h8300.c (compute_logical_op_length): New.
5745         * config/h8300/h8300.md (anonymous logical patterns): Use
5746         compute_logical_op_length for length.
5747
5748 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5749
5750         * dwarf2out.c (modified_type_die): Do not call type_main_variant
5751         for vectors.
5752         (gen_type_die): Same.
5753
5754         * attribs.c (handle_vector_size_attribute): Set debug information.
5755
5756 2002-02-26  Daniel Egger  <degger@fhm.edu>
5757
5758         * config/rs6000/rs6000.md: Swap define_insn attributes to
5759         fix incorrect generation of merge high instructions instead
5760         of merge low.
5761
5762 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5763
5764         * c-typeck.c (really_start_incremental_init): Use
5765         bitsize_zero_node for vectors.
5766
5767 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
5768
5769         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5770         ("*set_vrsave_internal"): Same.
5771
5772 2002-02-25  Richard Henderson  <rth@redhat.com>
5773
5774         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5775         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5776
5777 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5778
5779         PR target/5755
5780         * config/i386/i386.c (ix86_return_pops_args): Only pop
5781         fake structure return argument if it was passed on the stack.
5782
5783 2002-02-25  Jason Merrill  <jason@redhat.com>
5784
5785         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5786         RESULT_DECL.
5787
5788 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5789
5790         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5791         link with shared_name only.
5792         * doc/invoke.texi (Link Options): Document new behavior.
5793
5794 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5795
5796         * c-typeck.c (push_init_level): Handle vectors.
5797
5798 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5799
5800         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5801         operands of SPARC_SETHI_P.
5802         (input_operand): Likewise.
5803         (sparc_emit_set_const32): Likewise.
5804         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5805         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5806         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5807         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5808         (movdi_insn_sp64_vis): Likewise.
5809         (movdi split, movdf split): Use SETHI32.
5810         * doc/md.texi: Document SPARC constraints L, M and N.
5811
5812 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5813
5814         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5815         ("*set_vrsave_internal"): use mfspr for Darwin.
5816
5817         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5818         gen_get_vrsave_internal.
5819
5820 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5821
5822         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5823
5824 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5825
5826         * cpplex.c (cpp_interpret_charconst): Get signedness or
5827         otherwise of wide character constants correct.
5828         * cppexp.c (lex): Get signedness of wide charconsts correct.
5829
5830 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5831
5832         * optabs.c (widen_operand): Only call convert_modes for
5833         promoted SUBREG if signedness matches.
5834         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5835
5836 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5837
5838         * cpplib.c (glue_header_name): Use local buffer to build up
5839         header name.
5840
5841 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5842
5843         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5844
5845 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5846
5847         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5848         H8/300[HS] separately.
5849         * config/h8300/h8300.md: Remove the early clobber constraint
5850         from bit field patterns.
5851
5852 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5853
5854         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5855         register_operand.
5856         (mulhisi3): Likewise.
5857         (umulqisi3): Likewise.
5858         (umulhisi3): Likewise.
5859
5860 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5861
5862         * cppinit.c (output_deps): Correct test for stdout output.
5863         (init_dependency_output): Cure warning.
5864
5865 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5866
5867         * expr.c (store_expr): When converting expression to promoted
5868         equivalent type, allow using SUBREG_REG of TARGET as the target
5869         of the expansion of EXP.
5870         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5871         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5872         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5873         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5874         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5875
5876 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5877
5878         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5879         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5880         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5881
5882 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5883
5884         PR optimization/5747
5885         * loop.c (scan_loop): Update reg info if move_movables created new
5886         pseudos.
5887
5888 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5889
5890         * gcc.c (init_gcc_spec): Revert last change.
5891
5892 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5893
5894         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5895         gpc_reg_operand constraint.
5896
5897 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5898
5899         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5900         Simplify comparison of `low'.
5901         (add_operand): Fix formatting.
5902         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5903         (mask_operand): Disallow mask to wrap in 64-bit mode.
5904         (rs6000_stack_info): Remove redundant test setting push_p.
5905         (output_toc): Fix formatting.
5906         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5907         cc_reg_not_cr0_operand constraint.
5908         (booldi3, boolcdi3 splitters): Same.
5909
5910 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5911
5912         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5913
5914 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5915
5916         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5917         gcc invoked with -shared-libgcc.
5918
5919 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5920
5921         PR c++/5748
5922         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5923         decl if any of elements was TREE_USED.
5924
5925 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5926
5927         * config/sparc/sol2.h: Don't include sys/mman.h.
5928         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5929         (arith_4096_operand): Don't throw high bits away.
5930         (const64_operand): Take sign extension of CONST_INTs into account.
5931         (const64_high_operand, sparc_emit_set_const32): Likewise.
5932         (GEN_HIGHINT64): Likewise.
5933         (sparc_emit_set_const64_quick1): Likewise.
5934         (const64_is_2insns): Likewise.
5935         (print_operand): Use trunc_int_for_mode for sign extension.
5936         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5937         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5938         chars.  Assume CONST_INT is already properly sign-extended.
5939         (movdi split): Sign-extend each SImode part.
5940         (andsi3 split): Don't mask high bits off, so that result
5941         remains properly sign-extend.
5942         (iorsi3 split): Likewise.
5943         (xorsi3 split): Likewise.
5944
5945 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5946
5947         * fold-const.c (fold): Fix typo in comments.
5948
5949 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5950
5951         * Makefile.in (langhooks.o): Update dependencies.
5952
5953 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5954
5955         * langhooks.c: Include flags.h.
5956
5957 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5958
5959         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5960
5961         * c-common.c (c_common_post_options): Set inline trees by
5962         default.
5963
5964         * doc/extend.texi (Function Attributes): Document always_inline
5965         attribute.
5966         Update documentation about inlining when not optimizing.
5967
5968         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5969
5970         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5971         unless DECL_ALWAYS_INLINE.
5972
5973         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5974         unless DECL_ALWAYS_INLINE.
5975         (c_disregard_inline_limits): Disregard if always_inline set.
5976
5977         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5978         Disregard if always_inline set.
5979         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5980         unless DECL_ALWAYS_INLINE.
5981
5982         * attribs.c (handle_always_inline_attribute): New.
5983         (c_common_attribute_table): Add always_inline.
5984
5985         * config/rs6000/altivec.h: Add prototypes for builtins
5986         requiring the always_inline attribute.
5987
5988 2002-02-21  Eric Christopher  <echristo@redhat.com>
5989
5990         * expmed.c (store_bit_field): Try to simplify the subreg
5991         before generating a new one when when the mode size of
5992         value is less than maxmode.
5993
5994 2002-02-21  Richard Henderson  <rth@redhat.com>
5995
5996         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5997         than gen_rtx_PLUS to form the sum.
5998         * explow.c (force_reg): Rearrange to not allocate new pseudo
5999         when force_operand returns a register.
6000         * expr.c (expand_assignment): Allow offset_rtx expansion to
6001         return a sum.  Do not force addresses into registers.
6002         (expand_expr): Likewise.
6003         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6004         to canonicalize arithmetic that didn't simpify.
6005         (simplify_plus_minus): New argument force; update
6006         all callers.  Don't split CONST unless we can do something with it,
6007         and wouldn't lose the constness of the operands.
6008
6009         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6010         that we generated earlier.
6011
6012 2002-02-21  Tom Tromey  <tromey@redhat.com>
6013
6014         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6015         (output_line_info): Use constant `1', with a long explanatory
6016         comment.
6017         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6018
6019 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
6020
6021         * jump.c (redirect_jump): If old label has no UID, don't try to
6022         delete it.
6023
6024 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
6025
6026         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6027         If input is constant, do shifts at compile time.
6028
6029 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6030
6031         * doc/extend.texi: Fix some more overfull hboxes.
6032
6033 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6034
6035         PR optimization/4994
6036         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6037         register moves.
6038
6039 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6040
6041         PR c++/4574
6042         * expr.h (expand_and): Add mode argument.
6043         * expmed.c (expand_and): Add mode argument.
6044         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6045         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6046         * except.c (expand_builtin_extract_return_addr): Likewise.
6047         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6048         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6049         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6050         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6051         * config/c4x/c4x.md: Use GEN_INT (x) instead of
6052         gen_rtx (CONST_INT, VOIDmode, x).
6053
6054 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6055
6056         PR c/4697:
6057         * stmt.c (warn_if_unused_value): Move side effects test once more.
6058
6059 2002-02-20  Torbjorn Granlund  <tege@swox.com>
6060
6061         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6062         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6063
6064 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
6065
6066         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6067         SUBREG or ZERO_EXTEND.
6068
6069 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
6070
6071         * sh.h (current_function_anonymous_args): Remove.
6072         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6073         of current_function_varargs and current_function_stdarg is set.
6074         * sh.c (sh_expand_prologue): Check current_function_varargs /
6075         current_function_stdarg / TARGET_SH5 instead of
6076         current_function_anonymous_args.
6077
6078         * sh64.h (TARGET_VERSION): Define.
6079
6080 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
6081
6082         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6083         VRSAVE_REGNO on TARGET_ALTIVEC.
6084
6085 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
6086
6087         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6088         bits of SImode const_int.
6089         (includes_rshift_p): Likewise.
6090         (print_operand): Call mask_operand and mask64_operand with correct
6091         mode.
6092         (rs6000_output_function_epilogue): Pad traceback table to word.
6093         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6094         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6095         mask64_operand with correct mode.
6096         (FUNCTION_ARG_REGNO_P): Correct parentheses.
6097
6098 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6099
6100         PR debug/4461
6101         * varasm.c (get_pool_constant_mark): New.
6102         * rtl.h (get_pool_constant_mark): Add prototype.
6103         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6104         be represented if it has not been output.
6105
6106 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6107
6108         * combine.c (do_SUBST): Sanity check substitutions of
6109         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6110         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6111         CONST_INT into its operand.
6112         (known_cond): Likewise, for ZERO_EXTEND.
6113         * simplify-rtx.c (simplify_unary_operation): Fix condition to
6114         allow for simplification of wide modes.  Reject CONST_INTs in
6115         ZERO_EXTEND when their actual mode is not given.
6116
6117 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6118
6119         * c-decl.c (pushdecl): If no global declaration is found for an
6120         extern declaration in block scope, try a limbo one.
6121
6122 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6123
6124         PR c++/4401
6125         * c-common.c (pointer_int_sum): Moved from...
6126         * c-typeck.c (pointer_int_sum): ...here.
6127         * c-common.h (pointer_int_sum): Add prototype.
6128
6129 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6130
6131         PR c++/5713
6132         * c-decl.c (duplicate_decls): Return 0 if issued error about
6133         redeclaration.
6134
6135 2002-02-20  Roger Sayle  <roger@eyesopen.com>
6136             Jakub Jelinek  <jakub@redhat.com>
6137
6138         PR c/4389
6139         * tree.c (host_integerp): Ensure that the constant integer is
6140         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6141         when pos is zero or non-zero respectively.  Clarify comment.
6142         * c-format.c (check_format_info_recurse): Fix host_integerp
6143         usage; the pos argument should be zero when assigning to a
6144         signed HOST_WIDE_INT.
6145
6146 2002-02-20  Richard Henderson  <rth@redhat.com>
6147
6148         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6149         of the operand, rather than assuming TImode.
6150         (ix86_expand_binop_builtin): Cope with commutative patterns
6151         using nonimmediate_operand for both operands.
6152         (ix86_expand_timode_binop_builtin): Likewise.
6153         (ix86_expand_store_builtin): Validate operand 1.
6154         (ix86_expand_unop1_builtin): Likewise.
6155
6156 2002-02-20  Philip Blundell  <philb@gnu.org>
6157
6158         PR 5705
6159         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6160
6161 2002-02-20  Richard Henderson  <rth@redhat.com>
6162
6163         PR c/5615
6164         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6165
6166 2002-02-20  Tom Tromey  <tromey@redhat.com>
6167
6168         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6169         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6170         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6171         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6172         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6173         unconditionally.
6174
6175 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6176
6177         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6178           for (const_int 0) in X not just INTVAL.
6179
6180 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6181
6182         * doc/extend.texi: Avoid or reduce overfull hboxes.
6183
6184 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
6185
6186         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6187         operations if the field does not start at a mode boundary.
6188
6189 2001-02-20      Joel Sherrill <joel@OARcorp.com>
6190
6191         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6192         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6193         Also done for -Acpu and -Amachine.
6194
6195 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6196
6197         * cppinit.c (init_dependency_output): Take deps output file
6198         from -o if none given with -MF.  Suppress normal output.
6199         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6200         * doc/cpp.texi, doc/invoke.texi: Update.
6201
6202 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
6203
6204         * toplev.c (output_quoted_string): Write unprintable
6205         characters with octal escapes.
6206
6207 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
6208
6209         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6210         really_call_used[VRSAVE_REGNO] if not Altivec.
6211
6212 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
6213
6214         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6215         MODE_MASK.
6216         (constant_pool_expr_1): Fix formatting.
6217         (rs6000_legitimize_reload_address): Likewise.
6218
6219 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6220
6221         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6222         now that we have one.
6223
6224 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
6225
6226         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
6227         end of first block of bitfields (which was only seven bits);
6228         rename dummy to unused_1; remove comment which is no longer true.
6229
6230 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
6231
6232         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6233
6234 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
6235
6236         PR 5399
6237         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6238         if generating PIC.
6239
6240         PR 5054
6241         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6242         arm_is_longcall_p rather than inspecting call-type cookie
6243         directly.
6244         (call_value_insn) [TARGET_THUMB]: Likewise.
6245
6246 2002-02-19  Graham Stott  <grahams@redhat.com>
6247
6248         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6249
6250 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
6251
6252         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6253         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6254         (FP_SAVE_INLINE): Delete.
6255
6256         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6257         * config/rs6000/eabi.asm: Remove ABI save restore routines.
6258         * config/rs6000/t-ppccomm: Build crtsavres.o.
6259         * config/rs6000/crtsavres.asm: New file.
6260
6261 2002-02-19  Philip Blundell  <philb@gnu.org>
6262
6263         * config/arm/arm.c (use_return_insn): Don't reject interrupt
6264         functions.
6265         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6266         (output_return_instruction): Allow interrupt functions to return with
6267         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
6268         (arm_expand_prologue): Subtract 4 before stacking LR in an
6269         interrupt function.
6270
6271 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
6272
6273         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6274         decl, not just FUNCTION_DECL.
6275         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6276         (arm_assemble_integer): Likewise.
6277         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6278         marked local.
6279
6280 2002-02-19  matthew green  <mrg@eterna.com.au>
6281
6282         * config.gcc (sparc-*-netbsdelf*): Enable target.
6283         (sparc64-*-netbsd*): New target.
6284         * config/sparc/netbsd-elf.h: New file.
6285         * config/sparc/t-netbsd64: New file.
6286
6287 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
6288
6289         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6290
6291 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
6292
6293         * doc/invoke.texi: explicitly list the style guidelines that
6294         -Weffc++ checks for.
6295
6296 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
6297
6298         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6299
6300 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6301
6302         PR other/5718
6303         * gcc.c (cpp_unique_options): Treat -o as indicating object file
6304         only if not -E.  If -E, pass -o through to the preprocessor.
6305
6306 2002-02-19  Kazu Hirata  <kazu@hxi.com>
6307
6308         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6309         register number with an appropriate macro.
6310
6311 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
6312
6313         * doc/rtl.texi (Constants): Close @code tag.
6314
6315 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
6316
6317         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6318         ("mmx_uavgv4hi3"): Same.
6319         ("pmulhrwv4hi3"): Same.
6320
6321         * tree-inline.c (walk_tree): Handle vectors.
6322
6323         * c-common.c (constant_expression_warning): Handle vectors.
6324         (overflow_warning): Same.
6325
6326         * sched-deps.c (sched_analyze_2): Handle vectors.
6327
6328         * rtlanal.c (rtx_unstable_p): Handle vectors.
6329         (rtx_varies_p): Same.
6330         (count_occurrences): Same.
6331         (regs_set_between_p): Same.
6332         (modified_between_p): Same.
6333         (modified_in_p): Same.
6334         (volatile_insn_p): Same.
6335         (volatile_refs_p): Same.
6336         (side_effects_p): Same.
6337         (may_trap_p): Same.
6338         (inequality_comparisons_p): Same.
6339         (replace_regs): Same.
6340         (computed_jump_p_1): Same.
6341
6342         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6343         argument.
6344         (inner_mode_array): New.
6345         (copy_rtx): Handle vectors.
6346         (copy_most_rtx): Same.
6347         (rtx_equal_p): Same.
6348         (get_mode_alignment): Adjust for vectors.
6349
6350         * resource.c (mark_referenced_resources): Handle vectors.
6351         (mark_set_resources): Same.
6352
6353         * reload1.c (eliminate_regs): Handle vectors.
6354         (elimination_effects): Same.
6355         (scan_paradoxical_subregs): Same.
6356
6357         * reload.c (subst_reg_equivs): Handle vectors.
6358
6359         * regrename.c (scan_rtx): Handle vectors.
6360
6361         * regclass.c (reg_scan_mark_refs): Handle vectors.
6362
6363         * recog.c (find_single_use_1): Handle vectors.
6364
6365         * local-alloc.c (equiv_init_varies_p): Handle vectors.
6366         (contains_replace_regs): Same.
6367         (memref_referenced_p): Same.
6368
6369         * integrate.c (copy_rtx_and_substitute): Handle vectors.
6370         (subst_constants): Same.
6371
6372         * genattrtab.c (attr_copy_rtx): Handle vectors.
6373         (encode_units_mask): Same.
6374         (clear_struct_flag): Same.
6375         (count_sub_rtxs): Same.
6376
6377         * gcse.c (want_to_gcse_p): Handle vectors.
6378         (oprs_unchanged_p): Same.
6379         (hash_expr_1): Same.
6380         (oprs_not_set_p): Same.
6381         (expr_killed_p): Same.
6382         (compute_transp): Same.
6383         (store_ops_ok): Same.
6384
6385         * function.c (purge_addressof_1): Do not allow paradoxical subregs
6386         of vectors.
6387         (fixup_var_refs_1): Same.
6388         (instantiate_virtual_regs_1): Same.
6389
6390         * fold-const.c (operand_equal_p): Handle vectors.
6391         (fold): Same.
6392         (rtl_expr_nonnegative_p): Same.
6393
6394         * flow.c (mark_used_regs): Handle vectors.
6395
6396         * df.c (df_uses_record): Handle vectors.
6397
6398         * cselib.c (cselib_subst_to_values): Handle vectors.
6399         (cselib_mem_conflict_p): Same.
6400         (hash_rtx): Same.
6401
6402         * cse.c (canon_reg): Handle vectors.
6403         (fold_rt): Same.
6404         (cse_process_notes): Same.
6405         (count_reg_usage): Same.
6406         (canon_hash): Same.
6407
6408         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6409
6410         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6411
6412         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6413         (gen_rtx): Handle CONST_VECTOR.
6414         (gen_const_vector_0): New.
6415         (copy_rtx_if_shared): CONST_VECTORs can be shared.
6416         (reset_used_flags): Same.
6417         (copy_insn_1): Same.
6418         (initializer_constant_valid_p): Handle VECTOR_CST.
6419
6420         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6421
6422         * doc/rtl.texi (Constants): Document const_vector.
6423         (CONST0_RTX): Update for vectors.
6424         (RTL sharing): Same.
6425
6426         * print-tree.c (print_node): Add case for VECTOR_CST.
6427
6428         * tree.h (TREE_VECTOR_CST_ELTS): New.
6429         (struct tree_vector): New.
6430         (union tree_node): Add vector node.
6431         (build_vector): Add prototype.
6432
6433         * tree.def (VECTOR_CST): New.
6434
6435         * tree.c (build_vector): New.
6436
6437         * expmed.c (make_tree): Handle CONST_VECTOR.
6438
6439         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6440         (CONST_VECTOR_ELT): New.
6441         (CONST_VECTOR_NUNITS): New.
6442
6443         * machmode.h (GET_MODE_INNER): New.
6444         (DEF_MACHMODE): Accept 8th arg.
6445
6446         * machmode.def: Add 8th argument for vector inner mode.
6447         Add inner vector modes for vectors.
6448
6449         * rtl.def (VEC_CONST): Remove.
6450         (CONST_VECTOR): New.
6451
6452         * expr.c (clear_storage): Allow vectors.
6453         (is_zeros_p): Handle VECTOR_CST.
6454
6455         * varasm.c (output_constant_pool): Handle vectors.
6456         (rtx_const): Add veclo and vechi fields.
6457         (kind): Add RTX_VECTOR.
6458         (decode_rtx_const): Add case for vector.
6459
6460         * config/rs6000/rs6000-protos.h: Add zero_constant.
6461
6462         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6463         constants.  Force easy vector constants into memory.
6464         (easy_vector_constant): New.
6465         (emit_easy_vector_constant): New.
6466         (rs6000_legitimize_reload_address): Do not generate bad reloads on
6467         darwin.
6468
6469         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6470         instruction does.
6471         ("altivec_lvxl"): Same.
6472         (altivec_lvebx): Same.
6473         (altivec_lvehx): Same.
6474         (altivec_lvewx): Same.
6475         ("*movv4si_const0"): New.
6476         ("*movv4sf_const0"): New.
6477         ("*movv8hi_const0"): New.
6478         ("*movv16qi_const0"): New.
6479
6480 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6481
6482         * config/h8300/h8300.c (notice_update_cc): Use
6483         cc_status.value2.
6484
6485 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6486
6487         * config/h8300/h8300.md (divmod patterns): Change the
6488         constraints for operands[1] to register_operand.
6489
6490 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6491
6492         * config/h8300/h8300-protos.h: Remove the prototype for
6493         p_operand.
6494         * config/h8300/h8300.c (p_operand): Remove.
6495         * config/h8300/h8300.md: Replace p_operand with
6496         const_int_operand.
6497
6498 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6499
6500         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6501         comment.
6502         (output_return_instruction): Allow use of LDR to unstack
6503         return addresss even for interrupt handlers or when
6504         interworking.  If compiling for ARMv5, use interworking-safe
6505         return instructions by default.  Remove duplicated code and
6506         lengthy "strcat" sequences.
6507
6508 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6509
6510         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6511         (LINK_EH_SPEC): Define.
6512         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6513
6514 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
6515
6516         * config/s390/s390.c (s390_emit_prologue): Do not set the
6517         frame_related flag for call-clobbered registers.
6518
6519 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6520
6521         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6522         (construct_container): Fix handling of SSE operands.
6523         (ix86_expand_builtin): Fix handling of 64bit pointers.
6524         (mmx_maskmovq_rex): New pattern.
6525
6526 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
6527
6528         * regrename.c (kill_set_value): Handle subregs properly.
6529
6530 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
6531
6532         * objc/objc-act.c (handle_impent): Remove leading '*'
6533         from objc_class_name.
6534
6535 2002-02-17  Richard Henderson  <rth@redhat.com>
6536
6537         * config/alpha/alpha.c (some_small_symbolic_operand,
6538         some_small_symbolic_operand_1, split_small_symbolic_operand,
6539         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6540         Handle small SYMBOL_REFs anywhere, not just inside memories.
6541         * config/alpha/alpha-protos.h: Update.
6542         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6543         * config/alpha/alpha.md (small symbolic operand splitter): Update.
6544
6545 2002-02-17  Roland McGrath  <roland@frob.com>
6546
6547         * config.gcc (powerpc-*-gnu-gnualtivec*,
6548         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6549         * config/rs6000/gnu.h: New file.
6550         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6551         Grok "gnu" in rs6000_abi_name.
6552         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6553         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6554         Grok -mcall-gnu analogous to -mcall-linux et al.
6555         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6556         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6557         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6558
6559 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
6560
6561         PR c/3444:
6562         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6563         shortening.
6564
6565 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6566
6567         * config/cris/cris.h: Undefine STARTFILE_SPEC and
6568         ENDFILE_SPEC before (re)defining them.
6569
6570 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6571
6572         * config/h8300/h8300.c: Fix formatting.
6573         * config/h8300/h8300.h: Likewise.
6574
6575 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6576
6577         * doc/tm.texi: Explain why empty strings should not be
6578         marked for translation.
6579
6580 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6581
6582         * final.c (output_operand_lossage): Changed to accept
6583         printf style arguments. Change calls where necessary.
6584         * output.h (output_operand_lossage): Change declaration
6585         accordingly. Update copyright.
6586         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6587         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6588         Update copyright date where necessary.
6589
6590         * config/i386/i386.c (print_operand): Likewise. Remove use of
6591         sprintf.
6592
6593         * config/cris/cris.c (cris_operand_lossage): Likewise.
6594         Rename parameter so that exgettext recognizes it as
6595         translatable message.
6596         (LOSE_AND_RETURN): Rename parameter to msgid.
6597
6598 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6599
6600         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6601         hard coded register number with an appropriate macro.
6602         (HARD_REGNO_MODE_OK): Likewise.
6603         (ARG_POINTER_REGNUM): Likewise.
6604         (STATIC_CHAIN_REGNUM): Likewise.
6605         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6606         * config/h8300/h8300.md (define_constants): Define more
6607         register numbers.
6608
6609 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6610
6611         * config/i386/i386.h: Don't mark empty strings for translation.
6612
6613 2002-02-16  H.J. Lu <hjl@gnu.org>
6614
6615         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6616
6617 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6618
6619         * cppinit.c (merge_include_chains): Check for brack being
6620         NULL before attempting to merge it with qtail.
6621
6622 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6623
6624         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6625         DBX_DEBUG.
6626
6627 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6628
6629         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6630
6631 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6632
6633         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6634         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6635         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6636
6637 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6638
6639         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6640         now only if !TARGET_FIX.
6641         (*movsi_nt_vms_fix): New pattern.
6642
6643 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6644
6645         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6646         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6647         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6648         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6649         (alpha_start_function, alpha_expand_epilogue): Likewise.
6650         (unicosmk_gen_dsib): Likewise.
6651
6652 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6653
6654         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6655
6656 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6657
6658         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6659         check_and_change_labels, s390_final_chunkify): Delete.
6660         (s390_split_branches, s390_chunkify_pool): New functions.
6661         (s390_function_prologue): Call them.
6662
6663         * config/s390/s390.h (S390_REL_MAX): Delete.
6664         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6665
6666         * config/s390/s390.md (cjump, icjump, jump): Fix length
6667         attribute calculation.
6668
6669
6670 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6671
6672         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6673         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6674
6675 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6676
6677         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6678         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6679         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6680
6681 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6682
6683         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6684
6685 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6686
6687         * reload.c (find_dummy_reload): Check that an output register
6688         is valid for its mode.
6689
6690 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6691
6692         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6693         to simplify it.
6694
6695         * function.c (assign_parms): Demote promoted argument passed by
6696         transparent reference.
6697
6698 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6699
6700         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6701         -Acpu() and -Amachine() to eliminate warnings.
6702
6703 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6704
6705         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6706
6707 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6708
6709         * config/h8300/h8300-protos.h: Update the prototype for
6710         const_costs.
6711         * config/h8300/h8300.c (const_costs): Treat SET as a little
6712         more expensive operation.
6713         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6714         reference to const_costs.
6715
6716 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6717
6718         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6719
6720 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6721
6722         PR c/5503:
6723         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6724         use arguments from newtype.
6725
6726 2002-02-13  Eric Christopher  <echristo@redhat.com>
6727
6728         * config/mips/mips.c (override_options): Add check for march/mipsX
6729         on the same command line. Fix error message in cpu processing.
6730         Remove architecture and ISA checks.
6731
6732 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6733
6734         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6735
6736         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6737
6738 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6739
6740         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6741         alternatives.
6742         ("*movv8hi_internal1"): Same.
6743         ("*movv16qi_internal1"): Same.
6744         ("*movv4sf_internal1"): Same.
6745
6746         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6747         not push_reload for altivec modes.
6748
6749 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6750
6751         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6752         all RTEMS targets including removal of #includes from config/*/rtems*.h
6753         file and adding them to tm_file setting. Added xm_defines=POSIX to
6754         many targets.
6755         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6756         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6757         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6758         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6759         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6760         config/m68k/rtemself.h: Ditto.
6761         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6762         config/mips/rtems64.h: Ditto.
6763         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6764         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6765         Ditto.
6766         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6767         config/sparc/rtemself.h: Ditto.
6768         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6769         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6770         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6771         more like arm-elf.
6772         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6773         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6774         target made more similar to i386-elf.
6775         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6776         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6777         be similar to config/m68k/t-m68kelf.
6778         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6779
6780 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6781
6782         * regmove.c (kill_value): Handle subregs.
6783
6784 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6785
6786         * i386.md (mul patterns): Allow memory operand to be first;
6787         add expanders where needed; fix constraints.
6788         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6789         Allow memory operand to be the first.
6790
6791         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6792         operands.
6793
6794 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6795
6796         PR c/5681:
6797         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6798         GET_MODE (x).
6799
6800 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6801
6802         PR optimization/5547:
6803         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6804         all valid IA-32 address modes involving non-scaled %ebx and
6805         GOT/GOTOFF as displacement.
6806
6807 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6808
6809         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6810         after emitting ltorg insns.
6811
6812         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6813         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6814         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6815         *abssf2): Fix "op_type" attribute.
6816
6817 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6818
6819         * mkconfig.sh: Avoid using a subshell redirect.
6820         ($output.T): Change to $(output)T.
6821         (ENABLE_NLS): Remove unneeded undef.
6822
6823         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6824         * config/alpha/x-vms (libsubdir): Define.
6825
6826         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6827         register frame procedures. Optimize retrieving context.
6828
6829         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6830         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6831         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6832
6833 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6834
6835         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6836         Make same change as for find_base_value.
6837
6838 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6839
6840         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6841         of QImode and SImode.
6842
6843 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6844
6845         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6846         length computation of movsi.
6847         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6848
6849 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6850
6851         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6852         operands[2] to register_operand.
6853
6854 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6855
6856         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6857
6858 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6859
6860         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6861         for altivec_lvx* and altivec_stvx*.
6862         ("*movv4si_internal"): Add constraint for loading from GPRs.
6863         ("*movv8hi_internal1"): Same.
6864         ("*movv16qi_internal1"): Same.
6865         ("*movv4sf_internal1"): Same.
6866
6867         * config/rs6000/rs6000.c (altivec_register_operand): New.
6868
6869         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6870         altivec_register_operand.
6871
6872 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6873
6874         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6875         handle SYMBOL_REF.
6876
6877 2002-02-13  Stan Shebs  <shebs@apple.com>
6878
6879         * c-typeck.c (digest_init): Handle vectors.
6880         (really_start_incremental_init): Same.
6881         (pop_init_level): Same.
6882         (process_init_element): Same.
6883
6884         * varasm.c (output_constant): Same.
6885
6886         * expr.c (clear_storage): Same.
6887         (store_constructor): Same.
6888
6889 2002-02-12  Eric Christopher  <echristo@redhat.com>
6890
6891         * explow.c (hard_function_value): Add comment explaining
6892         signed/unsigned comparison.
6893
6894 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6895
6896         * jump.c (never_reached_warning): Add finish argument.
6897         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6898         real insn after end.
6899         * rtl.h (never_reached_warning): Adjust prototype.
6900         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6901         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6902         never_reached_warning.
6903
6904 2002-02-12  Graham Stott  <grahams@redhat.com>
6905
6906         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6907
6908 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6909
6910         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6911         logical shifts on H8/300.
6912         (shift_alg_si): Improve several shifts on H8/300.
6913         (get_shift_alg): Likewise.
6914
6915 2002-02-12  Graham Stott  <grahams@redhat.com>
6916
6917         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6918
6919 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6920
6921         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6922         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6923
6924 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6925
6926         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6927         non-CONST_INT through default_assemble_integer.
6928         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6929         <case 8>: Abort for CONST_DOUBLE.
6930
6931 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6932
6933         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6934         is specified.
6935         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6936         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6937
6938 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6939
6940         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6941
6942 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6943
6944         * regrename.c (regrename_optimize): Don't accept a
6945         part-clobbered register if the replaced register is not part
6946         clobbered.
6947
6948         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6949         take padding into account when computing the argument value.
6950
6951         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6952
6953         * combine.c (try_combine): Apply substitutions in
6954         CALL_INSN_FUNCTION_USAGE too.
6955
6956 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6957
6958         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6959         __builtin_altivec_abs*.
6960         (bdesc_abs): New.
6961
6962         * config/rs6000/rs6000.h (rs6000_builtins): Add
6963         ALTIVEC_BUILTIN_ABS*.
6964
6965         * config/rs6000/altivec.h: Use const char for builtins expecting
6966         literals.
6967         (vec_abs): New versions for C and C++.
6968         (vec_abss): Same.
6969
6970 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6971
6972         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6973         using Pmode.
6974
6975 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6976
6977         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6978         constant definition from h8300.md.
6979         (FRAME_POINTER_REGNUM): Likewise.
6980         * config/h8300/h8300.md (define_constants): Add FP_REG.
6981
6982 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6983
6984         * config/h8300/h8300.c (print_operand): Remove redundant code.
6985
6986 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6987
6988         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6989         * config/h8300/h8300.c (byte_reg): Make it static.
6990
6991 2002-02-10  Richard Henderson  <rth@redhat.com>
6992
6993         PR c/5623
6994         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6995
6996 2002-02-10  Richard Henderson  <rth@redhat.com>
6997
6998         PR c++/5624
6999         * tree.c (append_random_chars): Don't abort if main_input_filename
7000         does not exist.
7001
7002 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
7003
7004         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7005
7006 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7007
7008         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7009         (pushhi1): Likewise.
7010
7011 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7012
7013         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7014         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7015
7016 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
7017
7018         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7019         remove MASK_VIS.
7020         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
7021
7022 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7023
7024         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7025         a half of an SImode register on H8/300.
7026
7027 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
7028
7029         * i386.md (movdi_2): Add missing '!'.
7030
7031 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7032
7033         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
7034         definitions.
7035
7036 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7037
7038         * config/h8300/h8300.md (length): Correct the distance valid
7039         for the short branch.
7040
7041 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7042
7043         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7044
7045 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7046
7047         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7048         registers in SImode.
7049         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7050         part-clobbered.
7051
7052         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7053         patch.
7054
7055         Contribute sh64-elf.
7056         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7057         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7058         (sh_cannot_modify_jumps_p): New function.
7059         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7060         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7061         (sh_ms_bitfield_layout_p): New function.
7062         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
7063                     Zack Weinberg  <zack@codesourcery.com>
7064         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7065         expand_simple_binop instead of expand_binop.
7066         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
7067         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7068         use of .quad and .uaquad.
7069         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7070         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7071         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7072         * config/sh/sh.md (movdi_const, movdi_const_32bit,
7073         movdi_const_16bit): Make sure all CONSTs have modes.
7074         (sym2PIC): Ditto, but by adjusting all callers.
7075         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7076         if the prologue calls the SHmedia argument decoder or register
7077         saver.
7078         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7079         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7080         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7081         (sh_expand_epilogue): Don't emit USE of return target register.
7082         (prepare_move_operands): Legitimize DImode PIC addresses.
7083         (sh_media_register_for_return): Skip tr0, used to initialize the
7084         PIC register.
7085         (sh_expand_prologue): Remove explicit USE of return register.
7086         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
7087         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
7088         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7089         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7090         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7091         EXTRA_CONSTRAINT_T.
7092         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7093         (MOVI_SHORI_BASE_OPERAND_P): New.
7094         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7095         (EXTRA_CONSTRAINT_T): Define in terms of them.
7096         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7097         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7098         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7099         alternatives supporting TARGET_REGS.
7100         (UNSPEC_GOTPLT): New constant.
7101         (movdi split): Move incrementing of LABEL_NUSES...
7102         (movdi_const, movdi_const_32bit): Here.  Use
7103         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7104         (movdi_const_16bit): New.
7105         (call, call_value) [flag_pic]: Use GOTPLT.
7106         (call_pop, call_value_pop): New expands.
7107         (call_pop_compact, call_pop_rettramp): New insns.
7108         (call_value_pop_compact, call_value_pop_rettramp): New insns.
7109         (sibcall) [flag_pic]: Use GOT.
7110         (builtint_setjmp_receiver): Remove bogus, unused expand.
7111         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7112         (*pt, *ptb, ptrel): New insns.
7113         (sym2GOT): Handle DImode GOT.
7114         (sym2GOTPLT, symGOTPLT2reg): New expands.
7115         (sym2PIC): New expand.
7116         (shcompact_return_tramp): Use GOTPLT to return trampoline.
7117         (shcompact_return_tramp_i): Use return register explicitly.
7118         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7119         disable flag_reorder_blocks.
7120         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
7121         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7122         clobbers, for clarity.
7123         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7124         restoring of r0 in macl as MAYBE_DEAD.
7125         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
7126         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7127         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7128         alter_subreg all over.
7129         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7130         reload, instead of emitting instructions that would require
7131         reloading.
7132         (casesi_load_media): Add missing modes.
7133         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
7134         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7135         as used if the argument decoder is called.
7136         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7137         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7138         Pmode, then extend it to DImode if necessary.
7139         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7140         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7141         constants in FPU-enabled SHmedia, let them be loaded from memory.
7142         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7143         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7144         Adjust whitespace in assembly output templates.
7145         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7146         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7147         mode of if_then_else.
7148         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
7149         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7150         sh.h.
7151         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
7152                     Joern Rennecke <amylaar@redhat.com>
7153         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7154         (SUBTARGET_CPP_PTR_SPEC): New.
7155         (SUBTARGET_CPP_SPEC): Remove.
7156         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7157         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7158         Fix typo in previous checkin.
7159         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
7160         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7161         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
7162                     Alexandre Oliva  <aoliva@redhat.com>
7163         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7164         what single FP register can hold for SHmedia target.
7165         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7166                     Alexandre Oliva  <aoliva@redhat.com>
7167         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7168         Do not split into SUBREG.
7169         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
7170         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7171         and added new functions as specified in SH5 ABI r9.
7172         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
7173         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7174         8-byte boundary.
7175         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
7176         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7177         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
7178         and consttable_window_ends.
7179         2001-06-03  Graham Stott  <grahams@redhat,com>
7180         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7181         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
7182         * config/sh/sh.c (print_operand): Handle floating-point pair,
7183         vector and matrix registers.
7184         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7185         vector modes into account.
7186         * config/sh/sh.md (movv2sf): Split move between registers into
7187         movdf.
7188         (movv4sf, movv16sf): Introduce insns that get split only after
7189         reload.
7190         * config/sh/shmedia.h: Fix Copyright dates.
7191         * config/sh/ushmedia.h: Likewise.  Move loop counter
7192         declarations into conditionals that uses them.
7193         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7194         loop boundary.
7195         * config/sh/sshmedia.h: Fix Copyright dates.
7196         (sh_media_PUTCFG): Fix constraints.
7197         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
7198         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7199         ptrmemfunc_vbit_in_delta for SH5.
7200         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
7201         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7202         * invoke.texi: Likewise.
7203         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
7204         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7205         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7206         GCC_pop_shmedia_regs_nofpu): New global symbols.
7207         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7208         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7209         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7210         compact function with nonlocal labels.
7211         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7212         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7213         (initial_elimination_offset): Account for their stack space.
7214         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7215         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7216         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7217         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7218         least one of the operands to be a register.
7219         (movv2sf): Likewise.  Renamed to movv2sf_i.
7220         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7221         prepare_move_operands() before emitting SHmedia insns.
7222         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
7223         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7224         Don't save nor initialize r12.  Don't mis-align the stack.
7225         Pad the code with a nop.
7226         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
7227         stack.
7228         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
7229         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7230         [__SHMEDIA__]: Implement.
7231         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
7232         * config/sh/sh.md: Set latency of `pt' closer to reality.
7233         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7234         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7235         Set move, load and store type attributes.
7236         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7237         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7238         profiling.
7239         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7240         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7241         * config/sh/sh.c (sh_media_register_for_return): New function.
7242         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7243         branch-target register.
7244         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7245         * config/sh/sh.md (return_media_i): Use any call-clobbered
7246         branch-target register.
7247         (return_media): If r18 wasn't copied in the prologue, copy it
7248         here.
7249         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7250         Clear class FP0_REGS.
7251         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7252         from elf.h.
7253         2001-03-08  DJ Delorie  <dj@redhat.com>
7254         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7255         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
7256         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7257         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
7258         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7259         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
7260         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7261         return value correctly for call_cookie.
7262         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
7263         * config/sh/crt1.asm (start): Modified so as to call
7264         ___setup_argv_and_call_main.
7265         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
7266         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7267         SHmedia mode.
7268         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
7269         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7270         (STRIP_NAME_ENCODING): Use it.
7271         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
7272         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
7273         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7274         prepare_scc_operands().
7275         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7276         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7277         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
7278         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7279         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
7280         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7281         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7282         used in shcompact_incoming_args.
7283         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7284         change.
7285         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7286         mode.
7287         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7288         Adjust accordingly.
7289         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7290         Simplify.  Adjust.  Add sanity check.
7291         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7292         FPU_SINGLE_BIT.
7293         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7294         TARGET_SHCOMPACT.
7295         (udivsi3, divsi3): Use them.
7296         (force_mode_for_call): New insn.
7297         (call, call_value, sibcall_value): Emit it before SHcompact
7298         calls.
7299         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
7300         * config/sh/sh.md (call, call_value, sibcall): Make sure the
7301         call cookie is non-NULL before taking its value.
7302         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
7303         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7304         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
7305         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7306         block.
7307         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7308         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7309         temporary for stack adjusts.  Use MACL and MACH to pass
7310         arguments to shcompact_incoming_args.
7311         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
7312         clobber r1.
7313         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7314         (nested_trampoline): Load static chain address into r1.
7315         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7316         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
7317         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7318         fp_arith_reg_operand().
7319         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
7320         * config/sh/sh.md (casesi): Sign-extend the first two operands,
7321         and use signed compares for them.
7322         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7323         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
7324         ones properly aligned.
7325         (find_barrier): Account for extra alignment needed for 8-byte wide
7326         constants.
7327         (machine_dependent_reorg): Require a label for the second 4-byte
7328         constant after an 8-byte one.
7329         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7330         change.
7331         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
7332         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7333         last_float when switching float modes.
7334         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7335         auto-increment for general-purpose registers.
7336         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7337         result.
7338         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7339         for stack adjust.
7340         * config/sh/sh.c (sh_builtin_saveregs): Support using all
7341         registers for varargs.
7342         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
7343         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7344         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7345         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7346         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7347         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
7348         call_cookie accordingly.
7349         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7350         (SHCOMPACT_BYREF): Likewise.
7351         (SHCOMPACT_FORCE_ON_STACK): New macro.
7352         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7353         (sh_builtin_saveregs): Likewise.
7354         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7355         shcompact_incoming_args): Use new shift values.  Support
7356         sequences of consecutive and non-consecutive pushes/pops.
7357         * config/sh/sh.md (return): Don't explicitly use PR_REG.
7358         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
7359         * config/sh/sh.h (TEXT_SECTION): Define.
7360         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7361         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
7362         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7363         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7364         return values on FPU-enabled SHmedia.
7365         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7366         FPU-enabled SHmedia.
7367         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7368         value is returned in a non-FP reg and is not returned by
7369         reference.
7370         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7371         jump_ind.
7372         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
7373         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7374         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7375         quad-aligned to be passed by callee-copy reference.
7376         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
7377         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7378         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7379         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
7380         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7381         copying low-numbered FP regs to r7 and r8.
7382         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7383         FP regs to general-purpose regs only if the copy was passed on the
7384         stack.
7385         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7386         copying FP reg to r9.
7387         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7388         copy FP regs to general-purpose regs only in outgoing calls.
7389         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7390         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
7391         HOST_WIDE_INT.
7392         * config/sh/sh.h (struct sh_args): Document all fields.
7393         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7394         passed partially on the stack should not consider making
7395         sibcalls.
7396         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7397         stack_regs only for incoming calls.  When passing FP args,
7398         make sure there are FP regs available before modifying
7399         call_cookie.
7400         (SHCOMPACT_BYREF): Pass double args in general-purpose
7401         registers by reference.
7402         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
7403         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7404         attempt to generate sibcalls if the caller got any arguments
7405         by reference.
7406         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7407         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7408         to 8-byte boundaries.
7409         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7410         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7411         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7412         stored in the stack.
7413         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7414         for the offsets to have the ISA bit set.
7415         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
7416         invocation.  Use beq instead of bgt to mark end of sequence of
7417         loads.
7418         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
7419         bgt to mark end of sequence of stores.
7420         * config/sh/sh.c (arith_operand): Don't check whether
7421         CONST_OK_FOR_J for now.
7422         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7423         instead of long for conversion.
7424         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
7425         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7426         before passing it to fprintf.
7427         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
7428         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7429         Call set_fpscr before reading/writing SR.
7430         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7431         Call set_fpscr.
7432         * config/sh/lib1funcs.asm: Add `.align 2' directives before
7433         SHmedia code.
7434         (FMOVD_WORKS): Define on SH5 with FPU.
7435         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
7436         setting.
7437         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7438         _fpscr_values.
7439         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
7440         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7441         address.
7442         (ia_main_table): Ditto.
7443         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
7444         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7445         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7446         the definitions from sh.h.
7447         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7448         TARGET_SH5.
7449         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7450         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7451         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7452         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
7453         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7454         Increment LABEL_NUSES.
7455
7456         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7457         TARGET_SH5.
7458         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7459         defined.
7460         * config/sh/elf.h (SIZE_TYPE): Likewise.
7461         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7462         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7463         shcompact_incoming_args): Load switch table addresses using
7464         datalabel.
7465         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7466         (NO_BUILTIN_SIZE_TYPE): Define.
7467         (SIZE_TYPE): Don't define.
7468         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7469         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7470         definition of __SH5__=32 for -m5-compact-nofpu.
7471         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7472         ADDR_DIFF_VEC.
7473         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
7474         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7475         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
7476         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7477         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7478         (INSN_LENGTH_ALIGNMENT): Likewise.
7479         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7480         * config/sh/sh.md (call, call_value, sibcall): Simplify
7481         copying of non-branch-target register.
7482         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7483         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
7484         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7485         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7486         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7487         floating-point values as structs.
7488         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7489         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7490         general-purpose register.
7491         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7492         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7493         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7494         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7495         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7496         (ENCODE_SECTION_INFO): Enclose variables and constants in
7497         DATALABEL unspecs.
7498         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7499         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7500         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7501         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7502         only for LABEL_REFs.  For SYMBOL_REFs, prepend
7503         SH_DATALABEL_ENCODING to the symbol name.
7504         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7505         convert_mode().
7506         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7507         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7508         UNSPEC_DATALABEL.
7509         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7510         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7511         (DATALABEL_REF_P): Don't require CONST.
7512         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7513         REL label.
7514         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
7515         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7516         right.
7517         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7518         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7519         Use shallow_copy_rtx and PUT_MODE to change the mode of
7520         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7521         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7522         on SHmedia using GENERAL_REGs.
7523         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7524         bltu_media_i): Fix reversion of conditions.
7525         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7526         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7527         * config/sh/sh.c (output_far_jump): Save r13 in macl.
7528         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
7529         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7530         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7531         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7532         (GCC_nested_trampoline): Likewise.
7533         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7534         * config/sh/sh.c (gen_datalabel_ref): Define.
7535         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7536         (INITIALIZE_TRAMPOLINE): Likewise.
7537         (TRAMPOLINE_ADJUST_ADDRESS): Define.
7538         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7539         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7540         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7541         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7542         (ic_invalidate): Adjust for SH5.
7543         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7544         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7545         _nested_trampoline.
7546         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
7547         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7548         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7549         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7550         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7551         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7552         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7553         * config/sh/sh.c (target_reg_operand): Match only target-branch
7554         registers and pseudos that aren't virtual registers.
7555         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7556         Copy operands that don't match target_reg_operand to pseudos.
7557         (call_media, call_value_media, sibcall_media): Use
7558         target_reg_operand instead of target_operand.
7559         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
7560         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7561         * config/sh/sh.c (target_reg_operand): Match hardware registers
7562         other than branch-target registers.
7563         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7564         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7565         (fpscr_values) [SH5 == 32]: Define.
7566         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7567         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7568         Handle function addresses coming in SUBREGs.
7569         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
7570         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7571         shcompact_return_trampoline): Use datalabel where appropriate.
7572         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
7573         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7574         general-purpose register to copy one branch-target register to
7575         another.
7576         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7577         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7578         SYMBOL_REFs with VOIDmode.
7579         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7580         bltu_media_i): New insns.
7581         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7582         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7583         (INIT_CUMULATIVE_ARGS): Likewise.
7584         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7585         * machmode.def (V16SFmode): New mode.
7586         * c-common.c (type_for_mode): Support V2SF and V16SF.
7587         * tree.c (build_common_tree_nodes_2): Likewise.
7588         * tree.h (tree_index): Likewise.
7589         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7590         callers.  Introduce CALL_POPS_ARGS.
7591         * tm.texi (CALL_POPS_ARGS): Document.
7592         * config/sh/crt1.asm: Implement in SHmedia mode.
7593         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7594         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7595         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7596         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7597         Implement divsi and udivsi in SHmedia mode.  Introduce
7598         SHcompact trampolines.
7599         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7600         only in SHmedia64.
7601         (regno_reg_class): Rewrite.
7602         (fp_reg_names): Remove.
7603         (sh_register_names, sh_additional_register_names): New.
7604         (print_operand): Added `u'.  Support SUBREGs in addresses.
7605         Add parentheses around shifted CONSTs.
7606         (output_file_start): Output .mode and .abi directives.
7607         (shiftcosts, addsubcosts, multcosts): Adjust.
7608         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7609         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7610         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7611         bytes, not registers.  Take into account the need for the
7612         SHcompact incoming args trampoline.  Adjust all callers.
7613         (sh_expand_prologue): Take stack_regs into account.  Call
7614         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7615         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7616         stack aligned as per SH5 ABI.
7617         (sh_builtin_saveregs): Support SH5 ABI.
7618         (sh_build_va_list, sh_va_start): Likewise.
7619         (initial_elimination_offset): Take alignment into account.
7620         Compute location of PR according to the SH5 stack frame.
7621         (arith_reg_operand): Reject branch-target registers.
7622         (shmedia_6bit_operand): New.
7623         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7624         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7625         (target_operand): New.
7626         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7627         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7628         SIBCALL_REGS for SHmedia.
7629         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7630         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7631         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7632         (TARGET_SWITCHES): New SH5 flags.
7633         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7634         VALID_REGISTER_P to disable unsupported registers.
7635         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7636         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7637         (FUNCTION_ARG_PADDING): Define.
7638         (FASTEST_ALIGNMENT): Adjust.
7639         (SH_REGISTER_NAMES_INITIALIZER): New.
7640         (sh_register_names): Declare.
7641         (DEBUG_REGISTER_NAMES): Define.
7642         (REGISTER_NAMES): Define based on sh_register_names.
7643         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7644         (sh_additional_register_names): Declare.
7645         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7646         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7647         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7648         (REGISTER_NATURAL_MODE): Define.
7649         (FIRST_PSEUDO_REGISTER): Adjust.
7650         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7651         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7652         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7653         (VECTOR_MODE_SUPPORTED_P): Define.
7654         (REG_CLASS_CONTENTS): Adjust.
7655         (SMALL_REGISTER_CLASSES): Adjust.
7656         (REG_ALLOC_ORDER): Adjust.
7657         (INDEX_REG_CLASS): Adjust.
7658         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7659         (CONST_OK_FOR_LETTER_P): Adjust.
7660         (PREFERRED_RELOAD_CLASS): Adjust.
7661         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7662         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7663         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7664         (FIRST_FP_PARM_REG): Adjust.
7665         (CALL_POPS_ARGS): Define.
7666         (FUNCTION_ARG_REGNO_P): Adjust.
7667         (struct sh_args): New fields.
7668         (GET_SH_ARG_CLASS): Adjust.
7669         (INIT_CUMULATIVE_ARGS): Adjust.
7670         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7671         (FUNCTION_ARG_ADVANCE): Adjust.
7672         (FUNCTION_ARG): Adjust.
7673         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7674         (FUNCTION_ARG_CALLEE_COPIES): Define.
7675         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7676         (STRICT_ARGUMENT_NAMING): Define.
7677         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7678         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7679         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7680         (SETUP_INCOMING_VARARGS): Adjust.
7681         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7682         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7683         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7684         (SUBREG_OK_FOR_INDEX_P): Adjust.
7685         (EXTRA_CONSTRAINT_S): Update.
7686         (EXTRA_CONSTRAINT_T): New.
7687         (EXTRA_CONSTRAINT): Adjust.
7688         (GO_IF_LEGITIMATE_INDEX): Adjust.
7689         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7690         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7691         (MOVE_MAX): Adjust.
7692         (MAX_MOVE_MAX): Define.
7693         (Pmode): Adjust.
7694         (CONST_COSTS): Adjust.
7695         (REGISTER_MOVE_COST): Adjust.
7696         (BRANCH_COST): Adjust.
7697         (TEXT_SECTION_ASM_OP): Adjust.
7698         (DBX_REGISTER_NUMBER): Adjust.
7699         (ASM_OUTPUT_DOUBLE_INT): New.
7700         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7701         (PREDICATE_CODES): Adjust.
7702         (PROMOTE_MODE): Adjust.
7703         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7704         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7705         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7706         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7707         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7708         (TR0_REG, TR1_REG, TR2_REG): New.
7709         (XD0_REG): Renumber.
7710         (UNSPEC_COMPACT_ARGS): New.
7711         (type): Added pt and ptabs.
7712         (length): Default to 4 on SHmedia.  Default pt length to 12
7713         and     20 on SHmedia32 and SHmedia64, respectively.
7714         (pt): New function unit.
7715         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7716         Add whitespace between operands of SHmedia instructions.
7717         (movdicc): Fix.
7718         (adddi3_media, addsi3_media): Adjust constraints.
7719         (subsi3) [SHmedia]: Force operand 1 into a register.
7720         (udivsi3_i1_media, udivsi3_i4_media): New.
7721         (udivsi3): Support SHmedia.
7722         (divsi3_i1_media, divsi3_i4_media): New.
7723         (divsi3): Support SHmedia.
7724         (anddi3, iordi3, xordi3): Adjust constraints.
7725         (zero_extendhidi2, zero_extendqidi2): New.
7726         (extendsidi2, extendhidi2, extendqidi2): New.
7727         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7728         (pop_e, pop_fpul, pop_4): Likewise.
7729         (movsi_media): Support FP and BT registers.
7730         (movsi_media_nofpu): New.  Adjust splits to DImode.
7731         (lduw, ldub): Renamed to zero_extend* above.
7732         (movqi_media): Fix typo.
7733         (movdi_media): Support FP and BT registers.
7734         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7735         (movdi_const_32bit): New.
7736         (shori_media): Require immediate operand.  Use `u' for output.
7737         (movdf_media, movsf_media): Simplified.
7738         (movdf_media_nofpu, movsf_media_nofpu): New.
7739         (movdf, movsf): Adjust
7740         (movv2sf, movv2sf, movv16sf): New.
7741         (beq_media, beq_media_i): Adjust constraints.  Don't use
7742         scratch BT register.
7743         (bne_media, bne_media_i): Likewise.
7744         (bgt_media, bgt_media_i): Likewise.
7745         (bge_media, bge_media_i): Likewise.
7746         (bgtu_media, bgtu_media_i): Likewise.
7747         (bgeu_media, bgeu_media_i): Likewise.
7748         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7749         bunordered): Emit jump insn.  Force operands to registers when
7750         needed.
7751         (jump_media, jump): Simplify.
7752         (call_compact, call_compact_rettramp): New.
7753         (call_value_compact, call_value_compact_rettramp): New.
7754         (call_media, call_value_media): Simplify.
7755         (sibcall_compact, sibcall_media): New.
7756         (call, call_value): Adjust for SHmedia and SHcompact.
7757         (sibcall, sibcall_value, untyped_call): Likewise.
7758         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7759         (indirect_jump): Adjust for SHmedia.
7760         (casesi_jump_media): New.
7761         (nop): Re-enable for SHmedia.
7762         (call_site): Restrict to SH1.
7763         (casesi): Adjust for SHmedia.
7764         (casesi_shift_media, casesi_load_media): New.
7765         (return): Explicitly use PR register.  Call return trampoline
7766         on SHcompact.
7767         (return_i): Explicitly use PR register.
7768         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7769         (return_media): Adjust.
7770         (shcompact_incoming_args): New.
7771         (epilogue): Adjust.
7772         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7773         (movstrsi): Disable on SH5.
7774         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7775         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7776         (subsf3, subsf3_media): Likewise.
7777         (mulsf3, mulsf3_media, mac_media): Likewise.
7778         (divsf3, divsf3_media): Likewise.
7779         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7780         (floatsisf2, fux_truncsfsi2): Likewise.
7781         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7782         constraints.
7783         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7784         (cmpunsf_media, cmpsf): Likewise.
7785         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7786         (abssf2, abssf2_media): Likewise.
7787         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7788         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7789         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7790         (floatsidf2, fix_truncdfsi2): Likewise.
7791         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7792         constraints.
7793         (cmpeqdf_media, cmpgtdf_media): Likewise.
7794         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7795         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7796         (absdf2, absdf2_media): Likewise.
7797         (extendsfdf2, extendsfdf2_media): Likewise.
7798         (truncsfdf2, truncsfdf2_media): Likewise.
7799         * config/sh/sh64.h: New file.
7800         * config/sh/t-sh64: New file.
7801         * config/sh/shmedia.h: New file.
7802         * config/sh/ushmedia.h: New file.
7803         * config/sh/sshmedia.h: New file.
7804         * configure.in: Added sh64-*-elf.
7805         * configure: Rebuilt.
7806         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7807         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7808         (reg_class_from_letter): Use `b' for TARGET_REGS.
7809         (print_operand): Support `%M', `%m', `AND' and
7810         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7811         (andcosts): Adjust for SHmedia.
7812         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7813         Likewise.
7814         (target_reg_operand): New function.
7815         * config/sh/sh-protos.h (target_reg_operand): Declare.
7816         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7817         FP registers on SH5.
7818         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7819         on SH4.
7820         (TARGET_REGISTER_P): New macro.
7821         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7822         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7823         (EXTRA_CONSTRAINT_S): New macro.
7824         (EXTRA_CONSTRAINT): Adjust.
7825         (FLOAT_TYPE_SIZE): Define to 32.
7826         (Pmode): DImode on SHmedia.
7827         (CONST_COSTS): Adjust for SHmedia literals.
7828         (PREDICATE_CODES): Added target_reg_operand.
7829         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7830         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7831         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7832         (cmpdi): Accept SHmedia.
7833         (movdicc_false, movdicc_true): New insns.
7834         (movdicc): New expand.
7835         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7836         no_new_pseudos.
7837         (addsi3_media): Match `S' constraint.
7838         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7839         (negdi2): Expand for SHmedia.
7840         (one_cmpldi2): New expand.
7841         (zero_extendsidi2): Change from expand to insn.
7842         (extendsidi2): Add constraints.
7843         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7844         LD/ST address.  Fix SI immediate loading split.
7845         (movhi_media, movqi_media, lduw, ldub): New insns.
7846         (movhi, movqi): Accept SHmedia.
7847         (shori_media, movdi_media): Relax input constraints.  Split
7848         symbolic constants.
7849         (movdf_media, movsf_media): New insn.  New split to movdi.
7850         (movdf, movsf): Match on SHmedia.
7851         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7852         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7853         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7854         (bunordered): New expand.
7855         (jump_compact): Renamed from `jump'.
7856         (jump_media): New insn.
7857         (jump): New expand.
7858         (call_media, call_value_media): New insns.
7859         (call, call_value): Adjust.
7860         (indirect_jump_compact): Renamed from `indirect_jump'.
7861         (indirect_jump_media): New insn.
7862         (indirect_jump): New expand.
7863         (untyped_call, return): Accept SHmedia.
7864         (return_media): New insn.
7865         (prologue, epilogue, blockage): Accept SHmedia.
7866         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7867         (sunordered): New expand.
7868         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7869         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7870         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7871         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7872         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7873         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7874         abssf2_media): New insns.
7875         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7876         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7877         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7878         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7879         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7880         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7881         absdf2_media): New insns.
7882         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7883         (extendsfdf2_media, truncdfsf2_media): New insns.
7884         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7885         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7886         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7887         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7888         * config/sh/sh.md (adddi3): New expand.
7889         (adddi3_media, adddi3z_media): New insns.
7890         (adddi3_compact): Renamed from adddi3.
7891         (addsi3_media): Use add.l r63 to add constant zero.
7892         (subdi3): New expand.
7893         (subdi3_media): New insn.
7894         (subdi3_compact): Renamed from subdi3.
7895         (mulsidi3): New expand.
7896         (mulsidi3_media): New insn.
7897         (mulsidi3_compact): Renamed from mulsidi3.
7898         (umulsidi3): New expand.
7899         (umulsidi3_media): New insn.
7900         (umulsidi3_compact): Renamed from umulsidi3.
7901         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7902         (ashlsi3, ashrsi3, lshrsi3): Use them.
7903         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7904         (ashldi3, ashrdi3, lshrdi3): Use them.
7905         (zero_extendsidi2): New expand.
7906         (extendsidi2): New insn.
7907         (movsi_media): New insn.  Split to movdi to load constants.
7908         (movsi): Enable for shmedia.
7909         (movdi_media): New insn.  Use shori_media to load wide constants.
7910         (short_media): New insn.
7911         (movdi): Enable for shmedia.
7912         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7913         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7914         (SUBTARGET_CPP_SPEC): Added `!m5'.
7915         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7916         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7917         to all other SH variants.
7918         (TARGET_DEFAULT): Set to SH1_BIT.
7919         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7920         (BITS_PER_WORD): Raise to 64 on shmedia.
7921         (MAX_BITS_PER_WORD): Change to 64.
7922         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7923         (INT_TYPE_SIZE): Keep as 32.
7924         (UNITS_PER_WORD): Raise to 8 on shmedia.
7925         (MIN_UNITS_PER_WORD): Keep as 4.
7926         (POINTER_SIZE): Raise to 64 on shmedia.
7927         (CONST_OK_FOR_J): New macro.
7928         (CONST_OK_FOR_LETTER_P): Use it.
7929         (processor_type): Add PROCESSOR_SH5.
7930         * config/sh/sh.md: Conditionalize all expands, insns and
7931         splits to TARGET_SH1.
7932         (cpu): Added sh5.
7933         (addsi3_compact): Renamed from...
7934         (addsi3): Now an expand.
7935         (addsi3_media, subsi3_media): New insns.
7936         (subsi3): Don't negate constants with SHmedia.
7937
7938         * hooks.c: New file.
7939         * hooks.h: New file.
7940         * Makefile.in (HOOKS_H): New.
7941         (TARGET_DEF_H): Added $(HOOKS_H).
7942         (OBJS): Added hooks.o.
7943         (cfgcleanup.o, bb-reorder.o): Added target.h.
7944         (hooks.o): Added dependencies.
7945         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7946         (TARGET_INITIALIZER): this.
7947         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7948         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7949         * bb-reorder.c: Include target.h.
7950         (reorder_basic_blocks): Skip if cannot modify jumps.
7951         * cfgcleanup.c: Include target.h.
7952         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7953
7954 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7955
7956         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7957         Protect jump delay slot instructions with .set noreorder and
7958         .set nomacro.
7959
7960 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7961
7962         * config/mips/mips.md (casesi_internal_di): Calculate
7963         the index into the target offset table correctly.
7964
7965 2002-02-08  Richard Henderson  <rth@redhat.com>
7966
7967         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7968         * final.c (output_addr_const): Accept and discard SUBREG.
7969         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7970         mark them unknown instead.
7971         (simplify_subtraction): Handle RTX_UNKNOWN.
7972         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7973
7974 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7975
7976         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7977
7978 2002-02-08  Richard Henderson  <rth@redhat.com>
7979
7980         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7981
7982 2002-02-08  Andreas Jaeger  <aj@suse.de>
7983
7984         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7985         * config/i386/t-linux64: New file.
7986
7987 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7988
7989         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7990         * c-parse.in (compstmt): Clear last_expr_type.
7991
7992 2002-02-07  Richard Henderson  <rth@redhat.com>
7993
7994         * loop.c (strength_reduce): Sink final_value when not
7995         eliminating a biv.
7996
7997 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7998
7999         * config/sparc/freebsd.h: Fix mismatched spec {.
8000
8001 2002-02-07  Richard Henderson  <rth@redhat.com>
8002
8003         * cfgrtl.c: Include recog.h and insn-config.h.
8004         (keep_with_call_p): Fix general_operand invocation.
8005         * Makefile.in (cfgrtl.o): Update dependencies.
8006
8007 2002-02-07  Kazu Hirata  <kazu@hxi.com>
8008
8009         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8010         comment.  Accept HImode only if TARGET_H8300.
8011
8012 2002-02-07  Eric Christopher  <echristo@redhat.com>
8013
8014         * config/mips/crtn.asm: Cleanup #ifdefs.
8015
8016 2002-02-07  Eric Christopher  <echristo@redhat.com>
8017
8018         * config/mips/crti.asm: Add changes for mips16. mips16 uses
8019         register 7 as RA instead of $31.
8020         * config/mips/crtn.asm: Ditto.
8021         * config/mips/mips.c (mips_move_2words): Add case for
8022         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8023         (compute_frame_size): Fix typo.
8024         (save_restore_insns): Ditto.  Make documentation about using
8025         register $7 as return register more precise.
8026         (mips_expand_epilogue): Fix comment. Add code to work around not
8027         being able to add to the stack pointer directly.
8028         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8029         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8030         epilogue.
8031
8032 2002-02-07  Tom Rix  <trix@redhat.com>
8033
8034         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8035         immediates in ldu and stdu DS opcode field.
8036         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8037         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8038         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8039
8040 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
8041
8042         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8043         offset for stack bias.
8044
8045 2002-02-07  H.J. Lu <hjl@gnu.org>
8046
8047         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8048
8049 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
8050
8051         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8052
8053 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8054
8055         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8056         * i386.c (x86_order_regs_for_local_alloc): New global function.
8057         * i386.h (REG_ALLOC_ORDER): CLeanup.
8058         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8059
8060 2002-02-07  Richard Henderson  <rth@redhat.com>
8061
8062         PR optimization/2463
8063         * alias.c (find_base_value): Recall base values for fixed hard regs.
8064         * loop.c (loop_regs_update): Don't use single_set on non-insns.
8065
8066 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
8067
8068         * config/mips/mips.md (define_delay) [mips16]: Adjust required
8069         length.
8070
8071 2002-02-06  Richard Henderson  <rth@redhat.com>
8072
8073         PR c/5609
8074         * stmt.c (resolve_operand_name_1): Take more care with mixed
8075         named and unnamed operands.
8076
8077 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
8078             Jan Hubicka  <jh@suse.cz>
8079
8080         * loop.c (remove_constant_addition): Avoid clobbering a shared
8081         CONST expression.
8082
8083 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8084
8085         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8086         * config/s390/t-linux64: New file.
8087         * config/s390/libgcc-glibc.ver: New file.
8088
8089 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8090
8091         * config/s390/linux64.h: Delete file.
8092         * config/s390/s390x.h: New file.
8093         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8094         as target header file.
8095         * config/s390/linux.h (TARGET_VERSION): Define depending on
8096         DEFAULT_TARGET_64BIT.
8097         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8098         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8099         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8100         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8101         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8102         (EXTRA_SPEC): New define.
8103         * config/s390/s390.h (TARGET_VERSION): Define depending on
8104         DEFAULT_TARGET_64BIT.
8105         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8106
8107 2002-02-06  Jason Merrill  <jason@redhat.com>
8108
8109         * c-decl.c (finish_function): Warn about a non-void function with
8110         no return statement and no abnormal exit.
8111         (current_function_returns_abnormally): New variable.
8112         (start_function): Clear it.
8113         (struct c_language_function): Add returns_abnormally.
8114         (push_c_function_context): Save it.
8115         (pop_c_function_context): Restore it.
8116         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8117         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8118         an explicit return type.
8119         * c-tree.h: Declare current_function_returns_abnormally.
8120         (C_FUNCTION_IMPLICIT_INT): New macro.
8121         * c-typeck.c (build_function_call): Set it.
8122         (c_expand_return): Set current_function_returns_value even if the
8123         value is erroneous.
8124
8125 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8126
8127         PR c/5420:
8128         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8129         unsafe for reevaluation.
8130
8131 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8132
8133         PR c/5482:
8134         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8135         EXPR_STMT, but COMPOUND_STMT, recurse into it.
8136
8137 2002-02-06  Richard Henderson  <rth@redhat.com>
8138
8139         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8140         be a general_operand.  Dest for function value must be a pseudo.
8141
8142 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8143
8144         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8145         as SYMBOL_REFs from the constant pool.
8146
8147 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
8148
8149         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8150         passed by invisible reference.
8151
8152 2002-02-05  Richard Henderson  <rth@redhat.com>
8153
8154         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8155
8156 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
8157
8158         Implement using "base addresses" in insn operands as default.
8159         * config/mmix/mmix.c (mmix_conditional_register_usage): if
8160         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8161         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8162         used to read the rtx value.
8163         (mmix_target_asm_function_epilogue): Fix spacing.
8164         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8165         (mmix_legitimate_address): Ditto.
8166         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8167         should be loaded with a GETA insn.  Don't allocate needless extra
8168         char for nul termination and fix misleading comment.
8169         (mmix_print_operand_address): Handle constants if
8170         TARGET_BASE_ADDRESSES.
8171         (mmix_output_register_setting): Use base addressing if
8172         TARGET_BASE_ADDRESSES and the number of insns is 3.
8173         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8174         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8175         to use R as constraint, add LDA to match s.
8176         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8177         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8178         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8179         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8180         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8181         order with other fixed registers.
8182         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8183         other parameter/call-clobbered registers.
8184         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8185         -mbase-addresses, -mno-base-addresses.
8186         (MMIX Options): Ditto.
8187
8188 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8189
8190         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8191
8192 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
8193
8194         * config/rs6000/altivec.h: Change elem to _S_elem.
8195
8196 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
8197
8198         * config/netbsd.h (WCHAR_TYPE): Define.
8199         (WCHAR_TYPE_SIZE): Ditto.
8200         (WINT_TYPE): Ditto.
8201         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8202         (WCHAR_UNSIGNED): Ditto.
8203         (WCHAR_TYPE_SIZE): Ditto.
8204         (WINT_TYPE): Ditto.
8205         * config/arm/netbsd.h: Likewise.
8206         * config/i386/netbsd-elf.h: Likewise.
8207         * config/i386/netbsd.h: Likewise.
8208         * config/m68k/netbsd-elf.h: Likewise.
8209         * config/m68k/netbsd.h: Likewise.
8210         * config/ns32k/netbsd.h: Likewise.
8211         * config/sparc/netbsd.h: Likewise.
8212         * config/vax/netbsd.: Likewise.
8213
8214 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8215
8216         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8217         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
8218         (TARGET_INITIALIZER): this.
8219         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8220         (BITFIELD_NBYTES_LIMITED): Markup fix.
8221         * tree.h (default_ms_bitfield_layout_p): Declare.
8222         (record_layout_info): Added prev_field.
8223         * tree.c (default_ms_bitfield_layout_p): New fn.
8224         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8225         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8226         * stor-layout.c: Include target.h.
8227         (start_record_layout): Initialize prev_field.
8228         (place_field): Handle MS bit-field layout, and disregard
8229         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8230         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
8231         * Makefile.in (stor-layout.o): Adjust dependencies.
8232
8233 2002-02-05  Jason Merrill  <jason@redhat.com>
8234
8235         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8236
8237 2002-02-05  Andreas Jaeger  <aj@suse.de>
8238
8239         * crtstuff.c: Fix comments.
8240
8241 2002-02-05  Richard Henderson  <rth@redhat.com>
8242
8243         PR fortran/3393
8244         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8245         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8246
8247         PR fortran/3392
8248         * config/mips/mips.c (function_arg): Handle TImode.
8249         (function_arg_advance): Likewise.
8250
8251 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8252
8253         * config/rs6000/altivec.h (vec_step_help): Rename to
8254         __vec_step_help.
8255
8256 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8257
8258         * config/rs6000/altivec.h: Fix typos.
8259
8260 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
8261
8262         * config/arm/netbsd.h: Correct a comment.
8263
8264 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8265
8266         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8267         building void typed builtins.
8268
8269         * config/rs6000/altivec.h (vec_ld*): Fix typos.
8270         (vec_step): Implement for C++.
8271
8272 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8273
8274         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8275
8276 2002-02-04  Richard Henderson  <rth@redhat.com>
8277
8278         * combine.c (nonzero_bits): Re-introduce special case for
8279         sp/fp/ap wrt REGNO_POINTER_ALIGN.
8280
8281 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
8282
8283         * doc/extend.texi: Warn about unsupported usage of altivec
8284         builtins.
8285
8286         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8287         (altivec_predicate_*): New.
8288
8289         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8290         Add C++ version of vec_*() functions.
8291
8292         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8293         (bdesc_2arg): Remove altivec predicates.
8294         (altivec_expand_builtin): Handle predicates.
8295         (altivec_init_builtins): Handle predicates.
8296         (altivec_expand_predicate_builtin): New.
8297
8298 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8299
8300         * pa.c (DO_FRAME_NOTES): Move forward.
8301         (store_reg): Revise handling of frame notes.
8302         (load_reg): Likewise.
8303         (set_reg_plus_d): Likewise.
8304         (hppa_expand_prologue): Likewise.
8305         (hppa_expand_epilogue): Likewise.
8306
8307 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8308
8309         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8310
8311 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8312
8313         PR c/4475, c++/3780:
8314         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8315         * c-common.h (SWITCH_TYPE): Define.
8316         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8317         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8318         Rename spareness variable to sparseness.
8319         (expand_end_case_type): Renamed from expand_end_case, use orig_type
8320         if non-NULL instead of TREE_TYPE (orig_index).
8321         * tree.h (expand_end_case_type): Renamed from expand_end_case.
8322         (expand_end_case): Define using expand_end_case_type.
8323         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8324         to expand_end_case_type.
8325         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8326
8327 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8328
8329         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8330         (BIGGEST_ALIGNMENT): Change to 128.
8331
8332 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8333
8334         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8335
8336 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8337
8338         * pa.md (call_internal_reg_64bit): Remove unused variable.
8339
8340 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
8341
8342         * config/arm/arm.h (machine_function): Add uses_anonymous_args
8343         field.
8344         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8345         * config/arm/arm.c (current_function_anonymous_args): Delete,
8346         replace uses with cfun->machine->uses_anonymous_args.
8347         (arm_reorg): Do not reset uses_anonymous_args.
8348
8349         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8350         any geenral register.
8351
8352 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
8353
8354         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8355         the entry block.
8356
8357 2002-02-04  Richard Henderson  <rth@redhat.com>
8358
8359         * combine.c (force_to_mode): Remove STACK_BIAS code.
8360         (nonzero_bits): Likewise.  Replace sp/fp special case with
8361         REGNO_POINTER_ALIGN.
8362
8363         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8364         (HARD_FRAME_POINTER_REGNUM): New.
8365         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8366         (FIXED_REGS, CALL_USED_REGS): Update.
8367         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8368         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8369         (HARD_REGNO_NREGS): Update for SFP.
8370         (STACK_POINTER_OFFSET): Include bias here ...
8371         (FIRST_PARM_OFFSET): ... not here.
8372         (STACK_BIAS): Remove.
8373         (INIT_EXPANDERS): New.
8374         (STARTING_FRAME_OFFSET): Do not include bias.
8375         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8376         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8377         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8378         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8379         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8380         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8381         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8382         (MUST_SAVE_REGISTER): Likewise.
8383         (sparc_flat_function_prologue): Likewise.
8384         (sparc_flat_function_epilogue): Likewise.
8385         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8386         (sparc_init_modes): SFP is GENERAL_REGS.
8387         (sparc_builtin_saveregs): SFP does not have bias applied.
8388
8389 2002-02-04  Richard Henderson  <rth@redhat.com>
8390
8391         * config/alpha/alpha.c (current_function_is_thunk): Don't check
8392         current_function_is_thunk.
8393         (alpha_sa_mask): Distinguish between current_function_is_thunk
8394         called from ASM_OUTPUT_MI_THUNK and not.
8395         (alpha_does_function_need_gp): Thunks always need gp.
8396         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8397         (alpha_output_mi_thunk_osf): New.
8398         * config/alpha/alpha-protos.h: Update.
8399         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8400
8401 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
8402
8403         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8404         function types, not when they're taken away.
8405
8406 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
8407
8408         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8409         CODE_LABEL and jump table when replacing a table jump with a
8410         simple jump.
8411
8412 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8413
8414         * config/s390/s390-protos.h (legitimize_la_operand,
8415         s390_secondary_input_reload_class, s390_plus_operand,
8416         s390_expand_plus_operand): Add prototypes.
8417
8418         config/s390/s390.c (s390_secondary_input_reload_class,
8419         s390_plus_operand, s390_expand_plus_operand): New functions.
8420
8421         (struct s390_address): New member 'pointer'.
8422         (s390_decompose_address): Compute it.
8423         (legitimate_la_operand_p): Use it.
8424         (legitimize_la_operand): New function.
8425         (movti, movdi, movdf splitters): Call it.
8426
8427         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8428         (PREDICATE_CODES): Add s390_plus_operand.
8429
8430         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8431         (la_ccclobber): Allow GENERAL_REGS as output operand.
8432
8433         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8434         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8435         (*la_64, *la_31, reload_indi, reload_insi): ... these.
8436
8437 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8438
8439         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8440         register names for regular asm () construct.
8441
8442 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8443
8444         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8445         registers.
8446
8447 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8448
8449         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8450         pat for recog.
8451
8452 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
8453
8454         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8455         constant pool to be identical by string address and index.
8456
8457 2002-02-04  Anthony Green  <green@redhat.com>
8458
8459         * output.h (SECTION_OVERRIDE): Define.
8460         * varasm.c (named_section): Obey SECTION_OVERRIDE.
8461
8462 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8463
8464         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8465         by existing arm*-*-netbsd* (a.out) target.
8466         (ns32k-*-netbsdelf*): Likewise.
8467         (sparc-*-netbsdelf*): Likewise.
8468         (vax-*-netbsdelf*): Likewise.
8469
8470 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
8471
8472         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8473         headers and libobjc headers.
8474
8475 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
8476
8477         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8478         (_mingw.h): Remove duplicate include.
8479
8480 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8481
8482         * config.gcc: Set cpu_type to m68k for 68010, as well.
8483         (m68010-*-netbsdelf*): New...
8484         (m68k*-*-netbsdelf*): ...targets.
8485         * config/m68k/netbsd-elf.h: New file.
8486
8487 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8488
8489         * config/h8300/h8300.c (hand_list): Move inside function_arg.
8490
8491 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8492
8493         * config/h8300/h8300.c (h8_push_ops): Move inside
8494         h8300_init_once.
8495         (h8_pop_ops): Likewise.
8496         (h8_move_ops): Likewise.
8497
8498 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8499
8500         * config/h8300/h8300.c (os_task): Make it static.
8501         (monitor): Likewise.
8502         (pragma_saveall): Likewise.
8503
8504 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
8505
8506         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8507         constant is a valid sign-extension for Pmode.
8508
8509 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8510
8511         * config/h8300/h8300.c: Fix formatting.
8512
8513 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8514
8515         * config/h8300/h8300.md: Fix formatting.
8516
8517 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8518
8519         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8520         predicates of operands[1].  Split the patterns for each
8521         processor variant.
8522
8523 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8524
8525         * config/h8300/h8300.md (xor patterns): Tighten the predicates
8526         of operands[1] to register_operand.
8527
8528 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8529
8530         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8531         * cpphash.c (_cpp_init_hashtable): Similarly.
8532         * cppinit.c (cpp_create_reader): Default the signed_char flag.
8533         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8534         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8535         (cpp_handle_option): Handle the new options.
8536         * cpplex.c (cpp_interpret_charconst): Use new flag.
8537         * cpplib.h (struct cpp_options): New member signed_char.
8538         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8539         (cpp_options): Handle -fsigned-char and -funsigned-char.
8540         (static_specs): Remove signed_char_spec.
8541         (do_spec1): Don't handle %c.
8542         * system.h: Poison SIGNED_CHAR_SPEC.
8543         * tradcif.y (yylex): Use flag_signed_char.
8544         * tradcpp.h (flag_signed_char): New.
8545         * tradcpp.c (flag_signed_char): New.
8546         (main): Handle new command-line options.
8547         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8548 config:
8549         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8550         * avr/avr.h: Remove old comments.
8551         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8552         (CC1_SPEC): Pass -fsigned-char if -mic*.
8553         (SIGNED_CHAR_SPEC): Remove.
8554 doc:
8555         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8556
8557 2002-02-01  Eric Christopher  <echristo@redhat.com>
8558
8559         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8560         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8561         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8562         (ASM_OUTPUT_REG_POP): Ditto.
8563
8564 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8565
8566         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8567         patch.
8568
8569 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8570
8571         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8572
8573 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8574
8575         PR c/5304:
8576         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8577         unconditionally.
8578
8579 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8580
8581         * cfganal.c: Include tm_p.h.
8582         (keep_with_call_p): Fix the test that determines if a register holds
8583         the return value of a call.
8584
8585 2002-02-01  DJ Delorie  <dj@redhat.com>
8586
8587         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8588         we are given conflicting registers, switch to the other one we
8589         had allocated for us.
8590         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8591         as TImode so we know when the "other" register is available.
8592
8593 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8594
8595         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8596         sparc/sparc_bi.h.
8597
8598 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8599
8600         * cfganal.c (keep_with_call_p): New function.
8601         (flow_call_edges_add): Prevent splitting a block between a call and
8602         a single-set instruction that should be kept in the same block.
8603
8604 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8605
8606         * doc/install.texi (avr): Update outdated URL.
8607
8608 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8609
8610         * config/stormy16/stormy16.md (pushqi): New.
8611         (popqi): New.
8612         (pushhi): New.
8613         (pophi): New.
8614         (movhi): Remove stack operands.
8615         (movqi): Likewise.
8616         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8617         nonimmediate_nonstack_operand.
8618         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8619         New.
8620         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8621         New.
8622
8623 2002-01-31  Jason Merrill  <jason@redhat.com>
8624
8625         * Makefile.in (c-parse.c): Handle .output file.
8626         * objc/Make-lang.in (objc-parse.c): Likewise.
8627
8628 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8629
8630         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8631         the -me[lb] option is given.  Don't output the default flag
8632         twice.
8633
8634 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8635
8636         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8637         the primary source file; this has not been done yet.
8638         * c-decl.c (c_expand_body): Reset input_filename from
8639         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8640
8641 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8642
8643         * rtlanal.c (subreg_regno_offset): Do not use
8644         SUBREG_REGNO_OFFSET.
8645         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8646         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8647
8648 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8649
8650         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8651         version rather than GNATS version in --version output.
8652
8653 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8654
8655         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8656         when copying back from a temporary.
8657
8658 2002-01-30  Richard Henderson  <rth@redhat.com>
8659
8660         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8661         and new_dest are the same.
8662
8663 2002-01-30  Richard Henderson  <rth@redhat.com>
8664
8665         PR opt/5076
8666         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8667         * rtl.c (note_insn_name): Update.
8668         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8669         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8670         to perform loop rotation.
8671         (expand_exit_loop_top_cond): New.
8672         * tree.h (expand_exit_loop_top_cond): Declare it.
8673         * c-semantics.c (genrtl_while_stmt): Use it.
8674         (genrtl_for_stmt): Likewise.
8675
8676 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8677
8678         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8679         arguments to 64-bit boundaries on 64-bit ABIs.
8680
8681 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8682
8683         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8684
8685 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8686
8687         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8688         invalid type.
8689
8690 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8691
8692         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8693         * config/sparc/sparc_bi.h: Remove file.
8694         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8695
8696 2002-01-30  Richard Henderson  <rth@redhat.com>
8697
8698         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8699
8700 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8701
8702         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8703
8704 2002-01-30  Jason Merrill  <jason@redhat.com>
8705
8706         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8707         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8708         (reg_save): Use DW_CFA_offset_extended_sf instead.
8709
8710         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8711
8712 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8713
8714         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8715         in cselib_lookup.
8716
8717 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8718
8719         * rs6000.md ("*call_value_local32"): Remove constraints.
8720         ("*call_value_local64"): Same.
8721         ("*call_value_indirect_nonlocal_aix32"): Same.
8722         ("*call_value_nonlocal_aix32"): Same.
8723         ("*call_value_indirect_nonlocal_aix64"): Same.
8724         ("*call_value_nonlocal_aix64"): Same.
8725         ("*call_value_nonlocal_sysv"): Same.
8726
8727 2002-01-29  Richard Henderson  <rth@redhat.com>
8728
8729         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8730
8731 2002-01-29  Richard Henderson  <rth@redhat.com>
8732
8733         * expr.c (force_operand): Ignore flag_pic for detecting pic
8734         address loads.
8735         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8736         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8737         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8738         instead of open-coded loop.
8739         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8740         be fixed when in use.
8741
8742 2002-01-29  Richard Henderson  <rth@redhat.com>
8743
8744         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8745         * sched-rgn.c (propagate_deps): Update them.
8746         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8747         clobbers list when either gets too long.
8748
8749 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8750
8751         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8752         and INDEX_REGS the same as GENERAL_REGS.
8753         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8754
8755 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8756
8757         * tree.c (build_nonstandard_integer_type): Correct prototype.
8758
8759 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8760
8761         * config/s390/s390.md (movstrsico, movstrdix_64,
8762         movstrsix_31): Remove, replace by ...
8763         (movstrdi_short, movstrsi_short, movstrdi_long,
8764         movstrsi_long): ... these.  New.
8765         (movstrdi, movstrsi): Adapt.
8766
8767         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8768         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8769         Remove unnecessary CC clobber.
8770         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8771         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8772
8773         (divmoddi4): Don't partially initialize TImode register.
8774
8775 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8776
8777         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8778
8779 2002-01-29  Richard Henderson  <rth@redhat.com>
8780
8781         * flow.c (print_rtl_and_abort): Remove.
8782         (print_rtl_and_abort_fcn): Remove.
8783         (verify_local_live_at_start): Use dump_bb instead.
8784         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8785         (verify_wide_reg_1): Return 2 on mode test failure.
8786
8787 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8788
8789         PR c/3325, c/3326, c/2511, c/3347
8790         * c-decl.c (enum_decl_context): Remove BITFIELD.
8791         (grokdeclarator): Take bitfield width as an input.
8792         Ensure bitfields are given the correct type.  Perform
8793         bitfield width validation with build_bitfield_integer_type
8794         rather than waiting for finish_struct.
8795         (grok_typename, grok_typename_in_parm_context, start_decl,
8796         push_parmdecl, grokfield, start_function): Update calls to
8797         grokdeclarator.
8798         (build_bitfield_integer_type): New function.
8799         (finish_struct): Move bitfield validation to grokdeclarator
8800         and build_bitfield_integer_type.
8801         * tree.c (build_nonstandard_integer_type): New function.
8802         * tree.h (build_nonstandard_integer_type): New prototype.
8803 objc:
8804         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8805
8806 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8807
8808         PR other/1502:
8809         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8810         don't ignore unrecognized -W* options.
8811         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8812         * cpplib.h (cpp_handle_option): Adjust prototype.
8813         * c-decl.c (c_decode_options): Pass 0 as last argument to
8814         cpp_handle_option.
8815
8816         PR c/2896:
8817         * gcc.c (cpp_unique_options): Split from cpp_options.
8818         (cpp_options): Source cpp_unique_options.
8819         (default_compilers): Use cpp_unique_options instead of cpp_options
8820         when used together with cc1_options.
8821         (static_specs): Add cpp_unique_options.
8822         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8823         when used together with cc1_options.
8824
8825 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8826
8827         * config/h8300/h8300-protos.h: Update the prototype of
8828         output_a_shift.
8829         * config/h8300/h8300.c (output_a_shift): Remove an unused
8830         argument 'insn'.  Remove redundant code.
8831         * config/h8300/h8300.md: Adust to the new prototype of
8832         output_a_shift.
8833
8834 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8835
8836         * config/h8300/h8300-protos.h: Update the prototypes of
8837         emit_a_rotate and expand_a_rotate.
8838         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8839         first argument to 'enum rtx_code'.
8840         (expand_a_rotate): Likewise.
8841
8842 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8843
8844         * config/h8300/h8300-protos.h: Update the prototype of
8845         output_simode_bld.
8846         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8847         'log2'.
8848         * config/h8300/h8300.md: Adjust to the new prototype.
8849
8850 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8851
8852         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8853         redundant code.
8854
8855 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8856
8857         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8858         is a fixed register before returning pic_offset_table_rtx.
8859         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8860         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8861
8862 2002-01-28  Jason Merrill  <jason@redhat.com>
8863
8864         * dwarf2.h: Sync with src version.
8865
8866 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8867
8868         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8869         BT_FN_VOID_PTR_VAR.
8870         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8871         * doc/extend.texi (__builtin_prefetch): Update documentation:
8872         first argument is now const void ptr.
8873
8874 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8875
8876         * config/h8300/h8300-protos.h: Remove an unused prototype.
8877
8878 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8879
8880         * toplev.c (lang_independent_init): Round up identifier size.
8881
8882 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8883
8884         * config.gcc: Revert previous change.
8885
8886 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8887
8888         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8889
8890 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8891
8892         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8893         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8894         other non-elf netbsd config frags.
8895         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8896         collect2 will does that.
8897         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8898         shared-lib frobbing will work.
8899
8900 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8901
8902         * config/h8300/h8300.h: Fix formatting.
8903         * config/h8300/h8300.md: Likewise.
8904
8905 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8906
8907         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8908         the old, removed AAA_standards fix.
8909         * fixinc/fixincl.x: Rebuilt.
8910
8911 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8912
8913         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8914         atexit call in crtbegin, hooked in after call to frame_dummy;
8915         register EH before registering __fini__start.
8916
8917 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8918
8919         * config/rs6000/altivec.h: Remove spurious semicolons.
8920
8921 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8922
8923         * config/h8300/h8300.md: Replace dead bit extraction patterns
8924         with ones that work.
8925
8926 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8927
8928         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8929         if not STRICT_ALIGNMENT.
8930         * rtl.h (MEM_ALIGN): Likewise.
8931
8932 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8933
8934         * doc/invoke.texi (-fdump-translation-unit): Revert this
8935         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8936
8937 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8938
8939         * config/h8300/h8300.md (define_constants): New.
8940         (anonymous patterns) Use defined constants appropriately.
8941
8942 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8943
8944         * config/h8300/h8300.c (function_arg): Remove redundant code.
8945
8946 2002-01-26  Richard Henderson  <rth@redhat.com>
8947
8948         * sched-deps.c (reg_pending_uses_head): New.
8949         (reg_pending_barrier): Rename from reg_pending_sets_all.
8950         (find_insn_list): Don't mark inline.
8951         (find_insn_mem_list): Remove.
8952         (add_dependence_list, add_dependence_list_and_free): New.
8953         (flush_pending_lists): Replace only_write param with separate
8954         for_read and for_write parameters.  Update all callers.  Use
8955         add_dependence_list_and_free.
8956         (sched_analyze_1): Do not add reg dependencies here; just set
8957         the pending bits.  Use add_dependence_list.
8958         (sched_analyze_2): Likewise.
8959         (sched_analyze_insn): Replace schedule_barrier_found with
8960         reg_pending_barrier.  Add all dependencies for pending reg
8961         uses, sets, and clobbers.
8962         (sched_analyze): Don't add reg dependencies for calls, just
8963         set pending bits.  Use regs_invalidated_by_call.  Treat
8964         sched_before_next_call as a normal list, not a fake insn.
8965         (init_deps): No funny init for sched_before_next_call.
8966         (free_deps): Free pending mems lists.  Don't zero reg_last.
8967         (init_deps_global): Init reg_pending_uses.
8968         (finish_deps_global): Free it.
8969         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8970         (find_insn_mem_list): Remove.
8971         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8972         (propagate_deps): Use them.  Zero temp mem lists.
8973
8974 2002-01-26  Richard Henderson  <rth@redhat.com>
8975
8976         * Makefile.in (CRTSTUFF_CFLAGS): New.
8977         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8978         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8979         crtstuff.c instead of alpha assembly version.
8980         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8981         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8982         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8983         (__do_global_dtors_aux): Mark used.
8984         (frame_dummy, __do_global_ctors_aux): Mark used.
8985         (fini_dummy, init_dummy): Remove.
8986
8987         * config/alpha/crtbegin.asm: Remove file.
8988         * config/alpha/crtend.asm: Remove file.
8989         * config/alpha/t-crtbe: Remove file.
8990         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8991         (LINK_EH_SPEC): New.
8992
8993         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8994         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8995         calling constructors.
8996         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8997
8998         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8999         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9000         CRT_END_INIT_DUMMY hack.
9001         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9002         FORCE_{INIT,FINI}_SECTION_ALIGN.
9003
9004         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9005         FORCE_{INIT,FINI}_SECTION_ALIGN.
9006
9007         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9008         invocation sequence.
9009         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9010
9011         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9012         (FORCE_CODE_SECTION_ALIGN): New.
9013
9014 2002-01-26  Richard Henderson  <rth@redhat.com>
9015
9016         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9017
9018 2002-01-26  Richard Henderson  <rth@redhat.com>
9019
9020         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9021         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9022
9023 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9024
9025         * config/h8300/h8300.md: Remove bit extraction patterns that
9026         cannot be triggered.
9027         Restrict each bit extraction pattern to a variant on which the
9028         pattern is tested.
9029
9030 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
9031
9032         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9033
9034 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9035
9036         * config/h8300/h8300.md: Remove bit test patterns that cannot
9037         be triggered.
9038         Restrict each bit test pattern to a variant on which the
9039         pattern is tested.
9040
9041 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9042
9043         * builtins.c (expand_builtin_strncat): Remove redundant check for
9044         INTEGER_CST.
9045
9046 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9047
9048         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9049         default setting.
9050         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9051         existing setting.
9052
9053 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9054
9055         * dbxout.c (dbxout_init): Use assemble_name rather than just
9056         stripping off the first character.
9057         (dbxout_source_file): Likewise.
9058
9059 2002-01-25  DJ Delorie  <dj@redhat.com>
9060
9061         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9062         using rtx_equal_p, not by comparing pointers.
9063
9064 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
9065
9066         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9067         for PIC_OFFSET_TABLE_REGNUM.
9068         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9069
9070 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9071
9072         * config.gcc (x86_64-*-freebsd*): New target.
9073         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9074         value.
9075         (i[34567]86-*-freebsd*): Don't include svr4.h.
9076         * config/i386/freebsd64.h: New file.
9077
9078 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
9079
9080         * config/alpha/x-vms (version): Make static.
9081
9082         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9083         in previous checkin.
9084
9085         * Makefile.in (install-headers-cp): New target.
9086         * config.gcc (alpha-dec-*vms*): Install headers with
9087         install-headers-cp
9088
9089 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9090
9091         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9092         avoid it's copies.
9093
9094 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9095
9096         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9097         of compare_tree_int.
9098         (expand_builtin_strncat): Likewise.
9099         * c-decl.c (finish_struct): Use tree_low_cst.
9100         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9101         * tree.c (compare_tree_int): Likewise.
9102
9103 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
9104
9105         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9106         adjustments even if they are implemented by more than two insns.
9107
9108 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9109
9110         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9111         * df.h (struct ref): Kill B.
9112         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9113
9114         * basic-block.h (PROP_EQUAL_NOTES): New flag.
9115         * flow.c (propagate_one_insn): Use it.
9116         (mark_used_regs): Handle NIL.
9117
9118 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9119
9120         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9121         to help folding.
9122
9123 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
9124
9125         * rs6000.md (prefetch): Make address V4SI mode so that the address
9126         is restricted to legitimate form for instruction.
9127
9128 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
9129
9130         * doc/install.texi (xtensa-*-elf): New target.
9131         (xtensa-*-linux*): New target.
9132         * doc/contrib.texi: Add myself.
9133
9134 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
9135
9136         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9137         purpose register to hold an SImode (or smaller) value.
9138
9139 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
9140
9141         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9142         registry only.
9143         * crtstuff.c: Likewise.
9144
9145 2002-01-25  Kazu Hirata  <kazu@hxi.com>
9146
9147         * config/h8300/h8300.md (negation patterns): Tighten
9148         predicates to register_operand.
9149
9150 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
9151
9152         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9153         mode, not Pmode.
9154
9155         * builtins.c (expand_builtin_prefetch): Same.
9156
9157 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9158
9159         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9160         modes.
9161
9162 2002-01-24  Kazu Hirata  <kazu@hxi.com>
9163
9164         * config/h8300/h8300.c (print_operand): Remove support for
9165         operand character 'A'.
9166         * config/h8300/h8300.md (three anonymous patterns): Replace
9167         operand character 'A' with either 'T' or 'S'.
9168
9169 2002-01-24  Kazu Hirata  <kazu@hxi.com>
9170
9171         * config/h8300/h8300.c (print_operand): Remove support for
9172         operand character 'U'.
9173
9174 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
9175
9176         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9177
9178 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
9179
9180         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9181         values to be assigned to the stack pointer.
9182
9183 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9184
9185         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9186         to const_double needs to be done right for big-endian systems.
9187
9188 2002-01-24  Jason Merrill  <jason@redhat.com>
9189
9190         PR c++/2432
9191         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9192         to can_throw_internal.
9193
9194 2002-01-23  Richard Henderson  <rth@redhat.com>
9195
9196         * fold-const.c (fold): Change UINT_MAX test to check vs precision
9197         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
9198
9199 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9200
9201         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9202         (symGOT2reg): Use them, then set as GOT value as unchanging.
9203         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
9204         as a temporary, if possible.
9205         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
9206         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9207
9208 2002-01-23  Kazu Hirata  <kazu@hxi.com>
9209
9210         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9211         accept to accept 0x80 as operands[2].
9212
9213 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9214
9215         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9216
9217 2002-01-23  Richard Henderson  <rth@redhat.com>
9218
9219         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9220
9221 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
9222
9223         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9224         (parmlist_or_identifiers_1): Verify that only a parmlist follows
9225         an attribute.
9226
9227 2002-01-23  Richard Henderson  <rth@redhat.com>
9228
9229         * expr.c (move_by_pieces_1): Extend size before negation.
9230
9231         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9232         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9233         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9234         * config/m68k/t-m68kelf: Likewise.
9235
9236 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
9237
9238         * config/xtensa/elf.h: New file.
9239         * config/xtensa/lib1funcs.asm: New file.
9240         * config/xtensa/lib2funcs.S: New file.
9241         * config/xtensa/linux.h: New file.
9242         * config/xtensa/t-xtensa: New file.
9243         * config/xtensa/xtensa-config.h: New file.
9244         * config/xtensa/xtensa-protos.h: New file.
9245         * config/xtensa/xtensa.c: New file.
9246         * config/xtensa/xtensa.h: New file.
9247         * config/xtensa/xtensa.md: New file.
9248         * config.gcc (xtensa-*-elf*): New target.
9249         (xtensa-*-linux*): New target.
9250         * cse.c (canon_hash): Compare rtx pointers instead of register
9251         numbers.  This is required for the Xtensa port.
9252         * integrate.c (copy_insn_list): Handle case where the static
9253         chain is in memory and the memory address has to be copied to
9254         a register.
9255         * doc/invoke.texi (Option Summary): Add Xtensa options.
9256         (Xtensa Options): New node.
9257         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9258
9259 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
9260
9261         * diagnostic.c (internal_error): Do ICE suppression only
9262         when ENABLE_CHECKING is not defined.
9263
9264         * c-typeck.c (require_complete_type): Return error_mark_node
9265         if type is error_mark_node.
9266
9267 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
9268
9269         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9270         -Os and issue a warning.
9271
9272 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
9273
9274         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9275         current (lack of) need for host configuration by hand.
9276
9277         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9278         references.  Documentation of some target macros moved from
9279         hostconfig.texi to tm.texi.
9280
9281 2002-01-23  Will Cohen  <wcohen@redhat.com>
9282
9283         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9284         defined.
9285
9286 2002-01-23  Kazu Hirata  <kazu@hxi.com>
9287
9288         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9289         operand[3].
9290
9291 2002-01-23  Jason Merrill  <jason@redhat.com>
9292
9293         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9294
9295         * function.c (assign_parms): Don't put args of inline functions
9296         into registers when not optimizing.
9297
9298 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
9299
9300         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9301         (prologue_use): New pattern.
9302         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9303         preference to gen_rtx_USE.
9304         (thumb_expand_prologue): Use gen_prologue_use in preference to
9305         gen_rtx_USE.
9306         (thumb_expand_epilogue): Use gen_prologue_use in preference to
9307         gen_rtx_USE.
9308
9309 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
9310
9311         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9312
9313 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9314
9315         PR c/3504
9316         * doc/extend.texi: Correct documentation of __alignof__.
9317
9318 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
9319
9320         * params.h: Rename arguments of DEFPARAM so that it will be
9321         recognized as a translation keyword.
9322
9323 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9324
9325         * extend.texi: Document altivec functions.
9326         Fix N-bit adjectives in X86 builtin documentation.
9327
9328 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
9329
9330         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9331         auto_inc_dec values.
9332
9333 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
9334
9335         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9336         after backslash.
9337         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9338
9339 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
9340
9341         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9342
9343 2002-01-22  Richard Henderson  <rth@redhat.com>
9344
9345         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9346         copy_insn not copy_rtx.
9347
9348 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
9349
9350         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9351         "nonzero" as that might add "1" bits.  Ensure "constop" is
9352         properly sign extened.
9353         (force_to_mode): Tweak for sign extended constop.
9354
9355 2002-01-22  Richard Henderson  <rth@redhat.com>
9356
9357         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9358         for_each_rtx instead of assuming we're already looking at the MEM.
9359         (split_small_symbolic_mem_operand): Likewise.
9360         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9361         * config/alpha/alpha.md (small symbolic memory splitters): Update.
9362
9363 2002-01-22  Richard Henderson  <rth@redhat.com>
9364
9365         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9366         sequence number for the literal.
9367         (divmoddi_internal_er): Likewise.
9368
9369 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9370
9371         PR java/4972
9372         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9373         in LIBICONV variable.
9374         * configure: Regenerated.
9375
9376 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
9377
9378         * dependence.c (build_def_use): Remove array_idx.
9379
9380         * dwarfout.c (last_filename): Remove.
9381         (output_compile_unit_die): Remove last_filename.
9382
9383 2002-01-22  Roger Sayle  <roger@eyesopen.com>
9384             Richard Henderson  <rth@redhat.com>
9385
9386         PR opt/3640
9387         * fold-const.c (fold): Optimize unsigned comparisons against
9388         UINT_MAX (and similar unsigned constants).
9389
9390 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
9391
9392         * Makefile.in (loop.o): Depend on OPTABS_H.
9393         * loop.c (emit_prefetch_instructions): Check the prefetch operand
9394         against the predicate.
9395
9396         PR target/5379
9397         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9398         for the address operand.
9399
9400 2002-01-22  Richard Henderson  <rth@redhat.com>
9401
9402         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9403
9404 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9405
9406         PR other/5450
9407         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9408         preprocessor flags.
9409
9410 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
9411
9412         * config.gcc (x86_64-*-netbsd*): New target.
9413         * config/i386/netbsd64.h: New file.
9414
9415 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9416
9417         * regrename.c (kill_value): Fix typo.
9418
9419 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9420
9421         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9422
9423         * config/rs6000/rs6000.h: Same.
9424
9425         * function.c (instantiate_virtual_regs): Remove
9426         STARTING_FRAME_PHASE.
9427         (assign_stack_local_1): Same.
9428         Calculate frame phase.
9429
9430 2002-01-22  Nick Clifton  <nickc@redhat.com>
9431
9432         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9433         variable declaration to outer scope in order to simplify
9434         future extensions.
9435         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9436         arm_hard_regno_mode_ok.
9437         * config/arm/arm-protos.h: Add a prototype for
9438         arm_hard_regno_mode_ok.
9439         * config/arm/arm.c (soft_df_operand): Remove now redundant
9440         check for DImode values using IP_REGNUM.
9441         (nonimmediate_soft_df_operand): Remove now redundant check for
9442         DImode values using IP_REGNUM.
9443         (arm_hard_regno_mode_ok): New function. New check: make sure
9444         that DImode values are not stored in IP_REGNUM.
9445
9446         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9447         note with a USE.
9448         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9449
9450 2002-01-22  Jason Merrill  <jason@redhat.com>
9451
9452         * c-semantics.c (genrtl_compound_stmt): Only check nesting
9453         consistency if this COMPOUND_STMT is scoped.
9454
9455 2002-01-22  Kazu Hirata  <kazu@hxi.com>
9456
9457         * predict.c: Fix formatting.
9458         * print-tree.c: Likewise.
9459         * protoize.c: Likewise.
9460         * real.h: Likewise.
9461         * rtl.h: Likewise.
9462         * sbitmap.h: Likewise.
9463         * scan.c: Likewise.
9464         * sched-deps.c: Likewise.
9465         * sched-vis.c: Likewise.
9466         * sdbout.c: Likewise.
9467         * sibcall.c: Likewise.
9468         * ssa.c: Likewise.
9469         * ssa-ccp.c: Likewise.
9470         * ssa-dce.c: Likewise.
9471         * stmt.c: Likewise.
9472         * stor-layout.c: Likewise.
9473         * system.h: Likewise.
9474
9475 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9476
9477         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9478         if fits in bounds of base type.
9479
9480         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9481         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9482         (add_bound_info, default): If can't find a context, make a
9483         SAVE_EXPR.
9484         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9485
9486 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
9487
9488         * c-typeck.c (parser_build_binary_op): If result from
9489         build_binary_op is ERROR_MARK just return error_mark_node without
9490         further processing.
9491
9492 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
9493
9494         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9495         Split a.out-specific bits into...
9496         * config/netbsd-aout.h: ...this.
9497         * config/netbsd-elf.h: New file.
9498         * config/alpha/netbsd-elf.h: Remove.
9499         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9500         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9501         (STARTFILE_SPEC): Remove redundant definition.
9502         (ENDFILE_SPEC): Likewise.
9503         (LINK_SPEC): Likewise.
9504         (CPP_SPEC): Likewise.
9505         (ASM_SPEC): Likewise.
9506         (LIB_SPEC): Likewise.
9507         (SWITCH_TAKES_ARG): Likewise.
9508         (TARGET_MEM_FUNCTIONS): Likewise.
9509         (CPP_PREDEFINES): Redefine.
9510         (ASM_FINAL_SPEC): Remove redefinition.
9511         (ASM_COMMENT_START): Redefine.
9512         (FUNCTION_PROFILER): Define.
9513         (TARGET_VERSION): Redefine.
9514         Comment and formatting cleanup.
9515         * config/i386/netbsd.h: Include <netbsd-aout.h>.
9516         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9517         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9518         big- or little-endian.
9519         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9520         * config.gcc (*-*-netbsd*): Add definitions common to all
9521         NetBSD configs.
9522         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9523         gnu_ld definitions.  Add netbsd-elf.h to and remove
9524         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
9525         tmake_file, and don't lose previous tmake_file contents.
9526         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9527         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9528         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
9529         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9530         (mipsel-*-netbsd*): Rename this to...
9531         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
9532         mips/little.h to tm_file for mips*el-*.
9533         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9534         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9535         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9536
9537 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9538
9539         * pa-protos.h (reg_before_reload_operand): New function prototype.
9540         * pa.c (reg_before_reload_operand): New function implementation.
9541         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
9542         contraints to "*m".
9543
9544 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9545
9546         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9547
9548 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9549
9550         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9551         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9552         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9553         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9554         (ENDFILE_SPEC): Undefine.
9555         (STARTFILE_SPEC): Redefine for PA.
9556
9557 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9558
9559         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9560
9561 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
9562
9563         * config.gcc: Add entries to supported PowerPC --with-cpu
9564         types.
9565
9566 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
9567
9568         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9569         true for 64-bit mode only SSE registers in 32-bit mode.
9570
9571 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9572
9573         * unwind-dw2.c: Fix formatting.
9574         * unwind-dw2-fde.c: Likewise.
9575         * unwind-dw2-fde.h: Likewise.
9576         * unwind-pe.h: Likewise.
9577         * varasm.c: Likewise.
9578         * varray.h: Likewise.
9579
9580 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9581
9582         Remove workaround for register stack overwrite bug in mmix.
9583         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9584         support for TARGET_REG_STACK_FILL_BUG.
9585         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9586         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9587         Delete.
9588         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9589         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9590         -mno-reg-stack-fill-bug-workaround.
9591         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9592         machine member has_call_without_parameters.
9593         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9594         -mreg-stack-fill-bug-workaround and
9595         -mno-reg-stack-fill-bug-workaround.
9596         (MMIX Options): Ditto.
9597
9598 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9599
9600         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9601         as appropriate.
9602         Remove redundant code.
9603
9604 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9605
9606         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9607         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9608         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9609         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9610         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9611         out target macro definitions and non-target-specific comments
9612         mostly taken from old versions of the manual.
9613
9614 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9615
9616         * config/h8300/h8300.h: Fix comment formatting.
9617         * config/ia64/aix.h: Likewise.
9618         * config/ia64/ia64-protos.h: Likewise.
9619         * config/ia64/ia64.c: Likewise.
9620         * config/ia64/ia64.h: Likewise.
9621         * config/ia64/ia64intrin.h: Likewise.
9622         * config/ia64/linux.h: Likewise.
9623         * config/ia64/unwind-aix.c: Likewise.
9624         * config/ia64/unwind-ia64.c: Likewise.
9625
9626 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9627
9628         * config/h8300/h8300.c: Revise comments about shift code.
9629
9630 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9631
9632         * config/h8300/h8300.c (function_arg): Update a comment.
9633
9634 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9635
9636         * config/h8300/h8300.md: Update the comments at the beginning
9637         of the file.
9638
9639 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9640
9641         * config/i370/i370.c: Fix comment formatting.
9642         * config/i370/i370.h: Likewise.
9643         * config/i370/i370.md: Likewise.
9644         * config/i370/linux.h: Likewise.
9645
9646 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9647
9648         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9649
9650         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9651         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9652         in incomplete case.
9653
9654 2002-01-20  Graham Stott  <grahams@redhat.com>
9655
9656         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9657
9658 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9659
9660         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9661
9662 2002-01-19  Tom Rix  <trix@redhat.com>
9663
9664         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9665
9666 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9667
9668         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9669
9670         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9671         STARTING_FRAME_PHASE.
9672         (STARTING_FRAME_PHASE): New.
9673         (instantiate_virtual_regs): Check saneness of
9674         STARTING_FRAME_PHASE.
9675
9676         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9677
9678 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9679
9680         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9681
9682 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9683
9684         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9685         be used for bootstrapping GCC 3.0.
9686
9687 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9688
9689         * config/h8300/h8300.md: Fix an insn length.
9690
9691 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9692
9693         * bitmap.h: Fix comment formatting.
9694         * combine.c: Likewise.
9695         * cppfiles.c: Likewise.
9696         * c-pragma.h: Likewise.
9697         * c-typeck.c: Likewise.
9698         * df.c: Likewise.
9699         * dwarf2out.c: Likewise.
9700         * function.c: Likewise.
9701         * gcc.c: Likewise.
9702         * genattrtab.c: Likewise.
9703         * gthr-win32.h: Likewise.
9704         * haifa-sched.c: Likewise.
9705         * predict.c: Likewise.
9706         * rtlanal.c: Likewise.
9707         * rtl.h: Likewise.
9708         * unwind-dw2-fde.h: Likewise.
9709         * unwind-pe.h: Likewise.
9710         * vmsdbgout.c: Likewise.
9711
9712 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9713
9714         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9715         if type_required and passed decl.
9716
9717 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9718
9719         * config.gcc (cpu_type): Include altivec.h in powerpc
9720         extra_headers.
9721         Same for darwin.
9722
9723         * config/rs6000/altivec.h: New.
9724
9725 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9726
9727         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9728         handling information.
9729         * doc/trouble.texi (Interoperation): Add libstdc++ information
9730         for AIX.
9731         (Misunderstandings): Add template instantiation and static template
9732         member information for AIX.
9733
9734 2002-01-17  Jason Merrill  <jason@redhat.com>
9735
9736         * dbxout.c (dbxout_type): Support const and volatile.
9737
9738         * except.c (add_partial_entry): Remove backwards compatibility code.
9739         (end_protect_partials): Likewise.
9740
9741 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9742
9743         * config/ia64/ia64.md (prologue_use): New.
9744         * config/ia64/ia64.c (ia64_expand_prologue): Use
9745         gen_prologue_use instead of gen_rtx_USE.
9746         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9747         as CODE_FOR_pred_rel_mutex.
9748         (ia64_sched_reorder2): Likewise.
9749
9750 2002-01-16  Eric Christopher  <echristo@redhat.com>
9751
9752         * config/mips/r3900.h: Reformat.
9753         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9754         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9755         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9756         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9757         * config/mips/t-elf: Remove mips3 multilib.
9758
9759 2002-01-16  H.J. Lu <hjl@gnu.org>
9760
9761         * config/mips/linux.h: Include "mips/abi64.h".
9762
9763 2002-01-16  H.J. Lu <hjl@gnu.org>
9764
9765         * config/mips/t-linux: New.
9766
9767         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9768
9769         * config/mips/linux.h: Don't include "gofast.h".
9770         (INIT_SUBTARGET_OPTABS): Removed.
9771
9772 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9773
9774         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9775         output_a_shift.
9776         * config/h8300/h8300.c: Likewise.
9777         * config/h8300/h8300.md: Likewise.
9778
9779 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9780
9781         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9782         spaces after an opcode name.
9783         (pushqi1_h8300hs): Likewise.
9784         (pushhi1_h8300hs): Likewise.
9785
9786 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9787
9788         * doc/extend.texi: Replace "option" with "attribute"
9789         appropriately.
9790
9791 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9792
9793         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9794         (and:DI () (const_int -8)).
9795         (split_small_symbolic_mem_operand): Split
9796         (mem (and:DI () (const_int -8)).
9797
9798 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9799
9800         PR target/5309:
9801         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9802         same way as TYPE_IMUL.
9803         (ultrasparc_sched_reorder): Likewise.
9804         * config/sparc/sparc.md (type): Add comment to update
9805         ultrasparc_sched_reorder when making changes.
9806
9807 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9808
9809         * doc/invoke.texi: Change the dump file name of block
9810         reordering pass from 28.bbro to 29.bbro.
9811         Mention -dk option.
9812
9813 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9814
9815         * i386.md (minsf splitter): Fix pasto.
9816
9817 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9818
9819         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9820         to frame pointer initialisation instruction.
9821         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9822         initialisation instruction.
9823         (soft_df_operand): Do not accept the IP register.
9824         (nonimmediate_soft_df_operand): Do not accept the IP register.
9825
9826 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9827
9828         PR target/5357:
9829         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9830         MASK_V8 being both set.
9831
9832 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9833
9834         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9835         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9836         config/s390/s390.md (call, call_value): Add GOT register to
9837         CALL_INSN_FUNCTION_USAGE where needed.
9838         (call_exp, call_value_exp): New.
9839
9840 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9841
9842         * config/arm/arm.c: General formatting tidy up.
9843
9844 2002-01-16  Graham Stott  <grahams@redhat.com>
9845
9846         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9847         cast and when casting an integer literal to "rtx" pointer.
9848         (expand_call): Likewise.
9849         * flow.c (try_pre_increment): Likewise.
9850         (find_use_as_address): Likewise.
9851         * integrate.c (expand_iline_function): Likewise.
9852         * regmove.c (try_auto_increment): Likewise.
9853
9854 2002-01-16  Graham Stott  <grahams@redhat.com>
9855
9856         * sched-rgn.c (passed): Use sbitmap_free.
9857         (header): Likewise.
9858         (inner): Likewise.
9859         (in_queue): Likewise.
9860         (in_stack): Likewise.
9861
9862 2002-01-15  Eric Christopher  <echristo@redhat.com>
9863
9864         * flow.c (propagate_one_insn): Change to use fatal_insn.
9865
9866 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9867
9868         * expmed.c (extract_fixed_bit_field): Remove unused code.
9869         * system.h: Poison SLOW_ZERO_EXTEND.
9870         * doc/tm.texi: Remove.
9871         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9872         * config/arm/arm.h: Likewise.
9873         * config/avr/avr.h: Likewise.
9874         * config/clipper/clipper.h: Likewise.
9875         * config/convex/convex.h: Likewise.
9876         * config/d30v/d30v.h: Likewise.
9877         * config/dsp16xx/dsp16xx.h: Likewise.
9878         * config/elxsi/elxsi.h: Likewise.
9879         * config/fr30/fr30.h: Likewise.
9880         * config/h8300/h8300.h: Likewise.
9881         * config/i370/i370.h: Likewise.
9882         * config/i386/i386.h: Likewise.
9883         * config/m68k/m68k.h: Likewise.
9884         * config/mips/mips.h: Likewise.
9885         * config/ns32k/ns32k.h: Likewise.
9886         * config/pdp11/pdp11.h: Likewise.
9887         * config/pj/pj.h: Likewise.
9888         * config/s390/s390.h: Likewise.
9889         * config/sh/sh.h: Likewise.
9890         * config/stormy16/stormy16.h: Likewise.
9891         * config/v850/v850.h: Likewise.
9892         * config/vax/vax.h: Likewise.
9893         * config/we32k/we32k.h: Likewise.
9894
9895 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9896
9897         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9898         (altivec_lvsl): Change constraint to b.
9899         (altivec_lvsr): Same.
9900         (altivec_lvebx): Same.
9901         (altivec_lvehx): Same.
9902         (altivec_lvewx): Same.
9903         (altivec_lvxl): Same.
9904         (altivec_lvx): Same.
9905         (altivec_stvx): Add parallel.
9906         (altivec_stvxl): Same.
9907         (altivec_stvehx): Same.
9908         (altivec_stvebx): Same.
9909         (altivec_stvebx): Same.
9910
9911 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9912
9913         * config.gcc: Change altivec.h to altivec-defs.h.
9914
9915         * config/rs6000/altivec.h: Delete.
9916
9917         * config/rs6000/altivec-defs.h: Add.
9918
9919 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9920
9921         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9922         and UMOD modes.
9923
9924         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9925         less than or equal to eight bytes.
9926
9927         * vax.md (andsi3): Remove constraints and change SET destination
9928         operand type to nonimmediate_operand.
9929         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9930         when it is a CONST_INT.
9931
9932 2002-01-15  Jason Merrill  <jason@redhat.com>
9933
9934         * c-common.def (FILE_STMT): New code.
9935         * c-common.c (statement_code_p): It's a statement.
9936         * c-common.h (stmt_tree_s): Add x_last_filename.
9937         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9938         (last_expr_filename): New macro.
9939         * c-semantics.c (begin_stmt_tree): Initialize it.
9940         (add_stmt): If the filename changed, also insert a
9941         FILE_STMT.
9942         (expand_stmt): Handle seeing one.
9943
9944 2002-01-15  Eric Christopher  <echristo@redhat.com>
9945
9946         * flow.c (propagate_one_insn): Add error message and print out
9947         insn for debugging.
9948
9949 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9950
9951         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9952         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9953         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9954         TRAMPOLINE_ALIGNMENT.
9955         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9956         to be in bits.
9957         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9958         PCC_BITFIELD_TYPE_MATTERS.
9959         * config/interix.h (STDC_VALUE): Remove.  Use
9960         STDC_0_IN_SYSTEM_HEADERS.
9961         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9962         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9963         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9964
9965 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9966
9967         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9968         not work on this platform currently.
9969
9970 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9971
9972         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9973         readonly_warning in _().
9974
9975 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9976
9977         * gcc.c (delete_if_ordinary): Backout previous change.
9978
9979 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9980
9981         * config/h8300/h8300.c (print_operand): Remove support for
9982         unused operand characters.
9983
9984         * read-rtl.c: Fix formatting.
9985         * real.c: Likewise.
9986         * recog.c: Likewise.
9987         * regclass.c: Likewise.
9988         * regmove.c: Likewise.
9989         * reg-stack.c: Likewise.
9990         * reload1.c: Likewise.
9991         * rtlanal.c: Likewise.
9992
9993 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9994
9995         * config/i386/i386.c: Fix formatting.
9996
9997 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9998
9999         * c-typeck.c (process_init_element): Don't save_expr
10000         COMPOUND_LITERAL_EXPR if just its initializer will be used.
10001
10002 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
10003
10004         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10005         emit optional traceback table if optimize_size or TARGET_ELF.
10006         * config/rs6000/rs6000.md (prefetch): New.
10007
10008 2002-01-15  Andreas Jaeger  <aj@suse.de>
10009
10010         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10011
10012 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10013
10014         * mips-tfile.c: Fix formatting.
10015
10016 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10017
10018         * unroll.c (final_reg_note_copy): Fix previous commit.
10019
10020 2002-01-14  Kazu Hirata  <kazu@hxi.com>
10021
10022         * config/h8300/h8300-protos.h: Remove the prototype for
10023         eq_operator.
10024         * config/h8300/h8300.c (eq_operator): Remove.
10025
10026 2002-01-14  Richard Henderson  <rth@redhat.com>
10027
10028         * config/i386/i386.md (prefetch): Tidy.
10029         (prefetch_3dnow): Fix locality operand.
10030
10031 2002-01-14  Richard Henderson  <rth@redhat.com>
10032
10033         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10034         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10035
10036 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
10037
10038         * reload1.c (reload_combine): Pass reg_sum replacement through
10039         copy_rtx in loop performing multiple changes.
10040
10041 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
10042
10043         * except.c (remove_unreachable_regions): New.
10044         (free_eh_status): Clear exception_handler_labels.
10045         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10046         (find_exception_handler_labels): Don't add the same label more than
10047         once.
10048         (remove_exception_handler_label): Don't die if
10049         find_exception_handler_labels hasn't been called for the current
10050         function yet.
10051
10052 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
10053
10054         * toplev.c (rest_of_compilation): Rebuild jump labels after
10055         gcse.
10056
10057 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
10058
10059         * doc/extend.texi: Move documentation of X86 built-in functions
10060         here.
10061         * doc/invoke.texi: From here.
10062         * doc/sourcebuild.texi: Document location of documentation for
10063         machine built-in functions.
10064
10065 2002-01-13  Christopher Faylor  <cgf@redhat.com>
10066
10067         * cppfiles.c (TEST_THRESHOLD): New macro.
10068         (SHOULD_MMAP): Ditto.
10069         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10070         be used.
10071
10072 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10073
10074         * unroll.c (final_reg_note_copy): Properly handle
10075         REG_LABEL
10076         (unroll_loops): Fix LOOP_CONDITION heuristics.
10077
10078 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
10079
10080         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10081         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10082
10083 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10084
10085         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10086         threaded loop.
10087
10088 2002-01-14  Tom Rix  <trix@redhat.com>
10089
10090         * config/rs6000/rs6000.md: Fix typo with sradi.
10091
10092 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
10093
10094         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10095         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10096         (clrstrdi, clrstrsi): Adapt callers.
10097
10098         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10099
10100         (movti splitter): Never use register 0 as base register.
10101
10102 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10103
10104         * combine.c (simplify_shift_const): Always generate new rtx
10105         for shift expression instead of reusing given expression.
10106
10107 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10108
10109         * config/alpha/alpha.c (alpha_expand_mov): Don't call
10110         alpha_legitimize_address unless mode is Pmode.
10111
10112 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
10113
10114         * doc/md.texi (Modifiers): Document the '*' constraint for the
10115         user.
10116
10117         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10118         * doc/extend.texi (Function Attributes): 'interrupt' is valid
10119         for xstormy16 too.
10120
10121 2002-01-13  Richard Henderson  <rth@redhat.com>
10122
10123         * reload.c (find_reloads): Use a hard reg destination as reload reg
10124         for an input reload of the source.
10125
10126 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10127
10128         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10129         more generic.
10130
10131 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
10132
10133         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10134         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10135
10136         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10137
10138 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10139
10140         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10141
10142 2002-01-12  Tom Rix  <trix@redhat.com>
10143
10144         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10145         TARGET_POWERPC64.
10146
10147 2002-01-12  Richard Henderson  <rth@redhat.com>
10148
10149         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10150
10151         * doc/invoke.texi: Update Alpha options.
10152
10153         * doc/invoke.texi: Update i386 built-in function lists.
10154
10155 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10156
10157         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10158         referencing outside.
10159
10160 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10161
10162         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10163         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10164         offsets, and change line folding.
10165         * optabs.c (expand_binop): Remove warnings.
10166         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10167
10168 2002-01-12  Graham Stott <grahams@redhat.com>
10169
10170         * attribs.c (handle_deprecated_attribute): constify WHAT.
10171         * diagnostic.c (warn_deprecated_use): Add braces, fixes
10172         dangling else warning and constify WHAT.
10173         * except.h (struct function, struct inline_remap): Move
10174         struct tag forward defs before all prototypes.
10175         (duplicate_eh_regions): Whitespace.
10176
10177 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
10178
10179         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10180         MODE_BASE_REG_CLASS.
10181         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10182
10183 2002-01-12  Richard Henderson  <rth@redhat.com>
10184
10185         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10186         (ix86_expand_vector_move): New.
10187         (bdesc_2arg): Remove andps, andnps, orps, xorps.
10188         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
10189         Remove old prefetch builtins.  Special case the logicals removed above.
10190         (ix86_expand_builtin): Likewise.
10191         (safe_vector_operand): Use V4SFmode, not TImode.
10192         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
10193         (ix86_expand_timode_binop_builtin): New.
10194         * config/i386/i386-protos.h: Update.
10195         * config/i386/i386.h (enum ix86_builtins): Update.
10196         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10197         Use ix86_expand_vector_move in vector move expanders.
10198         (movti_internal, movti_rex64): Add xorps alternative.
10199         (sse_clrv4sf): Rename and adjust from sse_clrti.
10200         (prefetch): Don't work so hard.
10201         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10202         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10203         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10204
10205 2002-01-11  Richard Henderson  <rth@redhat.com>
10206
10207         * config/i386/mmintrin.h: New file.
10208         * config/i386/xmmintrin.h: New file.
10209         * config.gcc (i?86-*-*): Add extra_headers.
10210         * simplify-rtx.c (simplify_unary_operation): Handle saturating
10211         truncation codes.
10212         (simplify_binary_operation): Handle saturating arithmetic codes.
10213         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10214         not the lowpart subreg.
10215         (ix86_expand_builtin): Return a TImode dummy register instead of 0
10216         on error.
10217         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10218
10219 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10220
10221         * conflict.c (conflict_graph_compute): Free regsets when finished.
10222         * ssa.c (compute_coalesced_reg_partition): Likewise.
10223
10224 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10225
10226         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10227         every where we allocate a register.
10228
10229 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10230
10231         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10232         * lcm.c (compute_earliest, compute_farthest): Likewise.
10233
10234 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
10235
10236         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10237
10238 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
10239
10240         * doc/rtl.texi (Insns): Fix 2 typos.
10241
10242 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
10243
10244         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
10245         options.  Use @table @gcctabopt for MMIX options.  Add index
10246         entries for MMIX options.  Start new paragraph with first
10247         heading of the machine-dependent options.
10248
10249 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10250
10251         PR other/5299
10252         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10253         * combine.c (force_to_mode): Same.
10254         * reload1.c (clear_reload_reg_in_use): Same.
10255
10256 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
10257
10258         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10259         and 'subtargets'.
10260
10261 2002-01-11  Andreas Jaeger  <aj@suse.de>,
10262             Brad Lucier <lucier@math.purdue.edu>
10263
10264         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10265         mcpu.
10266
10267 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
10268
10269         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10270         Protect with IN_LIBGCC.
10271         (LINK_EH_SPEC): Add required trailing space.
10272
10273 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
10274
10275         * c-tree.h: Move function declarations so that they are listed
10276         under the filename which contains them.
10277         (check_identifier, finish_decl_top_level,
10278         lookup_name_current_level_global, shadow_record_fields): Remove.
10279
10280 2002-01-11  Andreas Jaeger  <aj@suse.de>
10281
10282         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10283         march.
10284
10285 2002-01-10  Richard Henderson  <rth@redhat.com>
10286
10287         * config/alpha/alpha.c (print_operand): Add 'J'.
10288         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10289         new operand with the sequence number for the lituse.  When splitting
10290         the insns, use gen_movdi_er_high_g and generate a sequence number.
10291         (gen_movdi_er_high_g): Print the sequence number if non-zero.
10292
10293 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
10294
10295         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10296         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10297         stvxl.
10298         (altivec_expand_builtin): Same.
10299         (altivec_expand_stv_builtin): New.
10300
10301         * config/rs6000/rs6000.h (rs6000_builtins): Same.
10302
10303         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10304         ("altivec_lvehx"): New.
10305         ("altivec_lvewx"): New.
10306         ("altivec_lvxl"): New.
10307         ("altivec_lvx"): New.
10308         ("altivec_stvx"): New.
10309         ("altivec_stvebx"): New.
10310         ("altivec_stvehx"): New.
10311         ("altivec_stvewx"): New.
10312         ("altivec_stvxl"): New.
10313
10314 2002-01-10  Richard Henderson  <rth@redhat.com>
10315
10316         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10317         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
10318         care not to delete instructions twice.
10319
10320 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
10321
10322         * toplev.c: Don't declare environ (it's not used anywhere).
10323         * configure.in: Don't check for declaration of environ.
10324         * config/i386/xm-mingw32.h: Don't #define environ.
10325         * config.in, configure: Regenerate.
10326
10327 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
10328
10329         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10330         * configure: Regenerate.
10331
10332         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10333         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10334         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10335         alpha/xm-vms.h.
10336         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10337         LIMITS_H_TEST here, not in m68k/x-next.
10338         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10339         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10340
10341         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10342         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10343         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
10344
10345         * config/i386/x-djgpp: Renamed i386/t-djgpp.
10346         * config/m88k/x-dolph: Renamed m88k/t-dolph.
10347         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10348         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
10349         replacement of quadlib.asm with quadlib.c.
10350
10351         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10352         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10353         config/rs6000/xm-beos.h: Delete file.
10354
10355         * config.gcc: Update to match above changes.
10356
10357 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10358
10359         * config/h8300/h8300.h: Fix comment typos.
10360         * config/h8300/h8300.md: Likewise.
10361         * config/h8300/lib1funcs.asm: Likewise.
10362
10363 2002-01-10  Dale Johannesen  <dalej@apple.com>
10364
10365         PR optimization/5269
10366         * unroll.c (precondition_loop_p): Make *increment be the correct
10367         sign when n_iterations known, to avoid confusing caller.
10368
10369 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10370
10371         * doc/extend.texi (deprecated): Fix a typo.
10372
10373 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10374
10375         * basic-block.h (update_br_prob_note): Declare.
10376         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10377         (try_forward_edges): Care negative frequencies and update note.
10378         (outgoing_edges_match): Tweek conditional merging heuristics.
10379         (try_crossjump_to_edge): use update_br_prob_note.
10380         * cfglayout.c (fixup_reorder_chain): Likewise.
10381         * cfrtl.c (update_br_prob_note): New.
10382         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10383
10384         * i386.c (ix86_decompose_address): Return -1 if address contains
10385         shift.
10386         (legitimate_address_p): Require ix86_decompose_address to return 1.
10387
10388         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10389         (cprop_insn): Likewise.
10390
10391 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10392
10393         * toplev.c: Fix formatting.
10394         * tree.c: Likewise.
10395         * tree-dump.c: Likewise.
10396         * unroll.c: Likewise.
10397         * unwind-dw2.c: Likewise.
10398         * unwind-dw2-fde.c: Likewise.
10399         * unwind-dw2-fde-glibc.c: Likewise.
10400         * unwind-sjlj.c: Likewise.
10401
10402 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10403
10404         * doc/invoke.texi: Document PDP-11 options.
10405
10406 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10407
10408         * config/h8300/h8300.h: Fix formatting.
10409
10410 2002-01-10  Ira Ruben   <ira@apple.com>
10411
10412         Add __attribute__ ((deprecated)).
10413         * extend.texi: Document __attribute__ ((deprecated)).
10414         * invoke.texi: Document -Wno-deprecated-declarations.
10415         * testsuite/g++.dg/other/deprecated.C: New C++ test.
10416         * testsuite/gcc.dg/deprecated.c: New C test.
10417         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10418         (c_common_attribute_table): Add "deprecated" entry.
10419         (handle_deprecated_attribute): New function.
10420         * c-decl.c (deprecated_states): New enum.
10421         deprecated_state: State of "deprecated" handling.
10422         (start_decl): Set deprecated_state based on attributes.
10423         (grokdeclarator): Test for deprecated uses, propagate attribute.
10424         * c-typeck.c (build_component_ref): Test for deprecated fields.
10425         (build_external_ref): Test for deprecated primaries.
10426         * diagnostic.c (warn_deprecated_use) New function to issue
10427         warnings about __attribute__ ((depricated)) references.
10428         * flags.h (warn_deprecated_decl): Extern declared for
10429         -W[no-]deprecated-declarations option.
10430         * print-tree.c (print_node): Show deprecated flag status.
10431         * toplev.c (warn_deprecated_decl): Defined.
10432         (W_options): Added "deprecated-declaration".
10433         * toplev.h (warn_deprecated_use): Extern declared.
10434         * tree.h (struct tree_common): Define deprecated_flag.
10435         (TREE_DEPRECATED): New macro to access flag.
10436         * cp/call.c (build_call): Test for deprecated calls.
10437         * cp/class.c (add_implicitly_declared_members): Set global
10438         flag to tell grokdeclarator to not issue deprecated warnings.
10439         * cp/cp-tree.h: Add extern for adding_implicit_members.
10440         * cp/decl.c (deprecated_states): New enum.
10441         (start_decl): Set deprecated_state based on attributes.
10442         (grokdeclarator): Test for deprecated uses, propagate attribute.
10443         * cp/lex.c (do_identifier): Test for deprecated primaries.
10444         * cp/typeck.c (build_component_ref): Test for deprecated fields.
10445
10446 2002-01-10  Ira Ruben   <ira@apple.com>
10447
10448         Fix to assign attributes to inline member functions.
10449         * cp/decl.c (start_method): Handle attrlist.
10450
10451 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10452
10453         * combine.c (expand_field_assignment): Use subreg_lsb().
10454
10455 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
10456
10457         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10458         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10459         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10460         Recurse for any operand of AND as long as constant is non-zero.
10461
10462 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10463
10464         * config/h8300/h8300.md: Remove constraints from expanders.
10465
10466 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10467
10468         * varasm.c: Fix formatting.
10469         * varray.c: Likewise.
10470         * vmsdbgout.c: Likewise.
10471         * xcoffout.c: Likewise.
10472
10473 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10474
10475         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10476         update edge probabilities to match.
10477
10478 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10479
10480         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10481         dependencies.
10482         * doc/languages.texi, doc/sourcebuild.texi: New files.
10483         * doc/configfiles.texi: Make a subsubsection.  Update.
10484         * doc/configterms.texi: Add @node.  Remove warning that this isn't
10485         instructions for building GCC.
10486         * doc/makefile.texi: Make a subsection.
10487         * doc/gccint.texi: Update.
10488
10489 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10490
10491         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10492
10493 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
10494
10495         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10496
10497 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
10498
10499         * optabs.c (expand_fix): Look for wider integer modes first.
10500
10501         * i386.md (mov?f): Avoid the fake const double trick for medium
10502         memory model.
10503         (min?f*/max?f*): Prohibit memory operands for i387 variant.
10504         (fop_df_4): Disable for SSE compilation.
10505
10506 2002-01-10  Graham Stott  <grahams@redhat.com>
10507
10508         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10509         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10510
10511 2002-01-10  Richard Henderson  <rth@redhat.com>
10512
10513         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10514
10515 2002-01-10  Richard Henderson  <rth@redhat.com>
10516
10517         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10518         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
10519
10520 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10521
10522         * combine.c (can_combine_p): Fix a comment typo.
10523
10524 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
10525
10526         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10527         empty list correctly.  Change loop index $t to $f for
10528         consistency with rest of Makefile.
10529
10530 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
10531
10532         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10533         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10534
10535         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10536         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10537         (altivec_init_builtins): Same.
10538         (altivec_expand_unop_builtin): Return NULL_RTX on error.
10539         (altivec_expand_binop_builtin): Same.
10540         (altivec_expand_ternop_builtin): Same.
10541         (bdesc_dst): New.
10542
10543         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10544         ("altivec_vctuxs"): Fix typo.
10545         ("altivec_vnmsubfp"): Same.
10546         ("altivec_dssall"): New.
10547         ("altivec_mfvscr"): New.
10548         ("altivec_dss"): New.
10549         ("altivec_lvsl"): New.
10550         ("altivec_lvsr"): New.
10551         ("altivec_dstt"): New.
10552         ("altivec_dstst"): New.
10553         ("altivec_dststt"): New.
10554         ("altivec_dst"): New.
10555
10556         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10557         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10558
10559 2002-01-09  Richard Henderson  <rth@redhat.com>
10560
10561         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10562
10563 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
10564
10565         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10566         function.
10567         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10568         prototype.
10569         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10570
10571 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10572
10573         * read-rtl.c: Fix formatting.
10574         * real.c: Likewise.
10575         * regclass.c: Likewise.
10576         * regrename.c: Likewise.
10577         * reg-stack.c: Likewise.
10578         * reload1.c: Likewise.
10579         * reload.c: Likewise.
10580         * rtl.c: Likewise.
10581
10582 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10583
10584         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10585         to extract items in the expr_list chain.
10586
10587 2002-01-09  Richard Henderson  <rth@redhat.com>
10588
10589         * config/vax/vax.c (vax_rtx_cost): Never abort.
10590
10591         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10592
10593 2002-01-09  Jan Hubicka  <jh@suse.cz>
10594
10595         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10596
10597 2002-01-09  Richard Henderson  <rth@redhat.com>
10598
10599         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10600         Unify code from various alternatives.
10601
10602 2002-01-09  Richard Henderson  <rth@redhat.com>
10603
10604         * regrename.c (copy_value): Ignore the copy if the source register
10605         is present in the value chain with a narrower mode.
10606
10607 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10608
10609         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10610         for the c4x target. Also improve layout.
10611
10612 2002-01-09  Richard Henderson  <rth@redhat.com>
10613
10614         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10615         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10616         to match insn patterns.
10617
10618 2002-01-09  Richard Henderson  <rth@redhat.com>
10619
10620         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10621         (copyprop_hardreg_forward_1): Likewise.
10622
10623 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10624
10625         * pa.md (decrement_and_branch_until_zero): Change predicate for
10626         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10627
10628 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10629
10630         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10631         gets undefined. For Darwin.
10632
10633 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10634
10635         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10636
10637 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10638
10639         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10640
10641 2002-01-08  Richard Henderson  <rth@redhat.com>
10642
10643         * regrename.c (copy_value): Ignore overlapping copies.
10644
10645 2002-01-08  Richard Henderson  <rth@redhat.com>
10646
10647         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10648         as needed to avoid shared structure.
10649
10650 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10651
10652         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10653         H8/300H and H8/S.
10654
10655 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10656
10657         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10658         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10659         documentation of obsolete macros.
10660         * system.h: Poison these macros.
10661         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10662         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10663         config/c4x/c4x.h, config/clipper/clipper.h,
10664         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10665         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10666         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10667         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10668         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10669         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10670         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10671         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10672         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10673         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10674         config/sparc/sparc.h, config/stormy16/stormy16.h,
10675         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10676         definitions and commented out definitions of obsolete macros.
10677         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10678         of MAX_INT_TYPE_SIZE.
10679
10680 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10681
10682         * config/s390/s390.c (s390_preferred_reload_class): Never
10683         return ADDR_REGS if it isn't a subset of the given class.
10684         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10685         FP_REGS, but all superclasses as well.
10686
10687         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10688
10689         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10690         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10691         must not be a const_int.
10692
10693 2002-01-08  Richard Henderson  <rth@redhat.com>
10694
10695         * Makefile.in (toplev.o): Depend on options.h.
10696         (gcc.o): Depend on specs.h.
10697
10698 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10699
10700         * expr.c (store_expr): Convert VOIDmode constants back to target's
10701         mode.
10702
10703 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10704
10705         * doc/invoke.texi: Markup gcc as @command.  Refer to
10706         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10707         of http://gcc.gnu.org/thanks.html.
10708
10709 2002-01-08  Dale Johannesen  <dalej@apple.com>
10710
10711         * config/rs6000/rs6000.md: Add missing int register
10712         target case to movdf_low.
10713
10714 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10715
10716         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10717         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10718         (cppinit.o): Depend on except.h.
10719         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10720         s-specs): New rules.
10721
10722         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10723         Don't create specs.h/options.h/gencheck.h here.  Remove
10724         unnecessary variable settings from last argument of AC_OUTPUT.
10725         * config.in, configure: Regenerate.
10726         * intl.c: Hardcode package name as "gcc".
10727
10728         * cppinit.c: Include except.h.
10729         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10730         appropriate.
10731         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10732         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10733         (!)USING_SJLJ_EXCEPTIONS.
10734         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10735
10736 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10737
10738         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10739         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10740         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10741         documentation of obsolete macros.
10742         * system.h: Poison these macros.
10743         * config/d30v/d30v.h, config/ns32k/encore.h,
10744         config/stormy16/stormy16.h: Remove definitions and commented out
10745         definitions of obsolete macros.
10746
10747 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10748
10749         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10750         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10751         warnings.
10752
10753 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10754
10755         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10756         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10757         to insn adjusting stack/frame pointer.
10758         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10759         accept operands that cause the insn to be non-splittable.
10760
10761 2002-01-08  Graham Stott  <grahams@redhat.com>
10762
10763         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10764         (C_TYPE_FIELDS_VOLATILE): Likewise.
10765         (C_TYPE_BEING_DEFINED): Likewise.
10766         (C_IS_RESERVED_WORD): Likewise.
10767         (C_TYPE_VARIABLE_SIZE): Likewise.
10768         (C_DECL_VARIABLE_SIZE): Likewise.
10769         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10770         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10771         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10772         parenthesis.
10773         (C_DECL_ANTICIPATED): Likewise.
10774         (c_build_type_variant): Add parenthesis.
10775
10776 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10777
10778         * gcc.c (option_map): Remove --version.
10779         (process_command): Handle -fversion following the GNU Coding
10780         Standards.  Partially addresses PR other/704.
10781
10782 2002-01-08  Graham Stott  <grahams@redhat.com>
10783
10784         * combine.c (combine_instructions): Fix typo.
10785
10786 2002-01-08  Graham Stott  <grahams@redhat.com>
10787
10788         * debug.h: Use "tree" and "rtx" throughout.
10789
10790         * debug.c: Likewise.
10791
10792 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10793
10794         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10795         constant pool, use the pool's version of the symbol instead.
10796
10797 2002-01-07  Richard Henderson  <rth@redhat.com>
10798
10799         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10800         the original register was copied in a mode with a fewer number of
10801         hard registers than the desired mode.
10802         (copyprop_hardreg_forward_1): Likewise.
10803         (debug_value_data): Fix loop test.
10804         * toplev.c (parse_options_and_default_flags): Reenable
10805         -fcprop-registers at -O1.
10806
10807 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10808
10809         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10810         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10811
10812         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10813         predicates.
10814
10815         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10816
10817 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10818
10819         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10820         (pa_output_function_prologue): Output local label at the beginning of
10821         the prologue when profiling.
10822         (hppa_profile_hook): Use the local label rather than the function label.
10823         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10824
10825 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10826
10827         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10828         (altivec_expand_unop_builtin): Fix thinko.
10829         (altivec_expand_binop_builtin): Same.
10830         (altivec_expand_ternop_builtin): Same.
10831         (altivec_expand_builtin): Same.
10832
10833 2002-01-07  Richard Henderson  <rth@redhat.com>
10834
10835         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10836
10837 2002-01-07  Jason Merrill  <jason@redhat.com>
10838
10839         * unwind-dw2.c (execute_cfa_program): Use < again.
10840
10841 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10842
10843         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10844
10845 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10846
10847         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10848         Don't allow -1 - x -> ~x simplifications in the first pass.
10849
10850 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10851
10852         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10853         arguments.
10854         (altivec_expand_binop_builtin): Same.
10855         (altivec_expand_unop_builtin): Same.
10856         (print_operand): Fix typo.
10857         (bdesc_1arg): Add vupk* variants.
10858
10859         * rs6000.h (rs6000_builtins): Add vupk* enums.
10860
10861         * rs6000.md: Add altivec_vupk* variants.
10862
10863 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10864
10865         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10866         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10867         and last update dates.
10868
10869 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10870
10871         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10872
10873 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10874
10875         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10876         * config/avr/avr.h (CPP_SPEC): Likewise.
10877         (LINK_SPEC): Likewise.
10878         (CRT_BINUTILS_SPECS): Likewise.
10879         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10880         * doc/invoke.texi (AVR Options): Document them.
10881
10882 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10883
10884         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10885         LABEL_NUSES.
10886
10887 2002-01-07  Graham Stott  <grahams@redhat.com>
10888
10889         * config/i386/i386.h: Update copyright date.
10890         (HALF_PIC_PTR): Add parenthesis.
10891         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10892         (CONSTANT_ALIGNMENT): Add parenthesis.
10893         (DATA_ALIGNMENT): Likewise.
10894         (LOCAL_ALIGNMENT): Likewise.
10895         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10896         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10897         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10898         (HARD_REGNO_NREGS): Add paranethesis.
10899         (VALID_SSE_REG_MODE): Whitespace.
10900         (VALID_MMX_REG_MODE): Whitespace.
10901         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10902         (ix86_hard_regno_mode_ok): Add parenthesis.
10903         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10904         (RETURN_IN_MEMORY): Whitespace.
10905         (N_REG_CLASSES): Add parenthesis.
10906         (INTEGER_CLASS_P): Add parenthesis and wrap.
10907         (FLOAT_CLASS_P): Likewise.
10908         (SSE_CLASS_P): Likewise.
10909         (MMX_CLASS_P): Likewise.
10910         (MAYBE_INTEGER_CLASS_P): Likewise.
10911         (MAYBE_FLOAT_CLASS_P): Likewise.
10912         (MAYBE_SSE_CLASS_P): Likewise.
10913         (MAYBE_MMX_CLASS_P): Likewise.
10914         (Q_CLASS_P): Likewise.
10915         (GENERAL_REGNO_P): Uppercase macro parameter.
10916         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10917         (FP_REGNO_P): Likewise.
10918         (ANY_FP_REGNO_P): Uppercase macro parameter.
10919         (SSE_REGNO_P): Likewise.
10920         (SSE_REGNO): Likewise.
10921         (SSE_REG_P): Likewise.
10922         (SSE_FLOAT_MODE_P): Likewise.
10923         (MMX_REGNO_P): Likewise.
10924         (MMX_REG_P):Likewise.
10925         (STACK_REG_P): Likewise.
10926         (NON_STACK_REG_P): Likewise.
10927         (STACK_TOP_P): Likewise.
10928         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10929         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10930         (SECONDARY_MEMORY_NEEDED): Likewise.
10931         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10932         (MD_ASM_CLOBBERS): Whitespace and wrap.
10933         (MUST_PASS_IN_STACK): Whitespace and wrap.
10934         (RETURN_POPS_ARGS): Add parenthesis.
10935         (INIT_CUMULATIVE_ARGS): Likewise.
10936         (FUNCTION_ARG): Likewise.
10937         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10938         (SETUP_INCOMING_VARARGS): Likewise.
10939         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10940         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10941         parenthsis.
10942         (EXPAND_BUILTIN_VA_ARG): Likewise.
10943         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10944         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10945         (INITIAL_ELIMINATION_OFFSET): Likewise.
10946         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10947         (REGNO_OK_FOR_BASE_P): Likewise.
10948         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10949         (REGNO_OK_FOR_DIREG_P): Likewise.
10950         (REG_OK_FOR_INDEX_P): Whitespace.
10951         (REG_OK_FOR_BASE_P): Whitespace.
10952         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10953         parenthesis.
10954         (FIND_BASE_TERM): Fix typo.
10955         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10956         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10957         (SYMBOLIC_CONST; Whitespace.
10958         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10959         (ENCODE_SECTION_INFO): Whitespace.
10960         (FINALIZE_PIC): Remove do { ... } while (0).
10961         (PROMOTE_MODE): Wrap in do { ... } while (0).
10962         (CONST_COSTS): Whitespace.
10963         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10964         (REGISTER_MOVE_COST): Add parenthesis.
10965         (MEMORY_MOVE_COST): Likewise.
10966         (EXTRA_CC_MODES): Whitespace.
10967         (SELECT_CC_MODE): Add parenthesis and whitespace.
10968         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10969         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10970         (ASM_OUTPUT_LABEL): Add paramethesis.
10971         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10972         (ASM_OUTPUT_REG_POP): Likewise.
10973         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10974         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10975
10976         * config/i386/i386.c: Update copyright.
10977         (CHECK_STACK_LIMIT): Add parenthesis.
10978         (AT_BP): Uppercase macro parameter.
10979         (x86_64_int_parameter_registers): Constify.
10980         (x86_64_int_return_registers): Likewise.
10981         (ix86_compare_op0): Use rtx.
10982         (construct_container): Constify INTREG parameter.
10983         (function_arg): Use rtx.
10984
10985         * diagnostic.h: Update copyright date.
10986         (output_buffer_state): Add parenthesis.
10987         (output_buffer_format_args): Likewise.
10988
10989         * combine.c (combine_instructions): Replace XEXP (links, 0)
10990         with link.
10991
10992 2002-01-06  H.J. Lu <hjl@gnu.org>
10993
10994         * cfgcleanup.c (thread_jump): Fix 2 typos.
10995
10996 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10997
10998         * config.gcc: Add support for --enable-altivec.
10999
11000 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11001
11002         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11003
11004 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
11005
11006         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11007         __objc_class_name_*.
11008
11009 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11010
11011         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11012
11013 2002-01-06  Richard Henderson  <rth@redhat.com>
11014
11015         * reorg.c (emit_delay_sequence): Remove death notes, not merely
11016         nop them out.  Increment label reference count for REG_LABEL.
11017         (fill_slots_from_thread): Frob label reference count around
11018         delete_related_insns.
11019
11020 2002-01-05  Richard Henderson  <rth@redhat.com>
11021
11022         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11023         jump threading.
11024
11025 2002-01-05  Richard Henderson  <rth@redhat.com>
11026
11027         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11028         * integrate.c (output_inline_function): Likewise.
11029         * toplev.c (rest_of_compilation): Do it here instead.  Move call
11030         to remove_unnecessary_notes after emitting abstract instance.
11031         Force an emitted nested function to have its parent emited as well.
11032         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11033         for null.
11034         (rtl_for_decl_location): Do not look at reload data structures
11035         before reload has run.
11036
11037 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11038
11039         * cse.c: Fix formatting.
11040         * dwarf2asm.c: Likewise.
11041         * dwarf2out.c: Likewise.
11042         * explow.c: Likewise.
11043         * expmed.c: Likewise.
11044         * function.c: Likewise.
11045         * gcov.c: Likewise.
11046         * gencheck.c: Likewise.
11047         * genrecog.c: Likewise.
11048         * ggc-common.c: Likewise.
11049         * ggc-page.c: Likewise.
11050         * global.c: Likewise.
11051
11052 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11053
11054         * combine.c: Fix formatting.
11055
11056 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
11057
11058         PR middle-end/1557
11059         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11060
11061 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
11062
11063         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11064         as 1 for __powerpc64__ as well.
11065
11066         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11067
11068         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11069         return it.
11070
11071 2002-01-05  Daniel Berlin  <dan@dberlin.org>
11072
11073         * lcm.c: Revert change, due to performance regression it causes on
11074         SPEC because it's slightly more conservative (sigh, I hate
11075         edge-based LCM).
11076
11077 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11078
11079         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11080
11081 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11082
11083         * doc/cppinternals.texi: Update.
11084
11085 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
11086
11087         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11088         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11089         negatives.
11090         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
11091         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11092         kludge for pre-october-14th mmix versions to handle new-found bug
11093         with PUSHJ/PUSHGO and the register stack.
11094         * config/mmix/mmix.h (struct machine_function): Rename member
11095         has_call_value_without_parameters to has_call_without_parameters.
11096         All referers changed.
11097         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11098         TARGET_MASK_BRANCH_PREDICT): New macros.
11099         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11100         -mno-reg-stack-fill-bug-workaround.
11101         * config/mmix/mmix.md ("call"): Set struct machine member
11102         has_call_without_parameters.
11103
11104 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
11105
11106         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11107
11108 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
11109
11110         * cfgcleanup.c: Include tm_p.h
11111         (mark_effect): Fix handling of hard register; fix handling of SET
11112
11113 2002-01-04  Kazu Hirata  <kazu@hxi.com>
11114
11115         * config/h8300/h8300.md (anonymous patterns): Check that
11116         operands are registers before using REGNO on them.
11117
11118 2002-01-03  Roland McGrath  <roland@frob.com>
11119
11120         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11121
11122 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
11123
11124         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11125         * c-common.h (genrtl_expr_stmt_value): Likewise.
11126         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11127         (expand_expr_stmt_value): Add maybe_last argument.
11128         Don't warn about statement with no effect if it is the last statement
11129         in expression statement.
11130         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11131         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11132         expand_expr_stmt_value.
11133         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11134         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11135         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11136         as maybe_last to expand_expr_stmt_value.
11137
11138 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
11139
11140         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11141         be passed in, do not build it.
11142         (c_begin_if_stmt): New function.
11143         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11144         * c-common.h (c_expand_start_cond): Update prototype.
11145         (c_begin_if_stmt): Prototype new function.
11146         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11147         * c-parse.in (if_prefix): Use c_begin_if_stmt,
11148         c_begin_while_stmt and c_finish_while_stmt_cond.
11149
11150 2002-01-04  William Cohen  <wcohen@redhat.com>
11151
11152         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11153         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11154         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11155         * config/pa/som.h (ASM_FILE_START): Likewise.
11156
11157 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
11158
11159         * lcm.c: Include df.h.
11160         Add available_transfer_function prototype.
11161         (compute_available): Rework to use iterative dataflow framework.
11162         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11163         with bb_info in df.h
11164         (available_transfer_function): New function.
11165
11166         * Makefile.in (lcm.o): add df.h to dependencies.
11167
11168 2002-01-04  Richard Henderson  <rth@redhat.com>
11169
11170         * config/alpha/alpha.c (some_operand): Accept HIGH.
11171         (input_operand): Likewise; accept simple references to globals.
11172         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11173         (alpha_const_double_ok_for_letter_p): Likewise.
11174         (alpha_extra_constraint): Likewise.
11175         (alpha_preferred_reload_class): Likewise.  Do not force
11176         symbolic constants to memory.
11177         (alpha_legitimate_address_p): Accept simple references
11178         to small_symbolic_operand.
11179         (alpha_legitimize_address): New arg scratch.  Be prepared to be
11180         called when no_new_pseudos.  Emit simple symbolic references.
11181         Split integers into low, high, and rest.
11182         (alpha_expand_mov): Use alpha_legitimize_address.
11183         (some_small_symbolic_mem_operand): New.
11184         (split_small_symbolic_mem_operand): New.
11185         * config/alpha/alpha-protos.h: Update.
11186         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11187         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11188         (EXTRA_CONSTRAINT): Likewise.
11189         (PREFERRED_RELOAD_CLASS): Likewise.
11190         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11191         (PREDICATE_CODES): Update.
11192         * config/alpha/alpha.md: New post-reload splitters to convert
11193         simplfied symbolic operands to the form that references $29.
11194         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11195         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11196
11197 2002-01-03  Richard Henderson  <rth@redhat.com>
11198
11199         * local-alloc.c (function_invariant_p): Update commentary.
11200
11201 2002-01-04  H.J. Lu <hjl@gnu.org>
11202
11203         * toplev.c (rest_of_compilation): Fix a typo when calling
11204         cleanup_cfg.
11205
11206 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11207
11208         * c-common.c: Fix formatting.
11209         * diagnostic.c: Likewise.
11210         * doloop.c: Likewise.
11211         * dwarf2out.c: Likewise.
11212
11213 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11214
11215         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11216         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11217
11218 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11219
11220         * cpperror.c: Update comments and copyright.
11221         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11222         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11223
11224 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11225
11226         * collect2.c (main): Use strcmp when testing for "-shared".
11227
11228 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11229
11230         * cppmacro.c: Don't include intl.h.  Update comments.
11231         (new_number_token): Allocate enough buffer for 64-bit unsigned
11232         integers; update prototype.
11233         * cppmain.c: Update comments.
11234
11235 2002-01-03  William Cohen  <wcohen@redhat.com>
11236
11237         * function.h (struct function): Add profile.
11238         (current_function_profile): New.
11239         doc/extend.texi: Update documentation.
11240         * final.c (final_start_function): Use current_function_profile
11241         instead of profile_flag.
11242         (profile_after_prologue): Likewise.
11243         * function.c (expand_function_start): Likewise.
11244         (expand_function_start): Likewise.
11245         * config/alpha/alpha.c (direct_call_operand):
11246         (alpha_does_function_need_gp): Likewise.
11247         (alpha_expand_prologue): Likewise.
11248         * config/arm/arm.c (arm_expand_prologue): Likewise.
11249         thumb_expand_prologue: Likewise.
11250         * config/d30v/d30v.c (d30v_stack_info): Likewise.
11251         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11252         (fr30_expand_prologue): Likewise.
11253         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11254         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11255         * config/i386/i386.h (FINALIZE_PIC): Likewise.
11256         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11257         * config/i960/i960.c (i960_output_function_prologue): Likewise.
11258         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11259         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11260         (m32r_expand_prologue): Likewise.
11261         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11262         (m88k_expand_prologue): Likewise.
11263         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11264         * config/mips/mips.c (compute_frame_size): Likewise.
11265         (mips_expand_prologue): Likewise.
11266         (mips_can_use_return_insn): Likewise.
11267         * config/pa/elf.h (ASM_FILE_START): Likewise.
11268         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11269         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11270         * config/pa/som.h (ASM_FILE_START): Likewise.
11271         * config/romp/romp.c (romp_using_r14): Likewise.
11272         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11273         (rs6000_stack_info): Likewise.
11274         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11275         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11276         * config/v850/v850.c (compute_register_save_size): Likewise.
11277
11278 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
11279
11280         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11281         gen_lowpart_common fails, use gen_lowpart_SUBREG.
11282
11283 2002-01-03  Turly O'Connor  <turly@apple.com>
11284
11285         * darwin.c (machopic_output_possible_stub_label): Don't generate
11286         stub routines for pseudo-stubs which we've just defined.
11287
11288 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11289
11290         * builtins.c: Fix formatting.
11291         * c-typeck.c: Likewise.
11292         * combine.c: Likewise.
11293         * expr.c: Likewise.
11294         * loop.c: Likewise.
11295
11296 2002-01-03  Andreas Schwab  <schwab@suse.de>
11297
11298         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11299         and return true if _cpp_push_next_buffer pushed a new include
11300         file.
11301         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11302         _cpp_pop_file_buffer did not push a new file.
11303         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11304
11305 2002-01-02  Eric Christopher  <echristo@redhat.com>
11306
11307         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11308         FIND_REG_INC_NOTE call. Update copyright.
11309         * loop.c (canonicalize_condition): Ditto.
11310         * reorg.c (delete_scheduled_jump): Ditto.
11311
11312 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11313
11314         * gcse.c: Fix formatting.
11315
11316 2002-01-03  Graham Stott  <grahams@redhat.com>
11317
11318         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11319         forward defs for struct tags rtx_def, union_tree, rtvec_def
11320         also output corresponding typedefs for rtx, tree, and rtvec.
11321
11322         * system.h: Move forward defs for struct tags rtx_def, union_tree,
11323         rtvec_def along with corresponding typedefs for rtx, tree, and
11324         rtvec to config.h, hconfig.h, tconfig.h.
11325
11326 2002-01-03  Graham Stott  <grahams@redhat.com>
11327
11328         * tree.h: Update copyright date.
11329         (IS_EXPR_CODE_CLASS): Add parenthesis.
11330         (TREE_SET_CODE): Add whitespace.
11331         (TREE_CHECK): Add parenthesis.
11332         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11333         (CST_OR_CONSTRUCTOR_CHECK):
11334         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11335         (TREE_SYMBOL_REFERENCED): Whitespace.
11336         (INT_CST_LT): Likewise.
11337         (INT_CST_LT_UNSIGNED): Likewise.
11338         (tree_real_cst): Unwrap comment.
11339         (tree_string): Likewise.
11340         (tree_complex): Likewise.
11341         (IDENTIFIER_POINTER): correct cast.
11342         (SAVE_EXPR_CONTEXT): Whitespace.
11343         (EXPR_WFL_FILENAME_NODE): Likewise.
11344         (EXPR_WFL_FILENAME): Remove parenthesis.
11345         (DECL_ORIGIN): Add parenthesis.
11346         (DECL_FROM_INLINE): Use NULL_TREE.
11347         (build_int_2): Whitespace.
11348         (build_type_variant): Add parenthesis.
11349
11350         * gcc/jcf-parse.c: Update copyright date.
11351         (yyparse): Constify resource_filename.
11352
11353 2002-01-03  Graham Stott  <grahams@redhat.com>
11354
11355         * rtl.h: Update copyright date.
11356         (RTL_CHECK1): Wrap long line.
11357         (RTL_CHECK2): Likewise.
11358         (RTL_CHECKC1): Wrap long line and whitespace.
11359         (RTL_CHECKC2): Likewise.
11360         (XWINT): Whitespace.
11361         (XINT): Likewise.
11362         (XSTR): Likewise.
11363         (XEXP): Likewise.
11364         (XVEC): Likewise.
11365         (XMODE): Likewise.
11366         (XBITMAP): Likewise.
11367         (XTREE): Likewise.
11368         (XBBDEF): Likewise.
11369         (XTMPL): Likewise.
11370         (X0WINT): Likewise.
11371         (X0INT):Likewise.
11372         (X0UINT): Likewise.
11373         (X0STR): Likewise.
11374         (X0EXP): Likewise.
11375         (X0VEC): Likewise.
11376         (X0MODE): Likewise.
11377         (X0BITMAP): Likewise.
11378         (X0TREE): Likewise.
11379         (X0BBDEF): Likewise.
11380         (X0ADVFLAGS): Likewise.
11381         (X0CSELIB): Likewise.
11382         (X0MEMATTR): Likewise.
11383         (XCWINT): Likewise.
11384         (XCINT): Likewise.
11385         (XCUINT): Likewise.
11386         (XCSTR): Likewise.
11387         (XCEXP): Likewise.
11388         (XCVEC): Likewise.
11389         (XCMODE): Likewise.
11390         (XCBITMAP): Likewise.
11391         (XCTREE): Likewise.
11392         (XCBBDEF): Likewise.
11393         (XCADVFLAGS): Likewise.
11394         (XCCSELIB): Likewise.
11395         (XC2EXP): Likewise.
11396         (INSN_UID): Likewise.
11397         (PREV_INSN): Likewise.
11398         (PATTERN): Likewise.
11399         (INSN_CODE): Likewise.
11400         (PUT_REG_NOTE_KIND): Likewise.
11401         (CODE_LABEL_NUMBER): Likewise.
11402         (NOTE_SOURCE_FILE): Likewise.
11403         (NOTE_BLOCK): Likewise.
11404         (NOTE_EH_HANDLER): Likewise.
11405         (NOTE_RANGE_INFO): Likewise.
11406         (NOTE_LIVE_INFO): Likewise.
11407         (NOTE_BASIC_BLOCK): Likewise.
11408         (NOTE_EXPECTED_VALUE): Likewise.
11409         (NOTE_LINE_NUMBER): Likewise.
11410         (LABEL_NAME): Likewise.
11411         (LABEL_NUSES): Likewise.
11412         (LABEL_ALTERNATE_NAME): Likewise.
11413         (ADDRESSOF_DECL): Likewise.
11414         (JUMP_LABEL): Likewise.
11415         (LABEL_NEXTREF): Likewise.
11416         (REGNO): Likewise.
11417         (ORIGINAL_REGNO: Likewise.
11418         (HARD_REGISTER_NUM_P): Add parenthesis.
11419         (SUBREG_REG): Whitespace.
11420         (SUBREG_BYTE): Likewise.
11421         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11422         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11423         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11424         (ASM_OPERANDS_INPUT_VEC): Likewise.
11425         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11426         (ASM_OPERANDS_INPUT): Likewise.
11427         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11428         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11429         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11430         (ASM_OPERANDS_INPUT_MODE): Likewise.
11431         (ASM_OPERANDS_SOURCE_FILE): Likewise.
11432         (ASM_OPERANDS_SOURCE_LINE): Likewise.
11433         (MEM_SET_IN_STRUCT_P): Minor reformat.
11434         (TRAP_CONDITION): Whitespace.
11435         (TRAP_CODE): Likewise.
11436         (COND_EXEC_TEST): Likewise.
11437         (COND_EXEC_CODE): Likewise.
11438         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11439         (PHI_NODE_P): Add parenthesis.
11440         (plus_constant): Whitespace and add parenthesis.
11441
11442 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11443
11444         * config/avr/avr.c: Fix comment typos.
11445         * config/c4x/c4x.md: Likewise.
11446         * config/dsp16xx/dsp16xx.h: Likewise.
11447         * config/dsp16xx/dsp16xx.md: Likewise.
11448         * config/i386/i386.md: Likewise.
11449         * config/ia64/ia64.c: Likewise.
11450         * config/m32r/m32r.h: Likewise.
11451         * config/m68hc11/m68hc11.md: Likewise.
11452         * config/mmix/mmix.c: Likewise.
11453         * config/mn10200/mn10200.c: Likewise.
11454         * config/romp/romp.c: Likewise.
11455         * config/sh/sh.c: Likewise.
11456         * config/stormy16/stormy16.c: Likewise.
11457         * config/stormy16/stormy16.h: Likewise.
11458         * config/stormy16/stormy16.md: Likewise.
11459
11460 2002-01-03  Graham Stott  <grahams@redhat.com>
11461
11462         * loop.h: Update copyright date.
11463         (LOOP_MOVABLES): Fix typo.
11464         (LOOP_REGS): Likewise.
11465         (LOOP_IVS): Likewise.
11466
11467 2002-01-03  Graham Stott  <grahams@redhat.com>
11468
11469         * cppinit.c: Update copyright date.
11470         Don't include output.h
11471         * Makefile.in: Update copyright date.
11472         Update dependency.
11473
11474 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11475
11476         PR c/5226
11477         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11478         (-pthread) Add to RS/6000 options.
11479
11480 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11481
11482         * except.c: Fix comment typos.
11483         * loop.c: Likewise.
11484         * varasm.c: Likewise.
11485         * doc/tm.texi: Fix a typo.
11486
11487 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
11488
11489         * c-typeck.c (output_init_element): Allow initializing static storage
11490         duration objects with compound literals.
11491
11492 2002-01-02  Richard Henderson  <rth@redhat.com>
11493
11494         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11495         after abusing it.
11496
11497 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11498
11499         * gcc.c (default_compilers): Const-ify.
11500         * mips-tdump.c (stab_names): Likewise.
11501         * mips-tfile.c (map_coff_types, map_coff_storage,
11502         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11503         pseudo_ops_t, pseudo_ops): Likewise.
11504         * protoize.c (default_include): Likewise
11505
11506         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11507         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11508         Add array size in declaration.
11509         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11510         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11511         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11512         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11513         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11514         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11515         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11516         emtens, make_nan): Const-ify.
11517         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11518         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11519
11520 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
11521
11522         * config.gcc (ia64-*-*): Set extra_headers.
11523         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
11524         * config/alpha/t-osf: Remove.
11525         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11526
11527 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
11528
11529         * config/rs6000/t-aix43: Revert previous change.
11530
11531 2002-01-02  Jason Merrill  <jason@redhat.com>
11532
11533         * c-decl.c (c_expand_body): Call outlining_inline_function when
11534         emitting an inline function out of line.
11535
11536 2002-01-02  Richard Henderson  <rth@redhat.com>
11537
11538         * dwarf2out.c (limbo_die_node): Add created_for member.
11539         (new_die): New argument created_for.  Update all callers.
11540         (mark_limbo_die_list): New.
11541         (dwarf2out_init): Register limbo_die_list as a root.
11542         (dwarf2out_finish): Force insert limbo dies into their function
11543         context.
11544
11545 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
11546
11547         PR c++/5089
11548         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11549
11550 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11551
11552         * config/h8300/fixunssfsi.c: Update copyright.
11553         Fix comment typos.
11554         Fix formatting.
11555         * config/h8300/h8300.c: Update copyright.
11556         Eliminate warnings.
11557
11558 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11559
11560         * config/romp/romp.c: Fix comment formatting.
11561         * config/romp/romp.h: Likewise.
11562         * config/romp/romp.md: Likewise.
11563         * config/s390/s390.c: Likewise.
11564         * config/stormy16/stormy16.c: Likewise.
11565         * config/stormy16/stormy16.h: Likewise.
11566
11567 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
11568
11569         * c-common.h (genrtl_expr_stmt_value): Declare.
11570         * c-semantics.c (genrtl_goto_stmt): Redirect to...
11571         (genrtl_goto_stmt_value): ... this new function.  Pass new
11572         argument down to expand_expr_stmt_value, taking
11573         TREE_ADDRESSABLE into account.
11574         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11575         STMT_EXPR as addressable, i.e., one whose result we want.
11576         * expr.c (expand_expr): Don't save expression statement value
11577         of labeled_blocks or loop_exprs.
11578         * stmt.c (expand_expr_stmt): Redirect to...
11579         (expand_expr_stmt_value): ... this new function.  Use new
11580         argument to tell whether to save expression value.
11581         (expand_end_stmt_expr): Reset last_expr_type and
11582         last_expr_value if we don't have either.
11583         * tree-inline.c (declare_return_variable): Mark its use
11584         statement as addressable.
11585         * tree.h: Document new use of TREE_ADDRESSABLE.
11586         (expand_expr_stmt_value): Declare.
11587
11588 2002-01-01  Tom Rix  <trix@redhat.com>
11589
11590         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11591         rs6000_emit_allocate_stack.
11592
11593 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11594
11595         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11596         ${srcdir}/ginclude/ to every entry in extra_headers.
11597         * configure: Regenerate.
11598         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11599         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11600         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11601         * ginclude/proto.h: Rename to config/convex/proto.h.
11602
11603 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11604
11605         * attribs.c (handle_vector_size_attribute): Use host_integerp
11606         and tree_int_cst; remove warnings.
11607         * caller-save.c (insert_restore): Add cast to get rid of warning.
11608         (insert_save): Likewise.
11609         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11610         * regmove.c (find_matches): Add temporary var to kill a warning.
11611
11612 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11613
11614         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11615         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11616         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11617         (vms-dwarf2eh.o): Add Makefile rule.
11618         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11619         * config/alpha/vms-dwarf2eh.asm: New file.
11620
11621         * gcc.c (delete_if_ordinary): Delete all versions.
11622
11623 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11624
11625         * config/mmix/mmix.md: Update FIXME to not mention
11626         define_constants.
11627         (MMIX_rJ_REGNUM): New define_constants constant.
11628         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11629         "*movdicc_real"): Adjust contraints formatting.
11630         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11631         for branch prediction.
11632         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11633         output template.
11634         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11635         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11636         number.  Delete related FIXMEs.
11637         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11638         from number to MMIX_rJ_REGNUM.
11639         (TARGET_MASK_BRANCH_PREDICT): New.
11640         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11641         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11642         value.  Add -mbranch-predict and -mno-branch-predict.
11643         (TARGET_VERSION): Drop date.
11644         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11645         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11646         for finding out global symbols.
11647         (mmix_asm_output_labelref): Revert condition for global symbol.
11648         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11649         (mmix_print_operand_punct_valid_p): A '+' is valid.
11650
11651 See ChangeLog.6 for earlier changes.