OSDN Git Service

* varasm.c (merge_weak): Remove special case for extern and common.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-15  Richard Henderson  <rth@redhat.com>
2
3         * varasm.c (merge_weak): Remove special case for extern and common.
4
5 2002-05-15  Matt Hiller  <hiller@redhat.com>
6
7         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
8         XFAILing.
9         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
10         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
11         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
12         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
13         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
14         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
15
16 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
17
18         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
19
20 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
21
22         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
23         ("altivec_mfvscr"): Read from VSCR.
24
25         Add vscr sets for the following insns: altivec_vctuxs,
26         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
27         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
28         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
29         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
30         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
31         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
32         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
33         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
34         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
35         altivec_vsum2sws, altivec_vsumsws.
36
37         * config/rs6000/rs6000.h: Add VSCR fixed register.
38         (CALL_REALLY_USED_REGISTERS): Add vscr.
39         (CALL_USED_REGISTERS): Same.
40         (FIXED_REGISTERS): Same.
41         (REG_ALLOC_ORDER): Same.
42         (reg_class): Add VSCR_REGS.
43         (REG_CLASS_NAMES): Same.
44         (REG_CLASS_CONTENTS): Same.
45         (VSCR_REGNO): New.
46         (REGISTER_NAMES): Add vscr.
47         (DEBUG_REGISTER_NAMES): Same.
48         (ADDITIONAL_REGISTER_NAMES): Same.
49         (FIRST_PSEUDO_REGISTER): Increment.
50         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
51
52 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
53
54         * fold-const.c (fold): Fix a typo.
55
56 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
57
58         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
59         comparison against the highest or lowest integer value before
60         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
61         transformation and that of an unsigned comparison against 0
62         right after.
63
64 2002-05-15  Richard Henderson  <rth@redhat.com>
65
66         * varasm.c (merge_weak): Error for any weakening after definition.
67         Adjust weakening after use warning to catch more cases.
68         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
69         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
70
71 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
72
73         * invoke.texi (-malign-double): Re-add lost warning.
74
75         * i386-protos.h (x86_output_mi_thunk): Declare.
76         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
77         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
78
79         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
80         when flag_asynchronous_unwind_tables is set.
81
82         * flags.h (flag_reorder_functions): Declare.
83         * function.c (prepare_function_start): Initialize frequnecy.
84         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
85         * Makefile.in (predict.o): Add dependency on target.h and params.h
86         * defaults.h (HOT_TEXT_SECTION_NAME,
87         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
88         * predict.c (choose_function_section): New function.
89         (estimate_bb_frequencies): Use it.
90         * toplev.c (flag_reorder_functions): New global variable.
91         (lang_independent_options): New.
92         (parse_options_and_default_flags): Set.
93         * varasm.c (assemble_start_function): Bypass functdion alignment
94         for never executed functions.
95         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
96         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
97         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
98         Document.
99
100         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
101
102         * predict.c: Inlude profile.h
103         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
104         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
105         Use the information about maximal counter in the program.
106
107         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
108
109         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
110         probably_never_executed_bb_p): New functions.
111         * cfgcleanup.c (outgoing_edges_match): Use them.
112         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
113         (maybe_hot_bb_p, probably_cold_bb_p,
114         probably_never_executed_bb_p): New functions.
115
116         * function.h (function): Add new field function_frequency.
117         * predict.c (compute_function_frequency): New function.
118         (estimate_probability): Call it.
119
120 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
121
122         PR optimization/5172, optimization/5200
123         * gcse.c (gcse_main): Disable store_motion.
124
125 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
126
127         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
128         (c_common_nodes_and_builtins): Use it.
129         (builtin_define_with_value): New function.
130         (cb_register_builtins): Define __SIZE_TYPE__,
131         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
132         using builtin_define_with_value.  Use consistent notation when
133         defining __GXX_WEAK__.
134         (WCHAR_TYPE_SIZE): Don't redefine.
135         (combine_strings): Don't use WCHAR_TYPE_SIZE.
136
137         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
138         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
139         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
140         * tradcpp.c (initialize_builtins): Likewise.
141         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
142
143         * c-lex.h (builtin_define_with_value): Prototype.
144         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
145         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
146         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
147
148         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
149         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
150         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
151         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
152         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
153         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
154         config/sparc/sol2-bi.h, config/sparc/sparc.h:
155         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
156         to __SIZE_TYPE__ etc from all spec strings. When this makes
157         extra specs empty, delete them.
158
159 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
160
161         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
162         for PA8000 or generating dwarf2 call frame information.
163         (output_call): Remove DO_FRAME_NOTES check from return pointer
164         optimization.
165         (following_call): Return 0 when scheduling for PA8000 or generating
166         dwarf2 call frame information.  Revise comment.
167
168 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
169
170 config/alpha:
171         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
172         and __IEEE_FP_INEXACT as appropriate.
173         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
174         (CPP_SPEC): Remove ieee defines.
175         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
176
177 2002-05-14  Richard Henderson  <rth@redhat.com>
178
179         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
180         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
181
182 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
183
184         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
185         (CPP_SPEC): Update.
186         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
187         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
188         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
189         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
190         (EXTRA_SPECS): Update.
191         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
192         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
193         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
194         define TARGET_OS_CPP_BUILTINS if necessary.
195
196 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
197
198         * gcc.c (cpp_options): Must pass -m* and -f* options
199         to the front end even when only preprocessing.
200         (cc1_options): Remove redundant -lang-c.
201         * tradcpp.c (main): Ignore -m options.
202 objc:
203         * lang-specs.h: Similarly.
204
205 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
206
207         * genautomata.c (transform_3): Add code for transformation
208         `(A,B,...)+C -> A+C,B,...'.
209
210 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
211
212         * final.c (end_final): Do not output profile_arcs constructor, when
213         no functions are instrumented.
214
215 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
216
217         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
218
219 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
220
221         * doc/install.texi: Remove special markup originally required for
222         HTML generation with texi2html.
223
224 2002-05-14  Andreas Schwab  <schwab@suse.de>
225
226         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
227         SELECT_SECTION.
228         (UNIQUE_SECTION): Define to get small data correctly.
229
230         * varasm.c (resolve_unique_section): Add third parameter
231         flag_function_or_data_sections and use it instead of
232         flag_function_sections.
233         (assemble_start_function): Pass flag_function_sections.
234         (asm_emit_uninitialised): Pass flag_data_sections.
235         (assemble_variable): Likewise.
236
237 2002-05-14  Richard Henderson  <rth@redhat.com>
238
239         * config/i386/i386.md: Use define_constants for unspec numbers.
240         * config/i386/i386.c: Likewise.
241
242 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
243
244         * doc/contrib.texi: Update my entry.
245
246 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
247
248         * fixinc/inclhack.def (winidss_valist): Limit applicability.
249         * fixinc/fixincl.x: Regenerated.
250         * fixinc/tests/base/math.h: Update.
251         * fixinc/tests/base/testing.h: Likewise.
252
253 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
254
255         * genattr.c (gen_attr): Don't emit a comma after the last
256         enumerator.
257
258 2002-05-13  Richard Henderson  <rth@redhat.com>
259
260         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
261         by non-local gotos.
262         * recog.c (peephole2_optimize): Likewise.
263
264 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
265
266         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
267         input to O_BINARY.
268
269 2002-05-13  Jeffrey A Law  (law@redhat.com)
270
271         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
272         Update prototype and callers.
273         (propagate_one_insn): Stack pointer adjustments kill MEMs on
274         the mem_set_list which reference the stack pointer, as do
275         calls to constant functions as they may clobber outgoing
276         argument space.
277
278         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
279
280         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
281         (ia32_multipass_dfa_lookahead): New function.
282
283 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
284
285         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
286         (translate_options): Remove 'V'.
287         (process_command): Similarly.
288 doc:
289         * invoke.texi: Remove documentation of 'V'.
290
291 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
292
293         * config/s390/linux.h: Revert 2002-04-22 changes.
294
295 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
296
297         * config/fr30/fr30.md: Only allow splits of immediate loads
298         if the destination is a register.
299
300 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
301
302         * Makefile.in (c-common.o, cppinit.o): Update.
303         * c-common.c: Include except.h.
304         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
305         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
306         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
307         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
308         CPP_PREDEFINES): Handle here.
309 config:
310         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
311         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
312         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
313         TARGET_OS_CPP_BUILTINS.
314         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
315         (CPP_SPEC, EXTRA_SPECS): Update.
316         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
317         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
318         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
319         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
320         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
321 doc:
322         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
323         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
324
325 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
326
327         * emit-rtl.c (global_rtl): Update comment.
328         (const_double_htab, const_double_htab_hash,
329         const_double_htab_hash, lookup_const_double): New.
330         (const_int_htab_hash, const_int_htab_eq): Remove const
331         qualifiers, which cause tons of warnings with RTL checking on.
332         (gen_rtx_CONST_DOUBLE): Deleted.
333         (const_double_from_real_value): New function - bears some
334         resemblance to the former immed_real_const_1.
335         (immed_double_const): Moved here from varasm.c and
336         simplified.
337         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
338         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
339         (gen_rtx): Use immed_double_const.
340         (init_emit_once): Initialize the const_double_htab.  Use
341         REAL_VALUE_FROM_INT where possible.  Can now use
342         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
343         * varasm.c (struct varasm_status): Remove x_const_double_chain.
344         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
345         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
346         (init_varasm_status, mark_varasm_status): Don't touch
347         x_const_double_chain.
348
349         * output.h: Delete prototype for clear_const_double_mem.
350         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
351         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
352         const_double_from_real_value, not immed_real_const_1, and use
353         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
354         CONST_DOUBLE_ATOF.
355         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
356         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
357         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
358         (gen_rtx_REG): Second arg is unsigned.
359
360         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
361         (excluded_rtx): New, return true for CONST_DOUBLE.
362         (genmacro): Write nothing for excluded codes.
363         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
364         * expr.c (expand_expr): Likewise.
365         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
366         CONST_DOUBLE_CHAIN.
367         * toplev.c (rest_of_compilation): Don't call
368         clear_const_double_mem.
369
370         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
371         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
372         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
373         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
374         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
375         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
376         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
377         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
378
379 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
380
381         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
382
383 2002-05-12  Tom Tromey  <tromey@redhat.com>
384
385         * tree.h (copy_node): Don't mention TREE_PERMANENT.
386
387 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
388
389         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
390         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
391         * gensupport.h: Prototype new routines.
392         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
393         use of printf.
394         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
395         (next_comma_elt): Use scan_comma_elt.
396
397         * config/i386/i386.md: Use new attribute notation to break up
398         long lines in define_attr forms.
399
400 2002-05-12  Richard Henderson  <rth@redhat.com>
401
402         * expr.c (compress_float_constant): New.
403         (emit_move_insn): Use it.
404         (float_extend_from_mem): New.
405         (init_expr_once): Initialize it.
406         * real.c (exact_real_truncate): New.
407
408         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
409         dropped into memory; penalize for size.
410         (RTX_COSTS): FLOAT_EXTEND is free.
411         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
412         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
413
414 2002-05-12  Richard Henderson  <rth@redhat.com>
415
416         * profile.h (profile_info): Add missing extern to declaration.
417         * profile.c (profile_info): Define it.
418
419 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
420
421         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
422         used for DImode and TImode.
423
424 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
425
426         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
427         fake a newline.
428
429 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
430
431         * config/rs6000/rs6000.c (rs6000_default_long_calls,
432         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
433         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
434         (rs6000_override_options): Handle -m(no-)longcall.
435         (init_cumulative_args, output_mi_thunk): Check for both
436         longcall and shortcall attributes on the function.
437         (rs6000_attribute_table): Add "shortcall".
438         (rs6000_handle_longcall_attribute): Update comment.
439         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
440         altivec_expand_ternop_builtin): Add default clauses to switches
441         to silence warnings.
442
443         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
444         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
445         (TARGET_OPTIONS): Add longcall and no-longcall.
446
447         * config/rs6000/rs6000.md (call_nonlocal_sysv,
448         call_value_nonlocal_sysv): Split by alternatives.  One pair
449         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
450         the call cookie.  The other pair accepts only LR/CTR and has
451         no restriction.
452
453         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
454         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
455         tmake_file.
456         * config/rs6000/rs6000-c.c: New file.
457         * config/rs6000/t-rs6000-c-rule: New file.
458         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
459         Prototype rs6000_pragma_longcall.
460
461         * doc/extend.texi: Document shortcall attribute.
462         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
463
464 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
465
466         * reorg.c (dbr_schedule): Remove unnecessary test.
467
468 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
469
470         * i386.md (testsi to testqi spliters): New.
471
472         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
473
474         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
475
476         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
477
478         * basic-block.h: New flag EDGE_CAN_FALLTHRU
479         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
480         that can be made fallthru.
481
482         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
483
484         * cfglayout.c (cleanup_unconditional_jumps): New static function.
485         (cfg_layout_initialize): Use it.
486
487 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
488
489         * config/avr/avr.c (avr_mcu_types): Update supported devices.
490         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
491         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
492
493 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
494
495         * dbxout.c: Fix formatting.
496         * dependence.c: Likewise.
497         * df.c: Likewise.
498         * diagnostic.c: Likewise.
499         * doloop.c: Likewise.
500         * dominance.c: Likewise.
501         * doschk.c: Likewise.
502         * dwarf2asm.c: Likewise.
503         * dwarf2out.c: Likewise.
504         * dwarfout.c: Likewise.
505
506 2002-05-10  Richard Henderson  <rth@redhat.com>
507
508         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
509         Convert integers constants as needed.  Replace "nwords" field with
510         "sizeof_bb".
511         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
512         * function.h: Fix typo in comment.
513         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
514
515 2002-05-10  Roger Sayle  <roger@eyesopen.com>
516
517         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
518         into the equivalent (signed char)c > 0.
519
520 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
521
522         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
523         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
524         (struct prefetch_info): Fix spelling of member bytes_accessed.
525         (emit_prefetch_instructions): Make dump messages more regular;
526         restructure code to add more dump messages; use new macros for
527         heuristics. (There are no code generation changes in any of this).
528
529 2002-05-10  David S. Miller  <davem@redhat.com>
530
531         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
532         (struct rtx_def): Update unchanging flag comment.
533         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
534         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
535         to be handled to INSN too.
536         (dbr_schedule): Likewise.
537         * resource.c (next_insn_no_annul): Likewise.
538
539         * cse.c (rtx_cost): Remove multiplication by power of 2 special
540         casing.
541
542 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
543
544         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
545         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
546         (possibly) work around broken /bin/sh.
547
548 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
549
550         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
551         . as N64/N32 libgcc_s.so subdirs.
552
553 2002-05-10  David S. Miller  <davem@redhat.com>
554
555         * config/sparc/sparc.md: Use define_constants for unspec numbers.
556
557         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
558         more accurately.
559         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
560         comment.
561         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
562         * doc/rtl.texi: Document these macros more accurately.
563         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
564         JUMP_INSNs and CALL_INSNs.
565         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
566         or INSN_FROM_TARGET_P if the code is appropriate.
567
568 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
569
570         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
571         before using SYMBOL_REF_FLAG (addr).
572
573         * config/avr/avr-protos.h (avr_io_address_p): Declare.
574         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
575         Make non-static.  Update all callers.
576         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
577         New insns to clear/set/test a single bit in I/O address space.
578
579 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
580
581         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
582
583 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
584
585         * Makefile.in: Update.
586         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
587         builtin_define_std): New.
588         (c_common_init): Register CPP builtins callback.
589         * c-common.h (flag_iso, flag_undef): New.
590         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
591         * c-lex.c: Don't include target.h.
592         (cb_register_builtins): Move to c-common.c.
593         (init_c_lex): Don't register hook here.
594         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
595         (cpp_define, cpp_assert): Remove.
596         * gcc.c (cc1_options): Pass -undef to front end.
597         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
598         (TARGET_INITIALIZER): Update.
599         * target.h (struct cpp_reader): Don't predeclare.
600         (struct gcc_target): Remove cpp builtin hook.
601         * tree.c (default_register_cpp_builtins): Remove.
602 doc:
603         * tm.texi: Update.
604
605 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
606
607         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
608
609 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
610
611         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
612         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
613
614 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
615
616         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
617         * config/sparc/libgcc-sparc-glibc.ver: New file.
618         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
619         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
620
621 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
622
623         PR target/6429
624         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
625         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
626         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
627         base multilibs.
628         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
629         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
630         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
631         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
632
633 2002-05-09  Richard Henderson  <rth@redhat.com>
634
635         * config/ia64/ia64.md: Use define_constants for unspec numbers.
636         * config/ia64/ia64.c: Likewise.
637
638 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
639
640         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
641         (save_restore_insns): Likewise.
642         (mips_expand_prologue, mips_expand_epilogue): Update callers.
643         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
644
645 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
646
647         * athlon.md, k6.md, pentium.md, ppro.md): New files.
648         * i386.md: Move scheduling information into new files.
649
650         * i386.md (type attribute): Add "rotate" for rotate insns.
651         (rotate insns): Set type to "rotate".
652         (various attributes and function units): Treat rotate like shift.
653         (pent_pair attribute): Only rotates by one bit position are
654         pairable.
655         (sbb insns): Explicitly set pent_pair attribute on a couple
656         that were missing it.
657
658 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
659
660         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
661         make sure that buffer starts on odd word address.
662         (sh_va_arg): Skip odd fp registers when reading a double precision
663         value.
664
665 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
666
667         * tree.h (preserve_data, object_permanent_p, type_precision):
668         Remove.
669
670 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
671
672         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
673         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
674 doc:
675         * cpp.texi: Update for removal of obsolete features.
676
677 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
678                           Jeffrey A Law  (law@redhat.com)
679
680         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
681         the DFA interface for Pentium processors.
682         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
683         (attr_pent_pair, ix86_pent_find_pair): Remove.
684         (ix86_sched_reorder_pentium): Remove.
685         (ix86_sched_reorder): Remove reordering for Pentium.
686         * i386.md (Pentium scheduling): Rewrite using DFA description.
687
688 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
689
690         * cfganal.c (can_fallthru): Fix fast path.
691         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
692         with edges to the next block.
693
694 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
695                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
696
697         * final.c (end_final): Use C trees to output data structures for profiling.
698
699         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
700         (profile.o): New dependency profile.h
701         (final.o): New dependency profile.h
702         * profile.h: New file. New global structure profile_info.
703         * final.h (count_edges_instrumented_now): Declare.
704         (current_function_cfg_checksum): Declare.
705         (function_list): New structure.
706         (functions_head, functions_tail): New static variables.
707         (end_final): Emits more data, removed some -ax stuff.
708         (final): Stores function names and chcksums.
709         * gcov-io.h (__write_gcov_string): New function.
710         (__read_gcov_string): New function.
711         * gcov.c (read_profile): New function.
712         (create_program_flow_graph): Uses read_profile instead of reading
713         da_file.
714         (read_files): Removed da_file checking, it's done by read_profile now.
715         * libgcc2.c (bb_function_info): New structure.
716         (bb): New field in structure, removed some -ax stuff.
717         (__bb_exit_func): Changed structure of da_file.
718         * profile.c (count_edges_instrumented_now): New global variable.
719         (current_function_cfg_checksum): New global variable.
720         (max_counter_in_program): New global variable.
721         (get_exec_counts): New function.
722         (compute_checksum): New function.
723         (instrument_edges): Sets count_edges_instrumented_now.
724         (compute_branch_probabilities): Uses get_exec_counts instead of
725         reading da_file.
726         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
727         (init_branch_prob): Removed da_file checking, done in get_exec_counts
728         now.
729         (end_branch_prob): Removed da_file checking, done in get_exec_counts
730         now.
731         * gcov.texi: Updated information about gcov file format.
732
733 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
734
735         * sbitmap.c: Fix formatting.
736         * scan.c: Likewise.
737         * scan-decls.c: Likewise.
738         * sched-deps.c: Likewise.
739         * sched-ebb.c: Likewise.
740         * sched-rgn.c: Likewise.
741         * sched-vis.c: Likewise.
742         * sdbout.c: Likewise.
743         * sibcall.c: Likewise.
744         * simplify-rtx.c: Likewise.
745         * ssa.c: Likewise.
746         * ssa-ccp.c: Likewise.
747         * ssa-dce.c: Likewise.
748         * stmt.c: Likewise.
749         * stor-layout.c: Likewise.
750         * stringpool.c: Likewise.
751
752 2002-05-09  David S. Miller  <davem@redhat.com>
753
754         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
755
756 2002-05-07  David S. Miller  <davem@redhat.com>
757
758         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
759         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
760         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
761         library implementation clobbers the output before the inputs
762         are fully consumed, use stack temporary for the output.
763
764 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
765
766         * config/netbsd.h (CPP_SPEC): Remove.
767         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
768         * config/i386/netbsd.h (CPP_SPEC): Define.
769         * config/ns32k/netbsd.h (CPP_SPEC): Define.
770         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
771         * config/sparc/netbsd.h (CPP_SPEC): Define.
772         * config/vax/netbsd.h (CPP_SPEC): Define.
773
774 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
775
776         * read-rtl.c: Fix formatting.
777         * real.c: Likewise.
778         * recog.c: Likewise.
779         * regclass.c: Likewise.
780         * regmove.c: Likewise.
781         * reg-stack.c: Likewise.
782         * reload1.c: Likewise.
783         * reload.c: Likewise.
784         * resource.c: Likewise.
785         * rtlanal.c: Likewise.
786         * rtl.c: Likewise.
787         * rtl-error.c: Likewise.
788
789 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
790
791         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
792         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
793
794 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
795
796         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
797         use __SSE2__ macro instead.
798         * config/i386/xmmintrin.h: Likewise.
799
800 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
801
802         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
803         and use it in all invocations of these macros.  Clean up comments.
804         * rtl.c (rtl_check_failed_flag): Add an argument for the name
805         of the flag access macro whose check failed.
806         * doc/rtl.texi (Flags): Document additional flag uses.
807
808 2002-05-08  Robert Spier <rspier@pobox.com>
809             Neil Booth  <neil@daikokuya.demon.co.uk>
810
811         PR preprocessor/6521
812         * cppfiles.c (handle_missing_header): Don't do anything
813         different for <> includes.
814 doc:
815         * cppopts.texi: Update documentation for -MG.
816
817 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
818
819         * cpplex.c (cpp_interpret_charconst): Truncate as well as
820         sign-extend.
821 doc:
822         * cpp.texi: Clarify multichar charconst valuation.
823
824 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
825
826         * doc/invoke.texi: Document -mwindiss option.
827
828 2002-05-08  Jason Merrill  <jason@redhat.com>
829
830         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
831
832         * dwarf2out.c (gen_type_die): Abort on broken recursion.
833
834         PR c++/6381
835         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
836         REAL_CST.
837
838 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
839
840         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
841         little-endian multilibs to override arm/thumb multilibs.
842         Do not build hardware floating point multilibs, nor apcs-26
843         multilibs for the Thumb.
844
845 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
846
847         PR c/6569.
848         * varasm.c (mark_weak): New function.
849         (merge_weak): Use it.  Do not call declare_weak.
850         (declare_weak): Use merge_weak.
851
852 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
853
854         * cse.c (dead_libcall_p): Update counts.
855         (delete_trivially_dead_insns): Update call of dead_libcall_p.
856
857 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
858
859         * cfglayout.c (function_tail_eff_head): Rename to ...
860         (function_footer): ... this one.
861         (unlink_insn_chain): New functions.
862         (label_for_bb): Only call block_label and emit debug message.
863         (record_effective_endpoints): Actually unlink the headers and footers.
864         (fixup_reorder_cahin): Re-insert the unlinked sequences.
865         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
866         * cfglayout.h (struct reorder_block_def): New fields footer/header;
867         remove eff_head/eff_end.
868         * rtl.h (set_first_insn): Declare.
869         * emit-rtl.c (set_first_insn): New function.
870
871         * cfglayout.c (fixup_reorder_chain): Dump duplicated
872         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
873         cfg_layout_duplicate_bb): New global function.
874         (duplicate_insn_chain): New static function.
875         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
876         cfg_layout_duplicate_bb): Declare.
877         (struct reorder_block_def): Add "original" field.
878         * emit-rtl.c (emit_copy_of_insn_after): New function.
879         * rtl.h (emit_copy_of_insn_after): Declare.
880
881         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
882         (fixup_reorder_chain): properly handle edges to exit block.
883
884 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
885                                Jan Hubicka  <jh@suse.cz>
886
887         * basic-block.h (note_prediction_to_br_prob): declare.
888         * c-semantics.c: Inlucde predit.h
889         (expand_stmt): predict GOTO_STMT as not taken.
890         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
891         (cleanup_cfg): Do not free tail_recursion_list.
892         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
893         (flow_delete_block): Kill predictions past end of basic block.
894         * output.h (delete_unreachable_blocks): Declare.
895         * predict.c (predicted_by_p, process_note_predictions,
896         process_note_prediction, last_block_p): New function.
897         (estimate_probability): Bypass loop on PRED_CONTINUE;
898         do not handle noreturn heuristics; kill PRED_RETURN; add
899         PRED_EARLY_RETURN.
900         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
901         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
902         * predict.h (IS_TAKEN): New constant.
903         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
904         * rtl.c (NOTE_INSN_PREDICTION): New.
905         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
906         New macro.
907         (insn_note): add NOTE_INSN_PREDICTION.
908         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
909         CFG; free tail_recursion_label_list.
910         * stmt.c: Include predict.h;
911         (return_prediction): New.
912         (expand_value_return): Use it.
913         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
914
915 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
916
917         * config/mips/mips.md: Name the unspecs with define_constant.
918         (*HILO_delay): Rename to 'hilo_delay' (no star).
919         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
920         (reload_outdi, reload_outsi): Likewise.
921
922 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
923
924         * toplev.c: Fix formatting.
925
926 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
927
928         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
929         * configure.in (ac_rtlflag_checking): New.
930         * doc/install.texi (--enable-checking): Document RTL flag checking.
931
932 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
933
934         * c-common.c (c_common_init): Set options->unsigned_wchar.
935         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
936         group target dependencies.
937         (init_builtins, cpp_handle_option): Update.
938         * cpplex.c (cpp_interpret_charconst): Update.
939         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
940         signed_char to unsigned_char, group target dependencies.
941         * defaults.h (WCHAR_UNSIGNED): Remove.
942         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
943 config:
944         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
945         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
946         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
947         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
948         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
949 doc:
950         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
951
952 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
953
954         * fixinc/inclhack.def (windiss_math1): New fix.
955         (windiss_math2): Likewise.
956         (windiss_valist): Likewise.
957         * fixinc/fixincl.x: Regenerated.
958
959 2002-05-07  Andreas Jaeger  <aj@suse.de>
960
961         * genautomata.c (output_internal_min_issue_delay_func): Add
962         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
963         (output_internal_trans_func): Likewise.
964
965 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
966
967         * pa.c (hppa_profile_hook): Use force_reg to get the address
968         of the profile hook into an appropriate pseudo register.
969
970 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
971
972         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
973         (LINK_START_SPEC): Handle it.
974         (LINK_OS_SPEC): Likewise.
975         (CPP_SPEC): Likewise.
976         (STARTFILE_SPEC): Likewise.
977         (LIB_SPEC): Likewise.
978         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
979         all platforms.
980         (CRTSAVRES_DEFAULT_SPEC): New macro.
981         (LIB_WINDISS_SPEC): New macro.
982         (CPP_OS_WINDISS_SPEC): Likewise.
983         (STARTFILE_WINDISS_SPEC): Likewise.
984         (ENDFILE_WINDISS_SPEC): Likewise.
985         (LINK_START_WINDISS_SPEC): Likewise.
986         (LINK_OS_WINDISS_SPEC): Likewise.
987         * config/rs6000/windiss.h: New file.
988
989 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
990
991         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
992
993 2002-05-06  David S. Miller  <davem@redhat.com>
994
995         * config/sparc/sparc.md (shift insns): Do not mask off
996         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
997         take care of it.
998
999 2002-05-06  Richard Henderson  <rth@redhat.com>
1000
1001         PR c++/6212
1002         * expr.c (highest_pow2_factor_for_type): New.
1003         (expand_assignment): Use it.
1004
1005 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
1006
1007         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1008         unspec_volatile.
1009         ("altivec_mfvscr"): Same.
1010
1011 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1012
1013         * rtl.h (struct rtx_def): Update comments.
1014         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
1015         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
1016         RTL_FLAG_CHECK macros with list of expected RTL codes.
1017         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1018         (rtl_check_failed_flag): New.
1019         * reload1.c (reload): Use REG macro before changing rtx to MEM.
1020         (reload_cse_noop_set_p): Check rtx code before using access macro.
1021         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1022         before using access macro.
1023
1024 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1025
1026         * doc/rtl.texi (Flags): Update to reflect current usage.
1027
1028 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1029
1030         PR opt/3995
1031         * fold-const.c (sign_bit_p): New function.
1032         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1033         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1034         Reapply fold when converting (A & C) == C into (A & C) != 0.
1035         (fold_binary_op_with_conditional_arg): Fix typo in comment.
1036
1037 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1038
1039         * c-common.c (warn_multichar): New.
1040         (c_common_init): Set CPP's warn_multichar.
1041         * c-common.h (warn_multichar): New.
1042         * c-decl.c (warn_multichar): Remove.
1043         * c-lex.c (lex_charconst): Update.
1044         * c-tree.h (warn_multichar): Remove.
1045         * cppexp.c (eval_token): Sign-extend charconst value.
1046         * cppinit.c (cpp_create_reader): Set warn_multichar.
1047         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1048         each character.  Update prototype.  Sign-extend the result.
1049         * cpplib.h: Fix conditions.
1050         (struct cpp_options): Add new warning flag.
1051         (cpp_interpret_charconst): Update prototype.
1052 doc:
1053         * cpp.texi: Update documentation.
1054
1055 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
1056
1057         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1058         Fix typo in usage of allof instead of unit.
1059
1060 2002-05-06  Richard Henderson  <rth@redhat.com>
1061
1062         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1063         and any jump or call for IN.
1064
1065 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
1066
1067         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1068         -msse2.
1069         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1070
1071 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1072
1073         * fold-const.c (lshift-double): Cast the high word to an unsigned
1074         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1075         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1076         avoid compiler warning.  (fold): Remove redundant code from
1077         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1078
1079 2002-05-06  Jeff Law  <law@redhat.com>
1080
1081         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1082         * pa.c (pa_adjust_cost): Remove all true dependency cost
1083         adjustments.  Also remove support for non-DFA scheduling.
1084         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1085         to adjust true dependency costs.  Update various comments.
1086         (7100lc, 7200, 7300 scheduling): Simplify by combining the
1087         FP ALU & MPY units into a single unit.
1088
1089 2002-05-06  Catherine Moore  <clm@redhat.com>
1090
1091         * config/v850/v850.c (compute_register_save_size): Make sure
1092         to count all of the registers that will be saved.
1093
1094 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1095
1096         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1097
1098 2002-05-06  David S. Miller  <davem@redhat.com>
1099
1100         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1101         allow result to overlap input operands in memory.
1102
1103 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1104
1105 doc:
1106         * cpp.texi: Update multichar charconst docs.
1107
1108 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1109
1110         * cpplex.c (cpp_interpret_charconst): Sign-extend each
1111         character.  Don't ignore excess characters.  Treat
1112         multicharacter character constants as signed.
1113         (cpp_parse_escape): Clarify diagnostic.
1114
1115 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1116
1117         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1118         use add instead of shift.
1119         (ashldi3_sp64): Likewise.
1120         (ashlsi3_const1, ashldi3_const1): Remove.
1121         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1122         * config/sparc/sparc.c (const1_operand): New.
1123
1124 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
1125
1126         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1127
1128 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1129
1130         PR target/6561
1131         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1132
1133 2002-05-05  Richard Henderson  <rth@redhat.com>
1134
1135         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1136         memory latency adjustments.
1137         (alpha_variable_issue): Remove.
1138         (alpha_use_dfa_pipeline_interface): New.
1139         (alpha_multipass_dfa_lookahead): New.
1140         * config/alpha/alpha.md: Remove define_function_unit scheduling;
1141         include new dfa scheduling.
1142         (attr type): Add none.
1143         (blockage): Use it.
1144         * config/alpha/ev4.md: New.
1145         * config/alpha/ev5.md: New.
1146         * config/alpha/ev6.md: New.
1147
1148 2002-05-05  David S. Miller  <davem@redhat.com>
1149
1150         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1151
1152 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
1153
1154         * cse.c: Fix formatting.
1155         * emit-rtl.c: Likewise.
1156
1157 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1158
1159         * genautomata.c (initiate_states): Add additional guard to
1160         initialize `units_array'.
1161
1162 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1163
1164         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1165         process_unit_to_form_the_same_automaton_unit_lists,
1166         form_the_same_automaton_unit_lists
1167         check_unit_distributions_to_automata): New prototypes and
1168         functions.
1169         (check_automata): Rename it into `check_automata_insn_issues'.
1170         (unit_decl): New fields `the_same_automaton_unit' and
1171         `the_same_automaton_message_reported_p'.
1172         (unit_decl_t): New typedef.
1173         (the_same_automaton_lists): New gloval variable.
1174         (unit_regexp, unit_set_el, units_array, units_cmp,
1175         output_get_cpu_unit_code_func): Use the typedef.
1176         (evaluate_max_reserv_cycles): Increment
1177         `description->max_insn_reserv_cycles'.
1178         (initiate_states): Don't increment `max_cycles_num'.
1179         (transform_insn_regexps): Move code around transformation of
1180         regexps from `generate'.
1181         (generate): Remove call of `transform_insn_regexps'.
1182         (expand_automata): Call `transform_insn_regexps' and
1183         `check_unit_distributions_to_automata'.  Check errors before
1184         `generate'.
1185
1186         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1187         automaton `ultrasparc3_1'.
1188
1189 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1190
1191         * c-common.c (c_common_init): Set up CPP arithmetic.
1192         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1193         something reasonable for the host.
1194         (sanity_checks): Add checks.
1195         (cpp_read_main_file): Call sanity_checks() from here...
1196         (cpp_post_options): ... not here.
1197         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1198         * cpplib.h (struct cpp_options): New member int_precision.
1199
1200 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1201
1202         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1203
1204 2002-05-04  David S. Miller  <davem@redhat.com>
1205
1206         * config/sparc/linux.h, config/sparc/linux64.h
1207         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1208
1209         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1210         more RTX codes.
1211         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1212
1213         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1214         of SETs.
1215
1216 2002-05-05  Tim Josling  <tej@melbpc.org.au>
1217
1218         * treelang; New directory for new sample language treelang.
1219
1220 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1221
1222         * Makefile.in (c-lex.o): Update.
1223         * c-lex.c: Include target.h.
1224         (cb_register_builtins): New.
1225         (init_c_lex): Set builtins callback.
1226         * c-lex.h (cpp_define, cpp_assert): New prototypes.
1227         * cppinit.c (init_builtins): Use callback, including for
1228         GXX_WEAK.
1229         * cpplib.h (struct cpp_callbacks): New member.
1230         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1231         (TARGET_INITIALIZER): Update.
1232         * target.h (struct gcc_target): New hook.
1233         * tree.c (default_register_cpp_builtins): New.
1234         * tree.h (default_register_cpp_builtins): New.
1235 doc:
1236         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1237
1238 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1239
1240         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1241         (cpp_post_options): Move sanity checks to...
1242         (sanity_checks): New.
1243         * cpplex.c (maybe_read_ucs): Fix prototype.
1244         (parse_string, cpp_parse_escape): Cast for %c format specifier.
1245         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1246         if necessary.
1247
1248 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
1249
1250         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1251         builtins.  Use V2DI patterns instead of TI for logical operations.
1252         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1253         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1254         (ix86_expand_builtins): Change the pattern used for movntdq.
1255         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1256         sse2_nandv2di3): New patterns.
1257         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1258         on operands.
1259         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1260         (cvtdq2pd): Correct mode on operand 1.
1261         (sse2_umulsidi3): Describe without unspec.
1262         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1263         machine modes.
1264         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1265         (ashlv2di3): Likewise, from sse2_ashlv2di3.
1266         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1267         ashlv4si3, ashlv2di3): Use SImode for shift count.
1268         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1269         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1270         New patterns.
1271         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1272         New typedefs.
1273         (__m128i, __m128d): New macros.
1274         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1275         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1276         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1277         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1278         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1279         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1280         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1281         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1282         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1283         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1284         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1285         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1286         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1287         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1288         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1289         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1290         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1291         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1292         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1293         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1294         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1295         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1296         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1297         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1298         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1299         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1300         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1301         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1302         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1303         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1304         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1305         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1306         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1307         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1308         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1309         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1310         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1311         functions.
1312         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1313         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1314
1315 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1316
1317         * dwarf2out.c: Fix formatting.
1318         * varasm.c: Likewise.
1319
1320 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
1321
1322         PR c/6543
1323         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1324         clobber and use result as temporary value.
1325
1326 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1327
1328         * expr.c (force_operand): Use expand_simple_* to handle more
1329         cases.
1330
1331 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1332
1333         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1334         and sign-extension.
1335         (lex_charconst): Update for change in prototype of
1336         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
1337         appropriately.
1338         * cpphash.h (BITS_PER_CPPCHAR_T): New.
1339         * cppinit.c (cpp_create_reader): Initialize them for no
1340         change in semantics.
1341         (cpp_post_options): Add sanity checks.
1342         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1343         and truncation issues.  Calculate in type cppchar_t.
1344         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1345         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
1346         run-time dependent precision correctly.  Return whether the
1347         result is signed or not.
1348         * cpplib.c (dequote_string): Use cppchar_t; update.
1349         * cpplib.h (cppchar_signed_t): New.
1350         struct cpp_options): New precision members.
1351         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1352         * cppexp.c (eval_token): Update.
1353
1354 2002-05-03  David S. Miller  <davem@redhat.com>
1355
1356         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1357         * config/sparc/sparc.c (sparc_rtx_costs): New function
1358         implementing RTX_COSTS and CONST_COSTS.
1359         * config/sparc/sparc.h (CONST_COSTS): Delete.
1360         (RTX_COSTS_CASES): Define.
1361         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1362         the work.
1363
1364         * config/sparc/sparc.md (DFA schedulers): Split out...
1365         * config/sparc/cypress.md, config/sparc/hypersparc.md,
1366         config/sparc/sparclet.md, config/sparc/supersparc.md,
1367         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1368
1369         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1370         checks on it, always defined for Sparc.
1371
1372         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1373         Tweak, and add more detailed comments.
1374
1375 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
1376
1377         * Re-apply patch accidentally reverted with
1378         DFA scheduler merge: remove all rules and variables to slurp
1379         source files out of libiberty and rebuild them with HOST_CC.
1380         ($(HOST_PREFIX_1)varray.o): New rule.
1381         (genattrtab rule): Word wrap.
1382
1383 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1384
1385         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1386         (CPP_SUBTARGET_SPEC): Define.
1387         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1388         cpp_subtarget specs.
1389         (CPP_SPEC): Redefine to include %(cpp_subtarget).
1390
1391 2002-05-03  David S. Miller  <davem@redhat.com>
1392
1393         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1394         * target.h (struct gcc_target): Delete cycle_display member.
1395
1396         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1397         (rtx_needs_barrier): Delete reference to cycle_display unspec.
1398         (ia64_sched_reorder2): Mention need for cycle display handling
1399         once such notes exist.
1400
1401 2002-05-03  Richard Henderson  <rth@redhat.com>
1402
1403         * real.c (etoasc): Strip most trailing zeros for clarity.
1404         * sched-vis.c: Include real.h.
1405         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1406         * Makefile.in (sched-vis.o): Add real.h.
1407
1408 2002-05-03  David S. Miller  <davem@redhat.com>
1409
1410         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1411         no longer needed.
1412
1413 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
1414
1415         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1416         when we get an out of range literal.
1417         (altivec_expand_ternop_builtin): Same.
1418         (altivec_expand_unop_builtin): Same.
1419         (altivec_expand_builtin): Same, for dss.
1420         (altivec_expand_builtin): Use trees instead of rtl when
1421         determining literal argument validity.
1422
1423 2002-05-03  David S. Miller  <davem@redhat.com>
1424
1425         Delete cycle display scheduling hook.
1426         * config/ia64/ia64.c (ia64_cycle_display,
1427         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1428         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1429         and use emit_insn_before instead of ia64_emit_insn_before.
1430         * config/ia64/ia64.md (unspec usage): Delete cycle display.
1431         (cycle_display): Delete insn pattern.
1432         * config/sparc/sparc.md (unspec usage): Delete cycle display.
1433         (cycle_display): Delete insn pattern.
1434         * config/sparc/sparc.c (sparc_cycle_display,
1435         TARGET_SCHED_CYCLE_DISPLAY): Delete.
1436         * doc/md.texi (cycle_display): Don't mention.
1437         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1438
1439 2002-05-03  Richard Henderson  <rth@redhat.com>
1440
1441         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1442         * recog.h: Declare them.
1443
1444         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1445         * config/sparc/sparc.md: Use store_data_bypass_p instead.
1446         * config/sparc/sparc-protos.h: Update.
1447
1448 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1449
1450         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1451         -D__arch64__.  Add -D_LP64.
1452         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1453         from sparc.h.
1454         (CPP_ARCH64_SPEC): Likewise.
1455         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1456         (NO_BUILTIN_SIZE_TYPE): Undef.
1457
1458 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
1459
1460         * genautomata.c (min_issue_delay_pass_states): Change return type
1461         in the prototype.
1462         (min_issue_delay_pass_states): Change the algorithm.
1463         (min_issue_delay): Set up min_insn_issue_delay for the state.
1464         (output_min_issue_delay_table): Interchange the nested loops and
1465         and initiate min_insn_issue_delay for states.
1466
1467 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
1468
1469         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
1470         jump is simplejump.
1471
1472 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1473
1474         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
1475         sequence.
1476
1477 2002-05-03  Richard Henderson  <rth@redhat.com>
1478
1479         PR opt/6534
1480         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1481         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1482         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1483         code before JUMP, not EARLIEST.
1484
1485 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1486
1487         * c-format.c (check_format_info_main): Don't check for presence of
1488         parameter for * width until after operand number has been read,
1489         and only check for it if format parameters are available.
1490         Fixes PR c/6547.
1491
1492 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1493
1494         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1495         (LINK_SPEC): Undef before defining.
1496
1497 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1498
1499         PR preprocessor/6489
1500         * tradcpp.c (fixup_newlines): New.
1501         (main, finclude): Use it.
1502
1503 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
1504
1505         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1506         * config/mips/mips.c (mips_unique_section): Strip encoding from
1507         decl name.
1508
1509 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1510
1511         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1512         mode.
1513
1514 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1515
1516         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1517         (Specific): Removed buildstats references.
1518         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1519         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1520         Accomodate Solaris versions beyond 8.
1521         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1522         (Specific, *-*-solaris2.8): Removed, obsolete.
1523
1524 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1525
1526         PR target/6542
1527         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1528         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1529         fill leaf_reg_remap with identity.
1530         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1531
1532 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1533
1534         * config/h8300/crti.asm: Remove trailing spaces.
1535         * config/h8300/h8300.c: Likewise.
1536         * config/h8300/lib1funcs.asm: Likewise.
1537
1538 2002-05-02  Jason Merrill  <jason@redhat.com>
1539
1540         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1541         * c-decl.c (c_init_decl_processing): Use it.
1542         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1543         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1544         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1545
1546 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1547
1548         * regrename.c: Fix formatting.
1549         * tree.c: Likewise.
1550
1551 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
1552
1553         * i386.md (attribute memory): Handle compares properly.
1554
1555 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
1556
1557         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1558         to none.
1559
1560 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1561
1562         * function.c: Fix formatting.
1563
1564 2002-05-02  Jan Hubicka  <jh@suse.cz>
1565
1566         * haifa-sched.c (schedule_insn): Print table of instructions and
1567         reservations.
1568         (sched_block): Do not print ready list at verbosity level 1.
1569         * sched-vis.c (print_insn): Make global.
1570         * sched-ebb.c (ebb_print_insn): Rename from...
1571         (print_insn): ... this one.
1572         * sched-int.h (print_insn): Declare
1573
1574 2002-05-02  Richard Henderson  <rth@redhat.com>
1575
1576         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1577         emitted by cycle_display.
1578
1579 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
1580
1581         * doc/install.texi (*-*-freebsd*): Update to latest status.
1582
1583 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
1584
1585         PR target/6540
1586         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1587         * config/float-sparc.h: Assume 128-bit long double if
1588         __LONG_DOUBLE_128__ is defined.
1589
1590 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1591
1592         * genattrtab.c (write_function_unit_info): Add a dummy element
1593         when num_units == 0.
1594
1595 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1596
1597         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1598         TYPE_MODE (double_type_node) instead of DFmode.
1599
1600 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
1601
1602         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1603         jumps post reload.
1604         * toplev.c (rest_of_compilation): Revert Richard's patch.
1605
1606 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1607
1608         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1609
1610 2002-05-02  Catherine Moore  <clm@redhat.com>
1611
1612         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1613
1614 2002-05-02  Kazu Hirata  <kazu@hxi.com>
1615
1616         * combine.c: Fix comment typos.
1617         * expr.c: Likewise.
1618         * genautomata.c: Likewise.
1619         * stmt.c: Likewise.
1620         * tree.h: Likewise.
1621
1622 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1623
1624         * doc/install.texi: State GNAT version requirements.
1625
1626 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
1627
1628         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1629         of the frame pointer or arg pointer register which strict register
1630         checking is not enabled.
1631
1632 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
1633
1634         * gcc.dg/altivec-8.c: New.
1635
1636         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1637         PRE_INC and PRE_DEC for altivec modes.
1638
1639 2002-05-01  Bruce Korb  <bkorb@gnu.org>
1640
1641         * fixinc/check.tpl(set-writable): make sure the function exists first
1642         * fixinc/inclhack.def(alpha_assert): fix test_text
1643         * fixinc/tests/base/assert.h: add in missing result
1644
1645 2002-05-01  Jeff Law  <law@redhat.com>
1646
1647         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1648         'T' constraint.
1649
1650 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
1651
1652         * dbxout.c (dbxout_type): Emit size information for range types,
1653         as well, but only when using GDB extensions.
1654
1655 2002-05-01  Richard Henderson  <rth@redhat.com>
1656
1657         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1658         target-independent gnu binutils date test.
1659
1660 2002-05-01  Richard Henderson  <rth@redhat.com>
1661
1662         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1663         info before expunging the block.
1664
1665 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
1666
1667         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1668         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
1669         -M -or -MM is in effect.
1670
1671 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
1672
1673         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
1674         A29k configurations.
1675         * doc/install.texi: Update to match.
1676
1677 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1678
1679         PR bootstrap/6514
1680         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1681         for duplicates. Always loop over whole list.
1682
1683 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1684
1685         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1686
1687 2002-05-01      Joel Sherrill <joel@OARcorp.com>
1688
1689         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1690         support routines.
1691
1692 2002-05-01      Joel Sherrill <joel@OARcorp.com>
1693
1694         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1695
1696 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
1697
1698         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1699         (nabs_nopower): Same.
1700         (floatdisf2): New pattern.
1701         (absdi2): Convert to define_insn_and_split.
1702         (nabsdi2): Same.
1703         (trunctfsf2): Same.
1704         (floatditf2): Same.
1705         (floatsitf2): Same.
1706         (fix_trunctfdi2): Same.
1707         (fix_trunctfsi2): Same.
1708
1709 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
1710
1711         * doc/install.texi: Update Texinfo version requirement
1712         documentation.
1713
1714 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
1715
1716         PR target/6512, PR target/5628
1717         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1718         when memory is not aligned.
1719         (movdf_insn_v9only_vis): Likewise.
1720         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1721         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1722         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1723
1724 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
1725
1726         * gcc.dg/altivec-7.c: New.
1727
1728         * config/rs6000/altivec.h: Cleanup.
1729
1730 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
1731
1732         * doc/invoke.texi (Option Summary): Add -mvrsave=.
1733         (RS/6000 and PowerPC Options): Document -mvrsave=.
1734
1735         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
1736         (rs6000_altivec_vrsave_string): Same.
1737         (rs6000_override_options): Call rs6000_parse_vrsave_option.
1738         (rs6000_parse_vrsave_option): New.
1739         (rs6000_stack_info): Only generate vrsave instructions when
1740         TARGET_ALTIVEC_VRSAVE.
1741
1742         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
1743         (rs6000_altivec_vrsave_string): Define extern.
1744         (rs6000_altivec_vrsave): Same.
1745         (TARGET_ALTIVEC_VRSAVE): New.
1746
1747 2002-04-30  Richard Henderson  <rth@redhat.com>
1748
1749         PR opt/6516
1750         * toplev.c (rest_of_compilation): Don't run cross-jump before
1751         bb-reorder.
1752
1753 2002-04-30  Tom Rix  <trix@redhat.com>
1754
1755         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1756         check which_alternative.
1757
1758 2002-04-30  Kazu Hirata  <kazu@hxi.com>
1759
1760         * cpplex.c: Fix comment formatting.
1761         * function.c: Likewise.
1762         * integrate.c: Likewise.
1763         * regrename.c: Likewise.
1764         * sibcall.c: Likewise.
1765         * simplify-rtx.c: Likewise.
1766         * tree-inline.c: Likewise.
1767
1768 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1769
1770         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
1771         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
1772         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1773         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1774         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1775         * pa/x-ada: New file.  Define ADA_CFLAGS.
1776
1777 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
1778
1779         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1780         from MMIX_LAST_REGISTER_FILE_REGNUM.
1781         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1782         (struct machine_function): New member highest_saved_stack_register
1783         previously static variable in mmix.c.
1784         (MACHINE_DEPENDENT_REORG): Define.
1785         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1786         (MMIX_OUTPUT_REGNO): New.
1787         (mmix_target_asm_function_prologue): Move calculation of last used
1788         saved-stack-register into...
1789         (mmix_machine_dependent_reorg): New function.  Update to also handle
1790         !TARGET_ABI_GNU.
1791         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1792         register names, simplify somewhat by new variable regno.
1793         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
1794         register.
1795         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1796         emitting register names.
1797         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1798         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
1799         Remove fixed FIXME.
1800         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1801         Declare.
1802
1803         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1804
1805 2002-04-30  Richard Henderson  <rth@redhat.com>
1806
1807         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1808         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
1809         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
1810         emit_tfmode_cvt): New.
1811         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
1812         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
1813         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
1814         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
1815         * config/sparc/sparc-protos.h: Update.
1816
1817 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
1818
1819         * install.texi (Final install): Add to the list of info to include
1820         in a report of a successful bootstrap, and add link to 3.1 list.
1821
1822 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
1823
1824         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
1825         (mode): Add vector modes
1826         (i387): Kill attribute.
1827         (unit): New attribute.
1828         (length_immediate): Grok new types.
1829         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
1830         (modrm): Use "unit".
1831         (memory): Handle MMX/SSE properly.
1832         (scheduling descriptions): Kill uses of fop1.
1833         (sse, mmx, fp patterns): Set type and mode properly.
1834
1835 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
1836
1837         * pa.c (override_options): Default to PA8000 scheduling.
1838         * doc/invoke.texi (HP-PA options): Mention newly added 7300
1839         scheduling parameter.
1840
1841         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1842         handling of double precision multiplies.
1843
1844         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
1845         fpdiv and fpsqrt instructions.
1846         (7200 & 7300 scheduling): Fix typo in handling of
1847         store-load and store-store penalties.
1848
1849 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1850
1851         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1852         mips.  Add two missing commas.
1853
1854 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
1855
1856         * doc/contrib.texi (Contributors): Update Paolo Carlini's
1857         and Benjamin Kosnik's entries.
1858
1859 2002-04-29  David S. Miller  <davem@redhat.com>
1860
1861         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
1862         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
1863         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
1864         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1865
1866 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1867
1868         * combine.c (find_split_point): Use gen_int_mode.
1869
1870 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
1871
1872         Merging code from dfa-branch:
1873
1874         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1875
1876         * genautomata.c (output_reserv_sets): Fix typo.
1877
1878         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
1879
1880         * genautomata.c (output_reserv_sets): Remove
1881         next_cycle_output_flag.
1882
1883         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
1884
1885         * sched-rgn.c (init_ready_list): Make the DFA code handle
1886         USE/CLOBBER insns in the same way as the traditional
1887         scheduler.
1888         (new_ready): Similarly..
1889
1890         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
1891
1892         * haifa-sched.c (schedule_block): Change the DFA state only after
1893         issuing insn.
1894
1895         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
1896
1897         * pa.c (hppa_use_dfa_pipeline_interface): New function.
1898         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1899         (override_options): Add PA7300 scheduling support.
1900         (pa_adjust_cost): Update various comments.  Properly
1901         handle anti and output dependencies when using the
1902         DFA scheduler.
1903         (pa_issue_rate): Add PA7300 scheduling support.
1904         (pa_can_combine_p): Call extract_insn before calling
1905         constrain_operands (taken from mainline tree).
1906         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
1907         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
1908         descriptions using DFA descriptions.  Add PA7300
1909         scheduling support.
1910
1911         2002-03-30  David S. Miller  <davem@redhat.com>
1912
1913         Add UltraSPARC-III DFA scheduling support.
1914         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
1915         Update FP conditional move on register insn patterns to use it, as
1916         appropriate.
1917         (define_attr cpu): Add ultrasparc3.
1918         (define_attr us3load_type): New, update integer load patterns to
1919         set it, as appropriate.
1920         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
1921         (rest): Add UltraSPARC3 scheduling description.
1922         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
1923         (PROCESSOR_ULTRASPARC3): New.
1924         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
1925         ({ASM,CPP}_CPU_SPEC): Likewise.
1926         (REGISTER_MOVE_COST): Likewise.
1927         (RTX_COSTS): Likewise.
1928         * config/sparc/sparc.c (sparc_override_options,
1929         sparc_initialize_trampoline, sparc64_initialize_trampoline,
1930         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1931         sparc_issue_rate): Likewise.
1932         * config/sparc/sol2.h: Likewise.
1933         * config/sparc/sol2-sld-64.h: Likewise.
1934         * config/sparc/linux64.h: Likewise.
1935
1936         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
1937
1938         * doc/md.texi: Add comments about usage the latency time for the
1939         different dependencies and about case when two or more conditions
1940         in different define_insn_reservations returns TRUE for an insn.
1941
1942         * doc/md.texi: Add reference for automaton based pipeline
1943         description.
1944
1945         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
1946
1947         * doc/passes.texi: Add missed information about genattrtab.
1948
1949         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
1950
1951         * genautomata.c (output_automata_list_transition_code): Check
1952         automata_list on NULL.
1953
1954         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
1955
1956         * genautomata.c (output_insn_code_cases,
1957         output_automata_list_min_issue_delay_code,
1958         output_automata_list_transition_code,
1959         output_automata_list_state_alts_code): Comment the functions.
1960
1961         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
1962
1963         * genautomata.c (automata_list_el_t): New typedef.
1964         (get_free_automata_list_el,free_automata_list_el,
1965         free_automata_list, automata_list_hash, automata_list_eq_p,
1966         initiate_automata_lists, automata_list_start, automata_list_add,
1967         automata_list_finish, finish_automata_lists,
1968         output_insn_code_cases, output_automata_list_min_issue_delay_code,
1969         output_automata_list_transition_code,
1970         output_automata_list_state_alts_code, add_automaton_state,
1971         form_important_insn_automata_lists): New functions and prototypes.
1972         (insn_reserv_decl): Add members important_automata_list and
1973         processed_p.
1974         (ainsn): Add members important_p.
1975         (automata_list_el): New structure.
1976         (first_free_automata_list_el, current_automata_list,
1977         automata_list_table): New global variables.
1978         (create_ainsns): Initiate member important_p.
1979         (output_internal_min_issue_delay_func): Generate the switch and
1980         call output_insn_code_cases.
1981         (output_internal_trans_func, output_internal_state_alts_func):
1982         Ditto.
1983         (generate): Call initiate_automata_lists.
1984         (automaton_states): New global variable.
1985         (expand_automata): Call form_important_insn_automata_lists.
1986         (write_automata): Call finish_automata_lists.
1987
1988         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
1989
1990         * genautomata.c (add_excls, add_presence_absence): Check that
1991         cpu units in the sets belong the same automaton.
1992
1993         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1994         about that cpu units in the sets belong the same automaton.
1995
1996         * doc/md.texi: Ditto.
1997
1998         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
1999                     Nitin Gupta  <niting@noida.hcltech.com>
2000
2001         * config/sh/sh.c (sh_use_dfa_interface): New function.
2002
2003         (sh_issue_rate): New Function.
2004         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2005         TARGET_SCHED_ISSUE_RATE: define.
2006
2007         * config/sh/sh.md: Add DFA based pipeline description for SH4.
2008
2009         (define_attr insn_class): New attribute used for DFA
2010          scheduling.
2011         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2012         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2013          cmpeqdi_t): Likewise.
2014
2015         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2016          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2017          ex_group.
2018         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2019
2020         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2021
2022         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2023         break.
2024
2025         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2026
2027         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2028         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2029         necessary.
2030         (output_dfa_start_func): Initiate new variable insn_codes_length,
2031         (write_automata): Output definition of the new variable.
2032
2033         2001-10-02  David S. Miller  <davem@redhat.com>
2034
2035         * haifa-sched.c (advance_one_cycle): New function.
2036         (schedule_block): Use it.
2037         (queue_to_ready): Use it, and also make sure to advance the DFA
2038         state on all stall cycles, not just those where insn_queue links
2039         are found.
2040
2041         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
2042
2043         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
2044         non-zero if the highest-priority instruction could be scheduled.
2045         (choose_ready): Remove last argument from max_issue call.
2046
2047         2001-09-28  David S. Miller  <davem@redhat.com>
2048
2049         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2050         ultrasparc and 3 for other multi-issue sparcs.
2051
2052         2001-09-27  David S. Miller  <davem@redhat.com>
2053
2054         * config/sparc/sparc.md (cycle_display): New pattern.
2055         * config/sparc/sparc.c (sparc_cycle_display): New.
2056         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2057
2058         2001-09-25  David S. Miller  <davem@redhat.com>
2059
2060         Convert all of Sparc scheduling to DFA
2061         * config/sparc/sparc.md: Kill all define_function_unit
2062         directives and replace with DFA equivalent.
2063         * config/sparc/sparc.c (ultrasparc_adjust_cost,
2064         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2065         ultra_fpmode_conflict_exists, ultra_find_type,
2066         ultra_build_types_avail, ultra_flush_pipeline,
2067         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2068         ultrasparc_variable_issue, ultrasparc_sched_init,
2069         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2070         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2071         ultra_cur_hist, ultra_cycles_elapsed): Kill.
2072         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2073         ultrasparc_store_bypass_p): New.
2074         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2075         Declare.
2076
2077         2001-09-24  David S. Miller  <davem@redhat.com>
2078
2079         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2080         ready->vec[foo] not ready[foo].
2081
2082         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2083
2084         * doc/md.texi: Correct examples for define_insn_reservations
2085         `mult' and `div'.
2086
2087         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2088
2089         * genautomata.c (create_automata): Print message about creation of
2090         each automaton.
2091         (generate): Remove printing meease about creation of
2092         automata.
2093
2094         2001-09-05  David S. Miller  <davem@redhat.com>
2095
2096         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2097         * config/sparc/linux64.h: Likewise.
2098
2099         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
2100
2101         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2102         schedule_block, sched_init, sched_finish): Add missed calls of
2103         use_dfa_pipeline_interface.
2104
2105         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2106         Ditto.
2107
2108         * sched-vis.c (get_visual_tbl_length): Ditto.
2109
2110         2001-08-27  Richard Henderson  <rth@redhat.com>
2111
2112         * genattr.c (main): Emit state_t even when not doing scheduling.
2113
2114         2001-08-27  Richard Henderson  <rth@redhat.com>
2115
2116         * genautomata.c (expand_automata): Always create a description.
2117
2118         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
2119
2120         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2121         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2122         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2123         RTL constructions.
2124
2125         * genattr.c (main): New variable num_insn_reservations.  Increase
2126         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
2127         pipeline hazard recognizer interface.
2128
2129         * genattrtab.h: New file.
2130
2131         * genattrtab.c: Include genattrtab.h.
2132         (attr_printf, check_attr_test, make_internal_attr,
2133         make_numeric_value): Move protypes into genattrtab.h.  Define them
2134         as external.
2135         (num_dfa_decls): New global variable.
2136         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2137         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2138         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2139         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
2140
2141         * genautomata.c: New file.
2142
2143         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2144
2145         * sched-int.h: (curr_state): Add the external definition for
2146         automaton pipeline interface.
2147         (haifa_insn_data): Add comments for members blockage and units.
2148
2149         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2150         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2151         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2152         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2153         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2154         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2155         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2156         macros.
2157         (TARGET_SCHED): Use the new macros.
2158
2159         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2160         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2161         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2162         dfa_bubble): New members in gcc_target.sched.
2163
2164         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2165         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2166         (insn_queue): Redefine it as pointer to array.
2167         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2168         INSN_QUEUE_SIZE.
2169         (max_insn_queue_index_macro_value): New variable.
2170         (curr_state, dfa_state_size, ready_try): New varaibles for
2171         automaton interface.
2172         (ready_element, ready_remove, max_issue): New function prototypes
2173         for automaton interface.
2174         (choose_ready): New function prototype.
2175         (insn_unit, blockage_range): Add comments.
2176         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2177         FUNCTION_UNITS_SIZE == 0.
2178         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2179         actual_hazard, potential_hazard): Add comments.
2180         (insn_cost): Use cost -1 as undefined value.  Remove
2181         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
2182         pipeline interface.
2183         (ready_element, ready_remove): New functions for automaton
2184         interface.
2185         (schedule_insn): Add new code for automaton pipeline interface.
2186         (queue_to_ready): Add new code for automaton pipeline interface.
2187         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2188         (debug_ready_list): Print newline when the queue is empty.
2189         (max_issue): New function for automaton pipeline interface.
2190         (choose_ready): New function.
2191         (schedule_block): Add new code for automaton pipeline interface.
2192         Print ready list before scheduling each insn.
2193         (sched_init): Add new code for automaton pipeline interface.
2194         Initiate insn cost by -1.
2195         (sched_finish): Free the current automaton state and finalize
2196         automaton pipeline interface.
2197
2198         * sched-rgn.c: Include target.h.
2199         (init_ready_list, new_ready, debug_dependencies): Add new code for
2200         automaton pipeline interface.
2201
2202         * sched-vis.c: Include target.h.
2203         (get_visual_tbl_length): Add code for automaton interface.
2204         (target_units, print_block_visualization):  Add comments.
2205
2206         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2207         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2208         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2209         (getruntime.o, genautomata.o): New entries.
2210         (genattrtab.o): Add new dependency file genattrtab.h.
2211         (genattrtab): Add new dependencies.  Link it with `libm.a'.
2212         (getruntime.o, hashtab.o): New entries for canadian cross.
2213
2214         * doc/md.texi: Description of automaton based model.
2215
2216         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2217         Add comments.
2218         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2219         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2220         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2221         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2222         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2223         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2224         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2225         hook descriptions.
2226         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2227         MAX_DFA_ISSUE_RATE): New macro descriptions.
2228
2229         * doc/contrib.texi: Add dfa based scheduler contribution.
2230
2231         * doc/gcc.texi: Add more information about genattrtab.
2232
2233 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2234
2235         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2236         adjust_address_nv call.
2237
2238 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
2239
2240         * doc/install.texi (Testing): Provide additional information, and
2241         a stronger encouragement, for running the testsuites.
2242
2243 2002-04-29  DJ Delorie  <dj@redhat.com>
2244
2245         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2246         given in upper case.
2247
2248 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2249
2250         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2251         Solaris 2 <widec.h> if missing.
2252         * fixinc/fixincl.x: Regenerate.
2253         * fixinc/tests/base/widec.h: New file.
2254
2255 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
2256
2257         * toplev.c (f_options): Add "profile" switch so that
2258         -fno-profile can be used to disable -p.
2259
2260 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
2261
2262         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2263         UV2DImode.
2264         * tree.c (build_common_tree_nodes_2): Likewise.
2265         * tree.h (enum tree_index): Likewise.
2266         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2267
2268         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2269         entries.
2270         (init_mmx_sse_builtins): Initialize SSE2 builtins.
2271         (ix86_expand_builtin): Add support for SSE2 builtins.
2272         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2273         (VALID_SSE_REG_MODE): Use it.
2274         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2275         (enum ix86_builtins): Add SSE2 builtins.
2276         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2277         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2278         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2279         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2280         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2281         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2282         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2283         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2284         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2285         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2286         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2287         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2288         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2289         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2290         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2291         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2292         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2293         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2294         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2295         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2296         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2297         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2298         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2299         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2300         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2301         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2302         lfence_insn): New patterns.
2303         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2304         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2305
2306 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
2307
2308         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2309
2310 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2311
2312         * doc/contrib.texi (Contributors): Add Paolo Carlini and
2313         Janis Johnson.
2314         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2315         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2316         and CPU instead of cpu.
2317
2318 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
2319
2320         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2321         variables.
2322         (lang_independent_options): Add -fif-conversion, -fif-conversion2
2323         (rest_of_compilation): Do if conversion only when asked for.
2324         (parse_options_and_default_flags): Set new variables to 1 for -O1
2325         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2326
2327 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
2328
2329         * i386.c (dbx64_register_map): Fix typo.
2330
2331 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
2332
2333         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2334         real_one_half, real_bb_freq_max): New static variables.
2335         (debug_profile_bbauxs): Kill.
2336         (process_note_predictions): Kill unused variable.
2337         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2338         volatile double.
2339         (propagate_freq): Use REAL_ARITHMETICS.
2340         (estimate_bb_frequencies): Likevise; init new static variables.
2341         * Makefile.in (predict.o): Add dependency on real.h
2342
2343 2002-04-28  David S. Miller  <davem@redhat.com>
2344
2345         PR target/6500
2346         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2347         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
2348         several {reads,writes} instead.
2349         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2350         Define.
2351
2352 2002-04-27  David S. Miller  <davem@redhat.com>
2353
2354         PR target/6494
2355         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2356         of the stack bias.
2357
2358         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2359         including signal.h and sys/ucontext.h, not needed.
2360
2361 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
2362
2363         * varasm.c (output_constant_def): Correct test for not calling
2364         ENCODE_SECTION_INFO for INTEGER_CST.
2365
2366 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2367
2368         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2369         keep most cases as function eval_token.
2370         (eval_token): New function.
2371         (_cpp_parse_expr): Read token here for improved diagnostics.
2372         Don't use op_as_text.  Detect bad ':' here.
2373         (reduce): Don't detect bad ':' here.
2374         (op_as_text): Remove.
2375         * cpphash.h (_cpp_test_assertion): Change prototype.
2376         * cpplib.c (_cpp_test_assertion): Change prototype.
2377
2378 2002-04-28  Richard Henderson  <rth@redhat.com>
2379
2380         PR c/5154
2381         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2382         (ggc_mark_rtx_children): New.
2383
2384 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2385
2386         PR target/6496
2387         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2388         after call peepholes for UltraSPARC.
2389         (call + jump 64-bit peepholes): Remove.
2390
2391 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2392
2393         PR c/6497
2394         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2395         result as temporary value.
2396
2397 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2398
2399         PR c++/6396
2400         * toplev.c (rest_of_compilation): Only run regrename and copy
2401         propagation if optimizing.
2402
2403 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2404
2405         PR optimization/6475
2406         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2407         register of REGNO_DECL (i).
2408         * Makefile.in (reload1.o): Add $(TREE_H).
2409
2410 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2411
2412         * cppexp.c (lex): Update to use state.skip_eval.
2413         (struct op): Remove prio and flags members.
2414         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2415         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2416         (LEFT_ASSOC): New macro.
2417         (optab): New table of operator priorities and flags.
2418         (SHIFT): Update.
2419         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
2420         malloc-ed parser stack.
2421         (reduce): New; reduce the operator stack.
2422         (_cpp_expand_op_stack): Expand the operator stack as necessary.
2423         * cpphash.h (struct op): Predeclare.
2424         (struct cpp_reader): New members op_stack, op_limit.
2425         (struct lexer_state): New member skip_eval.
2426         (_cpp_parse_expr): Update.
2427         (_cpp_expand_op_stack): New.
2428         * cpplib.c (do_if): Update.
2429         * cppinit.c (cpp_create_reader): Create op stack.
2430         (cpp_destroy): And destroy it.
2431         * cpplib.h (CPP_LAST_CPP_OP): Correct.
2432         (TTYPE_TABLE): Correct.
2433
2434 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2435
2436         PR c/6343
2437         * c-decl.c (duplicate_decls): Call merge_weak.
2438         * c-pragma.c (apply_pragma_weak): Warn about misuse.
2439         * output.h (merge_weak): Prototype merge_weak.
2440         * varasm.c (merge_weak): New function.
2441         (declare_weak): Make sure we don't give an error on VAR_DECLs.
2442         Mark RTL with SYMBOL_REF_WEAK.
2443
2444 2002-04-27  Kurt Garloff <garloff@suse.de>
2445
2446         * tree-inline.c (inlinable_function_p): Improve heuristics
2447         by using a smoother function to cut down allowable inlinable size.
2448         * param.def: Add parameters max-inline-insns-single,
2449         max-inline-slope, min-inline-insns that determine the exact
2450         shape of the above function.
2451         * param.h: Likewise.
2452
2453 2002-04-26  Richard Henderson  <rth@redhat.com>
2454
2455         * c-parse.in (malloced_yyss, malloced_yyvs): New.
2456         (yyoverflow): Re-add.  Set them.
2457         (free_parser_stacks): New.
2458         * c-common.h: Declare it.
2459         * c-lex.c (c_common_parse_file): Call it.
2460
2461 2002-04-26  Richard Henderson  <rth@redhat.com>
2462
2463         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2464         for fallthru search.
2465
2466 2002-04-26  Eric Christopher  <echristo@redhat.com>
2467
2468         PR optimization/3700
2469         * config/mips/mips.c (mips_issue_rate): Define.  New function.
2470         (TARGET_SCHED_ISSUE_RATE): Use.
2471
2472 2002-04-25  David S. Miller  <davem@redhat.com>
2473
2474         PR target/6422
2475         * reorg.c (optimize_skip): Do not allow exception causing
2476         instructions to be considered for delay slots.
2477         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2478         (relax_delay_slots): Do not try to consider exception causing
2479         instructions as redundant.
2480
2481 2002-04-26  Richard Henderson  <rth@redhat.com>
2482
2483         PR c/5225
2484         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2485
2486 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
2487
2488         PR bootstrap/6445
2489         * config/i386/i386.md (untyped_call): Return the value in a float
2490         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2491         TARGET_80387.
2492
2493 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
2494
2495         * tree.c (tree_int_cst_lt): Compare constants whose types differ
2496         in unsigned-ness correctly.
2497
2498 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2499
2500         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2501         portable runtime model.
2502
2503 2002-04-26  Richard Henderson  <rth@redhat.com>
2504
2505         * c-parse.in (yyoverflow): Revert.
2506
2507 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
2508             Richard Henderson  <rth@redhat.com>
2509
2510         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2511         result as temporary value.
2512
2513 2002-04-26  Richard Henderson  <rth@redhat.com>
2514
2515         PR c/3581
2516         * c-common.c (fix_string_type): Split out of ...
2517         (combine_strings): ... here.  Take a varray, not a tree list.
2518         (c_expand_builtin_printf): Use fix_string_type.
2519         * c-common.h: Update decls.
2520         * c-parse.in (string): Remove.  Update all uses to use STRING
2521         instead, and not call combine_strings.
2522         (yylexstring): New.
2523         (_yylex): Use it.
2524         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2525         (build_asm_stmt): Likewise.
2526         * objc/objc-act.c (my_build_string): Use fix_string_type.
2527         (build_objc_string_object): Build varray for combine_strings.
2528
2529 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
2530
2531         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2532         x86-64.
2533
2534 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2535
2536         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2537         (HAVE_NO_R_OPERAND): Remove.
2538         (HAVE_VALUE): Remove.
2539         (op_to_prio): Update.
2540         (UNARY): Don't alter flags.
2541         (_cpp_parse_expr): want_value used to indicate whether
2542         a number or unary operator is expected next.  Distinguish
2543         unary and binary +/-.
2544         (op_as_text): Update for unary operators.
2545
2546 2002-04-25  Richard Henderson  <rth@redhat.com>
2547
2548         PR c/2161
2549         * c-parse.in (yyoverflow): New.
2550
2551 2002-04-25  Richard Henderson  <rth@redhat.com>
2552
2553         PR c/2098
2554         * c-common.c (shorten_compare): Simplfy conditions leading to
2555         the generation of a warning.
2556
2557 2002-04-25  Richard Henderson  <rth@redhat.com>
2558
2559         PR c/2035
2560         * expmed.c (extract_bit_field): Fall through to generic code rather
2561         than aborting on subreg special case.
2562
2563 2002-04-25  David S. Miller  <davem@redhat.com>
2564
2565         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2566         for DECL being NULL.
2567
2568 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
2569
2570         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2571
2572 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
2573
2574         * c-decl.c (grokdeclarator): Remove outdated ??? note
2575         on invalid declaration of flexible array members.
2576
2577 2002-04-25  Richard Henderson  <rth@redhat.com>
2578
2579         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2580
2581 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2582
2583         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2584         needed by the compiler, even if they are used as global regs.
2585
2586 2002-04-25  Matt Hiller  <hiller@redhat.com>
2587
2588         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2589         functions.
2590         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2591         of the corresponding functions.
2592         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2593         New prototypes.
2594
2595 2002-04-25  Matt Hiller  <hiller@redhat.com>
2596
2597         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2598
2599         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2600         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2601         registers, adjust comment accordingly.
2602         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2603         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2604         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2605         for coprocessor registers.
2606         (ADDITIONAL_REGISTER_NAMES): Include
2607         ALL_COP_ADDITIONAL_REGISTER_NAMES.
2608
2609         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2610         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2611         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2612         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2613         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2614
2615         (mips_char_to_class): Adjust comment to include coprocessor
2616         constraint letters.
2617
2618         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2619         New functions.
2620         (mips_reg_names, mips_regno_to_class): Include coprocessor
2621         information.
2622         (mips_sw_reg_names): Ditto, make non-static.
2623         (mips_move_1word): Handle moves to and from coprocessor registers.
2624         (mips_move_2words): Handle moves to and from coprocessor
2625         registers.
2626         (mips_class_max_nregs, mips_register_move_cost): Handle
2627         coprocessor register classes.
2628         (override_options): Initialize mips_char_to_class and
2629         mips_hard_regno_mode_ok properly for coprocessor registers.
2630
2631         * config/mips/mips.md (movdi_internal, movdi_internal2,
2632         movsi_internal1, movsi_internal2): Add constraint-sets for
2633         coprocessor registers.
2634         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2635         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2636         isn't mips.
2637         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2638         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2639         isn't mips.
2640         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2641         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2642         isn't mips.
2643         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2644         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2645         isn't mips.
2646
2647         * doc/tm.texi: Document feature.
2648
2649 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2650
2651         * integrate.c (function_attribute_inlinable_p): Simplify.
2652         Check the table pointer is not NULL.
2653
2654 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
2655
2656         * doc/c-tree.texi: Fix typo in introduction.
2657
2658 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2659
2660         * c-common.h (c_common_parse_file): Update.
2661         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2662         * c-lex.c (YYDEBUG): Get from c-lex.h.
2663         (c_common_parse_file): Update.
2664         * c-lex.h (YYDEBUG, yydebug): New.
2665         * c-parse.in (YYDEBUG): Get from c-lex.h.
2666         (c_set_yydebug): Remove.
2667         * c-tree.h (c_set_yydebug): Remove.
2668         * langhooks-def.h (lhd_do_nothing_i): New.
2669         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2670         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2671         * langhooks.c  (lhd_do_nothing_i): New.
2672         (lhd_set_yydebug): Remove.
2673         * langhooks.h (struct lang_hooks): Update.
2674         * toplev.c (set_yydebug): New.
2675         (compile_file): Update call to parse_file hook.
2676         (decode_d_option): Update.
2677 objc:
2678         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2679
2680 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
2681
2682         * loop.c (load_mems): Don't change the interface of called functions.
2683
2684         * calls.c (expand_call): Take current_function_pretend_args_size
2685         into account when setting argblock for sibcalls.
2686
2687 2002-04-24  Matt Hiller  <hiller@redhat.com>
2688
2689         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2690         * c-lex.c: Ditto.
2691
2692         * cpplex.c (skip_line_comment): Process comment one multibyte
2693         character at a time rather than one char at a time, if
2694         appropriate.
2695         (parse_string): Process string one multibyte character at a time
2696         rather than one char at a time, if appropriate.
2697         * c-lex.c (lex_string): Lex and copy multibyte strings
2698         appropriately.
2699         * cpplib.h (cppchar_t): Change to unsigned.
2700
2701 2002-04-24  Richard Henderson  <rth@redhat.com>
2702
2703         PR c/3467
2704         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2705         for c99.
2706
2707 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
2708
2709         * sh.c (sh_va_arg): If argument was passed by reference,
2710         dereference the pointer.
2711
2712         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2713
2714         * sh.md (divsi3_i4_media): Use match_operand for input values
2715         rather than hard registers.
2716         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2717         unnecessarily through hard registers.  Keep copies of pseudo
2718         registers outside of the libcall sequence.
2719
2720         * sh.md (casesi_shift_media): Add modes.
2721
2722         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2723         values in memory.
2724
2725 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2726
2727         * attribs.c (c_common_attribute_table): Move table and handlers
2728         to c-common.c.
2729         (format_attribute_table, lang_attribute_table,
2730         lang_attribute_common): Remove.
2731         (init_attributes): Replace NULL pointers with pointers to the
2732         empty table.
2733         (handle_packed_attribute, handle_nocommon_attribute,
2734         handle_common_attribute, handle_noreturn_attribute,
2735         handle_noinline_attribute, handle_always_inline_attribute,
2736         handle_used_attribute, handle_unused_attribute,
2737         handle_const_attribute, handle_transparent_union_attribute,
2738         handle_constructor_attribute, handle_destructor_attribute,
2739         handle_mode_attribute, handle_section_attribute,
2740         handle_aligned_attribute, handle_weak_attribute,
2741         handle_alias_attribute, handle_visibility_attribute,
2742         handle_no_instrument_function_attribute, handle_malloc_attribute,
2743         handle_no_limit_stack_attribute, handle_pure_attribute,
2744         handle_deprecated_attribute, handle_vector_size_attribute,
2745         vector_size_helper): Move to c-common.c.
2746         * c-common.c (c_common_attribute_table,
2747         handle_packed_attribute, handle_nocommon_attribute,
2748         handle_common_attribute, handle_noreturn_attribute,
2749         handle_noinline_attribute, handle_always_inline_attribute,
2750         handle_used_attribute, handle_unused_attribute,
2751         handle_const_attribute, handle_transparent_union_attribute,
2752         handle_constructor_attribute, handle_destructor_attribute,
2753         handle_mode_attribute, handle_section_attribute,
2754         handle_aligned_attribute, handle_weak_attribute,
2755         handle_alias_attribute, handle_visibility_attribute,
2756         handle_no_instrument_function_attribute, handle_malloc_attribute,
2757         handle_no_limit_stack_attribute, handle_pure_attribute,
2758         handle_deprecated_attribute, handle_vector_size_attribute,
2759         vector_size_helper): Move from attribs.c.
2760         * c-common.h (c_common_attribute_table,
2761         c_common_format_attribute_table): New.
2762         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2763         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2764         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2765         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
2766         (LANG_HOOKS_INITIALIZER): Update.
2767         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
2768         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
2769         * target.h: Update comment.
2770         * tree.c (default_target_attribute_table): Remove.
2771         * tree.h (default_target_attribute_table, format_attribute_table,
2772         lang_attribute_table, lang_attribute_common): Remove.
2773 objc:
2774         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2775         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2776
2777 2002-04-24  Jason Merrill  <jason@redhat.com>
2778
2779         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2780         * dwarf2out.c (dwarf_attr_name): Support it.
2781         (gen_array_type_die): Emit it.
2782         (lookup_type_die): No special handling for VECTOR_TYPE.
2783         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2784
2785 2002-04-24  Richard Henderson  <rth@redhat.com>
2786
2787         * config/mips/mips.md (movdi_usd): Renumber.
2788
2789 2002-04-24  David S. Miller  <davem@redhat.com>
2790
2791         PR target/6420
2792         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2793         32-bit Sparc and current_function_returns_struct is true.
2794
2795 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
2796
2797         * loop.c (canonicalize_condition): Use gen_int_mode.
2798
2799 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
2800
2801         * config/rs6000/altivec.h: Cleanup file.  Add non individual
2802         variants.
2803         (vec_vaddubm): New.
2804         (vec_vadduhm): New.
2805         (vec_vadduwm): New.
2806         (vec_vaddfp): New.
2807         (vec_vaddcuw): New.
2808         (vec_vaddubs): New.
2809         (vec_vaddsbs): New.
2810         (vec_vadduhs): New.
2811         (vec_vadduws): New.
2812         (vec_vaddsws): New.
2813         (vec_vand): New.
2814         (vec_vandc): New.
2815         (vec_vavgub): New.
2816         (vec_vavgsb): New.
2817         (vec_vavguh): New.
2818         (vec_vavgsh): New.
2819         (vec_vavguw): New.
2820         (vec_vavgsw): New.
2821         (vec_vrfip): New.
2822         (vec_vcmpbfp): New.
2823         (vec_vcmpequb): New.
2824         (vec_vcmpequh): New.
2825         (vec_vcmpequw): New.
2826         (vec_vcmpeqfp): New.
2827         (vec_vcmpgefp): New.
2828         (vec_vcmpgtub): New.
2829         (vec_vcmpgtsb): New.
2830         (vec_vcmpgtuh): New.
2831         (vec_vcmpgtsh): New.
2832         (vec_vcmpgtuw): New.
2833         (vec_vcmpgtsw): New.
2834         (vec_vcmpgtfp): New.
2835         (vec_vcmpgefp): New.
2836         (vec_vcfux): New.
2837         (vec_vcfsx): New.
2838         (vec_vctsxs): New.
2839         (vec_vctuxs): New.
2840         (vec_vexptefp): New.
2841         (vec_vrfim): New.
2842         (vec_lvx): New.
2843         (vec_lvebx): New.
2844         (vec_lvehx): New.
2845         (vec_lde): Add vector float variant.
2846         (vec_lvewx): New.
2847         (vec_lvxl): New.
2848         (vec_vlogefp): New.
2849         (vec_vmaddfp): New.
2850         (vec_vmhaddshs): New.
2851         (vec_vmaxub): New.
2852         (vec_vmaxsb): New.
2853         (vec_vmaxuh): New.
2854         (vec_vmaxsh): New.
2855         (vec_vmaxuw): New.
2856         (vec_vmaxsw): New.
2857         (vec_vmaxsw): New.
2858         (vec_vmaxfp): New.
2859         (vec_vmrghb): New.
2860         (vec_vmrghh): New.
2861         (vec_vmrghw): New.
2862         (vec_vmrglb): New.
2863         (vec_vmrglh): New.
2864         (vec_vmrglw): New.
2865         (vec_vminub): New.
2866         (vec_vminsb): New.
2867         (vec_vminuh): New.
2868         (vec_vminsh): New.
2869         (vec_vminuw): New.
2870         (vec_vminsw): New.
2871         (vec_vminfp): New.
2872         (vec_vmladduhm): New.
2873         (vec_vmhraddshs): New.
2874         (vec_msumubm): New.
2875         (vec_vmsummbm): New.
2876         (vec_vmsumuhm): New.
2877         (vec_vmsumshm): New.
2878         (vec_vmsumuhs): New.
2879         (vec_vmsumshs): New.
2880         (vec_vmuleub): New.
2881         (vec_vmulesb): New.
2882         (vec_vmuleuh): New.
2883         (vec_vmulesh): New.
2884         (vec_vmuloub): New.
2885         (vec_mulosb): New.
2886         (vec_vmulouh): New.
2887         (vec_vmulosh): New.
2888         (vec_vnmsubfp): New.
2889         (vec_vnor): New.
2890         (vec_vor): New.
2891         (vec_vpkuhum): New.
2892         (vec_vpkuwum): New.
2893         (vec_vpkpx): New.
2894         (vec_vpkuhus): New.
2895         (vec_vpkshss): New.
2896         (vec_vpkuwus): New.
2897         (vec_vpkswss): New.
2898         (vec_vpkshus): New.
2899         (vec_vpkswus): New.
2900         (vec_vperm): New.
2901         (vec_vrefp): New.
2902         (vec_vrlb): New.
2903         (vec_vrlh): New.
2904         (vec_vrlw): New.
2905         (vec_vrfin): New.
2906         (vec_vrsqrtefp): New.
2907         (vec_vsel): New.
2908         (vec_vslb): New.
2909         (vec_vslh): New.
2910         (vec_vslw): New.
2911         (vec_vsldoi): New.
2912         (vec_vsl): New.
2913         (vec_vslo): New.
2914         (vec_vspltb): New.
2915         (vec_vsplth): New.
2916         (vec_vspltw): New.
2917         (vec_vspltisb): New.
2918         (vec_vspltish): New.
2919         (vec_vspltisw): New.
2920         (vec_vsrb): New.
2921         (vec_vsrh): New.
2922         (vec_vsrw): New.
2923         (vec_vsrab): New.
2924         (vec_vsrah): New.
2925         (vec_vsraw): New.
2926         (vec_vsr): New.
2927         (vec_vsro): New.
2928         (vec_stvx): New.
2929         (vec_stvebx): New.
2930         (vec_stvehx): New.
2931         (vec_stvewx): New.
2932         (vec_stvxl): New.
2933         (vec_vsububm): New.
2934         (vec_vsubuhm): New.
2935         (vec_vsubuwm): New.
2936         (vec_vsubfp): New.
2937         (vec_vsubcuw): New.
2938         (vec_vsububs): New.
2939         (vec_vsubsbs): New.
2940         (vec_vsubuhs): New.
2941         (vec_vsubshs): New.
2942         (vec_vsubuws): New.
2943         (vec_vsubsws): New.
2944         (vec_vsum4ubs): New.
2945         (vec_vsum4sbs): New.
2946         (vec_vsum4shs): New.
2947         (vec_vsum2sws): New.
2948         (vec_vsumsws): New.
2949         (vec_vrfiz): New.
2950         (vec_vupkhsb): New.
2951         (vec_vupkhpx): New.
2952         (vec_vupkhsh): New.
2953         (vec_vupklsb): New.
2954         (vec_vupklpx): New.
2955         (vec_vupklsh): New.
2956         (vec_vxor): New.
2957
2958 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
2959
2960         PR c/5430
2961         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2962         added literals from substracted literals.
2963         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2964         (fold) [associate]: Preserve MINUS_EXPR if needed.
2965
2966 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
2967
2968         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2969         are obsoleted.
2970
2971 2002-04-23  Tom Tromey  <tromey@redhat.com>
2972
2973         * gcc.c: Added --resource.  For PR java/6314.
2974
2975 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
2976
2977         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2978         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2979         these libraries.
2980
2981 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
2982
2983         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2984
2985 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
2986
2987         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
2988         workaround.
2989         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
2990         (ix86_expand_clrstr): Fix typo.
2991         * loop.c (gen_load_of_final_value): New.
2992         (loop_givs_rescan, strength_reduce, check_dbra_loop):
2993         Use it.
2994
2995 2002-04-23  Roger Sayle  <roger@eyesopen.com>
2996
2997         * builtins.c (builtin_memset_gen_str): New function.
2998         (expand_builtin_memset): Optimize the case of constant length, but
2999         unknown value.
3000
3001 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
3002
3003         * config/rs6000/altivec.h (vec_step): Remove extraneous
3004         parentheses.
3005         (vec_ctu): Cast return.
3006
3007 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
3008
3009         PR target/6413
3010         * function.h: (struct function): Add profile_label_no field.
3011         (current_function_profile_label_no): Define.
3012         * function.c: (profile_label_no): New static var.
3013         (expand_function_start): Increment it, and copy to
3014         current_function_profile_label_no.
3015         * output.h (profile_label_no): Delete.
3016         * final.c (profile_label_no): Delete.
3017         (profile_function): Use current_function_profile_label_no.
3018         (final_end_function): Don't increment profile_label_no here.
3019         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3020         profile_label_no with current_function_profile_label_no.
3021         * config/pa/pa.c (current_function_number): Delete.
3022         (pa_output_function_prologue): Don't output profile label here.
3023         (hppa_profile_hook): Use label_no param rather than
3024         current_function_number.
3025         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3026         * config/pa/pa.h: .. here.
3027         (FUNCTION_PROFILER): Output profile label here.
3028
3029 2002-04-22  Eric Christopher  <echristo@redhat.com>
3030
3031         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3032         patch of 2002-04-09 due to binutils issues.
3033         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3034
3035 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3036
3037         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3038         constraint to 'o' for m=r and r=m alternatives.
3039         ("*movv8hi_internal1"): Same.
3040         ("*movv16qi_internal1"): Same.
3041         ("*movv4sf_internal1"): Same.
3042
3043 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
3044
3045         * rtl.h (RTX_FLAG): New macro.
3046         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3047         * final.c (alter_subreg): Use macro to access rtx flag.
3048         * integrate.c (copy_rtx_and_substitute): Use new access macro.
3049         * print-rtl.c (print_rtx): Use new access macro.
3050
3051         * cse.c (insert): Check rtx code before accessing flag.
3052
3053         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3054         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3055         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3056         convert_const_symbol_ref, make_canonical, make_alternative_compare,
3057         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3058         simplify_test_exp, optimize_attrs, simplify_by_exploding,
3059         find_and_mark_used_attributes, unmark_used_attributes,
3060         add_values_to_cover, simplify_with_current_value,
3061         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3062         copy_rtx_unchanging, main): Use new access macros.
3063
3064 2002-04-22  Tom Rix  <trix@redhat.com>
3065
3066         * expmed.c (init_expmed): Generate shifted constant once.
3067
3068 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
3069
3070         * c-lex.c (lex_charconst): Call convert to get constant in
3071         proper type; don't just smash the type field.
3072         Fixes PR c/6300.
3073
3074         * config.gcc: Add list of obsolete configurations.  Disallow
3075         building these without --enable-obsolete.
3076         * doc/install.texi: Document --enable-obsolete and obsoletion
3077         policy.  Mention obsoletion of individual targets in
3078         appropriate places.
3079
3080 2002-04-22  Richard Henderson  <rth@redhat.com>
3081
3082         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3083
3084 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
3085
3086         PR f/6138.
3087         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3088         (walk_fixup_memory_subreg): Likewise.
3089         (fixup_var_refs_insn): Adjust accordingly.
3090         (fixup_var_refs_1): Likewise.
3091
3092 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
3093
3094         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3095         LIBPATH_ARCH64_SPEC): Define.
3096         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3097         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3098         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3099         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3100
3101 2002-04-22      Joel Sherrill <joel@OARcorp.com>
3102
3103         * gthr-rtems.h: Correct prototypes to remove warnings.
3104
3105 2002-04-22  Richard Henderson  <rth@redhat.com>
3106
3107         PR c/6344
3108         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3109
3110         * gcse.c (free_insn_expr_list_list): New.
3111         (clear_modify_mem_tables): Use it.  Fix bit set usage.
3112         (canon_list_insert): Use EXPR_LISTs for expressions.
3113         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3114
3115 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3116
3117         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
3118         file change and include code to _cpp_pop_buffer.
3119         * cpphash.h (struct pending_option): Predeclare.
3120         (struct cpp_reader): New member next_include_file.
3121         (_cpp_pop_file_buffer): Update.
3122         (_cpp_push_next_buffer): Update, rename.
3123         * cppinit.c (cpp_destroy): Free include chain and pending here.
3124         (cpp_finish_options): Simplify.
3125         (_cpp_push_next_buffer): Rename and clean up.
3126         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3127         Clarify.
3128         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3129
3130 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3131
3132         * config/rs6000/altivec.h (vec_xor): Add variant for both args
3133         being vector signed int.
3134         (vec_andc): Same.
3135         (vec_xor): Add variant for both args being vector signed char.
3136         Remove redundant variant.
3137         (vec_andc): Same.
3138
3139 2002-04-21  David S. Miller  <davem@redhat.com>
3140
3141         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3142         compare mode in output RTL.
3143
3144 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
3145
3146         * config/rs6000/rs6000.c (rs6000_override_options): Correct
3147         style and formatting of previous patch.
3148
3149 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
3150
3151         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3152         flag_pic for ABI_AIX.
3153
3154 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3155
3156         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3157         * cppfiles.c (read_include_file): Similarly.
3158         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3159         uxstrdup ustrchr, ufputs): Similarly.
3160         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3161         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3162         cpp_ideq, parse_identifier, parse_number): Similarly.
3163         * cpplib.c (struct directive, dequote_string, D, run_directive,
3164         cpp_push_buffer): Similarly.
3165         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3166         _cpp_create_definition, check_trad_stringification,
3167         cpp_macro_definition): Similarly.
3168
3169 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3170
3171         * cppmacro.c (funlike_invocation_p): Don't step back
3172         over CPP_EOF.
3173
3174 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
3175
3176         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3177         labelno.
3178
3179 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
3180
3181         * doc/invoke.texi: Remove Chill references.
3182         * doc/gcc.texi: Update last modified date.
3183
3184 2002-04-20  Kazu Hirata  <kazu@hxi.com>
3185
3186         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3187         push and pop.  Replace add.l with add.w.
3188
3189 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3190
3191         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3192         multiply instructions for H8/300H case.
3193
3194 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3195
3196         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3197         Bum three instructions from each routine.
3198
3199 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3200
3201         * Makefile.in: Update.
3202         * decl.c (push_c_function_context, pop_c_function_context,
3203         mark_c_function_context): Rename for consistency.
3204         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3205         * c-tree.h (push_c_function_context, pop_c_function_context,
3206         mark_c_function_context): Rename for consistency.
3207         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3208         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3209         * function.c (init_lang_status, save_lang_status,
3210         restore_lang_status, mark_lang_status, free_lang_status):
3211         Move to langhooks.h.
3212         (push_function_context_to, pop_function_context_from,
3213         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3214         Update.
3215         * function.h (init_lang_status, save_lang_status,
3216         restore_lang_status, mark_lang_status, free_lang_status):
3217         Move to langhooks.h.
3218         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3219         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3220         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3221         LANG_HOOKS_FUNCTION_INITIALIZER): New.
3222         (LANG_HOOKS_INITIALIZER): Update.
3223         (lhd_do_nothing_f): New.
3224         * langhooks.h (struct lang_hooks_for_functions): New.
3225         (struct lang_hooks): New hooks.
3226         * langhooks.c (lhd_do_nothing_f): New.
3227 objc:
3228         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3229         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3230
3231 2002-04-19  David S. Miller  <davem@redhat.com>
3232
3233         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3234         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3235
3236 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3237
3238         PR optimization/3756
3239         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3240         x = ((int) y < 0) ? cst1 : cst2.
3241
3242 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3243
3244         PR c/6358
3245         * function.c: Reapply patch for c/6358.
3246         (expand_function_end): Copy decl_rtl's mode, not
3247         current_function_return_rtx mode.
3248
3249 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
3250
3251         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3252         targets.
3253
3254 2002-04-19  Tom Tromey  <tromey@redhat.com>
3255
3256         * doc/install.texi (Specific): Update status of Solaris 2.8.
3257         For PR libgcj/6158.
3258
3259 2002-04-19  Andreas Schwab  <schwab@suse.de>
3260
3261         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3262         (PUT_REAL): Restore old definition.
3263
3264 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
3265             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3266
3267         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3268         binutils 2.11.2 and higher generate smaller binaries than Sun's
3269         native tools.
3270
3271 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
3272
3273         PR c++/6352
3274         * toplev.c (rest_of_compilation): Do not defer functions for which
3275         TREE_SYMBOL_REFERENCED has already been set.
3276
3277 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
3278
3279         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3280         alternative.
3281
3282 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3283
3284         * builtins.c: Include langhooks.h.
3285         (lang_type_promotes_to): Remove.
3286         (expand_builtin_va_arg): Use new hook.
3287         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3288         (simple_type_promotes_to): Move to c-typeck.c.
3289         * c-common.h (simple_type_promotes_to): Remove.
3290         * c-decl.c (duplicate_decls, grokdeclarator): Update.
3291         * c-format.c: Include langhooks.h.
3292         (check_format_types): Update.
3293         * c-tree.h (c_type_promotes_to): New.
3294         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3295         (type_lists_compatible_p): Update.
3296         * langhooks-def.h (lhd_type_promotes_to): New.
3297         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3298         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3299         * langhooks.c (lhd_type_promotes_to): New.
3300         * langhooks.h (struct lang_hooks_for_types): New hook.
3301         * tree.h (lang_type_promotes_to): Remove.
3302 objc:
3303         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3304
3305 2002-04-18  Richard Henderson  <rth@redhat.com>
3306
3307         * function.c: Revert patch for c/6358.
3308
3309 2002-04-18  Richard Henderson  <rth@redhat.com>
3310
3311         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3312         blocks.  Handle multiple references to the TRAP block.  Handle
3313         non-adjacent THEN and OTHER blocks.
3314
3315 2002-04-18  Richard Henderson  <rth@redhat.com>
3316
3317         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3318         crash with no type for by-mode libcalls.
3319
3320         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3321
3322 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
3323
3324         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3325         __xtensa_nonlocal_goto): Use a syscall instructions to flush
3326         the register windows.
3327
3328 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
3329
3330         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3331         appropriate.  Document need for extended precision even when
3332         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
3333         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
3334         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
3335         instead of relying on later syntax error when REAL_WIDTH > 5.
3336         * real.c: Define NE based only on whether or not we have a
3337         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3338         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
3339         define GET_REAL and PUT_REAL as simple memcpy operations; no
3340         need to byteswap or round.
3341         Use #error instead of #ifdef-ing out the entire file, for
3342         prompt error detection.
3343
3344         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3345
3346 2002-04-18  David S. Miller  <davem@redhat.com>
3347
3348         * config/sparc/sparc.h (BRANCH_COST): Define.
3349
3350         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3351         does it.
3352
3353 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
3354
3355         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3356         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3357         propagate_block calls after relaxation loop using new variable
3358         stabilized_prop_flags.
3359
3360 2002-04-18  Richard Henderson  <rth@redhat.com>
3361
3362         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3363         (ia64_va_arg): Expect variable sized types by reference.
3364         * config/ia64/ia64-protos.h: Update.
3365         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3366         ia64_function_arg_pass_by_reference.
3367
3368 2002-04-18  Richard Henderson  <rth@redhat.com>
3369
3370         * ifcvt.c: Include except.h.
3371         (block_has_only_trap): Break out from find_cond_trap.
3372         (find_cond_trap): Use it.  Always delete the trap block.
3373         (merge_if_block): Allow then block null.  Be less simplistic about
3374         what insns can end a block.
3375         * Makefile.in (ifcvt.o): Depend on except.h.
3376
3377         * config/ia64/ia64.md (trap, conditional_trap): New.
3378
3379 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3380
3381         PR c/6358
3382         * function.c (assign_parms): Assign hard current_function_return_rtx
3383         register here...
3384         (expand_function_end): ...not here.
3385
3386 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
3387
3388         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3389         * c-tree.h (c_incomplete_type_error): New.
3390         * c-typeck.c (require_complete_type, build_component_ref): Update.
3391         (incomplete_type_error): Rename.
3392         * langhooks-def.h (lhd_incomplete_type_error): New.
3393         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3394         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3395         * langhooks.c (lhd_incomplete_type_error): New.
3396         * langhooks.h (struct lang_hooks_for_types): New hook.
3397         * tree.c (size_in_bytes): Use new hook.
3398         * tree.h (incomplete_type_error): Remove.
3399 objc:
3400         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3401
3402 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
3403
3404         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3405         TARGET_FLOAT_FORMAT blocks.
3406
3407 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3408
3409         * doc/install.texi (Downloading the source): Do not mention Chill
3410         any longer, but mention Ada.
3411         (Configuration): Do not mention Chill any longer.
3412
3413 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
3414
3415         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3416
3417 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
3418
3419         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3420         in last patch.
3421
3422 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3423
3424         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3425         instead of unsigned_type.
3426
3427 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3428
3429         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3430         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3431         later.
3432
3433 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
3434
3435         * attribs.c (vector_type_node_list): New static variable.
3436         (handle_vector_size_attribute): Use it to avoid generating a
3437         new type node each time we are called.
3438
3439         * combine.c (subst): Avoid trying to make a vector mode subreg of
3440         an integer constant.
3441         (gen_lowpart_for_combine): Likewise.
3442
3443 2002-04-18  Roger Sayle  <roger@eyesopen.com>
3444             Jakub Jelinek  <jakub@redhat.com>
3445
3446         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3447         for integer constant c (if x has unsigned type or sign bit is not
3448         set in c).  This folds the zero/sign extension into the bit-wise and
3449         operation.
3450
3451 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3452
3453         PR middle-end/6205
3454         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3455         otherwise xorps.
3456
3457 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
3458
3459         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3460
3461 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
3462
3463         * gcc.c (read_specs): Detect and fail if an attempt is made to
3464         rename a spec string to an already existing string.
3465
3466 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
3467
3468         * config/s390/s390.c (legitimize_pic_address): Do not generate
3469         illegal address constant without CONST.
3470
3471 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3472
3473         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3474         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3475
3476 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
3477
3478         PR optimization/6305
3479         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3480         to make sure previous reloads are taken into account.  Generate
3481         better code if one operand is an in-range immediate constant.
3482
3483 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
3484
3485         * doc/install.texi (Building): libgcj requires GNU make.
3486
3487 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
3488
3489         PR bootstrap/6315
3490         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3491         even if hard quad and register is not floating.
3492         (movtf reg<-mem split): Disallow splitting if hard quad and
3493         register is floating.
3494         (movtf mem<-reg split): Likewise.
3495         * config/sparc/sparc.c (fp_register_operand): New predicate.
3496         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3497
3498 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
3499
3500         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3501         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3502         (unprotoize.o): Ditto.  Build from protoize.c.  Define
3503         UNPROTOIZE on command line.
3504         * protoize.c: Include cppdefault.h.  Delete include_defaults.
3505         (in_system_include_dir): Use cpp_include_defaults (defined in
3506         cppdefault.o).
3507         * unprotoize.c: Delete file.
3508
3509 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
3510
3511         * config/rs6000/altivec.h (vec_ld): Add array variants.
3512         (vec_lde): Same.
3513         (vec_ldl): Same.
3514
3515 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
3516             Aldy Hernandez <aldyh@redhat.com>
3517
3518         * config/rs6000/altivec.h: Define __ALTIVEC__.
3519         (bool): New.
3520         (__pixel): New.
3521         (pixel): New.
3522         (vec_cfux): New.
3523         (vec_vmaddfp): New.
3524         (vec_vsldoi): New.
3525         Add parentheses to all macro arguments.
3526
3527 2002-04-16  Richard Henderson  <rth@redhat.com>
3528
3529         PR c++/6320
3530         * except.c (remove_eh_handler): Insert inner regions at beginning
3531         of sibling chain.  Refactor expressions.
3532
3533 2002-04-16  Richard Henderson  <rth@redhat.com>
3534
3535         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3536         * config/sparc/sol2-gas-bi.h: New file.
3537         * config.gcc (sparc*-solaris): Add it as needed.
3538         * configure.in (AS_SPARC64_FLAG): Remove check.
3539         * config.in, configure: Regenerate.
3540
3541         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3542
3543 2002-04-16  Richard Henderson  <rth@redhat.com>
3544
3545         * config/mips/mips.c (override_options): Don't override N32 for
3546         a 64-bit ISA.
3547
3548         PR 6202
3549         * config/mips/mips.md (can_delay): Split out of existing define_delays.
3550         (HILO_delay): Set can_delay false.
3551
3552 2002-04-16  Dale Johannesen <dalej@apple.com>
3553
3554         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3555         instruction addresses.
3556         (rs6000_output_function_epilogue): Likewise.
3557
3558 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
3559
3560         * c-parse.in (poplevel, compstmt_start,
3561         compstmt_primary_start): Add ending ';', in accordance
3562         with POSIX.
3563
3564 2002-04-16  Richard Henderson  <rth@redhat.com>
3565
3566         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3567         Adjust tm_file order to get TARGET_DEFAULT set properly.
3568         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3569         * doc/install.texi (sparc-solaris): Update.
3570
3571 2002-04-16  Dale Johannesen <dalej@apple.com>
3572
3573         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3574         comparison operands do not match each other or if modes of
3575         conditions do not match result.
3576
3577 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
3578
3579         PR target/6305
3580         * config/s390/s390.md (mulsidi3): Set both subregs of the
3581         multiword register.
3582
3583 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
3584
3585         * config/rs6000/altivec.h (vec_addc): Type check.
3586
3587 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
3588
3589         PR middle-end/6279
3590         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3591
3592         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3593
3594 2002-04-15  Richard Henderson  <rth@redhat.com>
3595
3596         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3597         call_really_used_regs too.
3598
3599 2002-04-15  Richard Henderson  <rth@redhat.com>
3600
3601         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3602
3603 2002-04-15  David S. Miller  <davem@redhat.com>
3604
3605         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3606         as being CLOBBERed.
3607
3608 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
3609
3610         PR c/6290
3611         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3612         CONST_VECTOR is { 0, ... 0 }.
3613
3614 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
3615
3616         * doc/install.texi (Installing GCC: Configuration): Clarify
3617         the only supported ways to configure gcc.
3618
3619 2002-04-15  Roland McGrath  <roland@frob.com>
3620
3621         * config.gcc (alpha*-*-gnu*): New target configuration.
3622         * config/alpha/gnu.h: New file for it.
3623         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3624
3625 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
3626
3627         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3628         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3629         * tree.h (expand_start_stmt_expr): Update prototype.
3630         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3631         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3632         on the STMT_EXPR created for the inline function.
3633
3634 2002-04-15  Richard Henderson  <rth@redhat.com>
3635
3636         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3637         config/i386/linux-aout.h, config/i386/linux-oldld.h,
3638         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3639         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3640         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3641         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3642         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3643         Define __gnu_linux__, not gnu_linux.
3644         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3645
3646 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
3647
3648         Remove Chill front end.
3649         * gcc.c (default_compilers): Remove Chill entries.
3650         * ch: Remove directory.
3651         * doc/frontends.texi: Remove information about Chill.
3652         * doc/sourcebuild.texi: Likewise.
3653         * doc/standards.texi: Likewise.
3654
3655 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
3656
3657         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3658         (LONGLONG_STANDALONE): Define.
3659
3660 2002-04-15  David S. Miller  <davem@redhat.com>
3661
3662         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3663         Call emit_library_call with LCT_NORMAL.
3664         (sparc_initialize_trampoline): Use LCT_foo instead of
3665         magic constant in emit_library_call invocations.
3666         (sparc64_initialize_trampoline): Likewise.
3667         (sparc_profile_hook): Likewise.
3668         * config/sparc/sparc.md: Likewise.
3669
3670         * config/sparc/sparc.c (sparc_extra_constraint_check):
3671         Fix type of argument 'c'.
3672         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3673         Likewise.
3674
3675 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3676
3677         * diagnostic.h (output_buffer_state): Redefine.
3678         (output_format_decoder): New macro.
3679         (output_prefixing_rule): Likewise.
3680         (output_line_cutoff): Likewise.
3681         (diagnostic_format_decoder): Adjust.
3682         (diagnostic_prefixing_rule): Likewise.
3683         (diagnostic_line_cutoff): Likewise.
3684         (diagnostic_state): Likewise.
3685         (diagnostic_kind_count): Likewise.
3686         (diagnostic_buffer): Now a macro.
3687
3688         * diagnostic.c (diagnostic_buffer): Remove definition.
3689         (output_is_line_wrapping): Adjust.
3690         (set_real_maximum_length): Likewise.
3691         (output_set_maximum_length): Likewise.
3692         (init_output_buffer): Likewise.
3693         (lhd_print_error_function): Likewise.
3694         (output_do_verbatim): Likewise.
3695
3696 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3697
3698         * cpperror.c (print_location): Don't print include chain
3699         if line == 0.
3700         (cpp_begin_message): Update to use DL_ macros.
3701         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3702         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3703         cpp_notice, cpp_notice_from_errno): Remove.
3704         (cpp_error, cpp_error_with_line): Update to take a diagnostic
3705         level.
3706         (cpp_errno): New.
3707         * cppexp.c (CPP_ICE): Remove.
3708         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3709         lex, integer_overflow, _cpp_parse_expr): Update.
3710         * cppfiles.c (read_include_file, find_include_file,
3711         handle_missing_header, _cpp_read_file, remap_filename): Update.
3712         * cpphash.h (enum error_type): Remove.
3713         (_cpp_begin_message): Update.
3714         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3715         cpp_handle_option, cpp_post_options): Update.
3716         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3717         skip_whitespace, parse_identifier, parse_slow, parse_string,
3718         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3719         cpp_interpret_charconst): Update.
3720         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3721         lex_macro_node, do_undef, glue_header_name, parse_include,
3722         do_include_common, read_flag, do_line, do_linemarker, do_ident,
3723         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3724         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3725         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3726         _cpp_pop_buffer, do_diagnostic): Update.
3727         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
3728         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
3729         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3730         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3731         cpp_notice, cpp_notice_from_errno): Remove.
3732         (cpp_error, cpp_error_with_line): Update to take a diagnostic
3733         level.
3734         (cpp_errno): New.
3735         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
3736         collect_args, enter_macro_context, save_parameter, parse_params,
3737         _cpp_create_definition, check_trad_stringification,
3738         cpp_macro_definition): Update.
3739         * cppmain.c (cpp_preprocess_file): Update.
3740         * fix-header.c (read_scan_file): Update.
3741
3742 2002-04-14  Andreas Schwab  <schwab@suse.de>
3743
3744         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3745
3746 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3747
3748         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3749
3750 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
3751
3752         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3753         not gnu_hurd.
3754
3755 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
3756
3757         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3758
3759 2002-04-13      Joel Sherrill <joel@OARcorp.com>
3760
3761         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
3762         sparc-elf and sparc-rtems targets.
3763
3764 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
3765
3766         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
3767         defined, and __gnu_hurd__ wherever __GNU__ is defined.
3768         * arm/linux-elf.h: Likewise.
3769         * cris/aout.h: Likewise.
3770         * cris/linux.h: Likewise.
3771         * i370/linux.h: Likewise.
3772         * i386/gnu.h: Likewise.
3773         * i386/linux-aout.h: Likewise.
3774         * i386/linux-oldld.h: Likewise.
3775         * i386/linux.h: Likewise.
3776         * i386/linux64.h: Likewise.
3777         * ia64/linux.h: Likewise.
3778         * m68k/linux-aout.h: Likewise.
3779         * m68k/linux.h: Likewise.
3780         * mips/linux.h: Likewise.
3781         * pa/pa-linux.h: Likewise.
3782         * pj/linux.h: Likewise.
3783         * rs6000/sysv4.h: Likewise.
3784         * s390/linux.h: Likewise.
3785         * sh/linux.h: Likewise.
3786         * sparc/linux-aout.h: Likewise.
3787         * sparc/linux.h: Likewise.
3788         * sparc/linux64.h: Likewise.
3789         * xtensa/linux.h: Likewise.
3790
3791 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
3792
3793         * stmt.c (check_unique_operand_names): Expect operand names to
3794         be strings rather than identifiers.  Use simple_cst_equal to
3795         compare them.
3796         (resolve_operand_name_1): Make same identifier to string change here.
3797         * c-parse.in (asm_operand): Convert a named operand into a string.
3798         * cp/parse.y (asm_operand): Likewise.
3799
3800 2002-04-13  Andreas Schwab  <schwab@suse.de>
3801
3802         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3803
3804 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
3805
3806         Revert these changes:
3807
3808         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
3809
3810         PR c++/5571
3811         * stor-layout.c (layout_decl): Reset the RTL for the decl.
3812
3813 2002-04-12  Richard Henderson  <rth@redhat.com>
3814
3815         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3816         (sparc*-*-solaris): Clean up header files.
3817         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3818         and plan on generating 64-bit code.
3819         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3820         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3821         * config/sparc/sol2-sld-64.h: Rename ...
3822         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
3823         for AS_SPARC64_FLAG not defined.
3824         * config/sparc/sol2-gld-bi.h: New.
3825         * config/sparc/sol2-sld.h: Remove.
3826         * config/sparc/sol26-sld.h: New.
3827         * config/sparc/sol2.h: Tidy comments.
3828         * doc/install.texi: Document sparc-solaris configury changes.
3829
3830 2002-04-12  Richard Henderson  <rth@redhat.com>
3831
3832         * recog.c (offsettable_address_p): Match the logic in adjust_address.
3833
3834         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3835         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
3836
3837 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3838
3839         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3840
3841 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
3842
3843         * pa.c (pa_can_combine_p): Call extract_insn before calling
3844         constrain_operands.
3845
3846 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
3847
3848         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3849         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3850         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3851         (CPP_PREDEFINES): Handle __declspec.
3852         * config/i386/t-interix (USER_H): Remove.
3853
3854 2002-04-12  DJ Delorie  <dj@redhat.com>
3855
3856         * integrate.c (compare_blocks): Make comparisons safe for when
3857         sizeof(int) < sizeof(char *).
3858         (find_block): Likewise.
3859
3860 2002-04-12  Jan Hubicka  <jh@suse.cz>
3861             David Edelsohn  <edelsohn@gnu.org>
3862
3863         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
3864         registers.
3865         (symbol_ref_operand): New.
3866         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
3867         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
3868
3869 2002-04-12  Andreas Schwab  <schwab@suse.de>
3870
3871         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3872         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3873         overrides the definition in config/svr4.h.
3874
3875 2002-04-12      Eric Norum <eric.norum@usask.ca>
3876
3877         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3878         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3879         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3880         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3881         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3882         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3883         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3884         definitions to config/rtems.h and make the targets more similar.
3885
3886 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3887
3888         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3889         POINTERS_EXTEND_UNSIGNED.
3890         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3891         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3892
3893         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3894         not specified.
3895
3896 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
3897
3898         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
3899         depends on TARGET_SHMEDIA, not TARGET_SH5.
3900
3901 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
3902
3903         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3904         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3905
3906 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
3907
3908         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3909         no r0 clobber.
3910
3911 2002-04-12  Andreas Schwab  <schwab@suse.de>
3912
3913         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3914
3915 2002-04-12  Richard Henderson  <rth@redhat.com>
3916
3917         PR bootstrap/4191
3918         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3919
3920         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3921         modes spanning multiple hard regs.
3922
3923         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3924
3925 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3926
3927         * pa.c (pa_output_function_prologue): Don't accumulate the total
3928         number of code bytes when using TARGET_64BIT, or gas, SOM and not
3929         the portable runtime.
3930         (output_deferred_plabels): Handle 64bit plabels.
3931         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
3932         generating pic code using the GAS assembler for object formats that
3933         are not SOM (ie., ELF32 and ELF64).
3934         (output_millicode_call): Check attribute type if attribute length is 28.
3935         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
3936         dbr_sequence_length once.
3937         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
3938         dbr_sequence_length once.
3939         * pa.h (TARGET_SOM): Define if not defined.
3940         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
3941         with GAS and not SOM.
3942         (jump, call_internal_reg, call_value_internal_reg): Likewise.
3943         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
3944
3945 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3946
3947         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3948         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3949         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3950         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3951         elfos.h and dbxelf.h values are fine now.
3952         * config/i386/freebsd.h, config/alpha/freebsd.h
3953         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3954
3955 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3956
3957         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3958         or set Acpu or Amachine.  Reformat.
3959         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3960         define.
3961         (LINK_SPEC): Do not need to undef.
3962         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3963         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3964         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3965         define.
3966         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3967         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3968         (LINK_SPEC): Do not need to undef.
3969         (DONT_USE_BUILTIN_SETJMP): Do not define.
3970         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3971         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
3972         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3973         Remove trailing spaces.
3974         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3975         __ELF__, or set Acpu or Amachine.  Reformat.
3976         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3977         define.
3978
3979 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3980
3981         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3982         all other *-*-freebsd* targets.
3983
3984 2002-04-11  Richard Henderson  <rth@redhat.com>
3985
3986         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3987
3988 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3989
3990         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
3991         Include {cpu}/{cpu}.h thru tm_file.
3992         (alpha*-*-linux*ecoff): Remove target.
3993         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
3994         (LINK_SPEC): Remove, is not OS independent.
3995         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
3996         (LINK_SPEC): Do not need to #undef any longer.
3997         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
3998         any longer.
3999         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4000         __ELF__.
4001         (LINK_SPEC): Moved here from alpha/elf.h.
4002         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4003         SUB_CPP_PREDEFINES.
4004         * config/alpha/linux-ecoff.h: Remove.
4005         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4006         (CPP_SPEC): Define _POSIX_SOURCE as needed.
4007         (CPP_SUBTARGET_SPEC): Do not define.
4008         (LINK_SPEC): Do not need to #undef any longer.
4009         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4010         * config/alpha/vms.h: Likewise.
4011
4012 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
4013
4014         * doc/extend.texi: Remove old claim that typedefs cannot have
4015         an alignment attribute.
4016
4017 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4018
4019         PR optimization/6177
4020         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4021         bitpos is 0 and bitsize CONCAT size.
4022
4023 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4024
4025         PR c/6223
4026         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4027
4028 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
4029
4030         * config/alpha/freebsd.h: Minor reformatting.
4031         (CPP_SPEC): Define ELF and add cpp_subtarget.
4032         (ASM_SPEC): No longer needed.
4033
4034 2002-04-11  Richard Henderson  <rth@redhat.com>
4035
4036         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4037         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
4038         (dimode mem/zero splitter): New.
4039
4040 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
4041
4042         * config/cris/cris.c (cris_override_options): Tweak error message
4043         for PIC not implemented.
4044
4045         * config/cris/cris.h: Tweak comments related to parameter-passing.
4046
4047         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4048
4049 2002-04-10  Richard Henderson  <rth@redhat.com>
4050
4051         * except.c (add_ehl_entry): Allow duplicates after landing pad
4052         creation.
4053
4054 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
4055
4056         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4057
4058 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4059
4060         * c-decl.c (c_init_decl_processing): Move generation of
4061         decls for g77_integer_type_node and friends from here ...
4062         * c-common.c (c_common_nodes_and_builtins): ... to here.
4063
4064 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
4065
4066         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4067         is only used as frame pointer when frame_pointer_needed is true.
4068
4069 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
4070
4071         PR target/817
4072         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4073         for the fact that the pool entry uses two words.
4074         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
4075         1k bytes.
4076         (movdf_soft_insn): Similarly.
4077         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4078         for the fact that the pool entry uses three words.
4079
4080 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
4081
4082         * config/mips/mips.c (mips_va_arg): When using the struct version
4083         of the EABI va_list, allow arguments in the register save area to
4084         take up less room than a stack argument.
4085
4086 2002-04-10  Richard Henderson  <rth@redhat.com>
4087
4088         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4089         if EXPAND_INITIALIZER.
4090
4091 2002-04-09  Richard Henderson  <rth@redhat.com>
4092
4093         * config/alpha/alpha.md (movdi_er_maybe_g): New.
4094         * config/alpha/alpha.c (alpha_expand_mov): Use it.
4095
4096 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
4097
4098         PR optimization/6233
4099         * rtlanal.c (pure_call_p): New function.
4100         * rtl.h (pure_call_p): Declare.
4101         * loop.c (prescan_loop): Use it to set has_nonconst_call.
4102         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4103
4104 2002-04-09  Eric Christopher  <echristo@redhat.com>
4105
4106         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4107         information to .comm directive.
4108
4109 2002-04-09  Richard Henderson  <rth@redhat.com>
4110
4111         PR c/5078
4112         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4113
4114 2002-04-09  Richard Henderson  <rth@redhat.com>
4115
4116         * basic-block.h (flow_delete_block_noexpunge): Declare.
4117         (expunge_block_nocompact): Declare.
4118         * cfg.c (expunge_block_nocompact): Split out from ...
4119         (expunge_block): ... here.
4120         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4121         (flow_delete_block_noexpunge): Split out from ...
4122         (flow_delete_block): ... here.
4123         * cfgcleanup.c (delete_unreachable_blocks): Compact while
4124         removing dead blocks.
4125         * except.c (exception_handler_labels): Remove.
4126         (exception_handler_label_map): New.
4127         (struct eh_region): Add aka member.
4128         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4129         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4130         (for_each_eh_label, for_each_eh_label_1): New.
4131         (init_eh): Register exception_handler_label_map.
4132         (free_eh_status): Use free_region.
4133         (find_exception_handler_labels): Use the map, not the list.
4134         (remove_exception_handler_label): Likewise.
4135         (maybe_remove_eh_handler): Likewise.
4136         (remove_eh_handler): Use the region aka bitmap.
4137         * except.h (exception_handler_labels): Remove.
4138         (for_each_eh_label): Declare.
4139         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4140         * loop.c (invalidate_loops_containing_label): New.
4141         (find_and_verify_loops): Use it.  Use for_each_eh_label.
4142         * sched-rgn.c (is_cfg_nonregular): Use
4143         current_function_has_exception_handlers.
4144
4145 2002-04-09  Richard Henderson  <rth@redhat.com>
4146
4147         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4148         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4149         Do not return changed status.
4150         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4151         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4152         New functions that do return changed status.
4153         * sbitmap.h: Update decls.
4154         * gcse.c, lcm.c: Use _cg functions as needed.
4155
4156 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4157
4158         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4159         (sh64-*-elf*, sh-*-rtemself*): Likewise.
4160         * config/sh/embed_bb.c: New file.
4161         * config/sh/embed-elf.h: New file.
4162         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4163         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
4164         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4165         __PTRDIFF_TYPE__ .
4166         (SUBTARGET_CPP_PTR_SPEC): Don't define.
4167         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4168         Add subtarget_asm_endian_spec.
4169         (ASM_SPEC): Use subtarget_asm_endian_spec.
4170         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4171         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4172         (WCHAR_UNSIGNED): Define.
4173         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4174         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4175         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4176         Fix value.
4177         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4178         (sh_adjust_cost): Likewise.
4179         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4180         __PTRDIFF_TYPE__ .
4181         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4182         (WCHAR_TYPE_SIZE): Likewise.
4183         (ASM_SPEC): Use subtarget_asm_endian_spec.
4184         (SH_ELF_WCHAR_TYPE): #undef/ #define.
4185         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4186         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4187         (MAX_WCHAR_TYPE_SIZE): Don't #define .
4188         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4189         (USER_LABEL_PREFIX): Don't #undef /#define .
4190         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4191         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4192         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4193         (ASM_SPEC): Likewise.
4194         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4195         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4196         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4197         (LIB2FUNCS_EXTRA): Define.
4198         * t-sh64 (LIB2FUNCS_EXTRA): Define.
4199         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4200         (LIB1ASMFUNCS_CACHE): Define.
4201         (LIB2FUNCS_EXTRA): Redefine empty.
4202
4203 2002-04-08  Richard Henderson  <rth@redhat.com>
4204
4205         * reorg.c (get_branch_condition): Use reversed_comparison_code.
4206
4207 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4208
4209         * config/m68hc11/larith.asm (__map_data_section): Fix condition
4210         and optimize for size.
4211         (__do_global_ctors): Fix pointer comparison.
4212         (__do_global_dtors): Likewise.
4213
4214 2002-04-09  David S. Miller  <davem@redhat.com>
4215
4216         * config/sparc/sparc.c (sparc_extra_constraint_check): New
4217         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
4218         allow reloading pseudos.
4219         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4220         * config/sparc/sparc-protos.h: Declare it.
4221
4222         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4223         unsigned comparison warning.
4224         (output_restore_regs): Mark leaf_function as unused.
4225
4226 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4227
4228         * expr.c (is_aligning_offset): New function.
4229         (expand_expr, case COMPONENT_EXPR): Call it.
4230
4231 2002-04-08  David S. Miller  <davem@redhat.com>
4232
4233         PR target/6082
4234         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4235
4236         Make init_priority work on Sparc when using GNU ld.
4237         * config/sparc/linux.h, config/sparc/linux64.h,
4238         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4239         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4240         * config/sparc/sol2-gld.h: New file to do the same.
4241         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4242         sparc/sol2-gld.h to tm_file.
4243
4244         PR optimization/4328
4245         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4246         * doc/md.texi: Document it.
4247         * config/sparc/sparc.md (movdi_insn_sp64_novis,
4248         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4249         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4250         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4251         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4252
4253 2002-04-08  Andreas Jaeger  <aj@suse.de>
4254
4255         * stmt.c (expand_asm_operands): Revert last patch from Richard
4256         Henderson.
4257
4258 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4259
4260         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4261         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
4262
4263 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4264
4265         * doc/contrib.texi (Contributors): Add David O'Brien.
4266
4267 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
4268
4269         * configure.in (auto-build.h): Use target_alias and build_alias
4270         when running configure.
4271         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4272         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4273         * configure: Regenerate.
4274
4275 2002-04-07  David S. Miller  <davem@redhat.com>
4276
4277         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4278
4279 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4280
4281         PR 5933
4282         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4283         generating 32-bit pic code.
4284
4285 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
4286
4287         * cppinit.c (cpp_create_reader): Initialize
4288         discard_comments_in_macro_exp.
4289         (COMMAND_LINE_OPTIONS): Add "-CC" option.
4290         (cpp_handle_option): Handle "-CC" option.
4291         * cpplex.c (save_comment): If saving a C++ comment in
4292         a directive, convert it to a C comment.
4293         (_cpp_lex_direct): Pass second comment start character to
4294         save_comment to indicate comment type.
4295         * cpplib.c (_cpp_handle_directive): If processing
4296         a "#define" directive and discard_comments_in_macro_exp
4297         is false,  re-enable saving of comments.
4298         (lex_macro_node): If discard_comments_in_macro_exp is false,
4299         discard any comments before the macro identifier.
4300         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4301         member.
4302         * cppmacro.c (cpp_get_token): If expanding a macro while
4303         processing a directive, discard any comments we might encounter.
4304         (parse_params): If discard_comments_in_macro_exp is false,
4305         ignore comments in the macro parameter list.
4306         * gcc.c (cpp_unique_options): Add "-CC" option.
4307         (option_map): Map "--comments-in-macros" to "-CC".
4308         * doc/cppopts.texi: Document "-CC" option.
4309         * f/lang-specs.h: Add "-CC" option.
4310         * testsuite/gcc.dg/cpp/maccom1.c: New test.
4311         * testsuite/gcc.dg/cpp/maccom2.c: New test.
4312         * testsuite/gcc.dg/cpp/maccom3.c: New test.
4313         * testsuite/gcc.dg/cpp/maccom4.c: New test.
4314         * testsuite/gcc.dg/cpp/maccom5.c: New test.
4315         * testsuite/gcc.dg/cpp/maccom6.c: New test.
4316
4317 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4318
4319         PR middle-end/6180
4320         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4321
4322 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4323
4324         PR c++/5571
4325         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4326
4327         PR opt/5120
4328         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4329         RTX_UNCHANGING_P for the functions arguments when a tail call
4330         is made.
4331
4332 2002-04-06  Jason Merrill  <jason@redhat.com>
4333
4334         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4335         (parse_options_and_default_flags): Set them appropriately.
4336         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4337
4338 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
4339
4340         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4341         here.
4342
4343         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4344         semicolon.
4345
4346         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4347         types come in by-reference.  Fix typo in comment.
4348
4349 2002-04-05  David S. Miller  <davem@redhat.com>
4350
4351         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4352         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4353         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4354         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4355
4356 2002-04-05  David S. Miller  <davem@redhat.com>
4357
4358         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4359         are not going to emit return instructions, emit at least a nop
4360         for the sake of sane backtraces.
4361
4362 2002-04-05  Richard Henderson  <rth@redhat.com>
4363
4364         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4365
4366 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
4367
4368         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4369
4370 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
4371
4372         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4373         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4374         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4375
4376 2002-04-05  Andreas Schwab  <schwab@suse.de>
4377
4378         * c-convert.c: Include c-common.h.
4379         * Makefile.in (c-convert.o): Updated.
4380
4381 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4382
4383         * mklibgcc.in: Use separate libgcc.map for each multilib.
4384         * Makefile.in (distclean): Don't remove libgcc.map here.
4385
4386 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4387
4388         * Makefile.in (s-mlib): Handle --disable-multilib by separate
4389         genmultilib invocation.
4390
4391 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
4392
4393         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4394         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
4395         to num_gprs for symmetry.
4396         * config/mips/mips.c: Adjust accordingly.
4397
4398 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4399
4400         * c-common.c (truthvalue_conversion): Rename, update.
4401         * c-common.h (c_common_truthvalue_conversion): New.
4402         * c-convert.c (convert): Update.
4403         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4404         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4405         * c-typeck.c (build_binary_op, build_unary_op,
4406         build_conditional_expr): Update.
4407         * fold-const.c (constant_boolean_node, fold): Use langhook.
4408         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4409         * langhooks.h (struct lang_hooks): New hook.
4410         * stmt.c (expand_decl_cleanup): Use langhook.
4411         * tree.h (truthvalue_conversion): Remove.
4412 objc:
4413         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4414
4415 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
4416
4417         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4418         Add rules to make null object file.
4419
4420 2002-04-04  Jim Blandy  <jimb@redhat.com>
4421
4422         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4423         macro formal parameter names.
4424
4425 2002-04-04  David S. Miller  <davem@redhat.com>
4426
4427         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4428
4429 2002-04-04  Richard Henderson  <rth@redhat.com>
4430
4431         PR middle-end/5099
4432         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4433         Support copies into and out of memory.  Don't accept allows_reg
4434         and allows_mem as gospel.
4435
4436 2002-04-04  Richard Henderson  <rth@redhat.com>
4437
4438         PR opt/6165
4439         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4440         (write_dependence_p): Likewise.
4441
4442 2002-04-04  Richard Henderson  <rth@redhat.com>
4443
4444         * predict.c (estimate_bb_frequencies): Do frequency calculation
4445         with a volatile temporary.
4446
4447 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
4448
4449         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4450
4451 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4452
4453         PR c++/6119
4454         * final.c (final_start_function): Don't bump profile_label_no here...
4455         (final_end_function): ...but here.
4456
4457 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4458
4459         * config/sparc/sparc.md (pic): New attribute.
4460         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4461         into stack slots.
4462         (split after do_builtin_setjmp_setup): New.
4463
4464 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4465
4466         PR fortran/6106
4467         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4468         change.
4469
4470 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4471
4472         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4473         UNITS_PER_WORD for zero sized aggregates.
4474
4475 2002-04-03  David S. Miller  <davem@redhat.com>
4476
4477         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4478         one-character spec for this, just use %(link_gcc_c_sequence).
4479
4480 2002-04-03  David S. Miller  <davem@redhat.com>
4481
4482         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4483         handling.
4484
4485 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4486
4487         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4488         (DWARF_FRAME_RETURN_COLUMN): Move.
4489         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4490         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4491         * pa.c (except.h, predict.h): Include.
4492         (FRP): Delete.
4493         (store_reg_modify, set_reg_plus_d): Revise prototypes.
4494         (output_ascii): Add cast.
4495         (store_reg_modify): Revise to add frame notes.
4496         (set_reg_plus_d): Likewise.
4497         (compute_frame_size): Include space for eh data registers in frame if
4498         the current function calls eh_return.
4499         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
4500         function calls eh_return.  Save eh data registers if the current
4501         function calls eh_return.  Fix code to add frame notes.  Emit
4502         blockage to prevent insns with frame notes being scheduled in the
4503         delay slot of calls.
4504         (hppa_expand_epilogue): Restore eh data registers and do final stack
4505         adjustment if the current function calls eh_return.  Don't add frame
4506         notes.
4507         (output_call): Revise for change in length of call insn.  Don't do
4508         return pointer adjustment for an unconditional jump in the delay slot
4509         of a call when using frame notes.
4510         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4511         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4512         (ARG_POINTER_CFA_OFFSET): Define.
4513         * pa.md (return_external_pic): New pattern.
4514         (prologue): Correct formatting.  Use return_external_pic if current
4515         function calls eh_return.
4516         (call_internal_symref, call_value_internal_symref,
4517         sibcall_internal_symref, sibcall_value_internal_symref): Change default
4518         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4519         respectively.
4520         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4521
4522         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4523         list of targets to check using "nop" insn.
4524         * configure: Rebuilt.
4525
4526 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
4527
4528         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4529
4530 2002-04-03  David S. Miller  <davem@redhat.com>
4531
4532         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4533         library sequence passed to the linker.
4534         (LINK_COMMAND_SPEC): Use it.
4535         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4536         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4537         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4538
4539 2002-04-03  Jason Merrill  <jason@redhat.com>
4540
4541         * except.c (struct eh_status): Remove protect_list.
4542         (begin_protect_partials, end_protect_partials): Remove.
4543         (add_partial_entry): Remove.
4544         * except.h: Remove prototypes.
4545
4546         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4547         expand_decl_cleanup_eh.
4548
4549         PR c++/5636
4550         * tree.h (CLEANUP_EH_ONLY): New macro.
4551         * stmt.c (expand_decl_cleanup_eh): New fn.
4552         (expand_cleanups): Check CLEANUP_EH_ONLY.
4553         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4554         Use expand_decl_cleanup_eh.
4555         (expand_stmt): Adjust.
4556         * c-common.h: Adjust prototype.
4557
4558 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
4559
4560         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4561         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4562         (cris_target_asm_function_epilogue): Ditto.
4563         (cris_initial_frame_pointer_offset): Ditto.
4564         (cris_simple_epilogue): Ditto.
4565         (cris_expand_builtin_va_arg): Variable-size types come in
4566         by-reference.
4567
4568 2002-04-03  David S. Miller  <davem@redhat.com>
4569
4570         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4571         little-endian.
4572         (set_fast_math): Correct 'fsr' type.
4573
4574 2002-04-03  Richard Henderson  <rth@redhat.com>
4575
4576         PR opt/3569
4577         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4578         * toplev.c (check_global_declarations): Use it.
4579         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4580         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4581         (LANG_HOOKS_DECLS): Add it.
4582         * langhooks.c (lhd_warn_unused_global_decl): New.
4583         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4584         * c-objc-common.c (c_warn_unused_global_decl): New.
4585         * c-tree.h (c_warn_unused_global_decl): Declare.
4586         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4587
4588 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4589
4590         * langhooks-def.h (lhd_set_decl_assembler_name,
4591         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4592         (LANG_HOOKS_INITIALIZER): Update.
4593         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4594         * langhooks.h (struct lang_hooks): New hook.
4595         * tree.c (set_decl_assembler_name): Move to langhooks.c.
4596         (lang_set_decl_assembler_name): Remove.
4597         (init_obstacks): Don't set hook.
4598         (decl_assembler_name): New function.
4599         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4600         (decl_assembler_name): New.
4601         (lang_set_decl_assembler_name): Remove.
4602
4603 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
4604
4605         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4606         works properly with .hidden symbols.
4607         * configure: Rebuilt.
4608         * config.in: Rebuilt.
4609         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4610         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4611         properly with .hidden symbols.
4612
4613 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
4614
4615         PR middle-end/6102
4616         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4617         USE argument.
4618
4619 2002-04-03  Richard Henderson  <rth@redhat.com>
4620
4621         PR opt/4120
4622         * sched-rgn.c (sets_likely_spilled): New.
4623         (sets_likely_spilled_1): New.
4624         (add_branch_dependences): Use it.
4625
4626 2002-04-02  Richard Henderson  <rth@redhat.com>
4627
4628         PR opt/4311
4629         * loop.h (LOOP_FIRST_PASS): New.
4630         * loop.c (strength_reduce): Mind it when deciding to unroll.
4631         * toplev.c (rest_of_compilation): Set it.
4632
4633 2002-04-02  David S. Miller  <davem@redhat.com>
4634
4635         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4636         mems_ok_for_ldd_peep when the order of the loads being examined
4637         is reversed.
4638         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4639         existing comment to increase comprehension of this situation.
4640
4641 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
4642
4643         * config/sh/sh.md: Don't use union real_extract.
4644
4645 2002-04-02  Richard Henderson  <rth@redhat.com>
4646
4647         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4648
4649 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
4650
4651         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4652         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4653         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4654         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4655         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4656         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4657         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4658         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4659         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4660         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4661         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4662         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4663         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4664         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4665         Include as many configury headers via tm_file as possible.  This
4666         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4667         * config/openbsd-oldgas.h: New file.
4668         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4669         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4670         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4671         config/i386/i386-coff.h, config/i386/i386-interix.h,
4672         config/i386/iscdbx.h, config/i386/linux-aout.h,
4673         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4674         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4675         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4676         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4677         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4678         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4679         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4680         config/i386/vxi386.h: Do not directly include configury headers.
4681         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4682         Directly include configury headers that are no longer automatically
4683         included by the above headers.
4684         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4685         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4686         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4687         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4688         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4689         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4690         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4691         (TARGET_VERSION): Define.
4692         * config/i386/beos-elf.h, config/i386/freebsd.h,
4693         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4694         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4695         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4696         config/i386/sco5.h, config/i386/sysv4.h
4697         (TARGET_VERSION): Do not need to protect.
4698         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4699         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4700         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4701         config/i386/i386-interix.h, config/i386/linux-aout.h,
4702         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4703         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4704         (YES_UNDERSCORES): Do not define - not needed.
4705         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4706         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4707         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4708         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4709         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4710         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4711         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4712         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4713
4714 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
4715             Richard Henderson  <rth@redhat.com>
4716
4717         PR c/5484
4718         * function.c (assign_temp): Accept either type or decl argument.
4719         Detect variables whose size is too large to fit into an integer.
4720         * stmt.c (expand_decl): Pass the decl, not the type.
4721
4722 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
4723
4724         * protoize.c: Match include directory usage with cppdefault.c.
4725
4726 2002-04-03  Jeffrey A Law  (law@redhat.com)
4727             Hans-Peter Nilsson  <hp@bitrange.com>
4728
4729         * combine.c (simplify_comparison): Avoid narrowing a comparison
4730         with a paradoxical subreg when doing so would drop signficant bits.
4731
4732 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
4733
4734         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4735         if POINTERS_EXTEND_UNSIGNED is defined.
4736
4737 2002-04-02  Richard Henderson  <rth@redhat.com>
4738
4739         PR opt/3967
4740         * local-alloc.c (contains_replace_regs): LO_SUM may contain
4741         replace regs.
4742
4743 2002-04-02  Richard Henderson  <rth@redhat.com>
4744
4745         * doc/standards.texi: Document required freestanding libc entry points.
4746
4747 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
4748
4749         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4750         associated splitter.  Remove MQ constraint.
4751         (ctrdi_internal4): Correct CCmode clobber.
4752
4753 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4754
4755         * milli64.S ($$dyncall): New function.
4756         * t-linux (LIB1ASMFUNCS): Revise module list.
4757         (LIB1ASMSRC): Use pa/milli64.S.
4758
4759 2002-04-02  Richard Henderson  <rth@redhat.com>
4760
4761         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4762         rename solaris_sys_varargs_h.
4763
4764 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4765
4766         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4767         the same mode as its component.
4768
4769 2002-04-02  Richard Henderson  <rth@redhat.com>
4770
4771         PR opt/190
4772         * final.c (this_is_asm_operands): Export.
4773         * output.h (this_is_asm_operands): Declare.
4774         * config/i386/i386.c (print_operand): Error odd asm operands.
4775
4776 2002-04-02  Richard Henderson  <rth@redhat.com>
4777
4778         PR opt/420
4779         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4780
4781 2002-04-01  Richard Henderson  <rth@redhat.com>
4782
4783         PR target/1538
4784         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4785         * fixinc/fixincl.x: Rebuild.
4786
4787 2002-04-01  Richard Henderson  <rth@redhat.com>
4788
4789         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4790         (atomic_alloc, atomic_free): New.
4791         (SIZE, MASK_FOR, PTR_IN): New.
4792         (emergency_reg_state, emergency_reg_state_free): New.
4793         (emergency_labeled_state, emergency_labeled_state_free): New.
4794         (reg_state_alloced, labeled_state_alloced): New.
4795         (alloc_reg_state, free_reg_state): New.
4796         (alloc_label_state, free_label_state, free_label_states): New.
4797         (push, pop, dup_state_stack, free_state_stack): Use them.
4798         (desc_label_state): Likewise.
4799         (uw_frame_state_for): Free label states and state stack.
4800         (uw_update_reg_address): Eliminate warnings.
4801
4802 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
4803
4804         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4805         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4806
4807 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4808
4809         * c-decl.c (grokdeclarator): Update.
4810         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4811         * c-tree.h (c_mark_addressable): New.
4812         * c-typeck.c (default_function_array_conversion, build_unary_op,
4813         build_array_ref, convert_for_assignment): Update.
4814         (mark_addressable): Rename.
4815         * calls.c (try_to_integrate, expand_call): Use langhook.
4816         * expr.c (expand_expr): Use langhook.
4817         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
4818         * langhooks.h (struct lang_hooks): New hook.
4819         * stmt.c (expand_asm_operands): Use langhook.
4820         * tree.h (mark_addressable): Remove.
4821 objc:
4822         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4823
4824 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
4825
4826         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4827         in previous change.
4828
4829 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
4830
4831         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
4832         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
4833
4834 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4835
4836         * c-common.c (unsigned_conversion_warning, convert_and_check,
4837         unsigned_type, signed_type, shorten_compare,
4838         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
4839         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
4840         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
4841         New.
4842         * c-decl.c (grokdeclarator): Update.
4843         * c-format.c (check_format_types): Update.
4844         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4845         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4846         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
4847         * convert.c (convert_to_integer): Use new hooks.
4848         * expmed.c (make_tree): Use new hooks.
4849         * expr.c (store_expr): Use new hooks.
4850         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
4851         all_ones_mask_p, unextend, fold): Use new hooks.
4852         * langhooks.h (struct lang_hooks_for_types): New hooks.
4853         * tree.h (signed_or_unsigned_type, signed_type,
4854         unsigned_type): Remove.
4855 objc:
4856         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4857         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4858
4859 2002-03-31  Richard Henderson  <rth@redhat.com>
4860
4861         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4862         (desc_frgr_mem): Fix reference to f16-f31.
4863
4864 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4865
4866         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4867         RTVEC_ELT): Const-ify.
4868         * varray.h (VARRAY_CHECK): Const-ify.
4869         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
4870         ggc_mark_rtvec, ggc_mark): Const-ify.
4871
4872 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4873
4874         * diagnostic.c: Include langhooks-def.h.
4875         * Makefile.in (diagnostic.o): Update.
4876
4877 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4878
4879         * c-common.c (c_unsafe_for_reeval): Rename.
4880         * c-common.h (c_unsafe_for_reeval): Rename.
4881         * c-decl.c (finish_incomplete_decl): Rename.
4882         (c_init_decl_processing): Don't set langhook.
4883         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4884         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4885         * c-objc-common.c (c_objc_common_init): Don't set langhook.
4886         * c-tree.h (finish_incomplete_decl): Rename.
4887         * langhooks-def.h (lhd_unsafe_for_reeval): New.
4888         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
4889         (LANG_HOOKS_INITIALIZER): Update.
4890         * langhooks.c (lhd_unsafe_For_reeval): New.
4891         * langhooks.h (struct langhooks): New hooks.
4892         * toplev.c (incomplete_decl_finalize_hook): Remove.
4893         (wrapup_global_declarations): Update.
4894         * tree.c (lang_unsafe_for_reeval): Remove.
4895         (unsafe_for_reeval): Update.
4896         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
4897         Remove.
4898 objc:
4899         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4900         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4901
4902 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4903
4904         * diagnostic.c (print_error_function): Remove.
4905         (default_print_error_function): Rename.
4906         (report_error_function): Update.
4907         * diagnostic.h (print_error_function): Remove.
4908         (default_print_error_function): Remove.
4909         * langhooks-def.h (struct diagnostic_context): Predeclare.
4910         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
4911         (LANG_HOOKS_INITIALIZER): Update.
4912         * langhooks.h (struct diagnostic context): Predeclare.
4913         (struct lang_hooks): New hook.
4914
4915 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4916
4917         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4918         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
4919         !flag_pic.
4920         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
4921         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
4922         of PIC_OFFSET_TABLE_REGNUM thruout.
4923         * config/rs6000/rs6000.md: Likewise.
4924         * config/rs6000/darwin.h: Likewise.
4925
4926 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4927
4928         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4929         unsigned HOST_WIDE_INT, not unsigned int.
4930
4931 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
4932
4933         PR middle-end/6096, middle-end/6098, middle-end/6099
4934         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4935         CODE_LABELs.
4936         (fill_slots_from_thread): Likewise.
4937
4938 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
4939
4940         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
4941         floating fields in float regs.
4942         (function_arg_record_value_2): Likewise.
4943
4944 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
4945
4946         * config/mmix/mmix.md (define_constants): Remove misleading
4947         FIXME.  Add MMIX_fp_rO_OFFSET.
4948         ("nonlocal_goto_receiver"): Don't have stack-frame address of
4949         saved rO as part of the pattern.  Remove FIXME.
4950         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
4951         here, at output-time.
4952
4953 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
4954
4955         PR middle-end/6100
4956         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4957         REG_BR_PRED.
4958         (output_v9branch): Likewise.
4959
4960 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
4961
4962         * gcc.c: Revert previous patch for now.
4963         * config/i386/djgpp.h: Likewise.
4964
4965 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
4966
4967         * config/mmix/crti.asm (_init): Register _fini with atexit.
4968         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4969
4970 2002-03-31  Richard Henderson  <rth@redhat.com>
4971
4972         PR target/3997
4973         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4974         (ASM_OUTPUT_DEF_FROM_DECLS): New.
4975
4976 2002-03-31  Richard Henderson  <rth@redhat.com>
4977
4978         * libgcc2.c (__bb_exit_func): Make static.
4979
4980         * config/alpha/alpha.md (trap): New.
4981
4982 2002-03-31  Richard Henderson  <rth@redhat.com>
4983
4984         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
4985         promoted argument types; build trap.
4986         (expand_builtin_trap): New.
4987         (expand_builtin): Use it.
4988         * stmt.c (expand_nl_goto_receivers): Likewise.
4989         * expr.h (expand_builtin_trap): Declare.
4990         * libfuncs.h (LTI_abort, abort_libfunc): New.
4991         * optabs.c (init_optabs): Init abort_libfunc.
4992
4993 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
4994
4995         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
4996         (LINK_COMMAND_SPEC): ... from here.
4997         (init_gcc_specs): Duplicate it here too, omitting
4998         shared_name in the second copy.
4999         (init_spec): Test for duplicate
5000         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5001
5002 2002-03-30  David S. Miller  <davem@redhat.com>
5003
5004         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5005         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5006
5007 2002-03-30  Roger Sayle <roger@eyesopen.com>
5008             Richard Henderson  <rth@redhat.com>
5009
5010         * regmove.c (combine_stack_adjustments_for_block): Avoid
5011         emitting a stack adjustment of zero bytes.  Let delete_insn
5012         update bb->head.
5013
5014 2002-03-30  Richard Henderson  <rth@redhat.com>
5015
5016         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5017         (sparc_emitting_epilogue): New.
5018         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5019         * config/sparc/sparc-protos.h: Update.
5020         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5021         (TARGET_SWITCHES): Update.
5022         * config/sparc/sparc.md (return): Remove.
5023         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5024         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5025         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5026         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5027         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5028         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5029         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5030         Remove MASK_EPILOGUE.
5031         * doc/invoke.texi: Update.
5032
5033 2002-03-30  Daniel Berlin  <dan@dberlin.org>
5034
5035         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5036         CPP will start the file for us.
5037
5038 2002-03-30  Richard Henderson  <rth@redhat.com>
5039
5040         PR target/5446
5041         * config/ia64/ia64.c (group_barrier_needed_p): Special case
5042         prologue_allocate_stack.
5043         (ia64_single_set): Use insn codes for recognition of special
5044         cases, not rtl matching.
5045         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5046
5047 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
5048
5049         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5050
5051 2002-03-30  Richard Henderson  <rth@redhat.com>
5052
5053         PR target/6032
5054         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5055         or -fomit-frame-pointer with profiling.
5056         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5057         (FUNCTION_PROFILER): Do nothing.
5058         (PROFILE_HOOK): New.
5059         * config/sparc/sparc.c (sparc_override_options): Don't check
5060         code models for profiling.
5061         (sparc_function_profiler): Remove.
5062         (sparc_profile_hook): New.
5063         * config/sparc/sparc-protos.h: Update.
5064
5065 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5066
5067         PR optimization/6086
5068         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5069         of SUBREG of volatile MEM or because the MEM was mode dependent,
5070         return CLOBBER instead of unmodified SUBREG.
5071
5072 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5073
5074         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5075         when not optimizing.
5076
5077         * toplev.c (rest_of_compilation): Cann mark_constant_function
5078         only when optimizing.
5079
5080         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5081         are NULL.
5082
5083         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5084         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5085         (try_optimize_cfg): clear all AUX fields.
5086
5087         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5088         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5089         (ix86_address_cost): Be prepared for SUBREGed registers.
5090         (legitimate_address_p): Accept SUBREGed registers.
5091
5092 2002-03-29  Richard Henderson  <rth@redhat.com>
5093
5094         PR target/5672
5095         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5096
5097 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5098
5099         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5100         for aggregate and TFmode types.
5101
5102 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5103
5104         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5105
5106 2002-03-29  Richard Henderson  <rth@redhat.com>
5107
5108         PR target/5886
5109         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5110         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5111
5112 2002-03-29  Richard Henderson  <rth@redhat.com>
5113
5114         PR target/6041
5115         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5116         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5117         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5118         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5119         conditional.
5120         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5121
5122 2002-03-29  Dale Johannesen <dalej@apple.com>
5123
5124         * loop.c (combine_movables): Do allow combination of pseudos.
5125
5126 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
5127
5128         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5129         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5130         No functional change except ...
5131         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
5132         * doc/install.texi (*-*-freebsd*): Document port configuration.
5133
5134 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5135
5136         * Makefile.in (convert.o, calls.o, expmed.o): Update.
5137         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5138         Use new hooks.
5139         * builtin-types.def (BT_PTRMODE): Update.
5140         * c-common.c (type_for_size): Rename c_common_type_for_size.
5141         (type_for_mode): Similarly.
5142         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5143         Use new hook.
5144         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5145         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5146         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5147         Redefine.
5148         * c-typeck.c (common_type, comptypes, default_conversion):
5149         Use new hooks.
5150         * calls.c: Include langhooks.h.
5151         (emit_library_call_value_1): Use new hooks.  Avoid redundant
5152         calls.
5153         * convert.c: Include langhooks.h
5154         (convert_to_pointer, convert_to_integer): Use new hooks.
5155         * except.c (init_eh): Similarly.
5156         * expmed.c: Include langhooks.h.
5157         (expand_mult_add): Use new hooks.
5158         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5159         try_casesi): Similarly.
5160         * fold-const.c (optimize_bit_field_compare, make_range,
5161         decode_field_reference, fold_truthop, fold): Similarly.
5162         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5163         put_var_into_stack): Similarly.
5164         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5165         LANG_HOOKS_TYPE_FOR_SIZE): New.
5166         (LANG_HOOKS_TYPES_INITIALIZER): Update.
5167         * langhooks.h (lang_hooks_for_types): New hooks.
5168         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5169         * tree.c (get_unwidened, get_narrower): Similarly.
5170         * tree.h (type_for_mode, type_for_size): Remove.
5171         * varasm.c (force_const_mem): Use new hooks.
5172         * utils2.c (nonbinary_modular_operation): Update.
5173 objc:
5174         * objc-act.c (handle_impent): Update.
5175         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5176         Redefine.
5177
5178 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
5179
5180         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5181         * config/ia64/ia64.c (basereg_operand): New.
5182         * config/ia64/ia64-protos.h (basereg_operand): Declare.
5183         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5184
5185 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5186
5187         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5188         unwind information when frame_pointer_needed.
5189         (mmix_assemble_integer): Tweak wording in comment.
5190
5191 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5192
5193         * Makefile.in (except.o): Update.
5194         * except.c: Include langhooks.h.
5195         (init_eh): Use langhook.
5196         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5197         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5198         (LANG_HOOKS_INITIALIZER): Update.
5199         * langhooks.h (lang_hooks_for_types): New.
5200         (struct lang_hooks): Add it.
5201         * tree.c (make_lang_type_fn, make_lang_type): Remove.
5202         * tree.h (make_lang_type_fn, make_lang_type): Remove.
5203 config:
5204         * alpha/alpha.c: Include langhooks.h.
5205         (alpha_build_va_list): Use langhook.
5206         * d30v/d30v.c: Include langhooks.h.
5207         (d30v_build_va_list): Use langhook.
5208         * i386/i386.c: Include langhooks.h.
5209         (ix86_build_va_list): Use langhook.
5210         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5211         * s390/s390.c: Include langhooks.h.
5212         (s390_build_va_list): Use langhook.
5213         * stormy16/stormy16.c: Include langhooks.h.
5214         (stormy16_build_va_list): Use langhook.
5215
5216 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5217
5218         PR c++/5964
5219         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5220         attributes.
5221         (length): Compute variable length for branches/calls/jumps here.
5222         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5223         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5224         define branch_type attribute.
5225         (divsi3_sp32): Maximum length is 6 not 7.
5226         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5227         call_address_untyped_struct_value_sp32,
5228         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5229         * config/sparc/sparc.c (empty_delay_slot): New function.
5230         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5231         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5232
5233 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5234
5235         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5236         nonzero_bits if not needed.
5237         (nonzero_bits) [XOR]: Likewise.
5238         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5239         reg_last_set_mode and mode are both MODE_INT, but not equal.
5240         (record_value_for_reg): Compute reg_last_set_nonzero_bits
5241         in nonzero_bits_mode for MODE_INT modes.
5242
5243 2002-03-28  Richard Henderson  <rth@redhat.com>
5244
5245         PR target/5715
5246         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5247         to GAS.  Correct drift between alternatives.
5248
5249 2002-03-28  Richard Henderson  <rth@redhat.com>
5250
5251         PR target/6087
5252         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5253
5254 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
5255
5256         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5257         emulation to the linker.
5258
5259 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
5260
5261         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5262         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5263
5264 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
5265
5266         * combine.c (simplify_and_const_int): Make sure to apply mask
5267         when force_to_mode returns a constant integer.  PR3311.
5268
5269 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5270
5271         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5272
5273 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5274
5275         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5276         and Objective-C Dialect Options.
5277
5278 2002-03-28  Richard Henderson  <rth@redhat.com>
5279
5280         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5281         comparison should be done vs !=0 not >0 return code.  Tidy cases.
5282
5283 2002-03-28  Richard Henderson  <rth@redhat.com>
5284
5285         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
5286         on to c_expand_body.
5287         * c-tree.h (finish_function): Update decl.
5288         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5289
5290 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5291
5292         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5293
5294 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
5295
5296         * rtlanal.c: Include flags.h
5297         (may_trap_p): Do not mark FP operations if trapping
5298         if !flag_trapping_math
5299         * Makefile.in (rtlanal.o): Add dependency on flag.h
5300         * ifcvt.c (noce_operand_ok): Avoid the lameness.
5301
5302 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
5303
5304         * mips.md: Use dconst1, not 1.0, as first argument of
5305         REAL_VALUE_LDEXP.  Don't use union real_extract.
5306
5307 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
5308
5309         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5310         rather than $target.  Heed program_prefix and
5311         program_transform_name.  Search for gas in cross-compiler case too.
5312         "test -x" rather than "test -f".
5313         (gcc_cv_ld): Likewise.
5314         (gcc_cv_nm): Heed program_prefix and program_transform_name.
5315         (gcc_cv_objdump): Likewise.
5316         * configure: Regenerate.
5317
5318 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5319
5320         * Makefile.in (attribs.o): Update.
5321         * attribs.c: Include langhooks.h.
5322         (decl_attributes): Use langhook.
5323         * c-decl.c (insert_default_attributes): Rename.
5324         * c-tree.h (c_insert_default_attributes): New.
5325         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5326         (LANG_HOOKS_INITIALIZER): Update.
5327         * langhooks.h (struct lang_hooks): New hook.
5328         * tree.h (insert_default_attributes): Remove.
5329 objc:
5330         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5331
5332 2002-03-27  Andreas Schwab  <schwab@suse.de>
5333
5334         * config/i386/i386.c (classify_argument): Also check for
5335         QUAL_UNION_TYPE.
5336
5337 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5338
5339         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5340         any more.
5341
5342 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5343
5344         * i960.md (ret): Set PC.
5345         (nonlocal_goto): Fix expander.
5346         * builtins.c (epxand_builin_longjmp): Check that we've emitted
5347         some jump or call.
5348
5349 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5350
5351         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5352         of libcall regions.
5353
5354 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5355
5356         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5357         assigning to BLOCK_FOR_INSN directly.
5358
5359 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
5360
5361         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5362
5363 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5364
5365         * c-common.c (c_expand_expr): Fix prototype.
5366         * c-common.h (c_expand_expr): Always declare, update.
5367         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5368         * c-objc-common.c (c_objc_common_init): No global hook.
5369         * expr.c (expand_expr): Use langhook.
5370         * expr.h (enum expand_modifier): Conditionally declare.
5371         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5372         (LANG_HOOKS_INITIALIZER): Update.
5373         * langhooks.c (lhd_expand_expr): New.
5374         * langhooks.h (struct lang_hooks): New hook.
5375         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5376         (lang_independent_init): Don't default hook.
5377 objc:
5378         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5379
5380 2002-03-27  Richard Henderson  <rth@redhat.com>
5381
5382         PR target/6054
5383         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5384         TARGET_CONST_GP.  Simplify conditions.
5385
5386 2002-03-27  Richard Henderson  <rth@redhat.com>
5387
5388         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5389         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5390         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5391
5392 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
5393
5394         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5395         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5396         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5397         Remove unnecessary masks.
5398         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5399         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5400         -mwindows, -mdll switches and their negations.
5401
5402 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5403
5404         * gcc-common.c (lang_mark_false_label_stack): Remove.
5405         * ggc.h (lang_mark_false_label_stack): Similarly.
5406
5407 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
5408
5409         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5410
5411         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5412         or __rtems_ is defined.
5413
5414 2002-03-26  Richard Henderson  <rth@redhat.com>
5415
5416         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5417         if a non-trivial load was emitted.
5418         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
5419         in high+extra+low case.
5420
5421 2002-03-26  Richard Henderson  <rth@redhat.com>
5422
5423         * config.gcc (sparc*-solaris): Use float_format=sparc.
5424
5425 2002-03-26  Richard Henderson  <rth@redhat.com>
5426
5427         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5428         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5429         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5430         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5431         (WINT_TYPE_SIZE): Fix at 32.
5432
5433 2002-03-26  Richard Henderson  <rth@redhat.com>
5434
5435         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5436         until after eh landing pad generation.
5437         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5438         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5439
5440 2002-03-26  Richard Henderson  <rth@redhat.com>
5441
5442         * expr.h (ADD_PARM_SIZE): One more convert for INC.
5443
5444 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
5445
5446         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
5447         and warning switches.
5448         (cc1_options):  Likewise.
5449
5450 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
5451
5452         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5453         Restore more of the signal context.  Set no_reg_stack_frame.
5454         * config/ia64/unwind-ia64.c (unw_state_record):
5455         Add no_reg_stack_frame, comments.
5456         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5457         (uw_update_context): Adjust bsp when unwinding from leaf,
5458         but not signal frame.
5459
5460 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
5461
5462         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5463
5464 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
5465
5466         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5467
5468 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
5469
5470         PR target/5621
5471         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5472         "Add a pool_range attribute", which was lost during the ARM/Thumb
5473         merge.
5474
5475 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
5476
5477         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5478         a register into the MAC16 accumulator.
5479
5480 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
5481
5482         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5483         (Warning Options): Document -Wswitch-enum.
5484         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
5485         -Wswitch.
5486         (warn_switch_enum): Define variables.
5487         * flags.h (warn_switch_enum): Declare variables.
5488         * stmt.c (expand_end_case_type): When warn_switch_enum /
5489         -Wswitch-enum, perform switch checks.
5490         Fix PR c/5044.
5491
5492 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
5493
5494         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5495         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5496         (reload_muladdsi_compare0_scratch): Delete.
5497
5498 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
5499
5500         * doc/install.texi (*-*-freebsd*): Update.
5501
5502 2002-03-26  Richard Henderson  <rth@redhat.com>
5503
5504         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5505         (SUB_PARM_SIZE): Cast DEC to ssizetype.
5506
5507         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5508         types from the normal argument frame.
5509
5510         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5511         variable sized objects by reference.
5512         (sparc_va_arg): Receive them by reference too.
5513
5514 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
5515
5516         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5517         code to not restoring global registers.
5518
5519 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5520
5521         * Makefile.in (ggc-common.o): Update.
5522         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5523         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5524         * c-tree.h (c_mark_tree): New.
5525         * ggc-common.c: Include langhooks.h.
5526         (gcc_mark_trees): Use new langhook.
5527         * ggc-callbacks.c: Delete file.
5528         * ggc.h (lang_mark_tree): Remove.
5529         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5530         (LANG_HOOKS_INITIALIZER): Update.
5531         * langhooks.h (struct lang_hooks): New hook.
5532 objc:
5533         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5534
5535 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
5536
5537         * doc/cpp.texi: Exclude entire Top node from printed manual.
5538         Move option index after directive index.  Insert page breaks
5539         before GFDL and concept index.  Index environment variables
5540         with command line options.
5541         * doc/cppenv.texi: Use @vtable for environment variable list.
5542         Add paragraph explaining semantics of empty elements in path
5543         variables.  Exclude a cross-reference to Fishkill from the
5544         manpage.  Remove an unnecessary cross-reference of the entry
5545         right above the referer.  Don't use @anchor in text that goes
5546         into manpage.
5547         * doc/cppopts.texi: Cross-reference the environment variables
5548         section, not the specific environment variable, for consistency.
5549
5550 2002-03-25  Richard Henderson  <rth@redhat.com>
5551
5552         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5553         anywhere in the block.  Don't refer to insns that have been
5554         removed from the chain.  Iterate backward through the new insns.
5555         Don't refer to edges that have been removed.
5556
5557 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
5558
5559         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5560         test for overflow of constant.
5561
5562 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
5563
5564         PR target/2623
5565         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5566         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5567         these patterns on arm_archv4.
5568
5569 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
5570
5571         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5572         int".
5573
5574 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
5575
5576         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
5577         float_handled, float_handler, float_signal, set_float_handler,
5578         and do_float_handler.  Set handler for SIGFPE to crash_signal.
5579         * toplev.h: Don't prototype do_float_handler.
5580
5581         * c-lex.c: Fold parse_float into lex_number.  Make warning
5582         about portability of hex float constants more informative, and
5583         don't issue it on top of a syntax error.
5584         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5585         their callers.
5586         * real.h: Define REAL_VALUE_ABS here...
5587         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
5588         simplify_unary_real, simplify_binary_real, and
5589         simplify_binary_is2orm1 into their callers.
5590         * tree.c: Fold build_real_from_int_cst_1 into caller.
5591
5592         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5593
5594         * tsystem.h: Include float.h here...
5595         * libgcc2.c: ... not here.
5596
5597 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
5598
5599         Fixes for: PR bootstrap/3591, target/5676
5600         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5601         defined.  Do not disable exceptions or rtti.
5602         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5603         mcore.h.  Disable exceptions and rtti, since they are not
5604         supported by EPOC.
5605
5606 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5607
5608         * c-decl.c (maybe_build_cleanup): Remove.
5609         * expr.c (expand_expr): Use langhook.
5610         * langhooks-def.h (lhd_return_null_tree,
5611         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5612         (LANGHOOKS_INITIALIZER): Update.
5613         * langhooks.c (lhd_return_null_tree): New.
5614         * langhooks.h (struct lang_hooks): New hook.
5615         * tree-inline.c (initialize_inlined_parameters): Use langhook.
5616         * tree.h (maybe_build_cleanup): Remove.
5617
5618 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
5619
5620         * regrename.c (build_def_use): Move recog_memoized
5621         before extract_insn.
5622
5623 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
5624
5625         PR target/6043
5626         * expr.c (emit_group_store): Handle storing into CONCAT.
5627
5628 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
5629
5630         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5631         corresponding MATCH_DUP.
5632
5633 2002-03-24  Richard Henderson  <rth@redhat.com>
5634
5635         * unroll.c (unroll_loop): Zero label_map.
5636
5637         * gcse.c: Include except.h.
5638         * Makefile.in (gcse.o): Update.
5639
5640 2002-03-24  Richard Henderson  <rth@redhat.com>
5641
5642         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5643         Do resolve_unique_section before shared data clause.
5644
5645 2002-03-24  Richard Henderson  <rth@redhat.com>
5646
5647         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5648
5649 2002-03-24  Richard Henderson  <rth@redhat.com>
5650
5651         * recog.c (peephole2_optimize): Split blocks when EH insns are
5652         generated in the middle of a block.  Do global life update if
5653         zapped EH edges.
5654
5655 2002-03-24  Richard Henderson  <rth@redhat.com>
5656
5657         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5658
5659 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5660
5661         preprocessor/3951
5662         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5663         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5664         (init_dependency_output): Don't make no_output decision here.
5665
5666 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
5667
5668         * stmt.c (check_for_full_enumeration_handling): Remove tests of
5669         warn_switch.  Update description.
5670         (expand_end_case_type): Call check_for_full_enumeration_handling
5671         when warn_switch.
5672
5673 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5674
5675         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5676         (m68hc11_split_move): Call it to see if the source and destination
5677         operands use the same direction auto inc/dec mode, otherwise make the
5678         source an offsetable memory operand and generate an add.
5679
5680 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5681
5682         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5683         register for operand 2.
5684         ("*subsi3_zero_extendqi"): Likewise.
5685         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5686         bits so that it is compatible with a pop.
5687         ("*andhi3_gen"): Likewise.
5688         ("xorhi3"): Likewise.
5689
5690 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5691
5692         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5693         -pedantic here...
5694         (cpp_post_options): ... not here.
5695
5696 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5697             Aldy Hernandez  <aldyh@redhat.com>
5698
5699         Removal of separate preprocessor cpp0.
5700
5701         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5702         cpp0, install-common): Update.
5703         * c-common.c (flag_preprocess_only): New.
5704         (c_common_init): Preprocess for -E.
5705         * c-common.h (flag_preprocess_only): New.
5706         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5707         * c-objc-common.c (c_init_decl_processing): Exit quickly
5708         for NULL return from c_common_init.
5709         * cpplib.h (cpp_preprocess_file): New.
5710         * cppmain.c (main, general_init, pfile, progname): Remove.
5711         (do_preprocessing): Rename cpp_preprocess_file, don't call
5712         cpp_finish.  Don't close stdout here.
5713         (setup_callbacks): Update prototype.
5714         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5715         Update.
5716         * tradcpp.c (main): Ignore -quiet.
5717 objc:
5718         * lang-specs.h (default_compilers): Preprocess with cc1obj.
5719
5720 2002-03-24  Richard Henderson  <rth@redhat.com>
5721
5722         PR optimization/5742
5723         * machmode.def: Add inner mode field to complex modes.
5724         * config/mips/mips.c (mips_function_value): Always define.  Add
5725         new argument to handle libcalls.
5726         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
5727         (FUNCTION_VALUE): Likewise.
5728         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
5729         * config/mips/mips-protos.h: Update.
5730
5731 2002-03-23  Richard Henderson  <rth@redhat.com>
5732
5733         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5734         * config/sparc/sparc-protos.h: Update.
5735         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5736
5737 2002-03-23  Richard Henderson  <rth@redhat.com>
5738
5739         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5740         _start or _init begins the text segment.
5741
5742 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
5743
5744         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
5745         not HOST_WIDEST_INT.
5746         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
5747
5748 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
5749
5750         PR java/5489
5751         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
5752         operand argument to output_return_instruction.
5753         * arm.c (arm_print_operand, case 'd'): If the operand is
5754         const_true_rtx then just return.
5755         (arm_print_operand, case 'D'): If the operand is const_true_rtx
5756         then abort.
5757
5758 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
5759
5760         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
5761         (Warning Options): Document -Wswitch-default.
5762         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
5763         -Wswitch.
5764         (warn_switch_default): Define variable.
5765         (warn_switch): Update comment.
5766         * flags.h (warn_switch_default): Declare variable.
5767         (warn_switch): Update comment.
5768         * stmt.c (expand_end_case): Check for and, when
5769         warn_switch_no_default, warn of a missing default case.
5770
5771 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
5772
5773         * real.h (N): Special case 128 bit doubles.
5774
5775         * combine.c (simplify_comparison): When widening modes, ignore
5776         sign extension on CONST_INTs.
5777
5778 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
5779
5780         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5781         passed to adjust_address.  Fix comment formatting.
5782
5783
5784 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
5785
5786         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5787         Always make REAL_VALUE_TYPE a struct containing an array of
5788         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
5789         big it is.  Don't declare or use union real_extract.
5790
5791         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5792         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5793         (print_operand), config/arm/arm.c (output_move_double),
5794         config/arm/arm.md (consttable_4, consttable_8),
5795         config/romp/romp.c (output_fpops), config/s390/s390.h
5796         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5797         (xtensa_output_literal): Don't use union real_extract.
5798
5799         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
5800         (sfmode_constant_to_ulong), config/ns32k/merlin.h
5801         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
5802         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
5803         (PRINT_OPERAND): Don't use local version of union
5804         real_extract.
5805
5806         * config/convex/convex.c (check_float_value), config/vax/vax.c
5807         (vax_float_literal), config/m88k/m88k.md (divdf3),
5808         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
5809         config/pdp11/pdp11.c (output_move_quad): Don't do host
5810         arithmetic on target floating point quantities.
5811
5812         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5813         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5814
5815         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5816         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5817
5818         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5819         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
5820         INFINITY.
5821         * print-rtl.c (print_rtx): Disable code which needs
5822         floating-point emulator.
5823         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
5824         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
5825         depending on HOST_FLOAT_FORMAT to be defined properly.
5826
5827         * config/1750a/1750a.c (get_double, float_label): Delete.
5828         (print_operand): Delete huge commented-out chunk.  Use
5829         REAL_VALUE_TO_DECIMAL.
5830         * config/1750a/1750a-protos.h: Delete prototypes of deleted
5831         functions.
5832         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
5833         IEEE_FLOAT_FORMAT.
5834         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
5835         Use REAL_VALUE_TO_DECIMAL as ELF version does.
5836         * config/m88k/m88k.c (real_power_of_2_operand,
5837         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
5838         real_extract out of the union; run the input through
5839         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
5840         from that into the union.
5841         * config/pdp11/pdp11.c (output_move_double): Rearrange
5842         parentheses to make automatic indenter happy.
5843
5844         * doc/tm.texi (Cross-compilation): Rename node to "Floating
5845         Point" and rewrite to describe current situation.  Also adjust
5846         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
5847         match code.
5848         * doc/rtl.texi: Adjust cross reference.
5849
5850 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
5851
5852         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
5853         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
5854         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
5855         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
5856         prevent use of sp as a reload register.
5857         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
5858         non_acc_reg_operand.
5859         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
5860         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
5861         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5862         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
5863
5864 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5865
5866         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
5867         * cpplex.c (unterminated): Delete.
5868         (parse_string): No string literal may extend over multiple
5869         lines.  Suppress the error when preprocessing assembly.
5870         * cppmain.c (scan_translation_unit): Strings are single-line.
5871
5872         * doc/cpp.texi: Update to match.
5873
5874 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
5875
5876         PR optimization/5854
5877         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
5878         Shut up warnings.
5879         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
5880         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
5881         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
5882         const0 if scratch register was not allocated.
5883         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
5884         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
5885         with GEN_INT (...).
5886         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
5887         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
5888         with GEN_INT (...) everywhere.  Remove constraints in define_split
5889         patterns.
5890         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5891         require scratch register for setting 0 into regs/non-pushable memory.
5892
5893 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
5894
5895         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5896         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5897
5898 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
5899
5900         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
5901         * cppinit.c (cpp_create_reader):  On by default.
5902         (cpp_handle_option):  Handle -W[no-]endif-labels.
5903         (cpp_post_options):  Also enable if -pedantic.
5904         * cpplib.c (do_else):  Use it.
5905         (do_endif):  Likewise.
5906         * doc/cppopts.texi:  Document new option.
5907         * doc/invoke.texi:  Document new option.
5908
5909 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
5910
5911         * config/i386/i386.c, config/i386/i386.md: Change all occurences
5912         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5913
5914 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
5915
5916         * flow.c (calculate_global_regs_live): Clear aux fields of
5917         ENTRY and EXIT.
5918
5919 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
5920
5921         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
5922         REG or MEM subregs, pass rtx * instead of rtx to it.
5923         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
5924         rtx * instead of rtx to alter_subreg.
5925         * config/m32r/m32r.c (gen_split_move_double): Likewise.
5926         * config/pj/pj.c (pj_output_rval): Likewise.
5927
5928 2002-03-22  Richard Henderson  <rth@redhat.com>
5929
5930         PR target/3177
5931         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
5932         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
5933         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
5934         (ia64_expand_prologue): Look at int_regs, not words, for number
5935         of incomming int regs.
5936
5937 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
5938
5939         * expr.c (expand_expr): A RESULT_DECL is part of a call.
5940
5941 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
5942
5943         * toplev.c (flag_loop_optimize, flag_crossjumping):
5944         New static variables.
5945         (rest_of_compilation): Conditionalize crossjumping and
5946         loop optimizer.
5947         (parse_options_and_default_flags): Default loop_optimize and
5948         crossjumping.
5949         (lang_independent_options): Add -fcrossjumping and -floop-optimize
5950         * invoke.texi (crossjumping, loop-optimize): Document.
5951
5952 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
5953
5954         * real.c (eiisneg): Move outside #ifdef NANS.
5955
5956 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5957
5958         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
5959         frequencies match; avoid match on different loop depths.
5960         (try_crossjump_to_bb): Kill tests that no longer brings time
5961         savings.
5962         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5963         updating code.
5964         (split_edge): Likewise.
5965
5966         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
5967         variable.
5968
5969         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
5970         * cfgrtl.c: Include insn-config.h
5971         (split_block) Dirtify block in presence of conditional execution
5972
5973 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
5974
5975         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
5976         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
5977         (function_arg): Constify CUMULATIVE_ARGS.
5978         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
5979         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
5980         (UNITS_PER_DOUBLE): New macro.
5981         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
5982         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
5983         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
5984         fp_regs and stack_words.
5985         (EABI_FLOAT_VARARGS_P): New macro.
5986         * config/mips/mips.c (struct mips_arg_info): New.
5987         (mips_arg_info): New function.
5988         (function_arg_advance): Use it.  Add adjustment instructions here
5989         rather than in function_arg.
5990         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
5991         for VOIDmode at the beginning of the function.
5992         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
5993         (function_arg_pass_by_reference): Likewise.
5994         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
5995         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
5996         (mips_va_start): Likewise.  Use the new stack_words field of
5997         CUMULATIVE_ARGS to set up overflow area.  Reformat.
5998         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
5999         doubles and other types, aligning the overflow pointer for non-doubles
6000         too.  Remove some code duplication.  Replace hard-coded constants.
6001
6002 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6003
6004         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6005         (CLASS_UNITS): Undefine.
6006         (CLASS_MAX_NREGS): Use FP_INC.
6007         * config/mips/mips.c (compute_frame_size): Likewise.
6008         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6009
6010 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6011
6012         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6013         prototype, and handle lexing numbers and identifiers.
6014         (parse_identifier): Update to new form of parse_slow.
6015         (parse_number): Fast path only, use parse_slow otherwise.
6016         (_cpp_lex_direct): Update calls to parse_number.
6017
6018 2002-03-21  DJ Delorie  <dj@redhat.com>
6019
6020         * bb-reorder.c (make_reorder_chain_1): Protect against
6021         when redundant edges are omitted.
6022         * predict.c (dump_prediction): Likewise.
6023
6024 2002-03-21  Richard Henderson  <rth@redhat.com>
6025
6026         PR target/5996
6027         * fixinc/inclhack.def (solaris_stdio_tag): New.
6028         * fixinc/fixincl.x: Regenerate.
6029
6030 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6031
6032         PR c/5597
6033         * c-typeck.c (process_init_element): Flag non-static
6034         initialization of a flexible array member as illegal.
6035
6036 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
6037
6038         * config/rs6000/t-linux64: New.
6039         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6040         t-ppccomm.  Use t-rs6000 and t-linux64.
6041         (powerpc64-*-gnu* <tmake_file>): Likewise.
6042         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6043         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6044         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6045
6046 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
6047
6048         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6049         flag_really_no_inline instead of optimize == 0.
6050
6051         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6052
6053         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6054
6055         * flags.h (flag_really_no_inline): New.
6056
6057         * c-common.c (c_common_post_options): Initialize
6058         flag_really_no_inline.
6059
6060         * toplev.c (flag_really_no_inline): New.
6061
6062 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6063
6064         * config/avr/avr.md (length): Fix length computation for
6065         conditional branches.
6066
6067 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6068
6069         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6070         sdbout.o, profile.o): Update.
6071         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6072         langhook.
6073         * c-common.h (gettags): Move here from tree.h.
6074         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6075         insert_block, getdecls, kept_level_p, global_bindings_p): New.
6076         * dbxout.c (dbxout_init): Use getdecls langhook.
6077         * expr.c (expand_expr): Use insert_block langhook.
6078         * fold-const.c: Include langhooks.h.
6079         (fold_range_test, fold_binary_op_with_conditional_arg,
6080         fold): Use global_bindings_p langhook.
6081         * integrate.c (expand_inline_function): Use insert_block langhook.
6082         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6083         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6084         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6085         LANG_HOOKS_GETDECLS): New.
6086         (LANG_HOOKS_INITIALIZER): Update.
6087         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6088         langhook.
6089         * langhooks.h (struct lang_hooks_for_decls): New.
6090         (struct lang_hooks): Update.
6091         * profile.c: Include langhooks.h.
6092         (output_func_start_profiler): Use new langhooks.
6093         * sdbout.c: Include langhooks.h.
6094         (sdbout_init, sdbout_finish): Use getdecls langhook.
6095         * stmt.c: Include langhooks.h.
6096         (expand_fixup, fixup_gotos): Use new langhooks.
6097         * stor-layout.c: Include langhooks.h.
6098         (variable_size): Use global_bindings_p langhook.
6099         * toplev.c (compile_file): Use getdecls langhook.
6100         * tree-inline.c (remap_block): Use insert_block langhook.
6101         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6102         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6103
6104 2002-03-21  Richard Henderson  <rth@redhat.com>
6105
6106         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6107         constants in .data when -fpic.
6108
6109 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6110
6111         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6112         where appropriate.
6113
6114 2002-03-21  Tom Tromey  <tromey@redhat.com>
6115
6116         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
6117
6118 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6119
6120         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6121
6122         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6123
6124 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6125             Richard Henderson  <rth@redhat.com>
6126
6127         PR c/5354
6128         * c-common.c (c_expand_expr): Preserve result of a statement
6129         expression if needed.
6130
6131 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6132
6133         PR bootstrap/4195
6134         * genrecog.c (maybe_both_true_mode): Remove.
6135         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6136         * machmode.def (Pmode): Likewise.
6137
6138 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
6139
6140         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6141         (nonlocal_mentioned_p_1): New function.
6142         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6143         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6144         (mark_constant_function): Recognize pure functions.
6145         * rtl.h (global_reg_mentioned_p): New prototype.
6146         * rtlanal.c (global_reg_mentioned_p,
6147         global_reg_mentioned_p_1): New function.
6148
6149 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6150
6151         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6152         UNIX assert.h.
6153         * fixinc/fixincl.x: Regenerate.
6154
6155 2002-03-20  Jason Merrill  <jason@redhat.com>
6156
6157         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6158
6159 2002-03-20  Michael Meissner  <meissner@redhat.com>
6160
6161         * doc/invoke.texi (Optimize Options): Document that -O2 sets
6162         -fstrict-aliasing.
6163
6164 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6165
6166         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6167         ".literal_position" directive before the constant pool.
6168
6169 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6170
6171         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6172         Add Craig Rodrigues.
6173         Add Brad Lucier to testers.
6174
6175 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6176
6177         PR target/4792
6178         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6179         to if_then_else.
6180         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6181         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6182         instead of insn_extract.
6183
6184 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6185
6186         PR bootstrap/4192
6187         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6188
6189         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6190         stmt if some case has been output.
6191
6192 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6193
6194         PR c/5972
6195         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6196         movsfcc_1, movdfcc_1): Add %O2.
6197         * config/i386/i386.c (print_operand): Handle %ON.
6198         Print . before float condition codes in Sun as cmov syntax.
6199         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6200         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6201         no longer true.
6202
6203 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
6204
6205         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6206         return instruction if PC was popped.
6207
6208 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6209
6210         * config/xtensa/xtensa.md: Remove unused type attributes.
6211         (adddi_carry, subddi_carry): Change type attribute to "multi".
6212
6213 2002-03-19  Dale Johannesen  <dalej@apple.com>
6214
6215         PR optimization/5999, middle-end/5731
6216         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6217         multiplications by reciprocals.
6218
6219 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6220
6221         * Makefile.in: Update.
6222         * c-common.c: Include langhooks.h.
6223         (inline_forbidden_p): Use new hook.
6224         * diagnostic.c: Include langhooks.h.
6225         (format_with_decl, announce_function,
6226         default_print_error_function): Use new hook.
6227         * dwarf2out.c (dwarf2_name): Use new hook.
6228         * function.c: Include langhooks.h.
6229         (init_function_start): Use new hook.
6230         * langhooks-def.h (lhd_decl_printable_name): New.
6231         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6232         (LANGHOOKS_INITIALIZER): Update.
6233         * langhooks.c (lhd_decl_printable_name): New.
6234         * langhooks.h (struct lang_hooks): New hook.
6235         * toplev.c (decl_name, decl_printable_name): Remove.
6236         (open_dump_file): Use new hook.
6237         (process_options): Remove old hook.
6238         * tree.h (decl_printable_name): Remove.
6239 objc:
6240         * objc-act.c (objc_init): Remove old hook.
6241         (objc_printable_name): Export.
6242         * objc-act.h (objc_printable_name): New.
6243         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6244
6245 2002-03-19  Jim Blandy  <jimb@redhat.com>
6246
6247         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6248         the start_source_file debug hook, not the current line number.
6249
6250 2002-03-19  Richard Henderson  <rth@redhat.com>
6251
6252         * flow.c (EH_USES): Provide default.
6253         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6254         * doc/tm.texi (EH_USES): New.
6255
6256         * config/ia64/ia64.c (ia64_eh_uses): New.
6257         * config/ia64/ia64-protos.h: Update.
6258         * config/ia64/ia64.h (EH_USES): New.
6259
6260 2002-03-19  Richard Henderson  <rth@redhat.com>
6261
6262         * varasm.c (output_constant_def): Fix stupid typo.
6263
6264 2002-03-19  Richard Henderson  <rth@redhat.com>
6265
6266         PR 5879
6267         * except.c (current_function_has_exception_handlers): New.
6268         * except.h: Declare it.
6269         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6270         Combine tests that disable all sibcalls for the function.
6271
6272 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
6273
6274         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6275         for INTEGER_CST.
6276
6277 2002-03-19  Richard Henderson  <rth@redhat.com>
6278
6279         PR 5977, 5991
6280         * config/ia64/ia64.c: Revert 2002-03-01 patch.
6281         * config/ia64/ia64.h (INIT_EXPANDERS): New.
6282
6283 2002-03-19  Jim Blandy  <jimb@redhat.com>
6284
6285         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6286         name, even if the replacement list contains no tokens, as required
6287         by Dwarf.
6288
6289 2002-03-19  Jason Merrill  <jason@redhat.com>
6290
6291         * varasm.c (globalize_decl): Get the name from the RTL, not
6292         DECL_ASSEMBLER_NAME.
6293
6294         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6295
6296 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
6297
6298         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6299         subdi_carry): Define.
6300
6301 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
6302
6303         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6304         about -fpic/-fPIC if extra_warnings set.
6305
6306 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
6307
6308         * expr.c (expand_expr): Sign-extend CONST_INT generated from
6309         TREE_STRING_POINTER.
6310         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6311
6312 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6313
6314         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6315         in favor of SP if FRAME_POINTER_REQUIRED is false.
6316
6317 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
6318
6319         * emit-rtl.c (gen_int_mode): New function.
6320         * rtl.h: Prototype for it.
6321         * combine.c (make_extraction, simplify_comparison), expmed.c
6322         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6323         (convert_modes, store_field), optabs.c (expand_fix),
6324         simplify-rtx.c (neg_const_int, simplify_unary_real),
6325
6326         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6327         Use it instead of GEN_INT (trunc_int_for_mode (...)).
6328
6329 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
6330
6331         PR c/5656
6332         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6333         convert_parm_for_inlining.
6334         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6335         Define.
6336         * langhooks-def.h: Likewise.
6337         * objc/objc-lang.c: Likewise.
6338         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6339         function.
6340         * tree-inline.c (initialize_inlined_parameters):
6341         Call convert_parm_for_inlining lang hook if needed.
6342         * c-typeck.c (c_convert_parm_for_inlining): New function.
6343         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6344
6345 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
6346
6347         * calls.c (precompute_arguments): Do not assume that temporaries
6348         can be destroyed after expanding the argument.
6349         (expand_call): Likewise.
6350
6351 2002-03-15  Eric Christopher  <echristo@redhat.com>
6352
6353         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6354         Fix register preference on last change.
6355         * config/mips/mips.c (mips_return_in_memory): New function.
6356         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6357         * config/mips/mips-protos.h: Declare.
6358         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6359         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6360
6361 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
6362
6363         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6364         a register too.
6365         (anddi3, iorsi3): Likewise.
6366
6367         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6368         use %gprel for symbols that are going to be placed in linkonce
6369         sections.
6370
6371         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6372         RETURN_ADDRESS_POINTER_REGNUM to $ra.
6373         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6374         not needed.  Disregard leaf_function_p().
6375         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6376         mips16 frame pointer.
6377         * config/mips/mips.md (store ra): Only to small SP offsets.
6378         2001-08-22  Graham Stott  <grahams@redhat.com>
6379         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6380         return a REG rtx for the return address register.
6381
6382 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
6383
6384         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6385         constant-pool addresses as "mode-dependent".
6386         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6387
6388 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
6389
6390         PR target/5740
6391         * expr.c (emit_group_load): Use extract_bit_field if
6392         needed for CONCAT arguments.
6393
6394 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
6395
6396         PR target/4863
6397         * arm.md (tablejump): Make this a define_expand.  For PIC add the
6398         offset to the base of the table.
6399         (thumb_tablejump): Matcher for Thumb tablejump insn.
6400         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6401         as the difference of two labels.
6402         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6403         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6404         tables in the code.
6405         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6406         * arm.c (get_jump_table_size): If the table is not in the text
6407         section, return zero.
6408
6409 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
6410
6411         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6412         of gen_rtx_SUBREG.
6413         (arm_reload_out_hi): Use gen_lowpart instead of
6414         gen_rtx_SUBREG to access QImode components.
6415         * config/arm/arm.md: Disable zero_extend split for QImode
6416         subregs in BIG_ENDIAN mode.
6417         (storehi_bigend): Match use of least significant byte.
6418         (storeinthi): Remove extraneous SUBREG.
6419         Add missing construction of operands[2].
6420         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6421         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6422         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6423
6424 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
6425
6426         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6427         any_operand.
6428
6429 2002-03-17  Richard Henderson  <rth@redhat.com>
6430
6431         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6432         explicitly.
6433
6434 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
6435
6436         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6437         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6438
6439 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6440
6441         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6442
6443         * predict.c (estimate_bb_frequencies): Delete unused variables.
6444
6445 2002-03-17  Richard Henderson  <rth@redhat.com>
6446
6447         * config/ia64/ia64.c (ia64_attribute_table): Move before
6448         targetm definition.  Make static.
6449
6450 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6451
6452         * c-common.h (yyparse, c_common_parse_file): New.
6453         * c-lang.c: Include c-common.h.
6454         (LANG_HOOKS_PARSE_FILE): Redefine.
6455         * c-lex.c: Include c-common.h.
6456         (yyparse): Rename c_common_parse_file.  Call yyparse.
6457         * c-parse.in (yyparse): Remove macro.
6458         * c-tree.h (yyparse_1): Remove.
6459         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6460         (LANG_HOOKS_INITIALIZER): Update.
6461         * langhooks.h (struct lang_hoooks): New hook parse_file.
6462         * toplev.c (compile_file): Use parse_file hook.
6463         * tree.h (yyparse): Remove.
6464         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6465
6466 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
6467
6468         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6469         float_truncate, not fix.
6470         ("*truncdfsf2_real"): Ditto.
6471         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6472
6473         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6474
6475 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
6476
6477         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6478         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
6479         where appropriate.  Make the second reference to
6480         leaf_function_p a function call, as intended.  Reindented.
6481
6482         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6483         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6484
6485         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6486         add register to non-constant into sp.
6487
6488         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6489         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6490         (mips16_gp_pseudo_rtx): Lose.
6491         (INIT_EXPANDERS): Deleted.
6492         * config/mips/mips.c (mips_init_machine_status): New.
6493         (mips_free_machine_status): New.
6494         (mips_mark_machine_status): New.
6495         (override_options): Set them.
6496         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6497         (struct machine_function): ... new.  Replaced all references.
6498         (mips_add_gc_roots): Don't mark them.
6499         (embedded_pic_fnaddr_reg): New, extracted from...
6500         (embedded_pic_offset): ... here.
6501         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6502         (movsi): Likewise.
6503
6504 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6505
6506         * cppinit.c: Revert -MD removal.
6507
6508 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6509
6510         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6511         soft registers by default for 68HC12.
6512         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6513         when compiling with -fomit-frame-pointer.
6514         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6515         (expand_epilogue): Likewise.
6516         (m68hc11_gen_rotate): Use exg when rotating by 8.
6517
6518 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6519
6520         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6521         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6522         (splits): Remove unused add splits.
6523         ("*addhi3_68hc12"): Tune constraints.
6524         ("addhi_sp"): Try to use X instead of Y in all cases and if the
6525         constant fits in 8-bits and D is dead use abx/aby instructions.
6526         ("*addhi3"): Remove extern declaration of ix_reg.
6527         ("*subsi3"): Optimize and provide new split.
6528         ("subhi3"): Cleanup.
6529         ("*subhi3_sp"): Avoid saving X if we know it is dead.
6530         (arith splits): For 68hc12 save the address register on the stack
6531         and do the arithmetic operation with a pop.
6532
6533 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6534
6535         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6536         allocating QImode in address registers.
6537         ("*movqi_m68hc11"): Likewise.
6538
6539 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
6540
6541         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6542
6543 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6544
6545         * cppinit.c (print_help): Display -MD and -MMD.
6546         Don't display usage string.  Update assertion syntax and
6547         typo.
6548         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6549         (cpp_handle_option): Update.
6550
6551 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
6552
6553         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6554         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6555         and define it so that regardless of target CPU size,
6556         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6557         of "int" rather than "long."
6558
6559 2002-03-15  Richard Henderson  <rth@redhat.com>
6560
6561         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6562         size as a tree.
6563
6564 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6565
6566         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6567         ("tstqi" split): Avoid using memory for tstqi on address register.
6568         (splits): Remove constraints.
6569         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6570         ("cmpdf", "cmpsf"): Remove since not used.
6571         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6572         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6573
6574 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6575
6576         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6577         ("neghi2"): Tighten constraints.
6578         ("one_cmplsi2"): Optimize and simplify split.
6579         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6580
6581 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6582
6583         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6584         and split of AND operation to clear the upper bits.
6585         ("*logicalsi3_zextqi"): Likewise.
6586         ("*logicallhi3_zexthi_ashift8"): Likewise.
6587         ("*logicalsi3_silshr16"): Likewise.
6588         ("logicalsi3_silshl16"): Likewise.
6589         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6590
6591 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6592
6593         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6594         (m68hc11_indirect_p): New function.
6595         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6596         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6597         TARGET_M6812.
6598         (asm_print_register): Likewise.
6599         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6600         (m68hc11_indirect_p): Declare.
6601         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6602         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6603         (TARGET_SWITCHES): New option -mrelax.
6604         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6605         destination.
6606         ("iorsi3", "xorsi3"): Likewise.
6607         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6608         ("*andhi3_mem"): New to handle destination in memory with bclr
6609         and a scratch register.
6610         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6611         ("*andhi3_const"): New when operand2 is constant.
6612         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6613         ("*andhi3_gen"): Cleanup of the old "andhi3".
6614         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6615         ("xorqi3"): Update constraints.
6616
6617 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6618
6619         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6620         for reg_equiv_memory_loc when the operand is a register that does
6621         not get a hard register (stack location).
6622         (tst_operand): After reload, accept all memory operand.
6623         (symbolic_memory_operand): Fix detection of symbolic references.
6624         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6625         accept symbols and any constant.
6626
6627 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6628
6629         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6630         note on the insn that sets the soft frame register.
6631         (must_parenthesize): ix and iy are also reserved names.
6632         (print_operand_address): One more place where parenthesis are required
6633         to avoid confusion with register names.
6634         (m68hc11_gen_movhi): Allow push of stack pointer.
6635         (m68hc11_check_z_replacement): Fix handling of parallel with a
6636         clobber.
6637         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6638         the replacement register is.
6639         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6640         and D8_REGS classes.
6641         (MODES_TIEABLE_P): All modes are tieable except QImode.
6642
6643 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6644
6645         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6646         (___subdi3): Likewise.
6647         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6648         (__map_data_section): Optimize 68hc11 case.
6649
6650 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6651
6652         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6653         than a shift to avoid adding a register with itself.
6654         (m68hc11_memory_move_cost): Take into account NO_REGS.
6655         (m68hc11_register_move_cost): Update and use memory move cost
6656         for soft registers.
6657         (m68hc11_address_cost): Make cost of valid offset not 0 so that
6658         it gives more opportunities to cse to optimize.
6659         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6660         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6661
6662 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
6663
6664         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6665         * c-common.def (CLEANUP_STMT): New tree node.
6666         * c-common.h (CLEANUP_DECL): New macro.
6667         (CLEANUP_EXPR): Likewise.
6668         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6669         * expr.c (expand_expr): Tidy.
6670         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6671         * tree-inline.c (initialize_inlined_parameters): Clean up
6672         new local variables.
6673
6674 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
6675
6676         PR bootstrap/4128
6677         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6678         before movrXX only, use reg_overlap_mentioned_p.
6679         Only special case NE if just one insn can be generated.
6680
6681 2002-03-15  Jason Merrill  <jason@redhat.com>
6682
6683         * varasm.c (assemble_variable): Call resolve_unique_section before
6684         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
6685         of error_mark_node.
6686
6687 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
6688
6689         PR target/5170
6690         * arm.md (split pattern for thumb shiftable immediates): Add comment
6691         explaining non-obvious test.
6692
6693 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
6694
6695         PR target/5712
6696         * arm.md (movaddr, movaddr_insn): Delete.
6697
6698 2002-03-15  Jason Merrill  <jason@redhat.com>
6699
6700         * toplev.c (wrapup_global_declarations): Clarify variable handling.
6701         -fkeep-static-consts doesn't apply to comdats.
6702
6703 2002-03-14  Richard Henderson  <rth@redhat.com>
6704
6705         * c-decl.c: Include c-pragma.h.
6706         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6707         (finish_function): Tidy.
6708         * c-pragma.c: Include c-common.h.
6709         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6710         (handle_pragma_weak): Use them.
6711         (init_pragma): Register pending_weaks.
6712         * c-pragma.h (maybe_apply_pragma_weak): Declare.
6713         * print-tree.c (print_node): Print DECL_WEAK.
6714         * varasm.c (mark_weak_decls): Remove.
6715         (remove_from_pending_weak_list): Remove.
6716         (add_weak): Remove.
6717         (asm_emit_uninitialised): Call globalize_decl for weak commons.
6718         (weak_decls): Make a tree_list.
6719         (declare_weak): Cons weak_decls directly.
6720         (globalize_decl): Remove weak_decls elements directly.
6721         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
6722         symbols.  Don't pretend to handle aliases.
6723         (init_varasm_once): Update weak_decls registry.
6724         * Makefile.in: Update dependencies.
6725
6726 2002-03-14  Richard Henderson  <rth@redhat.com>
6727
6728         PR target/5312
6729         * config/ia64/ia64.c: Include tm_p.h last.
6730         (gen_nop_type): Remove duplicate definition.
6731         (cycle_end_fill_slots): Set sched_data for second L slot.
6732         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
6733         (nop_cycles_until): Fix typos.
6734
6735 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
6736
6737         PR optimization/5891
6738         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6739
6740 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6741
6742         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6743           descriptors correctly.
6744
6745 2002-03-14  Michael Meissner  <meissner@redhat.com>
6746
6747         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6748         100, allowing MAX_UNROLLED_INSNS to be overridden.
6749
6750         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6751         --param.
6752
6753         * unroll.c (params.h): Include.
6754         (MAX_UNROLLED_INSNS): Delete, now in params.h.
6755
6756         * doc/invoke.texi (--param max-unroll-insns): Document.
6757
6758         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6759
6760 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
6761
6762         * arm.md: Fix warnings about constraints in peepholes and splits.
6763
6764 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
6765
6766         * cpphash.h (struct lexer_state): Remove line_extension member.
6767         * cpplib.c (dequote_string, do_linemarker): New functions.
6768         (linemarker_dir): New data object.
6769         (DIRECTIVE_TABLE): No longer need to interpret #line in
6770         preprocessed source.  Delete obsolete comment about return
6771         values of handlers.
6772         (end_directive, directive_diagnostics, _cpp_handle_directive):
6773         Don't muck with line_extension.
6774         (directive_diagnostics): No need to issue warnings for
6775         linemarkers here.
6776         (_cpp_handle_directive): Issue warnings for linemarkers here,
6777         when appropriate.  Dispatch linemarkers to do_linemarker, not
6778         do_line.
6779         (do_line): Code to handle linemarkers split out to do_linemarker.
6780         Convert escape sequences in filename argument, both places.
6781
6782         * cppmacro.c (quote_string): Rename cpp_quote_string and
6783         export.  All callers changed.
6784         * cpplib.h (cpp_quote_string): Prototype.
6785         * cppmain.c (print_line): Call cpp_quote_string on to_file
6786         before printing it.
6787
6788         * doc/cpp.texi: Document that escapes are now interpreted in
6789         #line and in linemarkers, and that non-printing characters are
6790         converted to octal escapes when linemarkers are generated.
6791
6792 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
6793
6794         * emit-rtl.c (try_split): Use delete_insns.
6795         * recog.c (split_all_insns): Fix terminating condition.
6796
6797 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
6798             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6799
6800         PR target/5828
6801         * arm.c (arm_output_epilogue): Fix floating-point register save
6802         adjustment when using a frame pointer.
6803
6804 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
6805
6806         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
6807         * config/mips/mips.c (compute_frame_size): Retrofit them here.
6808         (save_restore_insns, mips_expand_epilogue): And here.
6809         (build_mips16_call_stub): And here.
6810         (mips_function_value): Use the new macros to decide whether a single
6811         or complex float can be returned in floating-point registers.  Return
6812         a parallel rtx in the complex case.
6813
6814 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
6815
6816         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6817         call after liveness analysis.
6818
6819         * recog.c (split_insn): Use delete_insn_and_edges.
6820
6821         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
6822         instructions to have branch prediction notes.
6823         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
6824
6825 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
6826
6827         * configure.in: Don't pass -Wno-long-long to a ADA compiler
6828         that doesn't support it.
6829         * configure: Regenerate.
6830
6831 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6832
6833         PR target/5626
6834         * config/sparc/sparc.md (normal_branch, inverted_branch,
6835         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
6836         inverted_fp_branch): Adjust calls to output_cbranch.
6837         Set length attribute.
6838         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
6839         output_v9branch.  Set length attribute.
6840         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
6841         predicates.
6842         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
6843         (output_cbranch): Likewise.  Handle far branches.
6844         (output_v9branch): Handle far branches.
6845         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
6846         Adjust prototypes.
6847         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6848         noov_compare64_op predicates.
6849
6850 2002-03-13  Jason Merrill  <jason@redhat.com>
6851
6852         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
6853         into the function and constify it.
6854         * gthr-dce.h, gthr-solaris.h: Likewise.
6855
6856 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
6857
6858         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
6859         * config/rs6000/rs6000.c (rs6000_va_arg): Use
6860         std_expand_builtin_va_arg if not ABI_V4.
6861
6862 2002-03-13  Jason Merrill  <jason@redhat.com>
6863
6864         * varasm.c (globalize_decl): New fn.
6865         (assemble_start_function): Use it.
6866         (asm_emit_uninitialized): Use it.
6867         (assemble_alias): Use it.
6868         (assemble_variable): Use it.
6869
6870 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
6871
6872         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
6873         2002-03-12 internal visibility change.
6874         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
6875         visibility into SYMBOL_REF_FLAG.
6876
6877 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
6878
6879         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
6880         VOIDmode operand.  Add compile-time optimization for constant results.
6881
6882 2002-03-12  Jason Merrill  <jason@redhat.com>
6883
6884         * c-typeck.c (convert_for_assignment): Don't allow conversions
6885         between pointers and references.  Only allow lvalues to convert to
6886         reference.
6887
6888 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
6889
6890         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6891         before prologue, to avoid scheduling problems.
6892
6893 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6894
6895         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6896         (ELIMINABLE_REGS): Add sfp->sp.
6897         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
6898
6899 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6900
6901         PR optimization/5892
6902         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6903
6904 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
6905
6906         * loop.c (basic_induction_var): Don't call convert_modes if mode
6907         classes are different.
6908
6909 2002-03-12  Richard Henderson  <rth@redhat.com>
6910
6911         PR optimization/5901
6912         * function.c (reposition_prologue_and_epilogue_notes): Position
6913         the markers after/before the last/first insn not deleted.
6914
6915 2002-03-12  Richard Henderson  <rth@redhat.com>
6916
6917         PR optimization/5878
6918         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
6919         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
6920         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6921
6922         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
6923         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
6924         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
6925
6926         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
6927         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
6928         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
6929         also.  Don't set it if not flag_pic.
6930         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
6931         to be INVALID_REGNUM when not used.
6932
6933 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
6934
6935         * expmed.c (store_bit_field): Reset alias set for memory.
6936         (extract_bit_field): Same.
6937
6938 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6939
6940         * c-common.c (c_tree_code_type, c_tree_code_length,
6941         c_tree_code_name, add_c_tree_codes): Delete.
6942         * c-common.h (add_c_tree_codes): Delete.
6943         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
6944         Define.
6945         * c-objc-common.c (c_objc_common_init): Don't call
6946         add_c_tree_codes, instead set lang_unsafe_for_reeval.
6947         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
6948         objc_tree_code_name, add_objc_tree_codes): Delete.
6949         (objc_init): Don't call add_objc_tree_codes.
6950         * objc/objc-lang.c (tree_code_type, tree_code_length,
6951         tree_code_name): Define.
6952         * toplev.c (lang_independent_init): Don't set
6953         tree_code_length[IDENTIFIER_NODE].
6954         * tree.c (tree_code_type, tree_code_length, tree_code_name):
6955         Delete definitions, moved to language front-ends.
6956         * tree.def (IDENTIFIER_NODE): Hardwire the length.
6957         * tree.h (tree_code_type, tree_code_length, tree_code_name):
6958         Const-ify.
6959         (tree_code_length): Change type to unsigned char.
6960
6961 2002-03-12  Richard Henderson  <rth@redhat.com>
6962
6963         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6964         internal visibility change.
6965
6966 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
6967
6968         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6969         validize_mem() instead of change_address to avoid clobbering
6970         memory attributes.
6971
6972 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6973
6974         * c-lex.h (position_after_whitespace): Remove.
6975
6976 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
6977
6978         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6979         (lex_string): Use unsigned char pointers.
6980
6981 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
6982
6983         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6984         is not a valid memory_operand.
6985
6986 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
6987
6988         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
6989         * config/xtensa/lib1funcs.asm: Fix copyright to include
6990         special case for libgcc files.
6991         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
6992         (__divsi3): Likewise.
6993         (__umodsi3): Likewise.
6994         (__modsi3): Likewise.
6995         * config/xtensa/lib2funcs.S: Fix copyright to include
6996         special case for libgcc files.
6997
6998 2002-03-12  Tom Rix  <trix@redhat.com>
6999
7000         * collect2.c (resolve_lib_name): Move outside of
7001         OBJECT_FORMAT_COFF ifdef.
7002         (ignore_library): Same.
7003
7004 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7005
7006         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7007
7008 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7009
7010         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7011         to function_section before writing out the constant pool.
7012
7013 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
7014
7015         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7016         zero_constant.
7017         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7018
7019 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
7020
7021         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7022         (adddi3): Likewise.
7023         (movdf): Likewise.
7024         (movdi): Likewise.
7025         (cmpsi splitter): Likewise.
7026         (modsi3): Fail if <= 0.
7027         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7028         redundant test when HOST_BITS_PER_WIDE_INT != 32.
7029         (reg_or_sub_cint64_operand): Likewise.
7030         (num_insns_constant_wide): Optimize sign extension.
7031         (rs6000_legitimize_address): Likewise.
7032
7033 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7034
7035         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7036         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7037
7038 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7039
7040         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7041         address calculation.
7042
7043 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7044
7045         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7046         scratch register to DImode / TImode.
7047         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7048         register used does not overlap the target.
7049
7050 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7051
7052         * Makefile.in (debug.o): Depend on debug.h.
7053         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7054         * debug.c (do_nothing_debug_hooks): Likewise.
7055         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7056         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7057         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7058         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7059         * dwarfout.c (dwarf_debug_hooks): Likewise.
7060         * integrate.c (output_inline_function): Likewise.
7061         * objc/objc-act.c (synth_module_prologue): Likewise.
7062         * sdbout.c (sdb_debug_hooks): Likewise.
7063         * toplev.c (debug_hooks): Likewise.
7064         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7065
7066 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7067
7068         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7069         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7070         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7071         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7072         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7073         * defaults.h (POINTER_SIZE): Define.
7074         * doc/tm.texi (POINTER_SIZE): Document default.
7075
7076 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7077
7078         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7079
7080 2002-03-11  Richard Henderson  <rth@redhat.com>
7081
7082         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7083         if rebuild_label_notes_after_reload.
7084
7085 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
7086
7087         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
7088         emit pic register load if "internal" visibility.
7089         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7090         (cris_expand_builtin_va_arg): Do all computations on trees.
7091
7092 2002-03-11  Richard Henderson  <rth@redhat.com>
7093
7094         * rtlanal.c: Include recog.h.
7095         (keep_with_call_p): Fix thinko.
7096         * Makefile.in (rtlanal.o): Update dependencies.
7097
7098 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
7099
7100         * genflags.c (gen_insn): Use IS_VSPACE.
7101         * genoutput.c (output_insn_data): Likewise.
7102         (process_template): Likewise.
7103
7104 2002-03-11  Richard Henderson  <rth@redhat.com>
7105
7106         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7107
7108 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7109
7110         * Makefile.in: Update.
7111         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7112         Update documentation.
7113         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7114         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7115
7116 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
7117
7118         * Makefile.in: Give texi2pod its input file as a command line
7119         argument, not on stdin.
7120
7121 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
7122             Daniel Berlin  <dan@dberlin.org>
7123
7124         C++ alias analysis improvement.
7125         * alias.c (record_component_aliases): Record aliases for base
7126         classes too.
7127
7128 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
7129
7130         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7131
7132 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
7133
7134         * toplev.c (vms_fopen): Remove, not needed.
7135
7136         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7137
7138         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7139
7140         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7141         for FP, already done later.
7142
7143         * toplev.c (debug_args): Add entry for VMS_DEBUG.
7144         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7145
7146 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
7147
7148         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7149         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7150         LARGEST_EXPONENT_IS_NORMAL for the given mode.
7151         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7152         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7153         (ediv, emul, eldexp, esqrt): Likewise.
7154         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7155         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7156         (saturate): New function.
7157         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7158         (make_nan): Use a saturation value instead of a NaN if
7159         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
7160         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7161         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
7162         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
7163         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7164         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7165         !ROUND_TOWARDS_ZERO.
7166         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7167         (ROUND_TOWARDS_ZERO): Document.
7168
7169 2002-03-11  Andreas Jaeger  <aj@suse.de>
7170
7171         * cfg.c (dump_flow_info): Remove unused variable.
7172
7173 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
7174
7175         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7176         computations on trees.
7177
7178 2002-03-10  Richard Henderson  <rth@redhat.com>
7179
7180         PR 5693:
7181         * reload.c (copy_replacements_1): New.
7182         (copy_replacements): Use it to recurse through the rtx.
7183
7184 2002-03-10  Richard Henderson  <rth@redhat.com>
7185
7186         * loop.c (strength_reduce): Compute number of iterations as
7187         unsigned HOST_WIDE_INT.
7188
7189 2002-03-10  Richard Henderson  <rth@redhat.com>
7190
7191         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7192         to move away from the end of the block.
7193
7194 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7195
7196         PR preprocessor/5899
7197         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7198
7199 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7200
7201         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7202
7203         * attribs.c (decl_attributes): Fix signed/unsigned warning.
7204
7205 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
7206
7207         * config/mmix/mmix.c: Improve comments.
7208         (mmix_target_asm_function_prologue): Drop variable
7209         empty_stack_frame.  Don't allocate unused slot above fp.
7210         (mmix_target_asm_function_epilogue): Mirror prologue changes.
7211         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7212         brace in first column.
7213         (enum reg_class): Ditto.
7214         (FIRST_PARM_OFFSET): Now 0.
7215         (USER_LABEL_PREFIX): Remove #if 0:d definition.
7216
7217 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7218
7219         * combine.c (make_extraction): Fix error in last change.
7220
7221 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7222
7223         * c4x.c (c4x_fp_reglist): Const-ify.
7224         * cris.c (cris_print_operand): Likewise.
7225         * i386.c (ix86_va_arg): Likewise.
7226         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7227         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7228         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7229         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7230         * mcore.h (regno_reg_class): Likewise.
7231         * mips.c (gen_int_relational): Likewise.
7232         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7233         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7234         * pdp11.c (move_costs): Likewise.
7235         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7236         * s390.c (s390_branch_condition_mnemonic, regclass_map):
7237         Likewise.
7238         * s390.h (regclass_map): Likewise.
7239         * sh.c (shift_amounts): Likewise.
7240         * sh.md (rotlsi3): Likewise.
7241
7242 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
7243
7244         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7245         (ne0+5): Use new clobber to generate proper shift pattern.
7246         Patch by Michael Matz <matz@kde.org>.
7247
7248 2002-03-09  Andreas Schwab  <schwab@suse.de>
7249
7250         * gcc.c (validate_all_switches): Also handle `%W{...}'.
7251
7252 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
7253
7254         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7255
7256 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7257
7258         PR middle-end/5877
7259         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7260         even for non-representable constants.
7261
7262 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7263
7264         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7265         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7266         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7267         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7268         (pop_function_context): Compute MAY_SHARE parameter for
7269         fixup_var_refs.
7270         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7271         (gen_mem_addressof): Call fixup_var_refs with new parm.
7272
7273         * combine.c (make_extraction): Don't make extension of CONST_INT.
7274
7275 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
7276
7277         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7278         in o32 and o64 ABIs.
7279         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7280         but getting fixed-size structs passed in registers regardless of
7281         padding in o32 and o64 ABIs.
7282
7283         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7284         offset before loading address of argument passed by transparent
7285         reference.
7286
7287 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7288
7289         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7290
7291 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
7292
7293         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7294         marker such that registers after it are saved.
7295
7296 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7297
7298         * sparc.c (arith_4096_operand): Fix error in last change.
7299
7300 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
7301
7302         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7303         defaults for MEABI.
7304
7305 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
7306
7307         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7308         vectors.
7309
7310 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
7311
7312         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7313
7314 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
7315
7316         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7317         removed; fix return value.
7318         * combine.c (combine_instructions): Dirtify blocks where we failed to
7319         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7320         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7321
7322 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7323
7324         * gcse.c (insert_insn_end_bb): Fix typo in last change.
7325
7326 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
7327
7328         * recog.c (peephole2_optimize): Re-distribute EH edges.
7329
7330 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7331
7332         * expr.c (expand_expr): Use unsave lang hook.
7333         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7334         (LANG_HOOKS_INITIALIZER): Update.
7335         * langhooks.h (struct lang_hooks): New hook unsave.
7336         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7337         (unsave_expr_1): Remove unused lang_unsave_expr_now.
7338         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
7339         (unsave_expr_now): Remove.
7340         * tree.h (unsave_expr_now, lang_unsave,
7341         lang_unsave_expr_now): Remove.
7342         (lhd_unsave): New.
7343
7344 2002-03-08  Andreas Jaeger  <aj@suse.de>
7345
7346         * flow.c (propagate_block_delete_insn): Remove unused variable.
7347
7348 2002-03-08  Kazu Hirata  <kazu@hxi.com>
7349
7350         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7351         insn length for memory load/store.
7352
7353 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7354
7355         * doc/install.texi (--with-libiconv-prefix): Document.
7356
7357 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
7358
7359         * doc/sourcebuild.texi: Fix typo.
7360
7361 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
7362
7363         PR c/3711
7364         * builtins.c (std_expand_builtin_va_arg): Do all computations on
7365         trees.
7366
7367 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7368
7369         * rtl.c (copy_most_rtx): Move from here ...
7370         * emit-rtl.c (copy_most_rtx): ... to here.
7371
7372 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
7373
7374         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7375         SUBTARGET_CPP_SIZE_SPEC.
7376         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7377
7378         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7379
7380 2002-03-07  Matt Hiller  <hiller@redhat.com>
7381
7382         * gensupport.c (first_dir_md_include): Renamed from include;
7383         change all references.
7384         (last_dir_md_include): Renamed from last_include; change all
7385         references.
7386         (init_md_reader): Unconditionally initialize base_dir whether or
7387         not filename is a relative path.
7388
7389 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
7390
7391         * config/fp-bit.c (_unord_f2): Compile it in even if
7392         US_SOFTWARE_GOFAST is enabled.
7393
7394         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7395         NULL_RTX.  Set all HFmode operations as NULL_RTX.
7396         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7397         NULL_RTX, try reversing the comparison and the operands.
7398
7399 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
7400
7401         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7402         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7403         and MATCH_OP_DUP.
7404
7405 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
7406
7407         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7408
7409 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
7410
7411         * basic-block.h (fixup_abnormal_edges): Declare.
7412         * reload1.c (fixup_abnormal_edges): New function.
7413         * reg-stack.c (convert_regs): Use it.
7414
7415         * gcse.c (insert_insn_end_bb): Handle trapping insns.
7416
7417         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7418
7419 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
7420
7421         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7422         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7423         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7424         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7425         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7426         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7427         unless x and y could be infinite.
7428         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7429         Check that the common type of both arguments is a real, even for
7430         targets without unordered comparisons.  Allow an integer argument
7431         to be compared against a real.
7432         (expand_tree_builtin): Use expand_unordered_cmp.
7433         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7434         * cse.c (fold_rtx): Likewise.  Fix indentation.
7435         * fold-const.c (fold_real_zero_addition_p): New.
7436         (fold): Use it, and the new HONOR_... macros.
7437         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7438         * jump.c (reversed_comparison_code_parts): After searching for
7439         the true comparison mode, use HONOR_NANS to decide whether it
7440         can be safely reversed.
7441         (reverse_condition_maybe_unordered): Remove IEEE check.
7442         * simplify-rtx.c (simplify_binary_operation): Use the new macros
7443         to decide which simplifications are valid.  Allow the following
7444         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7445         and (a - -b) to (a + b).
7446         (simplify_relational_operation): Use HONOR_NANS.
7447         * doc/tm.texi: Document the MODE_HAS_... macros.
7448
7449 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7450
7451         * combine.c (simplify_comparison): If simplifying a logical shift
7452         right and compare with constant, force the comparison to unsigned.
7453
7454 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
7455
7456         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7457
7458         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7459         -mabi=no-altivec
7460         (alt_reg_names): Remove % for vrsave.
7461
7462 2002-03-06  Richard Henderson  <rth@redhat.com>
7463
7464         PR optimization/5844
7465         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
7466         if used indicates we've already emitted one copy of an operand.
7467         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7468         (gen_split): Supply a non-null used.
7469
7470 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
7471
7472         * reload1.c (reload): Unshare all rtl after reload is done.
7473
7474         * simplify-rtx.c (simplify_plus_minus): Do not abort,
7475         but simply fail if the expression is too complex to simplify.
7476         (simplify_gen_binary): Handle simplify_plus_minus failures.
7477
7478 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7479
7480         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7481         consistently call delete_trivially_dead_insns after CSE and GCSE;
7482         fix DFI_life dumping; do jump threading after liveness; do crossjumping
7483         after liveness2; update comment in last crossjumping.
7484         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7485
7486 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
7487
7488         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7489         after completing fast dead code elimination.
7490
7491         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7492         COMPARE operator.
7493
7494 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
7495
7496         * version.c:  Fix misplaced leading blanks on first line.
7497
7498 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
7499
7500         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7501
7502 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
7503
7504         * cfgcleanup.c (mentions_nonequal_regs): New function.
7505         (thread_jump): Use it.
7506         * toplev.c (rest_of_compilation): Run jump threading after
7507         liveness.
7508
7509 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
7510
7511         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7512         patch.
7513
7514 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
7515
7516         * predict.c (estimate_bb_frequencies): Do not reload the
7517         frequencies from notes.
7518
7519 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
7520
7521         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7522         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7523
7524         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7525         delete_noop_moves): Return indeger.
7526         * flow.c (ndead): New variable.
7527         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7528         BB argument; update callers.
7529         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7530         (life_analysis): Do not call purge_all_dead_edges.
7531         (update_life_info): Return number of deleted insns; print statistics.
7532         (update_life_info_in_dirty_blocks): likewise.
7533         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7534         return number of insns deleted.
7535
7536         * cse.c: Include timevar.h
7537         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7538         iterate until stabilizes; print statistics; return number of killed
7539         insns.
7540         * Makefile.in: (cse.o): Add timevar.h dependency
7541         * rtl.h (delete_trivially_dead_insns): New.
7542         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7543         * toplev.c (rest_of_compilation): Update callers.
7544
7545         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7546         (try_optimize_cfg): Do not update liveness.
7547         (cleanup-cfg): Loop until try_optimize_cfg and dead code
7548         removal stabilizes; use delete_trivially_dead_insns.
7549
7550         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7551
7552 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
7553
7554         * cppmain.c (setup_callbacks): Disable #pragma and #ident
7555         callbacks when processing assembly language.
7556
7557 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7558
7559         * pa.h (ASM_FILE_END): Define.
7560         * som.h (ASM_FILE_END): Delete.
7561
7562         * pa.c (function_arg): Don't pass floats in general registers in
7563         indirect calls if TARGET_ELF32.
7564
7565 2002-03-05  Richard Henderson  <rth@redhat.com>
7566
7567         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7568
7569 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
7570
7571         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7572
7573 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
7574
7575         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7576         -r command line.  Don't hide any symbols if not building
7577         shared libgcc.
7578
7579 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
7580
7581         * cfg.c (dump_flow_info): Warn about profile mismatches.
7582         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7583         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7584
7585 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
7586
7587         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7588         wide volatile memory by parts.
7589
7590 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
7591
7592         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7593         is NULL.
7594
7595 2002-03-05  Richard Henderson  <rth@redhat.com>
7596
7597         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7598
7599 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
7600
7601         * toplev.c (documented_lang_options): Document more
7602         language-specific options.
7603         * doc/invoke.texi (Warning Options): Correct documentation for
7604         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7605         * c-decl.c (c_decode_option): Use a table to handle warning options.
7606
7607 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
7608
7609         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7610         parameter to mmix_encode_section_info.
7611         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7612         relocatably.  Always produce ELF, not mmo if linking relocatably.
7613         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7614         first is non-zero, don't add symbol prefix.
7615         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7616         prototype accordingly.
7617
7618 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
7619
7620         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7621
7622 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
7623
7624         * configure.in: Increase required makeinfo version to 4.1.
7625         * configure: Regenerate.
7626
7627 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
7628
7629         * .cvsignore: Remove *.info* and genrtl*; these files are generated
7630         elsewhere now.
7631
7632 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
7633
7634         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7635         * doc/invoke.texi: Fix @math uses.
7636
7637 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
7638
7639         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7640         removal
7641
7642 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
7643
7644         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7645         (powerpc-*-eabisimaltivec*): Same.
7646
7647         * config/rs6000/t-ppcendian: New.
7648
7649 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7650
7651         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7652         nonimmediate_src_operand and nonimmediate_lsrc_operand to
7653         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7654
7655 2002-03-03  Richard Henderson  <rth@redhat.com>
7656
7657         * toplev.c (rest_of_decl_compilation): Revert last two changes.
7658
7659 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
7660
7661         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7662         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7663         tree.c, config/m68k/m68k.c:
7664         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7665         REAL_ARITHMETIC blocks unconditional.  Delete some further
7666         #ifdef blocks predicated on REAL_ARITHMETIC.
7667         * flags.h, toplev.c: Delete remaining references to
7668         flag_pretend_float.
7669
7670         * doc/invoke.texi: Remove documentation of -fpretend-float.
7671         * doc/tm.texi: Describe the various REAL_* macros as provided by
7672         real.h, not by the target configuration files.
7673
7674         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7675         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7676         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7677         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7678         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7679         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7680         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7681         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7682         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7683         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7684         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7685         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7686         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7687         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7688         config/xtensa/xtensa.h:
7689         Do not define, undefine, or mention in comments any of
7690         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7691         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7692         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7693         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7694         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7695         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7696         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7697         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7698         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7699
7700 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7701
7702         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7703         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7704         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7705         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7706         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7707         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7708         Delete.
7709         * defaults.h (BITS_PER_WORD): Define.
7710         * doc/tm.texi (BITS_PER_WORD): Document default value.
7711
7712         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7713         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7714         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7715
7716 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7717
7718         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7719         lieu of explicit sizeof/sizeof.
7720         * i386.c (override_options, ix86_init_mmx_sse_builtins,
7721         ix86_expand_builtin): Likewise.
7722         * mips.c (mips_add_gc_roots): Likewise.
7723         * mmix.c (mmix_output_condition): Likewise.
7724         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7725         altivec_init_builtins): Likewise.
7726         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
7727         * cppexp.c (Nsuff, parse_number): Likewise.
7728         * cppinit.c (builtin_array_end): Likewise.
7729         * gcc.c (n_default_compilers, process_command): Likewise.
7730         * genpreds.c (output_predicate_decls): Likewise.
7731         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
7732         * lcm.c (N_ENTITIES): Likewise.
7733         * stor-layout.c (set_sizetype): Likewise.
7734
7735 2002-03-03  Richard Henderson  <rth@redhat.com>
7736
7737         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7738         for types or labels.
7739
7740 2002-03-03  Richard Henderson  <rth@redhat.com>
7741
7742         * c-decl.c (start_decl): Initialized variables are not common.
7743
7744 2002-03-02  Per Bothner  <per@bothner.com>
7745
7746         * gcc.c (option_map):  Suport new --bootclasspath option.
7747         --CLASSPATH is now just an alias for --classpath.
7748
7749 2002-03-02  Richard Henderson  <rth@redhat.com>
7750
7751         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
7752         load if "internal" visibility.
7753         * doc/extend.texi: Document visibility meanings.
7754
7755 2002-03-02  Richard Henderson  <rth@redhat.com>
7756
7757         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7758         to functions as well.
7759
7760 2002-03-02  Richard Henderson  <rth@redhat.com>
7761
7762         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
7763         (handle_visibility_attribute): Don't call assemble_visibility.
7764         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
7765         without asmspec.  Invoke assemble_alias when needed.
7766         * varasm.c (maybe_assemble_visibility): New.
7767         (assemble_start_function, assemble_variable, assemble_alias): Use it.
7768
7769 2002-03-02  Richard Henderson  <rth@redhat.com>
7770
7771         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7772         invoke ENCODE_SECTION_INFO with first call flag.
7773
7774         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7775         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7776         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7777         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7778         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7779         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7780         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7781         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7782         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7783         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7784         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7785         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7786         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7787         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7788         config/mcore/mcore-protos.h, config/mcore/mcore.c,
7789         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7790         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7791         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7792         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7793         config/sh/sh.h, config/sparc/sparc.h,
7794         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7795         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7796         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7797         FIRST argument.  As needed, examine it and do nothing.
7798
7799         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
7800         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7801         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
7802
7803         * config/arm/t-pe (pe.o): Add dependencies.
7804
7805 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7806
7807         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
7808         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
7809         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
7810         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
7811         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
7812         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
7813         * defaults.h (BITS_PER_UNIT): Define.
7814         * doc/tm.texi (BITS_PER_UNIT): Document default value.
7815
7816 2002-03-02  Kazu Hirata  <kazu@hxi.com>
7817
7818         * config/h8300/h8300-protos.h: Add a prototype for
7819         compute_a_shift_length.
7820         * config/h8300/h8300.c (h8300_asm_insn_count): New.
7821         (compute_a_shift_length): Likewise.
7822         (h8300_adjust_insn_length): Do not adjust insn length of shift
7823         insns.
7824         * config/h8300/h8300.md (anonymous shift patterns): Use
7825         compute_a_shift_length.
7826
7827 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7828
7829         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7830         trunc_int_for_mode.
7831
7832         * emit-rtl.c (offset_address): Call update_temp_slot_address.
7833
7834 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7835
7836         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
7837         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
7838         * flags.h (flag_zero_initialized_in_bss): Declare.
7839         * toplev.c (flag_zero_initialized_in_bss): New flag.
7840         (lang_independent_options): Add flag_zero_initialized_in_bss.
7841         * tree.c (initializer_zerop): New function.
7842         * tree.h (initializer_zerop): Declare.
7843         * varasm.c (assemble_variable): If we can emit bss, put zero
7844         initializers in the bss section.
7845
7846 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
7847
7848         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7849         like more than one symbol per .weak directive.
7850
7851 2002-03-01  Richard Henderson  <rth@redhat.com>
7852
7853         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
7854         adjust argument_pointer by pretend_args_size.
7855         (ia64_va_start): Adjust va_start address by -pretend_args_size.
7856
7857 2002-03-01  Kazu Hirata  <kazu@hxi.com>
7858
7859         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7860
7861 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
7862
7863         * toplev.c (rest_of_compilation): Delete dead jumptables before
7864         loop.
7865         * flow.c (delete_dead_jumptables): Make global.
7866         * rtl.h (delete_dead_jumptables): Declare.
7867
7868 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
7869
7870         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
7871         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
7872         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
7873
7874 2002-03-01  Kazu Hirata  <kazu@hxi.com>
7875
7876         * config/h8300/h8300-protos.h: Fix formatting.
7877         * config/h8300/h8300.c: Likewise.
7878         * config/h8300/h8300.h: Likewise.
7879
7880 2002-03-01  Kazu Hirata  <kazu@hxi.com>
7881
7882         * config/h8300/h8300.c (print_operand): Support 16-bit
7883         constant addresses.
7884         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7885
7886 2002-02-28  Richard Henderson  <rth@redhat.com>
7887
7888         * expmed.c (store_bit_field): Prevent generation of CONCATs;
7889         pun complex values as integers; use gen_lowpart instead of
7890         gen_rtx_SUBREG.
7891         (extract_bit_field): Likewise.
7892
7893 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
7894             David Edelsohn  <edelsohn@gnu.org>
7895
7896         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
7897         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
7898         (SUPPORTS_WEAK): Likewise.
7899         * output.h (add_weak): Add tree param.
7900         * varasm.c (add_weak): Likewise.  Save decl.
7901         (struct weak_syms): Add decl field.
7902         (mark_weak_decls): New function.
7903         (init_varasm_once): ggc_add_root mark_weak_decls.
7904         (assemble_start_function): Use ASM_WEAKEN_DECL.
7905         (assemble_variable): Likewise.
7906         (assemble_alias): Likewise.
7907         (declare_weak): Pass decl to add_weak.
7908         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
7909         (remove_from_pending_weak_list): Declare and define for
7910         ASM_WEAKEN_DECL.
7911         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
7912         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
7913         * defaults.h (SUPPORTS_WEAK): Likewise.
7914         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7915         .weak for code sym.  Do emit .size for descriptor sym.
7916         (ASM_DECLARE_FUNCTION_SIZE): Define.
7917         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
7918         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
7919         .lglobl unless TARGET_XCOFF.  Formatting fixes.
7920         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7921         .weak for code sym.
7922         (HANDLE_PRAGMA_WEAK): Remove.
7923         (ASM_WEAKEN_LABEL): Remove.
7924         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7925
7926 2002-03-01  Jason Merrill  <jason@redhat.com>
7927
7928         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7929         (TARGET_EXPR_CLEANUP): New macro.
7930
7931 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
7932
7933         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
7934         to take ptr_extend into account as third type of extension.
7935         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
7936         fields used by SUBREG_PROMOTED_UNSIGNED_P.
7937         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
7938         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
7939         * calls.c (precompute_arguments): Use new macro.
7940         (expand_call): Ditto.
7941         * combine.c (nonzero_bits): Ditto.
7942         (record_promoted_value): Ditto.
7943         * expr.c (store_expr): Ditto.
7944         (expand_expr): Ditto.
7945         * function.c (assign_parms): Ditto.
7946
7947 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
7948
7949         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7950         override -shared and -shared-libgcc.
7951
7952 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
7953
7954         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7955         of "ultrasparc".
7956         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
7957         to be broken.
7958
7959 2002-02-28  Richard Henderson  <rth@redhat.com>
7960
7961         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
7962         4 cycle latency from MM producers.
7963         (ia64_internal_sched_reorder): Likewise with pipeline flush.
7964
7965 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
7966
7967         * mklibgcc.in: Don't use GNU make extension.
7968
7969 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7970
7971         * c-parse.in (STATIC): New terminal.
7972         (scspec): New non-terminal.  Update productions accordingly.
7973         (program): Remove bogus ifc / end ifc.
7974         (array_declarator): Simplify production using STATIC.
7975
7976 2002-02-28  Jim Meyering  <meyering@lucent.com>
7977
7978         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7979         \a still means TARGET_BELL.
7980
7981 2002-02-28  Richard Henderson  <rth@redhat.com>
7982
7983         * haifa-sched.c (sched_emit_insn): New.
7984         (schedule_block): Use last_scheduled_insn to track last insn.
7985         * sched-int.h (sched_emit_insn): Prototype.
7986         * config/ia64/ia64.c (last_issued): Remove.
7987         (ia64_variable_issue): Don't set it.
7988         (nop_cycles_until): Use sched_emit_insn.
7989
7990 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
7991
7992         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7993         extended constants.
7994
7995 2002-02-28  Kazu Hirata  <kazu@hxi.com>
7996
7997         * config/h8300/h8300.c: Fix formatting.
7998         * config/h8300/h8300.h: Likewise.
7999
8000 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8001
8002         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8003         which may overwrite the high byte of the frame pointer.
8004
8005 2002-02-28  Bo Thorsen  <bo@suse.de>
8006
8007         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8008         (STARTFILE_SPEC): Add 64 bit files.
8009         (ENDFILE_SPEC): Likewise.
8010
8011 2002-02-28  Jason Merrill  <jason@redhat.com>
8012
8013         * c-decl.c (finish_function): Only warn about missing return
8014         statement with -Wreturn-type.
8015
8016 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8017
8018         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8019
8020         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8021         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8022
8023 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8024
8025         * basic-block.h (BB_REACHABLE): Renumber.
8026         (BB_DIRTY, BB_NEW): New flags.
8027         (clear_bb_flags): Declare.
8028         (update_life_info_in_dirty_blocks): Declare.
8029         * cfg.c (clear_bb_flags): New function.
8030         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8031         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8032         reorder_insns, emit_insn_after): Mark block as dirty.
8033         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8034         (update_life_info_in_dirty_blocks): New function.
8035         * recog.c (apply_change_group): Dirtify block.
8036
8037         * cse.c (cse_insn): Reorder emitting of jump insn to keep
8038         cfg consistent.
8039         * gcse.c (delete_null_pointer_checks): Likewise.
8040
8041         * toplev.c (dump_file_index): Move cse2 after bp,
8042         add DFI_null
8043         (dump_file_info): Similary.
8044         (rest_of_compilation): Avoid most of CFG rebuilds;
8045         do first if converision after null pointer checks, do cse2
8046         after branch prediction; avoid full liveness rebuild after
8047         initializing subregs.
8048         * invoke.texi (-d options): Document -du, renumber.
8049
8050         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8051         (notice_new_block): Do not set BB_UPDATE_LIFE.
8052         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8053          merge_blocks_move_successor_nojumps, merge_blocks,
8054          try_crossjump_to_edge): Likewise.
8055         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8056         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8057         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8058         (merge_of_block): Do not use life_data_ok.
8059         (find_if_case_1): Do not use SET_UPDATE_LIFE.
8060         (if_convert): Use BB_DIRTY mechanizm to update life.
8061         * lcm.c (optimize_mode_switching): Update
8062         update_life_info_in_dirty_blocks
8063
8064 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8065
8066         * Makefile.in (integrate.o): Update.
8067         * c-decl.c (copy_lang_decl): Rename.
8068         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8069         * integrate.c: Include langhooks.h.
8070         (copy_decl_for_inlining): Update to use langhook.
8071         * langhooks-def.h (lhd_do_nothing_t,
8072         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8073         (LANG_HOOKS_INITIALIZER): Update.
8074         * langhooks.c (lhd_do_nothing_t): New.
8075         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8076         * tree.h (copy_lang_decl): Remove.
8077 objc:
8078         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8079
8080 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
8081
8082         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8083         POST_DEC, and POST_MODIFY.
8084
8085 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8086
8087         * c-typeck.c (digest_init): Remove unused parameter; all
8088         callers changed.
8089
8090 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
8091
8092         * expmed.c (expand_shift): Correctly test for low part of a
8093         subreg.
8094
8095 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8096
8097         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8098         insn UIDs with insn addresses.
8099
8100 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8101
8102         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8103         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8104         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8105         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8106         gcc.c, toplev.c: Delete code implementing -traditional mode.
8107
8108         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8109         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8110         Document removal of -traditional mode for compilation, and
8111         remove documentation only relevant to that mode.
8112
8113         * config/nextstep.h, config/ptx4.h, config/svr4.h,
8114         config/convex/convex.h, config/d30v/d30v.h,
8115         config/i386/dgux.h, config/i386/osf1elf.h,
8116         config/i386/osfelf.h, config/i386/osfrose.h,
8117         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8118         config/m68k/hp310.h, config/m88k/dgux.h,
8119         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8120         config/m88k/m88k.h, config/m88k/openbsd.h,
8121         config/mips/abi64.h, config/mips/osfrose.h,
8122         config/mips/svr4-5.h, config/mips/svr4-t.h,
8123         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8124         config/stormy16/stormy16.h: Remove all references to
8125         -traditional from target specs.  Delete all mention of the
8126         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
8127         delete a couple of commented-out definitions of
8128         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8129         to -traditional.
8130
8131         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8132         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8133
8134 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8135
8136         * mklibgcc.in: Don't use \n in a line subject to
8137         interpretation by echo.
8138
8139 2002-02-27  Graham Stott  <grahams@redhat.com>
8140
8141         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8142         Constify NAME.
8143
8144         * loop.c (prescan_loop): Handle PARALLEL.
8145
8146         * unroll.c (loop_iterations): Return 0 if the add_val for
8147         a BIV is REG.
8148
8149         * final.c (output_operand_lossage): Constify PFX_STR.
8150
8151         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8152
8153 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8154
8155         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8156         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8157
8158 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
8159
8160         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8161
8162 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8163
8164         * cpplex.c (_cpp_lex_token): Handle directives in macro
8165         arguments.
8166         * cpplib.c (_cpp_handle_directive): Save and restore state
8167         if parsing macro args when entering a directive.
8168         * cppmacro.c (collect_args): No need to handle directives
8169         in macro arguments.
8170         (enter_macro_context, replace_args): Use the original macro
8171         definition in case it was redefined whilst collecting arguments.
8172 doc:
8173         * cpp.texi: Update.
8174
8175 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
8176
8177         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8178         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8179         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8180         method on AIX.
8181         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8182         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8183         (load_toc_v4_PIC_2): Same.
8184
8185 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
8186
8187         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8188
8189 2002-02-26  Richard Henderson  <rth@redhat.com>
8190
8191         * config/alpha/alpha.md (ashldi_se): Re-enable.
8192
8193 2002-02-26  Richard Henderson  <rth@redhat.com>
8194
8195         * config/alpha/alpha.c (alpha_encode_section_info): Examine
8196         MODULE_LOCAL_P; improve commentary.
8197
8198 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
8199
8200         * doc/cpp.texi: Clarify documentation of relationship between
8201         #line and #include.
8202
8203 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8204
8205         * config/h8300/h8300-protos.h: Update the prototype for
8206         compute_logical_op_length.  Add the prototype for
8207         compute_logical_op_cc.
8208         * config/h8300/h8300.c (compute_logical_op_length): Figure out
8209         code from operands.
8210         (compute_logical_op_cc): New.
8211         * config/h8300/h8300.md: Combine all the logical op patterns
8212         in HImode and SImode.  Use compute_logical_op_cc.
8213
8214 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
8215
8216         * config/i386/i386.c (print_operand): Don't append ATT-style
8217         length suffixs to x87 opcodes when in Intel mode.
8218
8219 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
8220
8221         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8222         (init_emit_once): Update calls.
8223         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8224         (init_syntax_once): Prototype.
8225
8226 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8227
8228         * pa-linux.h (LIB_SPEC): Update definition.
8229         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8230
8231 2002-02-26  Richard Henderson  <rth@redhat.com>
8232
8233         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8234         if we emitted a stop bit.
8235
8236 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8237
8238         * configure.in (libgcc_visibility): Substitute.
8239         * configure: Rebuilt.
8240         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8241         defined symbols .hidden.
8242
8243 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8244
8245         * attribs.c (c_common_attribute_table): Add visibility.
8246         (handle_visibility_attribute): New function.
8247         * varasm.c (assemble_visibility): New function.
8248         * output.h (assemble_visibility): Add prototype.
8249         * tree.h (MODULE_LOCAL_P): Define.
8250         * crtstuff.c (__dso_handle): Use visibility attribute.
8251         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8252         for MODULE_LOCAL_P symbols too.
8253         * config/ia64/ia64.c (ia64_encode_section_info): Handle
8254         MODULE_LOCAL_P symbols the same way as local symbols.
8255         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8256         into .sdata/.sbss by the user.
8257         * doc/extend.texi (Function Attributes): Document visibility
8258         attribute.
8259
8260 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8261
8262         PR debug/5770
8263         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8264         STRING_CST initializer spanning the whole variable without
8265         embedded zeros.
8266         If expand_expr returned MEM, don't use it.
8267
8268 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
8269
8270         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8271         generate a die for the lexical block.
8272
8273 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8274
8275         * config/h8300/h8300-protos.h: Add a prototype for
8276         compute_logical_op_length.
8277         * config/h8300/h8300.c (compute_logical_op_length): New.
8278         * config/h8300/h8300.md (anonymous logical patterns): Use
8279         compute_logical_op_length for length.
8280
8281 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8282
8283         * dwarf2out.c (modified_type_die): Do not call type_main_variant
8284         for vectors.
8285         (gen_type_die): Same.
8286
8287         * attribs.c (handle_vector_size_attribute): Set debug information.
8288
8289 2002-02-26  Daniel Egger  <degger@fhm.edu>
8290
8291         * config/rs6000/rs6000.md: Swap define_insn attributes to
8292         fix incorrect generation of merge high instructions instead
8293         of merge low.
8294
8295 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8296
8297         * c-typeck.c (really_start_incremental_init): Use
8298         bitsize_zero_node for vectors.
8299
8300 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8301
8302         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8303         ("*set_vrsave_internal"): Same.
8304
8305 2002-02-25  Richard Henderson  <rth@redhat.com>
8306
8307         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8308         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
8309
8310 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8311
8312         PR target/5755
8313         * config/i386/i386.c (ix86_return_pops_args): Only pop
8314         fake structure return argument if it was passed on the stack.
8315
8316 2002-02-25  Jason Merrill  <jason@redhat.com>
8317
8318         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8319         RESULT_DECL.
8320
8321 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
8322
8323         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8324         link with shared_name only.
8325         * doc/invoke.texi (Link Options): Document new behavior.
8326
8327 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
8328
8329         * c-typeck.c (push_init_level): Handle vectors.
8330
8331 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
8332
8333         * config/sparc/sparc.c (const64_high_operand): Zero-extend
8334         operands of SPARC_SETHI_P.
8335         (input_operand): Likewise.
8336         (sparc_emit_set_const32): Likewise.
8337         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8338         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8339         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
8340         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8341         (movdi_insn_sp64_vis): Likewise.
8342         (movdi split, movdf split): Use SETHI32.
8343         * doc/md.texi: Document SPARC constraints L, M and N.
8344
8345 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
8346
8347         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8348         ("*set_vrsave_internal"): use mfspr for Darwin.
8349
8350         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8351         gen_get_vrsave_internal.
8352
8353 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8354
8355         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8356
8357 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8358
8359         * cpplex.c (cpp_interpret_charconst): Get signedness or
8360         otherwise of wide character constants correct.
8361         * cppexp.c (lex): Get signedness of wide charconsts correct.
8362
8363 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8364
8365         * optabs.c (widen_operand): Only call convert_modes for
8366         promoted SUBREG if signedness matches.
8367         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8368
8369 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8370
8371         * cpplib.c (glue_header_name): Use local buffer to build up
8372         header name.
8373
8374 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8375
8376         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8377
8378 2002-02-23  Kazu Hirata  <kazu@hxi.com>
8379
8380         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8381         H8/300[HS] separately.
8382         * config/h8300/h8300.md: Remove the early clobber constraint
8383         from bit field patterns.
8384
8385 2002-02-23  Kazu Hirata  <kazu@hxi.com>
8386
8387         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8388         register_operand.
8389         (mulhisi3): Likewise.
8390         (umulqisi3): Likewise.
8391         (umulhisi3): Likewise.
8392
8393 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8394
8395         * cppinit.c (output_deps): Correct test for stdout output.
8396         (init_dependency_output): Cure warning.
8397
8398 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8399
8400         * expr.c (store_expr): When converting expression to promoted
8401         equivalent type, allow using SUBREG_REG of TARGET as the target
8402         of the expansion of EXP.
8403         * loop.c (basic_induction_var, case SUBREG): Always look inside.
8404         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8405         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8406         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8407         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8408
8409 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
8410
8411         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8412         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8413         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8414
8415 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
8416
8417         PR optimization/5747
8418         * loop.c (scan_loop): Update reg info if move_movables created new
8419         pseudos.
8420
8421 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
8422
8423         * gcc.c (init_gcc_spec): Revert last change.
8424
8425 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
8426
8427         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8428         gpc_reg_operand constraint.
8429
8430 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
8431
8432         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8433         Simplify comparison of `low'.
8434         (add_operand): Fix formatting.
8435         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8436         (mask_operand): Disallow mask to wrap in 64-bit mode.
8437         (rs6000_stack_info): Remove redundant test setting push_p.
8438         (output_toc): Fix formatting.
8439         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8440         cc_reg_not_cr0_operand constraint.
8441         (booldi3, boolcdi3 splitters): Same.
8442
8443 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
8444
8445         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8446
8447 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
8448
8449         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8450         gcc invoked with -shared-libgcc.
8451
8452 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
8453
8454         PR c++/5748
8455         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8456         decl if any of elements was TREE_USED.
8457
8458 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
8459
8460         * config/sparc/sol2.h: Don't include sys/mman.h.
8461         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8462         (arith_4096_operand): Don't throw high bits away.
8463         (const64_operand): Take sign extension of CONST_INTs into account.
8464         (const64_high_operand, sparc_emit_set_const32): Likewise.
8465         (GEN_HIGHINT64): Likewise.
8466         (sparc_emit_set_const64_quick1): Likewise.
8467         (const64_is_2insns): Likewise.
8468         (print_operand): Use trunc_int_for_mode for sign extension.
8469         * config/sparc/sparc.h (SMALL_INT32): Likewise.
8470         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8471         chars.  Assume CONST_INT is already properly sign-extended.
8472         (movdi split): Sign-extend each SImode part.
8473         (andsi3 split): Don't mask high bits off, so that result
8474         remains properly sign-extend.
8475         (iorsi3 split): Likewise.
8476         (xorsi3 split): Likewise.
8477
8478 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
8479
8480         * fold-const.c (fold): Fix typo in comments.
8481
8482 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
8483
8484         * Makefile.in (langhooks.o): Update dependencies.
8485
8486 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
8487
8488         * langhooks.c: Include flags.h.
8489
8490 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
8491
8492         * testsuite/gcc.dg/attr-alwaysinline.c: New.
8493
8494         * c-common.c (c_common_post_options): Set inline trees by
8495         default.
8496
8497         * doc/extend.texi (Function Attributes): Document always_inline
8498         attribute.
8499         Update documentation about inlining when not optimizing.
8500
8501         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8502
8503         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8504         unless DECL_ALWAYS_INLINE.
8505
8506         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8507         unless DECL_ALWAYS_INLINE.
8508         (c_disregard_inline_limits): Disregard if always_inline set.
8509
8510         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8511         Disregard if always_inline set.
8512         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8513         unless DECL_ALWAYS_INLINE.
8514
8515         * attribs.c (handle_always_inline_attribute): New.
8516         (c_common_attribute_table): Add always_inline.
8517
8518         * config/rs6000/altivec.h: Add prototypes for builtins
8519         requiring the always_inline attribute.
8520
8521 2002-02-21  Eric Christopher  <echristo@redhat.com>
8522
8523         * expmed.c (store_bit_field): Try to simplify the subreg
8524         before generating a new one when when the mode size of
8525         value is less than maxmode.
8526
8527 2002-02-21  Richard Henderson  <rth@redhat.com>
8528
8529         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8530         than gen_rtx_PLUS to form the sum.
8531         * explow.c (force_reg): Rearrange to not allocate new pseudo
8532         when force_operand returns a register.
8533         * expr.c (expand_assignment): Allow offset_rtx expansion to
8534         return a sum.  Do not force addresses into registers.
8535         (expand_expr): Likewise.
8536         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8537         to canonicalize arithmetic that didn't simpify.
8538         (simplify_plus_minus): New argument force; update
8539         all callers.  Don't split CONST unless we can do something with it,
8540         and wouldn't lose the constness of the operands.
8541
8542         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8543         that we generated earlier.
8544
8545 2002-02-21  Tom Tromey  <tromey@redhat.com>
8546
8547         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8548         (output_line_info): Use constant `1', with a long explanatory
8549         comment.
8550         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8551
8552 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
8553
8554         * jump.c (redirect_jump): If old label has no UID, don't try to
8555         delete it.
8556
8557 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
8558
8559         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8560         If input is constant, do shifts at compile time.
8561
8562 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8563
8564         * doc/extend.texi: Fix some more overfull hboxes.
8565
8566 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8567
8568         PR optimization/4994
8569         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8570         register moves.
8571
8572 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8573
8574         PR c++/4574
8575         * expr.h (expand_and): Add mode argument.
8576         * expmed.c (expand_and): Add mode argument.
8577         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8578         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8579         * except.c (expand_builtin_extract_return_addr): Likewise.
8580         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8581         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8582         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8583         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8584         * config/c4x/c4x.md: Use GEN_INT (x) instead of
8585         gen_rtx (CONST_INT, VOIDmode, x).
8586
8587 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8588
8589         PR c/4697:
8590         * stmt.c (warn_if_unused_value): Move side effects test once more.
8591
8592 2002-02-20  Torbjorn Granlund  <tege@swox.com>
8593
8594         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8595         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8596
8597 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
8598
8599         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8600         SUBREG or ZERO_EXTEND.
8601
8602 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
8603
8604         * sh.h (current_function_anonymous_args): Remove.
8605         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8606         of current_function_varargs and current_function_stdarg is set.
8607         * sh.c (sh_expand_prologue): Check current_function_varargs /
8608         current_function_stdarg / TARGET_SH5 instead of
8609         current_function_anonymous_args.
8610
8611         * sh64.h (TARGET_VERSION): Define.
8612
8613 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
8614
8615         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8616         VRSAVE_REGNO on TARGET_ALTIVEC.
8617
8618 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
8619
8620         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8621         bits of SImode const_int.
8622         (includes_rshift_p): Likewise.
8623         (print_operand): Call mask_operand and mask64_operand with correct
8624         mode.
8625         (rs6000_output_function_epilogue): Pad traceback table to word.
8626         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8627         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8628         mask64_operand with correct mode.
8629         (FUNCTION_ARG_REGNO_P): Correct parentheses.
8630
8631 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
8632
8633         PR debug/4461
8634         * varasm.c (get_pool_constant_mark): New.
8635         * rtl.h (get_pool_constant_mark): Add prototype.
8636         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8637         be represented if it has not been output.
8638
8639 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
8640
8641         * combine.c (do_SUBST): Sanity check substitutions of
8642         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8643         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8644         CONST_INT into its operand.
8645         (known_cond): Likewise, for ZERO_EXTEND.
8646         * simplify-rtx.c (simplify_unary_operation): Fix condition to
8647         allow for simplification of wide modes.  Reject CONST_INTs in
8648         ZERO_EXTEND when their actual mode is not given.
8649
8650 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
8651
8652         * c-decl.c (pushdecl): If no global declaration is found for an
8653         extern declaration in block scope, try a limbo one.
8654
8655 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
8656
8657         PR c++/4401
8658         * c-common.c (pointer_int_sum): Moved from...
8659         * c-typeck.c (pointer_int_sum): ...here.
8660         * c-common.h (pointer_int_sum): Add prototype.
8661
8662 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
8663
8664         PR c++/5713
8665         * c-decl.c (duplicate_decls): Return 0 if issued error about
8666         redeclaration.
8667
8668 2002-02-20  Roger Sayle  <roger@eyesopen.com>
8669             Jakub Jelinek  <jakub@redhat.com>
8670
8671         PR c/4389
8672         * tree.c (host_integerp): Ensure that the constant integer is
8673         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8674         when pos is zero or non-zero respectively.  Clarify comment.
8675         * c-format.c (check_format_info_recurse): Fix host_integerp
8676         usage; the pos argument should be zero when assigning to a
8677         signed HOST_WIDE_INT.
8678
8679 2002-02-20  Richard Henderson  <rth@redhat.com>
8680
8681         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8682         of the operand, rather than assuming TImode.
8683         (ix86_expand_binop_builtin): Cope with commutative patterns
8684         using nonimmediate_operand for both operands.
8685         (ix86_expand_timode_binop_builtin): Likewise.
8686         (ix86_expand_store_builtin): Validate operand 1.
8687         (ix86_expand_unop1_builtin): Likewise.
8688
8689 2002-02-20  Philip Blundell  <philb@gnu.org>
8690
8691         PR 5705
8692         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8693
8694 2002-02-20  Richard Henderson  <rth@redhat.com>
8695
8696         PR c/5615
8697         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8698
8699 2002-02-20  Tom Tromey  <tromey@redhat.com>
8700
8701         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8702         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8703         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8704         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8705         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8706         unconditionally.
8707
8708 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8709
8710         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8711           for (const_int 0) in X not just INTVAL.
8712
8713 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
8714
8715         * doc/extend.texi: Avoid or reduce overfull hboxes.
8716
8717 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
8718
8719         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8720         operations if the field does not start at a mode boundary.
8721
8722 2001-02-20      Joel Sherrill <joel@OARcorp.com>
8723
8724         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8725         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8726         Also done for -Acpu and -Amachine.
8727
8728 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8729
8730         * cppinit.c (init_dependency_output): Take deps output file
8731         from -o if none given with -MF.  Suppress normal output.
8732         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
8733         * doc/cpp.texi, doc/invoke.texi: Update.
8734
8735 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
8736
8737         * toplev.c (output_quoted_string): Write unprintable
8738         characters with octal escapes.
8739
8740 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
8741
8742         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8743         really_call_used[VRSAVE_REGNO] if not Altivec.
8744
8745 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
8746
8747         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8748         MODE_MASK.
8749         (constant_pool_expr_1): Fix formatting.
8750         (rs6000_legitimize_reload_address): Likewise.
8751
8752 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8753
8754         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8755         now that we have one.
8756
8757 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
8758
8759         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
8760         end of first block of bitfields (which was only seven bits);
8761         rename dummy to unused_1; remove comment which is no longer true.
8762
8763 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
8764
8765         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8766
8767 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
8768
8769         PR 5399
8770         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8771         if generating PIC.
8772
8773         PR 5054
8774         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8775         arm_is_longcall_p rather than inspecting call-type cookie
8776         directly.
8777         (call_value_insn) [TARGET_THUMB]: Likewise.
8778
8779 2002-02-19  Graham Stott  <grahams@redhat.com>
8780
8781         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8782
8783 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
8784
8785         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8786         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8787         (FP_SAVE_INLINE): Delete.
8788
8789         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8790         * config/rs6000/eabi.asm: Remove ABI save restore routines.
8791         * config/rs6000/t-ppccomm: Build crtsavres.o.
8792         * config/rs6000/crtsavres.asm: New file.
8793
8794 2002-02-19  Philip Blundell  <philb@gnu.org>
8795
8796         * config/arm/arm.c (use_return_insn): Don't reject interrupt
8797         functions.
8798         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8799         (output_return_instruction): Allow interrupt functions to return with
8800         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
8801         (arm_expand_prologue): Subtract 4 before stacking LR in an
8802         interrupt function.
8803
8804 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
8805
8806         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
8807         decl, not just FUNCTION_DECL.
8808         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
8809         (arm_assemble_integer): Likewise.
8810         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
8811         marked local.
8812
8813 2002-02-19  matthew green  <mrg@eterna.com.au>
8814
8815         * config.gcc (sparc-*-netbsdelf*): Enable target.
8816         (sparc64-*-netbsd*): New target.
8817         * config/sparc/netbsd-elf.h: New file.
8818         * config/sparc/t-netbsd64: New file.
8819
8820 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
8821
8822         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8823
8824 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
8825
8826         * doc/invoke.texi: explicitly list the style guidelines that
8827         -Weffc++ checks for.
8828
8829 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
8830
8831         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8832
8833 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8834
8835         PR other/5718
8836         * gcc.c (cpp_unique_options): Treat -o as indicating object file
8837         only if not -E.  If -E, pass -o through to the preprocessor.
8838
8839 2002-02-19  Kazu Hirata  <kazu@hxi.com>
8840
8841         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8842         register number with an appropriate macro.
8843
8844 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
8845
8846         * doc/rtl.texi (Constants): Close @code tag.
8847
8848 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
8849
8850         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8851         ("mmx_uavgv4hi3"): Same.
8852         ("pmulhrwv4hi3"): Same.
8853
8854         * tree-inline.c (walk_tree): Handle vectors.
8855
8856         * c-common.c (constant_expression_warning): Handle vectors.
8857         (overflow_warning): Same.
8858
8859         * sched-deps.c (sched_analyze_2): Handle vectors.
8860
8861         * rtlanal.c (rtx_unstable_p): Handle vectors.
8862         (rtx_varies_p): Same.
8863         (count_occurrences): Same.
8864         (regs_set_between_p): Same.
8865         (modified_between_p): Same.
8866         (modified_in_p): Same.
8867         (volatile_insn_p): Same.
8868         (volatile_refs_p): Same.
8869         (side_effects_p): Same.
8870         (may_trap_p): Same.
8871         (inequality_comparisons_p): Same.
8872         (replace_regs): Same.
8873         (computed_jump_p_1): Same.
8874
8875         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
8876         argument.
8877         (inner_mode_array): New.
8878         (copy_rtx): Handle vectors.
8879         (copy_most_rtx): Same.
8880         (rtx_equal_p): Same.
8881         (get_mode_alignment): Adjust for vectors.
8882
8883         * resource.c (mark_referenced_resources): Handle vectors.
8884         (mark_set_resources): Same.
8885
8886         * reload1.c (eliminate_regs): Handle vectors.
8887         (elimination_effects): Same.
8888         (scan_paradoxical_subregs): Same.
8889
8890         * reload.c (subst_reg_equivs): Handle vectors.
8891
8892         * regrename.c (scan_rtx): Handle vectors.
8893
8894         * regclass.c (reg_scan_mark_refs): Handle vectors.
8895
8896         * recog.c (find_single_use_1): Handle vectors.
8897
8898         * local-alloc.c (equiv_init_varies_p): Handle vectors.
8899         (contains_replace_regs): Same.
8900         (memref_referenced_p): Same.
8901
8902         * integrate.c (copy_rtx_and_substitute): Handle vectors.
8903         (subst_constants): Same.
8904
8905         * genattrtab.c (attr_copy_rtx): Handle vectors.
8906         (encode_units_mask): Same.
8907         (clear_struct_flag): Same.
8908         (count_sub_rtxs): Same.
8909
8910         * gcse.c (want_to_gcse_p): Handle vectors.
8911         (oprs_unchanged_p): Same.
8912         (hash_expr_1): Same.
8913         (oprs_not_set_p): Same.
8914         (expr_killed_p): Same.
8915         (compute_transp): Same.
8916         (store_ops_ok): Same.
8917
8918         * function.c (purge_addressof_1): Do not allow paradoxical subregs
8919         of vectors.
8920         (fixup_var_refs_1): Same.
8921         (instantiate_virtual_regs_1): Same.
8922
8923         * fold-const.c (operand_equal_p): Handle vectors.
8924         (fold): Same.
8925         (rtl_expr_nonnegative_p): Same.
8926
8927         * flow.c (mark_used_regs): Handle vectors.
8928
8929         * df.c (df_uses_record): Handle vectors.
8930
8931         * cselib.c (cselib_subst_to_values): Handle vectors.
8932         (cselib_mem_conflict_p): Same.
8933         (hash_rtx): Same.
8934
8935         * cse.c (canon_reg): Handle vectors.
8936         (fold_rt): Same.
8937         (cse_process_notes): Same.
8938         (count_reg_usage): Same.
8939         (canon_hash): Same.
8940
8941         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8942
8943         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
8944
8945         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
8946         (gen_rtx): Handle CONST_VECTOR.
8947         (gen_const_vector_0): New.
8948         (copy_rtx_if_shared): CONST_VECTORs can be shared.
8949         (reset_used_flags): Same.
8950         (copy_insn_1): Same.
8951         (initializer_constant_valid_p): Handle VECTOR_CST.
8952
8953         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8954
8955         * doc/rtl.texi (Constants): Document const_vector.
8956         (CONST0_RTX): Update for vectors.
8957         (RTL sharing): Same.
8958
8959         * print-tree.c (print_node): Add case for VECTOR_CST.
8960
8961         * tree.h (TREE_VECTOR_CST_ELTS): New.
8962         (struct tree_vector): New.
8963         (union tree_node): Add vector node.
8964         (build_vector): Add prototype.
8965
8966         * tree.def (VECTOR_CST): New.
8967
8968         * tree.c (build_vector): New.
8969
8970         * expmed.c (make_tree): Handle CONST_VECTOR.
8971
8972         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8973         (CONST_VECTOR_ELT): New.
8974         (CONST_VECTOR_NUNITS): New.
8975
8976         * machmode.h (GET_MODE_INNER): New.
8977         (DEF_MACHMODE): Accept 8th arg.
8978
8979         * machmode.def: Add 8th argument for vector inner mode.
8980         Add inner vector modes for vectors.
8981
8982         * rtl.def (VEC_CONST): Remove.
8983         (CONST_VECTOR): New.
8984
8985         * expr.c (clear_storage): Allow vectors.
8986         (is_zeros_p): Handle VECTOR_CST.
8987
8988         * varasm.c (output_constant_pool): Handle vectors.
8989         (rtx_const): Add veclo and vechi fields.
8990         (kind): Add RTX_VECTOR.
8991         (decode_rtx_const): Add case for vector.
8992
8993         * config/rs6000/rs6000-protos.h: Add zero_constant.
8994
8995         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
8996         constants.  Force easy vector constants into memory.
8997         (easy_vector_constant): New.
8998         (emit_easy_vector_constant): New.
8999         (rs6000_legitimize_reload_address): Do not generate bad reloads on
9000         darwin.
9001
9002         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9003         instruction does.
9004         ("altivec_lvxl"): Same.
9005         (altivec_lvebx): Same.
9006         (altivec_lvehx): Same.
9007         (altivec_lvewx): Same.
9008         ("*movv4si_const0"): New.
9009         ("*movv4sf_const0"): New.
9010         ("*movv8hi_const0"): New.
9011         ("*movv16qi_const0"): New.
9012
9013 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9014
9015         * config/h8300/h8300.c (notice_update_cc): Use
9016         cc_status.value2.
9017
9018 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9019
9020         * config/h8300/h8300.md (divmod patterns): Change the
9021         constraints for operands[1] to register_operand.
9022
9023 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9024
9025         * config/h8300/h8300-protos.h: Remove the prototype for
9026         p_operand.
9027         * config/h8300/h8300.c (p_operand): Remove.
9028         * config/h8300/h8300.md: Replace p_operand with
9029         const_int_operand.
9030
9031 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9032
9033         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9034         comment.
9035         (output_return_instruction): Allow use of LDR to unstack
9036         return addresss even for interrupt handlers or when
9037         interworking.  If compiling for ARMv5, use interworking-safe
9038         return instructions by default.  Remove duplicated code and
9039         lengthy "strcat" sequences.
9040
9041 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9042
9043         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9044         (LINK_EH_SPEC): Define.
9045         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9046
9047 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9048
9049         * config/s390/s390.c (s390_emit_prologue): Do not set the
9050         frame_related flag for call-clobbered registers.
9051
9052 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
9053
9054         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9055         (construct_container): Fix handling of SSE operands.
9056         (ix86_expand_builtin): Fix handling of 64bit pointers.
9057         (mmx_maskmovq_rex): New pattern.
9058
9059 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
9060
9061         * regrename.c (kill_set_value): Handle subregs properly.
9062
9063 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
9064
9065         * objc/objc-act.c (handle_impent): Remove leading '*'
9066         from objc_class_name.
9067
9068 2002-02-17  Richard Henderson  <rth@redhat.com>
9069
9070         * config/alpha/alpha.c (some_small_symbolic_operand,
9071         some_small_symbolic_operand_1, split_small_symbolic_operand,
9072         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9073         Handle small SYMBOL_REFs anywhere, not just inside memories.
9074         * config/alpha/alpha-protos.h: Update.
9075         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9076         * config/alpha/alpha.md (small symbolic operand splitter): Update.
9077
9078 2002-02-17  Roland McGrath  <roland@frob.com>
9079
9080         * config.gcc (powerpc-*-gnu-gnualtivec*,
9081         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9082         * config/rs6000/gnu.h: New file.
9083         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9084         Grok "gnu" in rs6000_abi_name.
9085         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9086         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9087         Grok -mcall-gnu analogous to -mcall-linux et al.
9088         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9089         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9090         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9091
9092 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
9093
9094         PR c/3444:
9095         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9096         shortening.
9097
9098 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9099
9100         * config/cris/cris.h: Undefine STARTFILE_SPEC and
9101         ENDFILE_SPEC before (re)defining them.
9102
9103 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9104
9105         * config/h8300/h8300.c: Fix formatting.
9106         * config/h8300/h8300.h: Likewise.
9107
9108 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9109
9110         * doc/tm.texi: Explain why empty strings should not be
9111         marked for translation.
9112
9113 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9114
9115         * final.c (output_operand_lossage): Changed to accept
9116         printf style arguments. Change calls where necessary.
9117         * output.h (output_operand_lossage): Change declaration
9118         accordingly. Update copyright.
9119         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9120         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9121         Update copyright date where necessary.
9122
9123         * config/i386/i386.c (print_operand): Likewise. Remove use of
9124         sprintf.
9125
9126         * config/cris/cris.c (cris_operand_lossage): Likewise.
9127         Rename parameter so that exgettext recognizes it as
9128         translatable message.
9129         (LOSE_AND_RETURN): Rename parameter to msgid.
9130
9131 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9132
9133         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9134         hard coded register number with an appropriate macro.
9135         (HARD_REGNO_MODE_OK): Likewise.
9136         (ARG_POINTER_REGNUM): Likewise.
9137         (STATIC_CHAIN_REGNUM): Likewise.
9138         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9139         * config/h8300/h8300.md (define_constants): Define more
9140         register numbers.
9141
9142 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9143
9144         * config/i386/i386.h: Don't mark empty strings for translation.
9145
9146 2002-02-16  H.J. Lu <hjl@gnu.org>
9147
9148         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9149
9150 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
9151
9152         * cppinit.c (merge_include_chains): Check for brack being
9153         NULL before attempting to merge it with qtail.
9154
9155 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
9156
9157         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9158         DBX_DEBUG.
9159
9160 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9161
9162         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9163
9164 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9165
9166         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9167         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9168         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9169
9170 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9171
9172         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9173         now only if !TARGET_FIX.
9174         (*movsi_nt_vms_fix): New pattern.
9175
9176 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
9177
9178         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9179         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9180         (alpha_sa_mask, alpha_sa_size): Reflect above change.
9181         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9182         (alpha_start_function, alpha_expand_epilogue): Likewise.
9183         (unicosmk_gen_dsib): Likewise.
9184
9185 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9186
9187         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9188
9189 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
9190
9191         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9192         check_and_change_labels, s390_final_chunkify): Delete.
9193         (s390_split_branches, s390_chunkify_pool): New functions.
9194         (s390_function_prologue): Call them.
9195
9196         * config/s390/s390.h (S390_REL_MAX): Delete.
9197         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9198
9199         * config/s390/s390.md (cjump, icjump, jump): Fix length
9200         attribute calculation.
9201
9202
9203 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
9204
9205         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9206         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9207
9208 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9209
9210         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9211         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9212         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9213
9214 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9215
9216         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9217
9218 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9219
9220         * reload.c (find_dummy_reload): Check that an output register
9221         is valid for its mode.
9222
9223 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
9224
9225         * combine.c (known_cond): After replacing the REG of a SUBREG, try
9226         to simplify it.
9227
9228         * function.c (assign_parms): Demote promoted argument passed by
9229         transparent reference.
9230
9231 2001-02-14      Joel Sherrill <joel@OARcorp.com>
9232
9233         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9234         -Acpu() and -Amachine() to eliminate warnings.
9235
9236 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
9237
9238         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9239
9240 2002-02-14  Kazu Hirata  <kazu@hxi.com>
9241
9242         * config/h8300/h8300-protos.h: Update the prototype for
9243         const_costs.
9244         * config/h8300/h8300.c (const_costs): Treat SET as a little
9245         more expensive operation.
9246         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9247         reference to const_costs.
9248
9249 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
9250
9251         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9252
9253 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
9254
9255         PR c/5503:
9256         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9257         use arguments from newtype.
9258
9259 2002-02-13  Eric Christopher  <echristo@redhat.com>
9260
9261         * config/mips/mips.c (override_options): Add check for march/mipsX
9262         on the same command line. Fix error message in cpu processing.
9263         Remove architecture and ISA checks.
9264
9265 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
9266
9267         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9268
9269         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9270
9271 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
9272
9273         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9274         alternatives.
9275         ("*movv8hi_internal1"): Same.
9276         ("*movv16qi_internal1"): Same.
9277         ("*movv4sf_internal1"): Same.
9278
9279         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9280         not push_reload for altivec modes.
9281
9282 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
9283
9284         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9285         all RTEMS targets including removal of #includes from config/*/rtems*.h
9286         file and adding them to tm_file setting. Added xm_defines=POSIX to
9287         many targets.
9288         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9289         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9290         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9291         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9292         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9293         config/m68k/rtemself.h: Ditto.
9294         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9295         config/mips/rtems64.h: Ditto.
9296         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9297         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9298         Ditto.
9299         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9300         config/sparc/rtemself.h: Ditto.
9301         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9302         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9303         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9304         more like arm-elf.
9305         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9306         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9307         target made more similar to i386-elf.
9308         * config/i386/t-rtems-i386: Added soft float support and multilibs.
9309         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9310         be similar to config/m68k/t-m68kelf.
9311         * gthr-rtems.h: Encapsulate with extern "C" for C++.
9312
9313 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
9314
9315         * regmove.c (kill_value): Handle subregs.
9316
9317 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
9318
9319         * i386.md (mul patterns): Allow memory operand to be first;
9320         add expanders where needed; fix constraints.
9321         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9322         Allow memory operand to be the first.
9323
9324         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9325         operands.
9326
9327 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9328
9329         PR c/5681:
9330         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9331         GET_MODE (x).
9332
9333 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9334
9335         PR optimization/5547:
9336         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9337         all valid IA-32 address modes involving non-scaled %ebx and
9338         GOT/GOTOFF as displacement.
9339
9340 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
9341
9342         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9343         after emitting ltorg insns.
9344
9345         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9346         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9347         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9348         *abssf2): Fix "op_type" attribute.
9349
9350 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
9351
9352         * mkconfig.sh: Avoid using a subshell redirect.
9353         ($output.T): Change to $(output)T.
9354         (ENABLE_NLS): Remove unneeded undef.
9355
9356         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9357         * config/alpha/x-vms (libsubdir): Define.
9358
9359         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9360         register frame procedures. Optimize retrieving context.
9361
9362         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9363         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9364         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9365
9366 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9367
9368         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9369         Make same change as for find_base_value.
9370
9371 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9372
9373         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9374         of QImode and SImode.
9375
9376 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9377
9378         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9379         length computation of movsi.
9380         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9381
9382 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9383
9384         * config/h8300/h8300.md (subqi3): Tighten the predicate for
9385         operands[2] to register_operand.
9386
9387 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9388
9389         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9390
9391 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
9392
9393         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9394         for altivec_lvx* and altivec_stvx*.
9395         ("*movv4si_internal"): Add constraint for loading from GPRs.
9396         ("*movv8hi_internal1"): Same.
9397         ("*movv16qi_internal1"): Same.
9398         ("*movv4sf_internal1"): Same.
9399
9400         * config/rs6000/rs6000.c (altivec_register_operand): New.
9401
9402         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9403         altivec_register_operand.
9404
9405 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
9406
9407         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9408         handle SYMBOL_REF.
9409
9410 2002-02-13  Stan Shebs  <shebs@apple.com>
9411
9412         * c-typeck.c (digest_init): Handle vectors.
9413         (really_start_incremental_init): Same.
9414         (pop_init_level): Same.
9415         (process_init_element): Same.
9416
9417         * varasm.c (output_constant): Same.
9418
9419         * expr.c (clear_storage): Same.
9420         (store_constructor): Same.
9421
9422 2002-02-12  Eric Christopher  <echristo@redhat.com>
9423
9424         * explow.c (hard_function_value): Add comment explaining
9425         signed/unsigned comparison.
9426
9427 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
9428
9429         * jump.c (never_reached_warning): Add finish argument.
9430         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9431         real insn after end.
9432         * rtl.h (never_reached_warning): Adjust prototype.
9433         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9434         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9435         never_reached_warning.
9436
9437 2002-02-12  Graham Stott  <grahams@redhat.com>
9438
9439         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9440
9441 2002-02-12  Kazu Hirata  <kazu@hxi.com>
9442
9443         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9444         logical shifts on H8/300.
9445         (shift_alg_si): Improve several shifts on H8/300.
9446         (get_shift_alg): Likewise.
9447
9448 2002-02-12  Graham Stott  <grahams@redhat.com>
9449
9450         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9451
9452 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9453
9454         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9455         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9456
9457 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
9458
9459         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9460         non-CONST_INT through default_assemble_integer.
9461         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9462         <case 8>: Abort for CONST_DOUBLE.
9463
9464 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9465
9466         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9467         is specified.
9468         * config/pa/pa-linux.h (LIB_SPEC): Delete.
9469         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9470
9471 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
9472
9473         * config/stormy16/stormy16.md (zero_extendqihi2): New.
9474
9475 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
9476
9477         * regrename.c (regrename_optimize): Don't accept a
9478         part-clobbered register if the replaced register is not part
9479         clobbered.
9480
9481         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9482         take padding into account when computing the argument value.
9483
9484         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9485
9486         * combine.c (try_combine): Apply substitutions in
9487         CALL_INSN_FUNCTION_USAGE too.
9488
9489 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
9490
9491         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9492         __builtin_altivec_abs*.
9493         (bdesc_abs): New.
9494
9495         * config/rs6000/rs6000.h (rs6000_builtins): Add
9496         ALTIVEC_BUILTIN_ABS*.
9497
9498         * config/rs6000/altivec.h: Use const char for builtins expecting
9499         literals.
9500         (vec_abs): New versions for C and C++.
9501         (vec_abss): Same.
9502
9503 2002-02-10  Kazu Hirata  <kazu@hxi.com>
9504
9505         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9506         using Pmode.
9507
9508 2002-02-10  Kazu Hirata  <kazu@hxi.com>
9509
9510         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9511         constant definition from h8300.md.
9512         (FRAME_POINTER_REGNUM): Likewise.
9513         * config/h8300/h8300.md (define_constants): Add FP_REG.
9514
9515 2002-02-10  Kazu Hirata  <kazu@hxi.com>
9516
9517         * config/h8300/h8300.c (print_operand): Remove redundant code.
9518
9519 2002-02-10  Kazu Hirata  <kazu@hxi.com>
9520
9521         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9522         * config/h8300/h8300.c (byte_reg): Make it static.
9523
9524 2002-02-10  Richard Henderson  <rth@redhat.com>
9525
9526         PR c/5623
9527         * c-typeck.c (incomplete_type_error): Handle flexible array members.
9528
9529 2002-02-10  Richard Henderson  <rth@redhat.com>
9530
9531         PR c++/5624
9532         * tree.c (append_random_chars): Don't abort if main_input_filename
9533         does not exist.
9534
9535 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
9536
9537         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9538
9539 2002-02-10  Kazu Hirata  <kazu@hxi.com>
9540
9541         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9542         (pushhi1): Likewise.
9543
9544 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9545
9546         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9547         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9548
9549 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
9550
9551         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9552         remove MASK_VIS.
9553         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
9554
9555 2002-02-09  Kazu Hirata  <kazu@hxi.com>
9556
9557         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9558         a half of an SImode register on H8/300.
9559
9560 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
9561
9562         * i386.md (movdi_2): Add missing '!'.
9563
9564 2002-02-09  Kazu Hirata  <kazu@hxi.com>
9565
9566         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
9567         definitions.
9568
9569 2002-02-09  Kazu Hirata  <kazu@hxi.com>
9570
9571         * config/h8300/h8300.md (length): Correct the distance valid
9572         for the short branch.
9573
9574 2002-02-09  Kazu Hirata  <kazu@hxi.com>
9575
9576         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9577
9578 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
9579
9580         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9581         registers in SImode.
9582         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9583         part-clobbered.
9584
9585         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9586         patch.
9587
9588         Contribute sh64-elf.
9589         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
9590         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9591         (sh_cannot_modify_jumps_p): New function.
9592         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9593         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9594         (sh_ms_bitfield_layout_p): New function.
9595         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
9596                     Zack Weinberg  <zack@codesourcery.com>
9597         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9598         expand_simple_binop instead of expand_binop.
9599         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
9600         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9601         use of .quad and .uaquad.
9602         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9603         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9604         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9605         * config/sh/sh.md (movdi_const, movdi_const_32bit,
9606         movdi_const_16bit): Make sure all CONSTs have modes.
9607         (sym2PIC): Ditto, but by adjusting all callers.
9608         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9609         if the prologue calls the SHmedia argument decoder or register
9610         saver.
9611         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9612         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9613         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9614         (sh_expand_epilogue): Don't emit USE of return target register.
9615         (prepare_move_operands): Legitimize DImode PIC addresses.
9616         (sh_media_register_for_return): Skip tr0, used to initialize the
9617         PIC register.
9618         (sh_expand_prologue): Remove explicit USE of return register.
9619         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
9620         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
9621         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9622         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9623         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9624         EXTRA_CONSTRAINT_T.
9625         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9626         (MOVI_SHORI_BASE_OPERAND_P): New.
9627         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9628         (EXTRA_CONSTRAINT_T): Define in terms of them.
9629         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9630         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9631         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9632         alternatives supporting TARGET_REGS.
9633         (UNSPEC_GOTPLT): New constant.
9634         (movdi split): Move incrementing of LABEL_NUSES...
9635         (movdi_const, movdi_const_32bit): Here.  Use
9636         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9637         (movdi_const_16bit): New.
9638         (call, call_value) [flag_pic]: Use GOTPLT.
9639         (call_pop, call_value_pop): New expands.
9640         (call_pop_compact, call_pop_rettramp): New insns.
9641         (call_value_pop_compact, call_value_pop_rettramp): New insns.
9642         (sibcall) [flag_pic]: Use GOT.
9643         (builtint_setjmp_receiver): Remove bogus, unused expand.
9644         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9645         (*pt, *ptb, ptrel): New insns.
9646         (sym2GOT): Handle DImode GOT.
9647         (sym2GOTPLT, symGOTPLT2reg): New expands.
9648         (sym2PIC): New expand.
9649         (shcompact_return_tramp): Use GOTPLT to return trampoline.
9650         (shcompact_return_tramp_i): Use return register explicitly.
9651         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9652         disable flag_reorder_blocks.
9653         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9654         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9655         clobbers, for clarity.
9656         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9657         restoring of r0 in macl as MAYBE_DEAD.
9658         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
9659         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9660         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9661         alter_subreg all over.
9662         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9663         reload, instead of emitting instructions that would require
9664         reloading.
9665         (casesi_load_media): Add missing modes.
9666         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
9667         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9668         as used if the argument decoder is called.
9669         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
9670         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9671         Pmode, then extend it to DImode if necessary.
9672         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
9673         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9674         constants in FPU-enabled SHmedia, let them be loaded from memory.
9675         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
9676         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9677         Adjust whitespace in assembly output templates.
9678         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
9679         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9680         mode of if_then_else.
9681         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
9682         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9683         sh.h.
9684         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
9685                     Joern Rennecke <amylaar@redhat.com>
9686         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9687         (SUBTARGET_CPP_PTR_SPEC): New.
9688         (SUBTARGET_CPP_SPEC): Remove.
9689         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
9690         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9691         Fix typo in previous checkin.
9692         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
9693         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9694         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
9695                     Alexandre Oliva  <aoliva@redhat.com>
9696         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9697         what single FP register can hold for SHmedia target.
9698         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
9699                     Alexandre Oliva  <aoliva@redhat.com>
9700         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9701         Do not split into SUBREG.
9702         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
9703         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9704         and added new functions as specified in SH5 ABI r9.
9705         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
9706         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9707         8-byte boundary.
9708         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
9709         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9710         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
9711         and consttable_window_ends.
9712         2001-06-03  Graham Stott  <grahams@redhat,com>
9713         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9714         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
9715         * config/sh/sh.c (print_operand): Handle floating-point pair,
9716         vector and matrix registers.
9717         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9718         vector modes into account.
9719         * config/sh/sh.md (movv2sf): Split move between registers into
9720         movdf.
9721         (movv4sf, movv16sf): Introduce insns that get split only after
9722         reload.
9723         * config/sh/shmedia.h: Fix Copyright dates.
9724         * config/sh/ushmedia.h: Likewise.  Move loop counter
9725         declarations into conditionals that uses them.
9726         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
9727         loop boundary.
9728         * config/sh/sshmedia.h: Fix Copyright dates.
9729         (sh_media_PUTCFG): Fix constraints.
9730         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
9731         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
9732         ptrmemfunc_vbit_in_delta for SH5.
9733         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
9734         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
9735         * invoke.texi: Likewise.
9736         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
9737         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
9738         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
9739         GCC_pop_shmedia_regs_nofpu): New global symbols.
9740         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
9741         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
9742         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
9743         compact function with nonlocal labels.
9744         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
9745         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
9746         (initial_elimination_offset): Account for their stack space.
9747         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
9748         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
9749         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
9750         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
9751         least one of the operands to be a register.
9752         (movv2sf): Likewise.  Renamed to movv2sf_i.
9753         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
9754         prepare_move_operands() before emitting SHmedia insns.
9755         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
9756         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
9757         Don't save nor initialize r12.  Don't mis-align the stack.
9758         Pad the code with a nop.
9759         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
9760         stack.
9761         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
9762         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
9763         [__SHMEDIA__]: Implement.
9764         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
9765         * config/sh/sh.md: Set latency of `pt' closer to reality.
9766         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
9767         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
9768         Set move, load and store type attributes.
9769         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
9770         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
9771         profiling.
9772         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9773         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9774         * config/sh/sh.c (sh_media_register_for_return): New function.
9775         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9776         branch-target register.
9777         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9778         * config/sh/sh.md (return_media_i): Use any call-clobbered
9779         branch-target register.
9780         (return_media): If r18 wasn't copied in the prologue, copy it
9781         here.
9782         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9783         Clear class FP0_REGS.
9784         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9785         from elf.h.
9786         2001-03-08  DJ Delorie  <dj@redhat.com>
9787         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9788         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
9789         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9790         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
9791         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9792         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
9793         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9794         return value correctly for call_cookie.
9795         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
9796         * config/sh/crt1.asm (start): Modified so as to call
9797         ___setup_argv_and_call_main.
9798         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
9799         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
9800         SHmedia mode.
9801         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
9802         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
9803         (STRIP_NAME_ENCODING): Use it.
9804         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
9805         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
9806         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
9807         prepare_scc_operands().
9808         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
9809         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
9810         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
9811         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
9812         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
9813         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
9814         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
9815         used in shcompact_incoming_args.
9816         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
9817         change.
9818         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9819         mode.
9820         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
9821         Adjust accordingly.
9822         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9823         Simplify.  Adjust.  Add sanity check.
9824         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
9825         FPU_SINGLE_BIT.
9826         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9827         TARGET_SHCOMPACT.
9828         (udivsi3, divsi3): Use them.
9829         (force_mode_for_call): New insn.
9830         (call, call_value, sibcall_value): Emit it before SHcompact
9831         calls.
9832         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
9833         * config/sh/sh.md (call, call_value, sibcall): Make sure the
9834         call cookie is non-NULL before taking its value.
9835         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
9836         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
9837         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
9838         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
9839         block.
9840         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
9841         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
9842         temporary for stack adjusts.  Use MACL and MACH to pass
9843         arguments to shcompact_incoming_args.
9844         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
9845         clobber r1.
9846         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
9847         (nested_trampoline): Load static chain address into r1.
9848         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
9849         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
9850         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
9851         fp_arith_reg_operand().
9852         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
9853         * config/sh/sh.md (casesi): Sign-extend the first two operands,
9854         and use signed compares for them.
9855         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
9856         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
9857         ones properly aligned.
9858         (find_barrier): Account for extra alignment needed for 8-byte wide
9859         constants.
9860         (machine_dependent_reorg): Require a label for the second 4-byte
9861         constant after an 8-byte one.
9862         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
9863         change.
9864         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
9865         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
9866         last_float when switching float modes.
9867         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
9868         auto-increment for general-purpose registers.
9869         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
9870         result.
9871         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
9872         for stack adjust.
9873         * config/sh/sh.c (sh_builtin_saveregs): Support using all
9874         registers for varargs.
9875         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
9876         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
9877         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
9878         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
9879         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
9880         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
9881         call_cookie accordingly.
9882         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
9883         (SHCOMPACT_BYREF): Likewise.
9884         (SHCOMPACT_FORCE_ON_STACK): New macro.
9885         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
9886         (sh_builtin_saveregs): Likewise.
9887         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9888         shcompact_incoming_args): Use new shift values.  Support
9889         sequences of consecutive and non-consecutive pushes/pops.
9890         * config/sh/sh.md (return): Don't explicitly use PR_REG.
9891         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
9892         * config/sh/sh.h (TEXT_SECTION): Define.
9893         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
9894         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
9895         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
9896         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
9897         return values on FPU-enabled SHmedia.
9898         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
9899         FPU-enabled SHmedia.
9900         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
9901         value is returned in a non-FP reg and is not returned by
9902         reference.
9903         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
9904         jump_ind.
9905         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
9906         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
9907         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
9908         quad-aligned to be passed by callee-copy reference.
9909         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
9910         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
9911         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
9912         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
9913         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
9914         copying low-numbered FP regs to r7 and r8.
9915         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
9916         FP regs to general-purpose regs only if the copy was passed on the
9917         stack.
9918         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
9919         copying FP reg to r9.
9920         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
9921         copy FP regs to general-purpose regs only in outgoing calls.
9922         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
9923         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
9924         HOST_WIDE_INT.
9925         * config/sh/sh.h (struct sh_args): Document all fields.
9926         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
9927         passed partially on the stack should not consider making
9928         sibcalls.
9929         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
9930         stack_regs only for incoming calls.  When passing FP args,
9931         make sure there are FP regs available before modifying
9932         call_cookie.
9933         (SHCOMPACT_BYREF): Pass double args in general-purpose
9934         registers by reference.
9935         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
9936         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
9937         attempt to generate sibcalls if the caller got any arguments
9938         by reference.
9939         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
9940         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
9941         to 8-byte boundaries.
9942         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
9943         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
9944         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
9945         stored in the stack.
9946         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
9947         for the offsets to have the ISA bit set.
9948         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
9949         invocation.  Use beq instead of bgt to mark end of sequence of
9950         loads.
9951         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
9952         bgt to mark end of sequence of stores.
9953         * config/sh/sh.c (arith_operand): Don't check whether
9954         CONST_OK_FOR_J for now.
9955         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
9956         instead of long for conversion.
9957         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
9958         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
9959         before passing it to fprintf.
9960         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
9961         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
9962         Call set_fpscr before reading/writing SR.
9963         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
9964         Call set_fpscr.
9965         * config/sh/lib1funcs.asm: Add `.align 2' directives before
9966         SHmedia code.
9967         (FMOVD_WORKS): Define on SH5 with FPU.
9968         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
9969         setting.
9970         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9971         _fpscr_values.
9972         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
9973         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
9974         address.
9975         (ia_main_table): Ditto.
9976         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
9977         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
9978         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
9979         the definitions from sh.h.
9980         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
9981         TARGET_SH5.
9982         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
9983         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
9984         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9985         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
9986         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
9987         Increment LABEL_NUSES.
9988
9989         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9990         TARGET_SH5.
9991         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
9992         defined.
9993         * config/sh/elf.h (SIZE_TYPE): Likewise.
9994         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9995         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9996         shcompact_incoming_args): Load switch table addresses using
9997         datalabel.
9998         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9999         (NO_BUILTIN_SIZE_TYPE): Define.
10000         (SIZE_TYPE): Don't define.
10001         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10002         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10003         definition of __SH5__=32 for -m5-compact-nofpu.
10004         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10005         ADDR_DIFF_VEC.
10006         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
10007         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10008         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
10009         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10010         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10011         (INSN_LENGTH_ALIGNMENT): Likewise.
10012         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10013         * config/sh/sh.md (call, call_value, sibcall): Simplify
10014         copying of non-branch-target register.
10015         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10016         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
10017         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10018         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10019         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10020         floating-point values as structs.
10021         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10022         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10023         general-purpose register.
10024         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10025         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10026         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10027         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10028         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10029         (ENCODE_SECTION_INFO): Enclose variables and constants in
10030         DATALABEL unspecs.
10031         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10032         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10033         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10034         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10035         only for LABEL_REFs.  For SYMBOL_REFs, prepend
10036         SH_DATALABEL_ENCODING to the symbol name.
10037         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10038         convert_mode().
10039         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10040         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10041         UNSPEC_DATALABEL.
10042         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10043         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10044         (DATALABEL_REF_P): Don't require CONST.
10045         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10046         REL label.
10047         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
10048         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10049         right.
10050         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10051         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10052         Use shallow_copy_rtx and PUT_MODE to change the mode of
10053         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10054         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10055         on SHmedia using GENERAL_REGs.
10056         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10057         bltu_media_i): Fix reversion of conditions.
10058         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10059         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10060         * config/sh/sh.c (output_far_jump): Save r13 in macl.
10061         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
10062         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10063         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
10064         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10065         (GCC_nested_trampoline): Likewise.
10066         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10067         * config/sh/sh.c (gen_datalabel_ref): Define.
10068         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10069         (INITIALIZE_TRAMPOLINE): Likewise.
10070         (TRAMPOLINE_ADJUST_ADDRESS): Define.
10071         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10072         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10073         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10074         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10075         (ic_invalidate): Adjust for SH5.
10076         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10077         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10078         _nested_trampoline.
10079         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
10080         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10081         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10082         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10083         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10084         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10085         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10086         * config/sh/sh.c (target_reg_operand): Match only target-branch
10087         registers and pseudos that aren't virtual registers.
10088         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10089         Copy operands that don't match target_reg_operand to pseudos.
10090         (call_media, call_value_media, sibcall_media): Use
10091         target_reg_operand instead of target_operand.
10092         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
10093         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10094         * config/sh/sh.c (target_reg_operand): Match hardware registers
10095         other than branch-target registers.
10096         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10097         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10098         (fpscr_values) [SH5 == 32]: Define.
10099         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10100         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10101         Handle function addresses coming in SUBREGs.
10102         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
10103         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10104         shcompact_return_trampoline): Use datalabel where appropriate.
10105         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
10106         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10107         general-purpose register to copy one branch-target register to
10108         another.
10109         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10110         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10111         SYMBOL_REFs with VOIDmode.
10112         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10113         bltu_media_i): New insns.
10114         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10115         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10116         (INIT_CUMULATIVE_ARGS): Likewise.
10117         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
10118         * machmode.def (V16SFmode): New mode.
10119         * c-common.c (type_for_mode): Support V2SF and V16SF.
10120         * tree.c (build_common_tree_nodes_2): Likewise.
10121         * tree.h (tree_index): Likewise.
10122         * calls.c (emit_call_1): Take args_so_far.  Adjust all
10123         callers.  Introduce CALL_POPS_ARGS.
10124         * tm.texi (CALL_POPS_ARGS): Document.
10125         * config/sh/crt1.asm: Implement in SHmedia mode.
10126         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10127         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10128         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10129         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10130         Implement divsi and udivsi in SHmedia mode.  Introduce
10131         SHcompact trampolines.
10132         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10133         only in SHmedia64.
10134         (regno_reg_class): Rewrite.
10135         (fp_reg_names): Remove.
10136         (sh_register_names, sh_additional_register_names): New.
10137         (print_operand): Added `u'.  Support SUBREGs in addresses.
10138         Add parentheses around shifted CONSTs.
10139         (output_file_start): Output .mode and .abi directives.
10140         (shiftcosts, addsubcosts, multcosts): Adjust.
10141         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
10142         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
10143         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
10144         bytes, not registers.  Take into account the need for the
10145         SHcompact incoming args trampoline.  Adjust all callers.
10146         (sh_expand_prologue): Take stack_regs into account.  Call
10147         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
10148         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
10149         stack aligned as per SH5 ABI.
10150         (sh_builtin_saveregs): Support SH5 ABI.
10151         (sh_build_va_list, sh_va_start): Likewise.
10152         (initial_elimination_offset): Take alignment into account.
10153         Compute location of PR according to the SH5 stack frame.
10154         (arith_reg_operand): Reject branch-target registers.
10155         (shmedia_6bit_operand): New.
10156         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10157         (target_reg_operand): Match DImode only.  Accept SUBREGs.
10158         (target_operand): New.
10159         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10160         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
10161         SIBCALL_REGS for SHmedia.
10162         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10163         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10164         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10165         (TARGET_SWITCHES): New SH5 flags.
10166         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
10167         VALID_REGISTER_P to disable unsupported registers.
10168         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10169         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10170         (FUNCTION_ARG_PADDING): Define.
10171         (FASTEST_ALIGNMENT): Adjust.
10172         (SH_REGISTER_NAMES_INITIALIZER): New.
10173         (sh_register_names): Declare.
10174         (DEBUG_REGISTER_NAMES): Define.
10175         (REGISTER_NAMES): Define based on sh_register_names.
10176         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10177         (sh_additional_register_names): Declare.
10178         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10179         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10180         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10181         (REGISTER_NATURAL_MODE): Define.
10182         (FIRST_PSEUDO_REGISTER): Adjust.
10183         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10184         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10185         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10186         (VECTOR_MODE_SUPPORTED_P): Define.
10187         (REG_CLASS_CONTENTS): Adjust.
10188         (SMALL_REGISTER_CLASSES): Adjust.
10189         (REG_ALLOC_ORDER): Adjust.
10190         (INDEX_REG_CLASS): Adjust.
10191         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10192         (CONST_OK_FOR_LETTER_P): Adjust.
10193         (PREFERRED_RELOAD_CLASS): Adjust.
10194         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10195         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10196         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10197         (FIRST_FP_PARM_REG): Adjust.
10198         (CALL_POPS_ARGS): Define.
10199         (FUNCTION_ARG_REGNO_P): Adjust.
10200         (struct sh_args): New fields.
10201         (GET_SH_ARG_CLASS): Adjust.
10202         (INIT_CUMULATIVE_ARGS): Adjust.
10203         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10204         (FUNCTION_ARG_ADVANCE): Adjust.
10205         (FUNCTION_ARG): Adjust.
10206         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10207         (FUNCTION_ARG_CALLEE_COPIES): Define.
10208         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10209         (STRICT_ARGUMENT_NAMING): Define.
10210         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10211         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10212         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10213         (SETUP_INCOMING_VARARGS): Adjust.
10214         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10215         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10216         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10217         (SUBREG_OK_FOR_INDEX_P): Adjust.
10218         (EXTRA_CONSTRAINT_S): Update.
10219         (EXTRA_CONSTRAINT_T): New.
10220         (EXTRA_CONSTRAINT): Adjust.
10221         (GO_IF_LEGITIMATE_INDEX): Adjust.
10222         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10223         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10224         (MOVE_MAX): Adjust.
10225         (MAX_MOVE_MAX): Define.
10226         (Pmode): Adjust.
10227         (CONST_COSTS): Adjust.
10228         (REGISTER_MOVE_COST): Adjust.
10229         (BRANCH_COST): Adjust.
10230         (TEXT_SECTION_ASM_OP): Adjust.
10231         (DBX_REGISTER_NUMBER): Adjust.
10232         (ASM_OUTPUT_DOUBLE_INT): New.
10233         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10234         (PREDICATE_CODES): Adjust.
10235         (PROMOTE_MODE): Adjust.
10236         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10237         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10238         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10239         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10240         (DR0_REG, DR2_REG, DR4_REG): Renumber.
10241         (TR0_REG, TR1_REG, TR2_REG): New.
10242         (XD0_REG): Renumber.
10243         (UNSPEC_COMPACT_ARGS): New.
10244         (type): Added pt and ptabs.
10245         (length): Default to 4 on SHmedia.  Default pt length to 12
10246         and     20 on SHmedia32 and SHmedia64, respectively.
10247         (pt): New function unit.
10248         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
10249         Add whitespace between operands of SHmedia instructions.
10250         (movdicc): Fix.
10251         (adddi3_media, addsi3_media): Adjust constraints.
10252         (subsi3) [SHmedia]: Force operand 1 into a register.
10253         (udivsi3_i1_media, udivsi3_i4_media): New.
10254         (udivsi3): Support SHmedia.
10255         (divsi3_i1_media, divsi3_i4_media): New.
10256         (divsi3): Support SHmedia.
10257         (anddi3, iordi3, xordi3): Adjust constraints.
10258         (zero_extendhidi2, zero_extendqidi2): New.
10259         (extendsidi2, extendhidi2, extendqidi2): New.
10260         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10261         (pop_e, pop_fpul, pop_4): Likewise.
10262         (movsi_media): Support FP and BT registers.
10263         (movsi_media_nofpu): New.  Adjust splits to DImode.
10264         (lduw, ldub): Renamed to zero_extend* above.
10265         (movqi_media): Fix typo.
10266         (movdi_media): Support FP and BT registers.
10267         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
10268         (movdi_const_32bit): New.
10269         (shori_media): Require immediate operand.  Use `u' for output.
10270         (movdf_media, movsf_media): Simplified.
10271         (movdf_media_nofpu, movsf_media_nofpu): New.
10272         (movdf, movsf): Adjust
10273         (movv2sf, movv2sf, movv16sf): New.
10274         (beq_media, beq_media_i): Adjust constraints.  Don't use
10275         scratch BT register.
10276         (bne_media, bne_media_i): Likewise.
10277         (bgt_media, bgt_media_i): Likewise.
10278         (bge_media, bge_media_i): Likewise.
10279         (bgtu_media, bgtu_media_i): Likewise.
10280         (bgeu_media, bgeu_media_i): Likewise.
10281         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10282         bunordered): Emit jump insn.  Force operands to registers when
10283         needed.
10284         (jump_media, jump): Simplify.
10285         (call_compact, call_compact_rettramp): New.
10286         (call_value_compact, call_value_compact_rettramp): New.
10287         (call_media, call_value_media): Simplify.
10288         (sibcall_compact, sibcall_media): New.
10289         (call, call_value): Adjust for SHmedia and SHcompact.
10290         (sibcall, sibcall_value, untyped_call): Likewise.
10291         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10292         (indirect_jump): Adjust for SHmedia.
10293         (casesi_jump_media): New.
10294         (nop): Re-enable for SHmedia.
10295         (call_site): Restrict to SH1.
10296         (casesi): Adjust for SHmedia.
10297         (casesi_shift_media, casesi_load_media): New.
10298         (return): Explicitly use PR register.  Call return trampoline
10299         on SHcompact.
10300         (return_i): Explicitly use PR register.
10301         (shcompact_return_tramp, shcompact_return_tramp_i): New.
10302         (return_media): Adjust.
10303         (shcompact_incoming_args): New.
10304         (epilogue): Adjust.
10305         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10306         (movstrsi): Disable on SH5.
10307         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10308         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10309         (subsf3, subsf3_media): Likewise.
10310         (mulsf3, mulsf3_media, mac_media): Likewise.
10311         (divsf3, divsf3_media): Likewise.
10312         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
10313         (floatsisf2, fux_truncsfsi2): Likewise.
10314         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
10315         constraints.
10316         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10317         (cmpunsf_media, cmpsf): Likewise.
10318         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10319         (abssf2, abssf2_media): Likewise.
10320         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10321         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10322         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
10323         (floatsidf2, fix_truncdfsi2): Likewise.
10324         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
10325         constraints.
10326         (cmpeqdf_media, cmpgtdf_media): Likewise.
10327         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10328         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10329         (absdf2, absdf2_media): Likewise.
10330         (extendsfdf2, extendsfdf2_media): Likewise.
10331         (truncsfdf2, truncsfdf2_media): Likewise.
10332         * config/sh/sh64.h: New file.
10333         * config/sh/t-sh64: New file.
10334         * config/sh/shmedia.h: New file.
10335         * config/sh/ushmedia.h: New file.
10336         * config/sh/sshmedia.h: New file.
10337         * configure.in: Added sh64-*-elf.
10338         * configure: Rebuilt.
10339         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
10340         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10341         (reg_class_from_letter): Use `b' for TARGET_REGS.
10342         (print_operand): Support `%M', `%m', `AND' and
10343         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
10344         (andcosts): Adjust for SHmedia.
10345         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10346         Likewise.
10347         (target_reg_operand): New function.
10348         * config/sh/sh-protos.h (target_reg_operand): Declare.
10349         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10350         FP registers on SH5.
10351         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10352         on SH4.
10353         (TARGET_REGISTER_P): New macro.
10354         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10355         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10356         (EXTRA_CONSTRAINT_S): New macro.
10357         (EXTRA_CONSTRAINT): Adjust.
10358         (FLOAT_TYPE_SIZE): Define to 32.
10359         (Pmode): DImode on SHmedia.
10360         (CONST_COSTS): Adjust for SHmedia literals.
10361         (PREDICATE_CODES): Added target_reg_operand.
10362         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10363         * config/sh/sh.md: Remove all attrs from SHmedia insns.
10364         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10365         (cmpdi): Accept SHmedia.
10366         (movdicc_false, movdicc_true): New insns.
10367         (movdicc): New expand.
10368         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10369         no_new_pseudos.
10370         (addsi3_media): Match `S' constraint.
10371         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10372         (negdi2): Expand for SHmedia.
10373         (one_cmpldi2): New expand.
10374         (zero_extendsidi2): Change from expand to insn.
10375         (extendsidi2): Add constraints.
10376         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
10377         LD/ST address.  Fix SI immediate loading split.
10378         (movhi_media, movqi_media, lduw, ldub): New insns.
10379         (movhi, movqi): Accept SHmedia.
10380         (shori_media, movdi_media): Relax input constraints.  Split
10381         symbolic constants.
10382         (movdf_media, movsf_media): New insn.  New split to movdi.
10383         (movdf, movsf): Match on SHmedia.
10384         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10385         bgeu_media): New insns and splits.  New insns with `_i' suffix.
10386         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10387         (bunordered): New expand.
10388         (jump_compact): Renamed from `jump'.
10389         (jump_media): New insn.
10390         (jump): New expand.
10391         (call_media, call_value_media): New insns.
10392         (call, call_value): Adjust.
10393         (indirect_jump_compact): Renamed from `indirect_jump'.
10394         (indirect_jump_media): New insn.
10395         (indirect_jump): New expand.
10396         (untyped_call, return): Accept SHmedia.
10397         (return_media): New insn.
10398         (prologue, epilogue, blockage): Accept SHmedia.
10399         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10400         (sunordered): New expand.
10401         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10402         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10403         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10404         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10405         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10406         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10407         abssf2_media): New insns.
10408         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10409         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10410         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10411         floatdidf2, floatsidf2_media, fix_truncdfdi2,
10412         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10413         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10414         absdf2_media): New insns.
10415         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10416         (extendsfdf2_media, truncdfsf2_media): New insns.
10417         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
10418         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10419         * config/sh/sh.h (CONST_OK_FOR_J): Document.
10420         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10421         * config/sh/sh.md (adddi3): New expand.
10422         (adddi3_media, adddi3z_media): New insns.
10423         (adddi3_compact): Renamed from adddi3.
10424         (addsi3_media): Use add.l r63 to add constant zero.
10425         (subdi3): New expand.
10426         (subdi3_media): New insn.
10427         (subdi3_compact): Renamed from subdi3.
10428         (mulsidi3): New expand.
10429         (mulsidi3_media): New insn.
10430         (mulsidi3_compact): Renamed from mulsidi3.
10431         (umulsidi3): New expand.
10432         (umulsidi3_media): New insn.
10433         (umulsidi3_compact): Renamed from umulsidi3.
10434         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10435         (ashlsi3, ashrsi3, lshrsi3): Use them.
10436         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10437         (ashldi3, ashrdi3, lshrdi3): Use them.
10438         (zero_extendsidi2): New expand.
10439         (extendsidi2): New insn.
10440         (movsi_media): New insn.  Split to movdi to load constants.
10441         (movsi): Enable for shmedia.
10442         (movdi_media): New insn.  Use shori_media to load wide constants.
10443         (short_media): New insn.
10444         (movdi): Enable for shmedia.
10445         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
10446         * config/sh/sh.h (CPP_SPEC): Added `m5'.
10447         (SUBTARGET_CPP_SPEC): Added `!m5'.
10448         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10449         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
10450         to all other SH variants.
10451         (TARGET_DEFAULT): Set to SH1_BIT.
10452         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10453         (BITS_PER_WORD): Raise to 64 on shmedia.
10454         (MAX_BITS_PER_WORD): Change to 64.
10455         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10456         (INT_TYPE_SIZE): Keep as 32.
10457         (UNITS_PER_WORD): Raise to 8 on shmedia.
10458         (MIN_UNITS_PER_WORD): Keep as 4.
10459         (POINTER_SIZE): Raise to 64 on shmedia.
10460         (CONST_OK_FOR_J): New macro.
10461         (CONST_OK_FOR_LETTER_P): Use it.
10462         (processor_type): Add PROCESSOR_SH5.
10463         * config/sh/sh.md: Conditionalize all expands, insns and
10464         splits to TARGET_SH1.
10465         (cpu): Added sh5.
10466         (addsi3_compact): Renamed from...
10467         (addsi3): Now an expand.
10468         (addsi3_media, subsi3_media): New insns.
10469         (subsi3): Don't negate constants with SHmedia.
10470
10471         * hooks.c: New file.
10472         * hooks.h: New file.
10473         * Makefile.in (HOOKS_H): New.
10474         (TARGET_DEF_H): Added $(HOOKS_H).
10475         (OBJS): Added hooks.o.
10476         (cfgcleanup.o, bb-reorder.o): Added target.h.
10477         (hooks.o): Added dependencies.
10478         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10479         (TARGET_INITIALIZER): this.
10480         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10481         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10482         * bb-reorder.c: Include target.h.
10483         (reorder_basic_blocks): Skip if cannot modify jumps.
10484         * cfgcleanup.c: Include target.h.
10485         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10486
10487 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10488
10489         * config/mips/mips.md (casesi_internal, casesi_internal_di):
10490         Protect jump delay slot instructions with .set noreorder and
10491         .set nomacro.
10492
10493 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10494
10495         * config/mips/mips.md (casesi_internal_di): Calculate
10496         the index into the target offset table correctly.
10497
10498 2002-02-08  Richard Henderson  <rth@redhat.com>
10499
10500         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10501         * final.c (output_addr_const): Accept and discard SUBREG.
10502         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10503         mark them unknown instead.
10504         (simplify_subtraction): Handle RTX_UNKNOWN.
10505         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10506
10507 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
10508
10509         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10510
10511 2002-02-08  Richard Henderson  <rth@redhat.com>
10512
10513         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10514
10515 2002-02-08  Andreas Jaeger  <aj@suse.de>
10516
10517         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10518         * config/i386/t-linux64: New file.
10519
10520 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
10521
10522         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10523         * c-parse.in (compstmt): Clear last_expr_type.
10524
10525 2002-02-07  Richard Henderson  <rth@redhat.com>
10526
10527         * loop.c (strength_reduce): Sink final_value when not
10528         eliminating a biv.
10529
10530 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
10531
10532         * config/sparc/freebsd.h: Fix mismatched spec {.
10533
10534 2002-02-07  Richard Henderson  <rth@redhat.com>
10535
10536         * cfgrtl.c: Include recog.h and insn-config.h.
10537         (keep_with_call_p): Fix general_operand invocation.
10538         * Makefile.in (cfgrtl.o): Update dependencies.
10539
10540 2002-02-07  Kazu Hirata  <kazu@hxi.com>
10541
10542         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10543         comment.  Accept HImode only if TARGET_H8300.
10544
10545 2002-02-07  Eric Christopher  <echristo@redhat.com>
10546
10547         * config/mips/crtn.asm: Cleanup #ifdefs.
10548
10549 2002-02-07  Eric Christopher  <echristo@redhat.com>
10550
10551         * config/mips/crti.asm: Add changes for mips16. mips16 uses
10552         register 7 as RA instead of $31.
10553         * config/mips/crtn.asm: Ditto.
10554         * config/mips/mips.c (mips_move_2words): Add case for
10555         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10556         (compute_frame_size): Fix typo.
10557         (save_restore_insns): Ditto.  Make documentation about using
10558         register $7 as return register more precise.
10559         (mips_expand_epilogue): Fix comment. Add code to work around not
10560         being able to add to the stack pointer directly.
10561         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10562         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10563         epilogue.
10564
10565 2002-02-07  Tom Rix  <trix@redhat.com>
10566
10567         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10568         immediates in ldu and stdu DS opcode field.
10569         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10570         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10571         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10572
10573 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
10574
10575         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10576         offset for stack bias.
10577
10578 2002-02-07  H.J. Lu <hjl@gnu.org>
10579
10580         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10581
10582 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
10583
10584         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10585
10586 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
10587
10588         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10589         * i386.c (x86_order_regs_for_local_alloc): New global function.
10590         * i386.h (REG_ALLOC_ORDER): CLeanup.
10591         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10592
10593 2002-02-07  Richard Henderson  <rth@redhat.com>
10594
10595         PR optimization/2463
10596         * alias.c (find_base_value): Recall base values for fixed hard regs.
10597         * loop.c (loop_regs_update): Don't use single_set on non-insns.
10598
10599 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
10600
10601         * config/mips/mips.md (define_delay) [mips16]: Adjust required
10602         length.
10603
10604 2002-02-06  Richard Henderson  <rth@redhat.com>
10605
10606         PR c/5609
10607         * stmt.c (resolve_operand_name_1): Take more care with mixed
10608         named and unnamed operands.
10609
10610 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
10611             Jan Hubicka  <jh@suse.cz>
10612
10613         * loop.c (remove_constant_addition): Avoid clobbering a shared
10614         CONST expression.
10615
10616 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
10617
10618         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10619         * config/s390/t-linux64: New file.
10620         * config/s390/libgcc-glibc.ver: New file.
10621
10622 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
10623
10624         * config/s390/linux64.h: Delete file.
10625         * config/s390/s390x.h: New file.
10626         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10627         as target header file.
10628         * config/s390/linux.h (TARGET_VERSION): Define depending on
10629         DEFAULT_TARGET_64BIT.
10630         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10631         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10632         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10633         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10634         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10635         (EXTRA_SPEC): New define.
10636         * config/s390/s390.h (TARGET_VERSION): Define depending on
10637         DEFAULT_TARGET_64BIT.
10638         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10639
10640 2002-02-06  Jason Merrill  <jason@redhat.com>
10641
10642         * c-decl.c (finish_function): Warn about a non-void function with
10643         no return statement and no abnormal exit.
10644         (current_function_returns_abnormally): New variable.
10645         (start_function): Clear it.
10646         (struct c_language_function): Add returns_abnormally.
10647         (push_c_function_context): Save it.
10648         (pop_c_function_context): Restore it.
10649         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10650         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10651         an explicit return type.
10652         * c-tree.h: Declare current_function_returns_abnormally.
10653         (C_FUNCTION_IMPLICIT_INT): New macro.
10654         * c-typeck.c (build_function_call): Set it.
10655         (c_expand_return): Set current_function_returns_value even if the
10656         value is erroneous.
10657
10658 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
10659
10660         PR c/5420:
10661         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10662         unsafe for reevaluation.
10663
10664 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
10665
10666         PR c/5482:
10667         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10668         EXPR_STMT, but COMPOUND_STMT, recurse into it.
10669
10670 2002-02-06  Richard Henderson  <rth@redhat.com>
10671
10672         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10673         be a general_operand.  Dest for function value must be a pseudo.
10674
10675 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
10676
10677         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10678         as SYMBOL_REFs from the constant pool.
10679
10680 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
10681
10682         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10683         passed by invisible reference.
10684
10685 2002-02-05  Richard Henderson  <rth@redhat.com>
10686
10687         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10688
10689 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
10690
10691         Implement using "base addresses" in insn operands as default.
10692         * config/mmix/mmix.c (mmix_conditional_register_usage): if
10693         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10694         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10695         used to read the rtx value.
10696         (mmix_target_asm_function_epilogue): Fix spacing.
10697         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10698         (mmix_legitimate_address): Ditto.
10699         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10700         should be loaded with a GETA insn.  Don't allocate needless extra
10701         char for nul termination and fix misleading comment.
10702         (mmix_print_operand_address): Handle constants if
10703         TARGET_BASE_ADDRESSES.
10704         (mmix_output_register_setting): Use base addressing if
10705         TARGET_BASE_ADDRESSES and the number of insns is 3.
10706         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10707         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10708         to use R as constraint, add LDA to match s.
10709         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10710         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10711         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10712         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10713         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10714         order with other fixed registers.
10715         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10716         other parameter/call-clobbered registers.
10717         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10718         -mbase-addresses, -mno-base-addresses.
10719         (MMIX Options): Ditto.
10720
10721 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10722
10723         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10724
10725 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
10726
10727         * config/rs6000/altivec.h: Change elem to _S_elem.
10728
10729 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
10730
10731         * config/netbsd.h (WCHAR_TYPE): Define.
10732         (WCHAR_TYPE_SIZE): Ditto.
10733         (WINT_TYPE): Ditto.
10734         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
10735         (WCHAR_UNSIGNED): Ditto.
10736         (WCHAR_TYPE_SIZE): Ditto.
10737         (WINT_TYPE): Ditto.
10738         * config/arm/netbsd.h: Likewise.
10739         * config/i386/netbsd-elf.h: Likewise.
10740         * config/i386/netbsd.h: Likewise.
10741         * config/m68k/netbsd-elf.h: Likewise.
10742         * config/m68k/netbsd.h: Likewise.
10743         * config/ns32k/netbsd.h: Likewise.
10744         * config/sparc/netbsd.h: Likewise.
10745         * config/vax/netbsd.: Likewise.
10746
10747 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
10748
10749         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
10750         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
10751         (TARGET_INITIALIZER): this.
10752         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
10753         (BITFIELD_NBYTES_LIMITED): Markup fix.
10754         * tree.h (default_ms_bitfield_layout_p): Declare.
10755         (record_layout_info): Added prev_field.
10756         * tree.c (default_ms_bitfield_layout_p): New fn.
10757         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
10758         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
10759         * stor-layout.c: Include target.h.
10760         (start_record_layout): Initialize prev_field.
10761         (place_field): Handle MS bit-field layout, and disregard
10762         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
10763         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
10764         * Makefile.in (stor-layout.o): Adjust dependencies.
10765
10766 2002-02-05  Jason Merrill  <jason@redhat.com>
10767
10768         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10769
10770 2002-02-05  Andreas Jaeger  <aj@suse.de>
10771
10772         * crtstuff.c: Fix comments.
10773
10774 2002-02-05  Richard Henderson  <rth@redhat.com>
10775
10776         PR fortran/3393
10777         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10778         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10779
10780         PR fortran/3392
10781         * config/mips/mips.c (function_arg): Handle TImode.
10782         (function_arg_advance): Likewise.
10783
10784 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10785
10786         * config/rs6000/altivec.h (vec_step_help): Rename to
10787         __vec_step_help.
10788
10789 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10790
10791         * config/rs6000/altivec.h: Fix typos.
10792
10793 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
10794
10795         * config/arm/netbsd.h: Correct a comment.
10796
10797 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10798
10799         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10800         building void typed builtins.
10801
10802         * config/rs6000/altivec.h (vec_ld*): Fix typos.
10803         (vec_step): Implement for C++.
10804
10805 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10806
10807         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10808
10809 2002-02-04  Richard Henderson  <rth@redhat.com>
10810
10811         * combine.c (nonzero_bits): Re-introduce special case for
10812         sp/fp/ap wrt REGNO_POINTER_ALIGN.
10813
10814 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
10815
10816         * doc/extend.texi: Warn about unsupported usage of altivec
10817         builtins.
10818
10819         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10820         (altivec_predicate_*): New.
10821
10822         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10823         Add C++ version of vec_*() functions.
10824
10825         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
10826         (bdesc_2arg): Remove altivec predicates.
10827         (altivec_expand_builtin): Handle predicates.
10828         (altivec_init_builtins): Handle predicates.
10829         (altivec_expand_predicate_builtin): New.
10830
10831 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10832
10833         * pa.c (DO_FRAME_NOTES): Move forward.
10834         (store_reg): Revise handling of frame notes.
10835         (load_reg): Likewise.
10836         (set_reg_plus_d): Likewise.
10837         (hppa_expand_prologue): Likewise.
10838         (hppa_expand_epilogue): Likewise.
10839
10840 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10841
10842         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10843
10844 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
10845
10846         PR c/4475, c++/3780:
10847         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
10848         * c-common.h (SWITCH_TYPE): Define.
10849         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
10850         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
10851         Rename spareness variable to sparseness.
10852         (expand_end_case_type): Renamed from expand_end_case, use orig_type
10853         if non-NULL instead of TREE_TYPE (orig_index).
10854         * tree.h (expand_end_case_type): Renamed from expand_end_case.
10855         (expand_end_case): Define using expand_end_case_type.
10856         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
10857         to expand_end_case_type.
10858         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
10859
10860 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10861
10862         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10863         (BIGGEST_ALIGNMENT): Change to 128.
10864
10865 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10866
10867         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10868
10869 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10870
10871         * pa.md (call_internal_reg_64bit): Remove unused variable.
10872
10873 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
10874
10875         * config/arm/arm.h (machine_function): Add uses_anonymous_args
10876         field.
10877         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
10878         * config/arm/arm.c (current_function_anonymous_args): Delete,
10879         replace uses with cfun->machine->uses_anonymous_args.
10880         (arm_reorg): Do not reset uses_anonymous_args.
10881
10882         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10883         any geenral register.
10884
10885 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
10886
10887         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10888         the entry block.
10889
10890 2002-02-04  Richard Henderson  <rth@redhat.com>
10891
10892         * combine.c (force_to_mode): Remove STACK_BIAS code.
10893         (nonzero_bits): Likewise.  Replace sp/fp special case with
10894         REGNO_POINTER_ALIGN.
10895
10896         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
10897         (HARD_FRAME_POINTER_REGNUM): New.
10898         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
10899         (FIXED_REGS, CALL_USED_REGS): Update.
10900         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
10901         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
10902         (HARD_REGNO_NREGS): Update for SFP.
10903         (STACK_POINTER_OFFSET): Include bias here ...
10904         (FIRST_PARM_OFFSET): ... not here.
10905         (STACK_BIAS): Remove.
10906         (INIT_EXPANDERS): New.
10907         (STARTING_FRAME_OFFSET): Do not include bias.
10908         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
10909         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
10910         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
10911         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
10912         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
10913         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
10914         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
10915         (MUST_SAVE_REGISTER): Likewise.
10916         (sparc_flat_function_prologue): Likewise.
10917         (sparc_flat_function_epilogue): Likewise.
10918         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
10919         (sparc_init_modes): SFP is GENERAL_REGS.
10920         (sparc_builtin_saveregs): SFP does not have bias applied.
10921
10922 2002-02-04  Richard Henderson  <rth@redhat.com>
10923
10924         * config/alpha/alpha.c (current_function_is_thunk): Don't check
10925         current_function_is_thunk.
10926         (alpha_sa_mask): Distinguish between current_function_is_thunk
10927         called from ASM_OUTPUT_MI_THUNK and not.
10928         (alpha_does_function_need_gp): Thunks always need gp.
10929         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10930         (alpha_output_mi_thunk_osf): New.
10931         * config/alpha/alpha-protos.h: Update.
10932         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
10933
10934 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
10935
10936         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10937         function types, not when they're taken away.
10938
10939 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
10940
10941         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10942         CODE_LABEL and jump table when replacing a table jump with a
10943         simple jump.
10944
10945 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10946
10947         * config/s390/s390-protos.h (legitimize_la_operand,
10948         s390_secondary_input_reload_class, s390_plus_operand,
10949         s390_expand_plus_operand): Add prototypes.
10950
10951         config/s390/s390.c (s390_secondary_input_reload_class,
10952         s390_plus_operand, s390_expand_plus_operand): New functions.
10953
10954         (struct s390_address): New member 'pointer'.
10955         (s390_decompose_address): Compute it.
10956         (legitimate_la_operand_p): Use it.
10957         (legitimize_la_operand): New function.
10958         (movti, movdi, movdf splitters): Call it.
10959
10960         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10961         (PREDICATE_CODES): Add s390_plus_operand.
10962
10963         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10964         (la_ccclobber): Allow GENERAL_REGS as output operand.
10965
10966         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
10967         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
10968         (*la_64, *la_31, reload_indi, reload_insi): ... these.
10969
10970 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10971
10972         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10973         register names for regular asm () construct.
10974
10975 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
10976
10977         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10978         registers.
10979
10980 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
10981
10982         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10983         pat for recog.
10984
10985 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
10986
10987         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10988         constant pool to be identical by string address and index.
10989
10990 2002-02-04  Anthony Green  <green@redhat.com>
10991
10992         * output.h (SECTION_OVERRIDE): Define.
10993         * varasm.c (named_section): Obey SECTION_OVERRIDE.
10994
10995 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
10996
10997         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
10998         by existing arm*-*-netbsd* (a.out) target.
10999         (ns32k-*-netbsdelf*): Likewise.
11000         (sparc-*-netbsdelf*): Likewise.
11001         (vax-*-netbsdelf*): Likewise.
11002
11003 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
11004
11005         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11006         headers and libobjc headers.
11007
11008 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
11009
11010         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11011         (_mingw.h): Remove duplicate include.
11012
11013 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11014
11015         * config.gcc: Set cpu_type to m68k for 68010, as well.
11016         (m68010-*-netbsdelf*): New...
11017         (m68k*-*-netbsdelf*): ...targets.
11018         * config/m68k/netbsd-elf.h: New file.
11019
11020 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11021
11022         * config/h8300/h8300.c (hand_list): Move inside function_arg.
11023
11024 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11025
11026         * config/h8300/h8300.c (h8_push_ops): Move inside
11027         h8300_init_once.
11028         (h8_pop_ops): Likewise.
11029         (h8_move_ops): Likewise.
11030
11031 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11032
11033         * config/h8300/h8300.c (os_task): Make it static.
11034         (monitor): Likewise.
11035         (pragma_saveall): Likewise.
11036
11037 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
11038
11039         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11040         constant is a valid sign-extension for Pmode.
11041
11042 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11043
11044         * config/h8300/h8300.c: Fix formatting.
11045
11046 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11047
11048         * config/h8300/h8300.md: Fix formatting.
11049
11050 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11051
11052         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11053         predicates of operands[1].  Split the patterns for each
11054         processor variant.
11055
11056 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11057
11058         * config/h8300/h8300.md (xor patterns): Tighten the predicates
11059         of operands[1] to register_operand.
11060
11061 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11062
11063         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11064         * cpphash.c (_cpp_init_hashtable): Similarly.
11065         * cppinit.c (cpp_create_reader): Default the signed_char flag.
11066         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11067         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11068         (cpp_handle_option): Handle the new options.
11069         * cpplex.c (cpp_interpret_charconst): Use new flag.
11070         * cpplib.h (struct cpp_options): New member signed_char.
11071         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11072         (cpp_options): Handle -fsigned-char and -funsigned-char.
11073         (static_specs): Remove signed_char_spec.
11074         (do_spec1): Don't handle %c.
11075         * system.h: Poison SIGNED_CHAR_SPEC.
11076         * tradcif.y (yylex): Use flag_signed_char.
11077         * tradcpp.h (flag_signed_char): New.
11078         * tradcpp.c (flag_signed_char): New.
11079         (main): Handle new command-line options.
11080         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11081 config:
11082         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11083         * avr/avr.h: Remove old comments.
11084         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11085         (CC1_SPEC): Pass -fsigned-char if -mic*.
11086         (SIGNED_CHAR_SPEC): Remove.
11087 doc:
11088         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11089
11090 2002-02-01  Eric Christopher  <echristo@redhat.com>
11091
11092         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11093         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11094         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11095         (ASM_OUTPUT_REG_POP): Ditto.
11096
11097 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11098
11099         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11100         patch.
11101
11102 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11103
11104         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11105
11106 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11107
11108         PR c/5304:
11109         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11110         unconditionally.
11111
11112 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11113
11114         * cfganal.c: Include tm_p.h.
11115         (keep_with_call_p): Fix the test that determines if a register holds
11116         the return value of a call.
11117
11118 2002-02-01  DJ Delorie  <dj@redhat.com>
11119
11120         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11121         we are given conflicting registers, switch to the other one we
11122         had allocated for us.
11123         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11124         as TImode so we know when the "other" register is available.
11125
11126 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
11127
11128         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11129         sparc/sparc_bi.h.
11130
11131 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11132
11133         * cfganal.c (keep_with_call_p): New function.
11134         (flow_call_edges_add): Prevent splitting a block between a call and
11135         a single-set instruction that should be kept in the same block.
11136
11137 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11138
11139         * doc/install.texi (avr): Update outdated URL.
11140
11141 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
11142
11143         * config/stormy16/stormy16.md (pushqi): New.
11144         (popqi): New.
11145         (pushhi): New.
11146         (pophi): New.
11147         (movhi): Remove stack operands.
11148         (movqi): Likewise.
11149         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11150         nonimmediate_nonstack_operand.
11151         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11152         New.
11153         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11154         New.
11155
11156 2002-01-31  Jason Merrill  <jason@redhat.com>
11157
11158         * Makefile.in (c-parse.c): Handle .output file.
11159         * objc/Make-lang.in (objc-parse.c): Likewise.
11160
11161 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
11162
11163         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11164         the -me[lb] option is given.  Don't output the default flag
11165         twice.
11166
11167 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
11168
11169         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11170         the primary source file; this has not been done yet.
11171         * c-decl.c (c_expand_body): Reset input_filename from
11172         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11173
11174 2002-01-31  Kazu Hirata  <kazu@hxi.com>
11175
11176         * rtlanal.c (subreg_regno_offset): Do not use
11177         SUBREG_REGNO_OFFSET.
11178         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11179         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11180
11181 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11182
11183         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
11184         version rather than GNATS version in --version output.
11185
11186 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
11187
11188         * ifcvt.c (noce_process_if_block): Make a copy of the destination
11189         when copying back from a temporary.
11190
11191 2002-01-30  Richard Henderson  <rth@redhat.com>
11192
11193         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11194         and new_dest are the same.
11195
11196 2002-01-30  Richard Henderson  <rth@redhat.com>
11197
11198         PR opt/5076
11199         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11200         * rtl.c (note_insn_name): Update.
11201         * emit-rtl.c (remove_unnecessary_notes): Kill it.
11202         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
11203         to perform loop rotation.
11204         (expand_exit_loop_top_cond): New.
11205         * tree.h (expand_exit_loop_top_cond): Declare it.
11206         * c-semantics.c (genrtl_while_stmt): Use it.
11207         (genrtl_for_stmt): Likewise.
11208
11209 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
11210
11211         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11212         arguments to 64-bit boundaries on 64-bit ABIs.
11213
11214 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
11215
11216         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11217
11218 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11219
11220         * c-decl.c (grokdeclarator): Handle type being a typedef for an
11221         invalid type.
11222
11223 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
11224
11225         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11226         * config/sparc/sparc_bi.h: Remove file.
11227         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11228
11229 2002-01-30  Richard Henderson  <rth@redhat.com>
11230
11231         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11232
11233 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
11234
11235         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11236
11237 2002-01-30  Jason Merrill  <jason@redhat.com>
11238
11239         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11240         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11241         (reg_save): Use DW_CFA_offset_extended_sf instead.
11242
11243         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11244
11245 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11246
11247         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11248         in cselib_lookup.
11249
11250 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
11251
11252         * rs6000.md ("*call_value_local32"): Remove constraints.
11253         ("*call_value_local64"): Same.
11254         ("*call_value_indirect_nonlocal_aix32"): Same.
11255         ("*call_value_nonlocal_aix32"): Same.
11256         ("*call_value_indirect_nonlocal_aix64"): Same.
11257         ("*call_value_nonlocal_aix64"): Same.
11258         ("*call_value_nonlocal_sysv"): Same.
11259
11260 2002-01-29  Richard Henderson  <rth@redhat.com>
11261
11262         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11263
11264 2002-01-29  Richard Henderson  <rth@redhat.com>
11265
11266         * expr.c (force_operand): Ignore flag_pic for detecting pic
11267         address loads.
11268         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11269         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11270         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11271         instead of open-coded loop.
11272         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11273         be fixed when in use.
11274
11275 2002-01-29  Richard Henderson  <rth@redhat.com>
11276
11277         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11278         * sched-rgn.c (propagate_deps): Update them.
11279         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
11280         clobbers list when either gets too long.
11281
11282 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11283
11284         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11285         and INDEX_REGS the same as GENERAL_REGS.
11286         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11287
11288 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11289
11290         * tree.c (build_nonstandard_integer_type): Correct prototype.
11291
11292 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
11293
11294         * config/s390/s390.md (movstrsico, movstrdix_64,
11295         movstrsix_31): Remove, replace by ...
11296         (movstrdi_short, movstrsi_short, movstrdi_long,
11297         movstrsi_long): ... these.  New.
11298         (movstrdi, movstrsi): Adapt.
11299
11300         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11301         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11302         Remove unnecessary CC clobber.
11303         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11304         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11305
11306         (divmoddi4): Don't partially initialize TImode register.
11307
11308 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
11309
11310         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11311
11312 2002-01-29  Richard Henderson  <rth@redhat.com>
11313
11314         * flow.c (print_rtl_and_abort): Remove.
11315         (print_rtl_and_abort_fcn): Remove.
11316         (verify_local_live_at_start): Use dump_bb instead.
11317         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11318         (verify_wide_reg_1): Return 2 on mode test failure.
11319
11320 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11321
11322         PR c/3325, c/3326, c/2511, c/3347
11323         * c-decl.c (enum_decl_context): Remove BITFIELD.
11324         (grokdeclarator): Take bitfield width as an input.
11325         Ensure bitfields are given the correct type.  Perform
11326         bitfield width validation with build_bitfield_integer_type
11327         rather than waiting for finish_struct.
11328         (grok_typename, grok_typename_in_parm_context, start_decl,
11329         push_parmdecl, grokfield, start_function): Update calls to
11330         grokdeclarator.
11331         (build_bitfield_integer_type): New function.
11332         (finish_struct): Move bitfield validation to grokdeclarator
11333         and build_bitfield_integer_type.
11334         * tree.c (build_nonstandard_integer_type): New function.
11335         * tree.h (build_nonstandard_integer_type): New prototype.
11336 objc:
11337         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11338
11339 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11340
11341         PR other/1502:
11342         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11343         don't ignore unrecognized -W* options.
11344         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11345         * cpplib.h (cpp_handle_option): Adjust prototype.
11346         * c-decl.c (c_decode_options): Pass 0 as last argument to
11347         cpp_handle_option.
11348
11349         PR c/2896:
11350         * gcc.c (cpp_unique_options): Split from cpp_options.
11351         (cpp_options): Source cpp_unique_options.
11352         (default_compilers): Use cpp_unique_options instead of cpp_options
11353         when used together with cc1_options.
11354         (static_specs): Add cpp_unique_options.
11355         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11356         when used together with cc1_options.
11357
11358 2002-01-29  Kazu Hirata  <kazu@hxi.com>
11359
11360         * config/h8300/h8300-protos.h: Update the prototype of
11361         output_a_shift.
11362         * config/h8300/h8300.c (output_a_shift): Remove an unused
11363         argument 'insn'.  Remove redundant code.
11364         * config/h8300/h8300.md: Adust to the new prototype of
11365         output_a_shift.
11366
11367 2002-01-29  Kazu Hirata  <kazu@hxi.com>
11368
11369         * config/h8300/h8300-protos.h: Update the prototypes of
11370         emit_a_rotate and expand_a_rotate.
11371         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11372         first argument to 'enum rtx_code'.
11373         (expand_a_rotate): Likewise.
11374
11375 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11376
11377         * config/h8300/h8300-protos.h: Update the prototype of
11378         output_simode_bld.
11379         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11380         'log2'.
11381         * config/h8300/h8300.md: Adjust to the new prototype.
11382
11383 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11384
11385         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11386         redundant code.
11387
11388 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11389
11390         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11391         is a fixed register before returning pic_offset_table_rtx.
11392         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11393         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11394
11395 2002-01-28  Jason Merrill  <jason@redhat.com>
11396
11397         * dwarf2.h: Sync with src version.
11398
11399 2002-01-28  Paul Koning  <pkoning@equallogic.com>
11400
11401         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11402         BT_FN_VOID_PTR_VAR.
11403         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11404         * doc/extend.texi (__builtin_prefetch): Update documentation:
11405         first argument is now const void ptr.
11406
11407 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11408
11409         * config/h8300/h8300-protos.h: Remove an unused prototype.
11410
11411 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
11412
11413         * toplev.c (lang_independent_init): Round up identifier size.
11414
11415 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
11416
11417         * config.gcc: Revert previous change.
11418
11419 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
11420
11421         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11422
11423 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
11424
11425         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11426         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
11427         other non-elf netbsd config frags.
11428         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11429         collect2 will does that.
11430         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11431         shared-lib frobbing will work.
11432
11433 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11434
11435         * config/h8300/h8300.h: Fix formatting.
11436         * config/h8300/h8300.md: Likewise.
11437
11438 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
11439
11440         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11441         the old, removed AAA_standards fix.
11442         * fixinc/fixincl.x: Rebuilt.
11443
11444 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
11445
11446         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11447         atexit call in crtbegin, hooked in after call to frame_dummy;
11448         register EH before registering __fini__start.
11449
11450 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
11451
11452         * config/rs6000/altivec.h: Remove spurious semicolons.
11453
11454 2002-01-27  Kazu Hirata  <kazu@hxi.com>
11455
11456         * config/h8300/h8300.md: Replace dead bit extraction patterns
11457         with ones that work.
11458
11459 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11460
11461         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11462         if not STRICT_ALIGNMENT.
11463         * rtl.h (MEM_ALIGN): Likewise.
11464
11465 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11466
11467         * doc/invoke.texi (-fdump-translation-unit): Revert this
11468         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11469
11470 2002-01-27  Kazu Hirata  <kazu@hxi.com>
11471
11472         * config/h8300/h8300.md (define_constants): New.
11473         (anonymous patterns) Use defined constants appropriately.
11474
11475 2002-01-27  Kazu Hirata  <kazu@hxi.com>
11476
11477         * config/h8300/h8300.c (function_arg): Remove redundant code.
11478
11479 2002-01-26  Richard Henderson  <rth@redhat.com>
11480
11481         * sched-deps.c (reg_pending_uses_head): New.
11482         (reg_pending_barrier): Rename from reg_pending_sets_all.
11483         (find_insn_list): Don't mark inline.
11484         (find_insn_mem_list): Remove.
11485         (add_dependence_list, add_dependence_list_and_free): New.
11486         (flush_pending_lists): Replace only_write param with separate
11487         for_read and for_write parameters.  Update all callers.  Use
11488         add_dependence_list_and_free.
11489         (sched_analyze_1): Do not add reg dependencies here; just set
11490         the pending bits.  Use add_dependence_list.
11491         (sched_analyze_2): Likewise.
11492         (sched_analyze_insn): Replace schedule_barrier_found with
11493         reg_pending_barrier.  Add all dependencies for pending reg
11494         uses, sets, and clobbers.
11495         (sched_analyze): Don't add reg dependencies for calls, just
11496         set pending bits.  Use regs_invalidated_by_call.  Treat
11497         sched_before_next_call as a normal list, not a fake insn.
11498         (init_deps): No funny init for sched_before_next_call.
11499         (free_deps): Free pending mems lists.  Don't zero reg_last.
11500         (init_deps_global): Init reg_pending_uses.
11501         (finish_deps_global): Free it.
11502         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
11503         (find_insn_mem_list): Remove.
11504         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11505         (propagate_deps): Use them.  Zero temp mem lists.
11506
11507 2002-01-26  Richard Henderson  <rth@redhat.com>
11508
11509         * Makefile.in (CRTSTUFF_CFLAGS): New.
11510         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11511         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11512         crtstuff.c instead of alpha assembly version.
11513         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11514         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
11515         not FORCE_{INIT,FINI}_SECTION_ALIGN.
11516         (__do_global_dtors_aux): Mark used.
11517         (frame_dummy, __do_global_ctors_aux): Mark used.
11518         (fini_dummy, init_dummy): Remove.
11519
11520         * config/alpha/crtbegin.asm: Remove file.
11521         * config/alpha/crtend.asm: Remove file.
11522         * config/alpha/t-crtbe: Remove file.
11523         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11524         (LINK_EH_SPEC): New.
11525
11526         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11527         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
11528         calling constructors.
11529         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11530
11531         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11532         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11533         CRT_END_INIT_DUMMY hack.
11534         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11535         FORCE_{INIT,FINI}_SECTION_ALIGN.
11536
11537         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11538         FORCE_{INIT,FINI}_SECTION_ALIGN.
11539
11540         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11541         invocation sequence.
11542         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11543
11544         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11545         (FORCE_CODE_SECTION_ALIGN): New.
11546
11547 2002-01-26  Richard Henderson  <rth@redhat.com>
11548
11549         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11550
11551 2002-01-26  Richard Henderson  <rth@redhat.com>
11552
11553         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11554         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11555
11556 2002-01-26  Kazu Hirata  <kazu@hxi.com>
11557
11558         * config/h8300/h8300.md: Remove bit extraction patterns that
11559         cannot be triggered.
11560         Restrict each bit extraction pattern to a variant on which the
11561         pattern is tested.
11562
11563 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
11564
11565         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11566
11567 2002-01-26  Kazu Hirata  <kazu@hxi.com>
11568
11569         * config/h8300/h8300.md: Remove bit test patterns that cannot
11570         be triggered.
11571         Restrict each bit test pattern to a variant on which the
11572         pattern is tested.
11573
11574 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11575
11576         * builtins.c (expand_builtin_strncat): Remove redundant check for
11577         INTEGER_CST.
11578
11579 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
11580
11581         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11582         default setting.
11583         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11584         existing setting.
11585
11586 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
11587
11588         * dbxout.c (dbxout_init): Use assemble_name rather than just
11589         stripping off the first character.
11590         (dbxout_source_file): Likewise.
11591
11592 2002-01-25  DJ Delorie  <dj@redhat.com>
11593
11594         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11595         using rtx_equal_p, not by comparing pointers.
11596
11597 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
11598
11599         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11600         for PIC_OFFSET_TABLE_REGNUM.
11601         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11602
11603 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
11604
11605         * config.gcc (x86_64-*-freebsd*): New target.
11606         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11607         value.
11608         (i[34567]86-*-freebsd*): Don't include svr4.h.
11609         * config/i386/freebsd64.h: New file.
11610
11611 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
11612
11613         * config/alpha/x-vms (version): Make static.
11614
11615         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11616         in previous checkin.
11617
11618         * Makefile.in (install-headers-cp): New target.
11619         * config.gcc (alpha-dec-*vms*): Install headers with
11620         install-headers-cp
11621
11622 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
11623
11624         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11625         avoid it's copies.
11626
11627 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11628
11629         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11630         of compare_tree_int.
11631         (expand_builtin_strncat): Likewise.
11632         * c-decl.c (finish_struct): Use tree_low_cst.
11633         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11634         * tree.c (compare_tree_int): Likewise.
11635
11636 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
11637
11638         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11639         adjustments even if they are implemented by more than two insns.
11640
11641 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
11642
11643         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11644         * df.h (struct ref): Kill B.
11645         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11646
11647         * basic-block.h (PROP_EQUAL_NOTES): New flag.
11648         * flow.c (propagate_one_insn): Use it.
11649         (mark_used_regs): Handle NIL.
11650
11651 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
11652
11653         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11654         to help folding.
11655
11656 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
11657
11658         * rs6000.md (prefetch): Make address V4SI mode so that the address
11659         is restricted to legitimate form for instruction.
11660
11661 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
11662
11663         * doc/install.texi (xtensa-*-elf): New target.
11664         (xtensa-*-linux*): New target.
11665         * doc/contrib.texi: Add myself.
11666
11667 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
11668
11669         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11670         purpose register to hold an SImode (or smaller) value.
11671
11672 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
11673
11674         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11675         registry only.
11676         * crtstuff.c: Likewise.
11677
11678 2002-01-25  Kazu Hirata  <kazu@hxi.com>
11679
11680         * config/h8300/h8300.md (negation patterns): Tighten
11681         predicates to register_operand.
11682
11683 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
11684
11685         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11686         mode, not Pmode.
11687
11688         * builtins.c (expand_builtin_prefetch): Same.
11689
11690 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11691
11692         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11693         modes.
11694
11695 2002-01-24  Kazu Hirata  <kazu@hxi.com>
11696
11697         * config/h8300/h8300.c (print_operand): Remove support for
11698         operand character 'A'.
11699         * config/h8300/h8300.md (three anonymous patterns): Replace
11700         operand character 'A' with either 'T' or 'S'.
11701
11702 2002-01-24  Kazu Hirata  <kazu@hxi.com>
11703
11704         * config/h8300/h8300.c (print_operand): Remove support for
11705         operand character 'U'.
11706
11707 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
11708
11709         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11710
11711 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
11712
11713         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11714         values to be assigned to the stack pointer.
11715
11716 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11717
11718         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11719         to const_double needs to be done right for big-endian systems.
11720
11721 2002-01-24  Jason Merrill  <jason@redhat.com>
11722
11723         PR c++/2432
11724         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11725         to can_throw_internal.
11726
11727 2002-01-23  Richard Henderson  <rth@redhat.com>
11728
11729         * fold-const.c (fold): Change UINT_MAX test to check vs precision
11730         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
11731
11732 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11733
11734         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
11735         (symGOT2reg): Use them, then set as GOT value as unchanging.
11736         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
11737         as a temporary, if possible.
11738         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
11739         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
11740
11741 2002-01-23  Kazu Hirata  <kazu@hxi.com>
11742
11743         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11744         accept to accept 0x80 as operands[2].
11745
11746 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11747
11748         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11749
11750 2002-01-23  Richard Henderson  <rth@redhat.com>
11751
11752         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11753
11754 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
11755
11756         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11757         (parmlist_or_identifiers_1): Verify that only a parmlist follows
11758         an attribute.
11759
11760 2002-01-23  Richard Henderson  <rth@redhat.com>
11761
11762         * expr.c (move_by_pieces_1): Extend size before negation.
11763
11764         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
11765         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
11766         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
11767         * config/m68k/t-m68kelf: Likewise.
11768
11769 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
11770
11771         * config/xtensa/elf.h: New file.
11772         * config/xtensa/lib1funcs.asm: New file.
11773         * config/xtensa/lib2funcs.S: New file.
11774         * config/xtensa/linux.h: New file.
11775         * config/xtensa/t-xtensa: New file.
11776         * config/xtensa/xtensa-config.h: New file.
11777         * config/xtensa/xtensa-protos.h: New file.
11778         * config/xtensa/xtensa.c: New file.
11779         * config/xtensa/xtensa.h: New file.
11780         * config/xtensa/xtensa.md: New file.
11781         * config.gcc (xtensa-*-elf*): New target.
11782         (xtensa-*-linux*): New target.
11783         * cse.c (canon_hash): Compare rtx pointers instead of register
11784         numbers.  This is required for the Xtensa port.
11785         * integrate.c (copy_insn_list): Handle case where the static
11786         chain is in memory and the memory address has to be copied to
11787         a register.
11788         * doc/invoke.texi (Option Summary): Add Xtensa options.
11789         (Xtensa Options): New node.
11790         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11791
11792 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
11793
11794         * diagnostic.c (internal_error): Do ICE suppression only
11795         when ENABLE_CHECKING is not defined.
11796
11797         * c-typeck.c (require_complete_type): Return error_mark_node
11798         if type is error_mark_node.
11799
11800 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
11801
11802         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11803         -Os and issue a warning.
11804
11805 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
11806
11807         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11808         current (lack of) need for host configuration by hand.
11809
11810         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
11811         references.  Documentation of some target macros moved from
11812         hostconfig.texi to tm.texi.
11813
11814 2002-01-23  Will Cohen  <wcohen@redhat.com>
11815
11816         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11817         defined.
11818
11819 2002-01-23  Kazu Hirata  <kazu@hxi.com>
11820
11821         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11822         operand[3].
11823
11824 2002-01-23  Jason Merrill  <jason@redhat.com>
11825
11826         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11827
11828         * function.c (assign_parms): Don't put args of inline functions
11829         into registers when not optimizing.
11830
11831 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
11832
11833         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
11834         (prologue_use): New pattern.
11835         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
11836         preference to gen_rtx_USE.
11837         (thumb_expand_prologue): Use gen_prologue_use in preference to
11838         gen_rtx_USE.
11839         (thumb_expand_epilogue): Use gen_prologue_use in preference to
11840         gen_rtx_USE.
11841
11842 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
11843
11844         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11845
11846 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11847
11848         PR c/3504
11849         * doc/extend.texi: Correct documentation of __alignof__.
11850
11851 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
11852
11853         * params.h: Rename arguments of DEFPARAM so that it will be
11854         recognized as a translation keyword.
11855
11856 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
11857
11858         * extend.texi: Document altivec functions.
11859         Fix N-bit adjectives in X86 builtin documentation.
11860
11861 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
11862
11863         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11864         auto_inc_dec values.
11865
11866 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
11867
11868         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11869         after backslash.
11870         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11871
11872 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
11873
11874         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11875
11876 2002-01-22  Richard Henderson  <rth@redhat.com>
11877
11878         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11879         copy_insn not copy_rtx.
11880
11881 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
11882
11883         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
11884         "nonzero" as that might add "1" bits.  Ensure "constop" is
11885         properly sign extened.
11886         (force_to_mode): Tweak for sign extended constop.
11887
11888 2002-01-22  Richard Henderson  <rth@redhat.com>
11889
11890         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
11891         for_each_rtx instead of assuming we're already looking at the MEM.
11892         (split_small_symbolic_mem_operand): Likewise.
11893         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11894         * config/alpha/alpha.md (small symbolic memory splitters): Update.
11895
11896 2002-01-22  Richard Henderson  <rth@redhat.com>
11897
11898         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11899         sequence number for the literal.
11900         (divmoddi_internal_er): Likewise.
11901
11902 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11903
11904         PR java/4972
11905         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11906         in LIBICONV variable.
11907         * configure: Regenerated.
11908
11909 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
11910
11911         * dependence.c (build_def_use): Remove array_idx.
11912
11913         * dwarfout.c (last_filename): Remove.
11914         (output_compile_unit_die): Remove last_filename.
11915
11916 2002-01-22  Roger Sayle  <roger@eyesopen.com>
11917             Richard Henderson  <rth@redhat.com>
11918
11919         PR opt/3640
11920         * fold-const.c (fold): Optimize unsigned comparisons against
11921         UINT_MAX (and similar unsigned constants).
11922
11923 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
11924
11925         * Makefile.in (loop.o): Depend on OPTABS_H.
11926         * loop.c (emit_prefetch_instructions): Check the prefetch operand
11927         against the predicate.
11928
11929         PR target/5379
11930         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11931         for the address operand.
11932
11933 2002-01-22  Richard Henderson  <rth@redhat.com>
11934
11935         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11936
11937 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11938
11939         PR other/5450
11940         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11941         preprocessor flags.
11942
11943 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
11944
11945         * config.gcc (x86_64-*-netbsd*): New target.
11946         * config/i386/netbsd64.h: New file.
11947
11948 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
11949
11950         * regrename.c (kill_value): Fix typo.
11951
11952 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
11953
11954         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11955
11956         * config/rs6000/rs6000.h: Same.
11957
11958         * function.c (instantiate_virtual_regs): Remove
11959         STARTING_FRAME_PHASE.
11960         (assign_stack_local_1): Same.
11961         Calculate frame phase.
11962
11963 2002-01-22  Nick Clifton  <nickc@redhat.com>
11964
11965         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11966         variable declaration to outer scope in order to simplify
11967         future extensions.
11968         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
11969         arm_hard_regno_mode_ok.
11970         * config/arm/arm-protos.h: Add a prototype for
11971         arm_hard_regno_mode_ok.
11972         * config/arm/arm.c (soft_df_operand): Remove now redundant
11973         check for DImode values using IP_REGNUM.
11974         (nonimmediate_soft_df_operand): Remove now redundant check for
11975         DImode values using IP_REGNUM.
11976         (arm_hard_regno_mode_ok): New function. New check: make sure
11977         that DImode values are not stored in IP_REGNUM.
11978
11979         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11980         note with a USE.
11981         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11982
11983 2002-01-22  Jason Merrill  <jason@redhat.com>
11984
11985         * c-semantics.c (genrtl_compound_stmt): Only check nesting
11986         consistency if this COMPOUND_STMT is scoped.
11987
11988 2002-01-22  Kazu Hirata  <kazu@hxi.com>
11989
11990         * predict.c: Fix formatting.
11991         * print-tree.c: Likewise.
11992         * protoize.c: Likewise.
11993         * real.h: Likewise.
11994         * rtl.h: Likewise.
11995         * sbitmap.h: Likewise.
11996         * scan.c: Likewise.
11997         * sched-deps.c: Likewise.
11998         * sched-vis.c: Likewise.
11999         * sdbout.c: Likewise.
12000         * sibcall.c: Likewise.
12001         * ssa.c: Likewise.
12002         * ssa-ccp.c: Likewise.
12003         * ssa-dce.c: Likewise.
12004         * stmt.c: Likewise.
12005         * stor-layout.c: Likewise.
12006         * system.h: Likewise.
12007
12008 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12009
12010         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12011         if fits in bounds of base type.
12012
12013         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12014         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12015         (add_bound_info, default): If can't find a context, make a
12016         SAVE_EXPR.
12017         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12018
12019 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
12020
12021         * c-typeck.c (parser_build_binary_op): If result from
12022         build_binary_op is ERROR_MARK just return error_mark_node without
12023         further processing.
12024
12025 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
12026
12027         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12028         Split a.out-specific bits into...
12029         * config/netbsd-aout.h: ...this.
12030         * config/netbsd-elf.h: New file.
12031         * config/alpha/netbsd-elf.h: Remove.
12032         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12033         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12034         (STARTFILE_SPEC): Remove redundant definition.
12035         (ENDFILE_SPEC): Likewise.
12036         (LINK_SPEC): Likewise.
12037         (CPP_SPEC): Likewise.
12038         (ASM_SPEC): Likewise.
12039         (LIB_SPEC): Likewise.
12040         (SWITCH_TAKES_ARG): Likewise.
12041         (TARGET_MEM_FUNCTIONS): Likewise.
12042         (CPP_PREDEFINES): Redefine.
12043         (ASM_FINAL_SPEC): Remove redefinition.
12044         (ASM_COMMENT_START): Redefine.
12045         (FUNCTION_PROFILER): Define.
12046         (TARGET_VERSION): Redefine.
12047         Comment and formatting cleanup.
12048         * config/i386/netbsd.h: Include <netbsd-aout.h>.
12049         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12050         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12051         big- or little-endian.
12052         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12053         * config.gcc (*-*-netbsd*): Add definitions common to all
12054         NetBSD configs.
12055         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12056         gnu_ld definitions.  Add netbsd-elf.h to and remove
12057         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
12058         tmake_file, and don't lose previous tmake_file contents.
12059         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12060         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12061         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
12062         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12063         (mipsel-*-netbsd*): Rename this to...
12064         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
12065         mips/little.h to tm_file for mips*el-*.
12066         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12067         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12068         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12069
12070 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12071
12072         * pa-protos.h (reg_before_reload_operand): New function prototype.
12073         * pa.c (reg_before_reload_operand): New function implementation.
12074         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
12075         contraints to "*m".
12076
12077 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12078
12079         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12080
12081 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12082
12083         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12084         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12085         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12086         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12087         (ENDFILE_SPEC): Undefine.
12088         (STARTFILE_SPEC): Redefine for PA.
12089
12090 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12091
12092         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12093
12094 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
12095
12096         * config.gcc: Add entries to supported PowerPC --with-cpu
12097         types.
12098
12099 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
12100
12101         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12102         true for 64-bit mode only SSE registers in 32-bit mode.
12103
12104 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12105
12106         * unwind-dw2.c: Fix formatting.
12107         * unwind-dw2-fde.c: Likewise.
12108         * unwind-dw2-fde.h: Likewise.
12109         * unwind-pe.h: Likewise.
12110         * varasm.c: Likewise.
12111         * varray.h: Likewise.
12112
12113 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12114
12115         Remove workaround for register stack overwrite bug in mmix.
12116         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12117         support for TARGET_REG_STACK_FILL_BUG.
12118         * config/mmix/mmix.h: Remove member has_call_without_parameters.
12119         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12120         Delete.
12121         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12122         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12123         -mno-reg-stack-fill-bug-workaround.
12124         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12125         machine member has_call_without_parameters.
12126         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12127         -mreg-stack-fill-bug-workaround and
12128         -mno-reg-stack-fill-bug-workaround.
12129         (MMIX Options): Ditto.
12130
12131 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12132
12133         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12134         as appropriate.
12135         Remove redundant code.
12136
12137 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12138
12139         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12140         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12141         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12142         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12143         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12144         out target macro definitions and non-target-specific comments
12145         mostly taken from old versions of the manual.
12146
12147 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12148
12149         * config/h8300/h8300.h: Fix comment formatting.
12150         * config/ia64/aix.h: Likewise.
12151         * config/ia64/ia64-protos.h: Likewise.
12152         * config/ia64/ia64.c: Likewise.
12153         * config/ia64/ia64.h: Likewise.
12154         * config/ia64/ia64intrin.h: Likewise.
12155         * config/ia64/linux.h: Likewise.
12156         * config/ia64/unwind-aix.c: Likewise.
12157         * config/ia64/unwind-ia64.c: Likewise.
12158
12159 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12160
12161         * config/h8300/h8300.c: Revise comments about shift code.
12162
12163 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12164
12165         * config/h8300/h8300.c (function_arg): Update a comment.
12166
12167 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12168
12169         * config/h8300/h8300.md: Update the comments at the beginning
12170         of the file.
12171
12172 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12173
12174         * config/i370/i370.c: Fix comment formatting.
12175         * config/i370/i370.h: Likewise.
12176         * config/i370/i370.md: Likewise.
12177         * config/i370/linux.h: Likewise.
12178
12179 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12180
12181         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12182
12183         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12184         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12185         in incomplete case.
12186
12187 2002-01-20  Graham Stott  <grahams@redhat.com>
12188
12189         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12190
12191 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12192
12193         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12194
12195 2002-01-19  Tom Rix  <trix@redhat.com>
12196
12197         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12198
12199 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
12200
12201         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12202
12203         * function.c (assign_stack_local_1): Adjust x_frame_offset with
12204         STARTING_FRAME_PHASE.
12205         (STARTING_FRAME_PHASE): New.
12206         (instantiate_virtual_regs): Check saneness of
12207         STARTING_FRAME_PHASE.
12208
12209         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12210
12211 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12212
12213         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12214
12215 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12216
12217         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12218         be used for bootstrapping GCC 3.0.
12219
12220 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12221
12222         * config/h8300/h8300.md: Fix an insn length.
12223
12224 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12225
12226         * bitmap.h: Fix comment formatting.
12227         * combine.c: Likewise.
12228         * cppfiles.c: Likewise.
12229         * c-pragma.h: Likewise.
12230         * c-typeck.c: Likewise.
12231         * df.c: Likewise.
12232         * dwarf2out.c: Likewise.
12233         * function.c: Likewise.
12234         * gcc.c: Likewise.
12235         * genattrtab.c: Likewise.
12236         * gthr-win32.h: Likewise.
12237         * haifa-sched.c: Likewise.
12238         * predict.c: Likewise.
12239         * rtlanal.c: Likewise.
12240         * rtl.h: Likewise.
12241         * unwind-dw2-fde.h: Likewise.
12242         * unwind-pe.h: Likewise.
12243         * vmsdbgout.c: Likewise.
12244
12245 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12246
12247         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12248         if type_required and passed decl.
12249
12250 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
12251
12252         * config.gcc (cpu_type): Include altivec.h in powerpc
12253         extra_headers.
12254         Same for darwin.
12255
12256         * config/rs6000/altivec.h: New.
12257
12258 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
12259
12260         * doc/install.texi (*-ibm-aix*): Update assembler and exception
12261         handling information.
12262         * doc/trouble.texi (Interoperation): Add libstdc++ information
12263         for AIX.
12264         (Misunderstandings): Add template instantiation and static template
12265         member information for AIX.
12266
12267 2002-01-17  Jason Merrill  <jason@redhat.com>
12268
12269         * dbxout.c (dbxout_type): Support const and volatile.
12270
12271         * except.c (add_partial_entry): Remove backwards compatibility code.
12272         (end_protect_partials): Likewise.
12273
12274 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
12275
12276         * config/ia64/ia64.md (prologue_use): New.
12277         * config/ia64/ia64.c (ia64_expand_prologue): Use
12278         gen_prologue_use instead of gen_rtx_USE.
12279         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12280         as CODE_FOR_pred_rel_mutex.
12281         (ia64_sched_reorder2): Likewise.
12282
12283 2002-01-16  Eric Christopher  <echristo@redhat.com>
12284
12285         * config/mips/r3900.h: Reformat.
12286         (SUBTARGET_CPP_SIZE_SPEC): Remove.
12287         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12288         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12289         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12290         * config/mips/t-elf: Remove mips3 multilib.
12291
12292 2002-01-16  H.J. Lu <hjl@gnu.org>
12293
12294         * config/mips/linux.h: Include "mips/abi64.h".
12295
12296 2002-01-16  H.J. Lu <hjl@gnu.org>
12297
12298         * config/mips/t-linux: New.
12299
12300         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12301
12302         * config/mips/linux.h: Don't include "gofast.h".
12303         (INIT_SUBTARGET_OPTABS): Removed.
12304
12305 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12306
12307         * config/h8300/h8300-protos.h: Replace emit_a_shift with
12308         output_a_shift.
12309         * config/h8300/h8300.c: Likewise.
12310         * config/h8300/h8300.md: Likewise.
12311
12312 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12313
12314         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12315         spaces after an opcode name.
12316         (pushqi1_h8300hs): Likewise.
12317         (pushhi1_h8300hs): Likewise.
12318
12319 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12320
12321         * doc/extend.texi: Replace "option" with "attribute"
12322         appropriately.
12323
12324 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12325
12326         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12327         (and:DI () (const_int -8)).
12328         (split_small_symbolic_mem_operand): Split
12329         (mem (and:DI () (const_int -8)).
12330
12331 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12332
12333         PR target/5309:
12334         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12335         same way as TYPE_IMUL.
12336         (ultrasparc_sched_reorder): Likewise.
12337         * config/sparc/sparc.md (type): Add comment to update
12338         ultrasparc_sched_reorder when making changes.
12339
12340 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12341
12342         * doc/invoke.texi: Change the dump file name of block
12343         reordering pass from 28.bbro to 29.bbro.
12344         Mention -dk option.
12345
12346 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12347
12348         * i386.md (minsf splitter): Fix pasto.
12349
12350 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
12351
12352         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12353         to frame pointer initialisation instruction.
12354         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12355         initialisation instruction.
12356         (soft_df_operand): Do not accept the IP register.
12357         (nonimmediate_soft_df_operand): Do not accept the IP register.
12358
12359 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12360
12361         PR target/5357:
12362         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12363         MASK_V8 being both set.
12364
12365 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
12366
12367         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12368         insn for GOT register; add REG_MAYBE_DEAD notes instead.
12369         config/s390/s390.md (call, call_value): Add GOT register to
12370         CALL_INSN_FUNCTION_USAGE where needed.
12371         (call_exp, call_value_exp): New.
12372
12373 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
12374
12375         * config/arm/arm.c: General formatting tidy up.
12376
12377 2002-01-16  Graham Stott  <grahams@redhat.com>
12378
12379         * calls.c (try_to_integrate): Use "(size_t)" intermediate
12380         cast and when casting an integer literal to "rtx" pointer.
12381         (expand_call): Likewise.
12382         * flow.c (try_pre_increment): Likewise.
12383         (find_use_as_address): Likewise.
12384         * integrate.c (expand_iline_function): Likewise.
12385         * regmove.c (try_auto_increment): Likewise.
12386
12387 2002-01-16  Graham Stott  <grahams@redhat.com>
12388
12389         * sched-rgn.c (passed): Use sbitmap_free.
12390         (header): Likewise.
12391         (inner): Likewise.
12392         (in_queue): Likewise.
12393         (in_stack): Likewise.
12394
12395 2002-01-15  Eric Christopher  <echristo@redhat.com>
12396
12397         * flow.c (propagate_one_insn): Change to use fatal_insn.
12398
12399 2002-01-15  Kazu Hirata  <kazu@hxi.com>
12400
12401         * expmed.c (extract_fixed_bit_field): Remove unused code.
12402         * system.h: Poison SLOW_ZERO_EXTEND.
12403         * doc/tm.texi: Remove.
12404         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12405         * config/arm/arm.h: Likewise.
12406         * config/avr/avr.h: Likewise.
12407         * config/clipper/clipper.h: Likewise.
12408         * config/convex/convex.h: Likewise.
12409         * config/d30v/d30v.h: Likewise.
12410         * config/dsp16xx/dsp16xx.h: Likewise.
12411         * config/elxsi/elxsi.h: Likewise.
12412         * config/fr30/fr30.h: Likewise.
12413         * config/h8300/h8300.h: Likewise.
12414         * config/i370/i370.h: Likewise.
12415         * config/i386/i386.h: Likewise.
12416         * config/m68k/m68k.h: Likewise.
12417         * config/mips/mips.h: Likewise.
12418         * config/ns32k/ns32k.h: Likewise.
12419         * config/pdp11/pdp11.h: Likewise.
12420         * config/pj/pj.h: Likewise.
12421         * config/s390/s390.h: Likewise.
12422         * config/sh/sh.h: Likewise.
12423         * config/stormy16/stormy16.h: Likewise.
12424         * config/v850/v850.h: Likewise.
12425         * config/vax/vax.h: Likewise.
12426         * config/we32k/we32k.h: Likewise.
12427
12428 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
12429
12430         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12431         (altivec_lvsl): Change constraint to b.
12432         (altivec_lvsr): Same.
12433         (altivec_lvebx): Same.
12434         (altivec_lvehx): Same.
12435         (altivec_lvewx): Same.
12436         (altivec_lvxl): Same.
12437         (altivec_lvx): Same.
12438         (altivec_stvx): Add parallel.
12439         (altivec_stvxl): Same.
12440         (altivec_stvehx): Same.
12441         (altivec_stvebx): Same.
12442         (altivec_stvebx): Same.
12443
12444 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
12445
12446         * config.gcc: Change altivec.h to altivec-defs.h.
12447
12448         * config/rs6000/altivec.h: Delete.
12449
12450         * config/rs6000/altivec-defs.h: Add.
12451
12452 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12453
12454         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12455         and UMOD modes.
12456
12457         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12458         less than or equal to eight bytes.
12459
12460         * vax.md (andsi3): Remove constraints and change SET destination
12461         operand type to nonimmediate_operand.
12462         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
12463         when it is a CONST_INT.
12464
12465 2002-01-15  Jason Merrill  <jason@redhat.com>
12466
12467         * c-common.def (FILE_STMT): New code.
12468         * c-common.c (statement_code_p): It's a statement.
12469         * c-common.h (stmt_tree_s): Add x_last_filename.
12470         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12471         (last_expr_filename): New macro.
12472         * c-semantics.c (begin_stmt_tree): Initialize it.
12473         (add_stmt): If the filename changed, also insert a
12474         FILE_STMT.
12475         (expand_stmt): Handle seeing one.
12476
12477 2002-01-15  Eric Christopher  <echristo@redhat.com>
12478
12479         * flow.c (propagate_one_insn): Add error message and print out
12480         insn for debugging.
12481
12482 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
12483
12484         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12485         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12486         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12487         TRAMPOLINE_ALIGNMENT.
12488         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
12489         to be in bits.
12490         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12491         PCC_BITFIELD_TYPE_MATTERS.
12492         * config/interix.h (STDC_VALUE): Remove.  Use
12493         STDC_0_IN_SYSTEM_HEADERS.
12494         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12495         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12496         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12497
12498 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12499
12500         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12501         not work on this platform currently.
12502
12503 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
12504
12505         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12506         readonly_warning in _().
12507
12508 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
12509
12510         * gcc.c (delete_if_ordinary): Backout previous change.
12511
12512 2002-01-15  Kazu Hirata  <kazu@hxi.com>
12513
12514         * config/h8300/h8300.c (print_operand): Remove support for
12515         unused operand characters.
12516
12517         * read-rtl.c: Fix formatting.
12518         * real.c: Likewise.
12519         * recog.c: Likewise.
12520         * regclass.c: Likewise.
12521         * regmove.c: Likewise.
12522         * reg-stack.c: Likewise.
12523         * reload1.c: Likewise.
12524         * rtlanal.c: Likewise.
12525
12526 2002-01-15  Kazu Hirata  <kazu@hxi.com>
12527
12528         * config/i386/i386.c: Fix formatting.
12529
12530 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
12531
12532         * c-typeck.c (process_init_element): Don't save_expr
12533         COMPOUND_LITERAL_EXPR if just its initializer will be used.
12534
12535 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
12536
12537         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12538         emit optional traceback table if optimize_size or TARGET_ELF.
12539         * config/rs6000/rs6000.md (prefetch): New.
12540
12541 2002-01-15  Andreas Jaeger  <aj@suse.de>
12542
12543         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12544
12545 2002-01-15  Kazu Hirata  <kazu@hxi.com>
12546
12547         * mips-tfile.c: Fix formatting.
12548
12549 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
12550
12551         * unroll.c (final_reg_note_copy): Fix previous commit.
12552
12553 2002-01-14  Kazu Hirata  <kazu@hxi.com>
12554
12555         * config/h8300/h8300-protos.h: Remove the prototype for
12556         eq_operator.
12557         * config/h8300/h8300.c (eq_operator): Remove.
12558
12559 2002-01-14  Richard Henderson  <rth@redhat.com>
12560
12561         * config/i386/i386.md (prefetch): Tidy.
12562         (prefetch_3dnow): Fix locality operand.
12563
12564 2002-01-14  Richard Henderson  <rth@redhat.com>
12565
12566         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12567         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12568
12569 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
12570
12571         * reload1.c (reload_combine): Pass reg_sum replacement through
12572         copy_rtx in loop performing multiple changes.
12573
12574 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
12575
12576         * except.c (remove_unreachable_regions): New.
12577         (free_eh_status): Clear exception_handler_labels.
12578         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12579         (find_exception_handler_labels): Don't add the same label more than
12580         once.
12581         (remove_exception_handler_label): Don't die if
12582         find_exception_handler_labels hasn't been called for the current
12583         function yet.
12584
12585 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
12586
12587         * toplev.c (rest_of_compilation): Rebuild jump labels after
12588         gcse.
12589
12590 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
12591
12592         * doc/extend.texi: Move documentation of X86 built-in functions
12593         here.
12594         * doc/invoke.texi: From here.
12595         * doc/sourcebuild.texi: Document location of documentation for
12596         machine built-in functions.
12597
12598 2002-01-13  Christopher Faylor  <cgf@redhat.com>
12599
12600         * cppfiles.c (TEST_THRESHOLD): New macro.
12601         (SHOULD_MMAP): Ditto.
12602         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12603         be used.
12604
12605 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
12606
12607         * unroll.c (final_reg_note_copy): Properly handle
12608         REG_LABEL
12609         (unroll_loops): Fix LOOP_CONDITION heuristics.
12610
12611 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
12612
12613         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12614         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12615
12616 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
12617
12618         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12619         threaded loop.
12620
12621 2002-01-14  Tom Rix  <trix@redhat.com>
12622
12623         * config/rs6000/rs6000.md: Fix typo with sradi.
12624
12625 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
12626
12627         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12628         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12629         (clrstrdi, clrstrsi): Adapt callers.
12630
12631         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12632
12633         (movti splitter): Never use register 0 as base register.
12634
12635 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
12636
12637         * combine.c (simplify_shift_const): Always generate new rtx
12638         for shift expression instead of reusing given expression.
12639
12640 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12641
12642         * config/alpha/alpha.c (alpha_expand_mov): Don't call
12643         alpha_legitimize_address unless mode is Pmode.
12644
12645 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
12646
12647         * doc/md.texi (Modifiers): Document the '*' constraint for the
12648         user.
12649
12650         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12651         * doc/extend.texi (Function Attributes): 'interrupt' is valid
12652         for xstormy16 too.
12653
12654 2002-01-13  Richard Henderson  <rth@redhat.com>
12655
12656         * reload.c (find_reloads): Use a hard reg destination as reload reg
12657         for an input reload of the source.
12658
12659 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12660
12661         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12662         more generic.
12663
12664 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
12665
12666         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12667         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12668
12669         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12670
12671 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12672
12673         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12674
12675 2002-01-12  Tom Rix  <trix@redhat.com>
12676
12677         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12678         TARGET_POWERPC64.
12679
12680 2002-01-12  Richard Henderson  <rth@redhat.com>
12681
12682         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12683
12684         * doc/invoke.texi: Update Alpha options.
12685
12686         * doc/invoke.texi: Update i386 built-in function lists.
12687
12688 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
12689
12690         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12691         referencing outside.
12692
12693 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12694
12695         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12696         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12697         offsets, and change line folding.
12698         * optabs.c (expand_binop): Remove warnings.
12699         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12700
12701 2002-01-12  Graham Stott <grahams@redhat.com>
12702
12703         * attribs.c (handle_deprecated_attribute): constify WHAT.
12704         * diagnostic.c (warn_deprecated_use): Add braces, fixes
12705         dangling else warning and constify WHAT.
12706         * except.h (struct function, struct inline_remap): Move
12707         struct tag forward defs before all prototypes.
12708         (duplicate_eh_regions): Whitespace.
12709
12710 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
12711
12712         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12713         MODE_BASE_REG_CLASS.
12714         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12715
12716 2002-01-12  Richard Henderson  <rth@redhat.com>
12717
12718         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12719         (ix86_expand_vector_move): New.
12720         (bdesc_2arg): Remove andps, andnps, orps, xorps.
12721         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
12722         Remove old prefetch builtins.  Special case the logicals removed above.
12723         (ix86_expand_builtin): Likewise.
12724         (safe_vector_operand): Use V4SFmode, not TImode.
12725         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
12726         (ix86_expand_timode_binop_builtin): New.
12727         * config/i386/i386-protos.h: Update.
12728         * config/i386/i386.h (enum ix86_builtins): Update.
12729         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
12730         Use ix86_expand_vector_move in vector move expanders.
12731         (movti_internal, movti_rex64): Add xorps alternative.
12732         (sse_clrv4sf): Rename and adjust from sse_clrti.
12733         (prefetch): Don't work so hard.
12734         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
12735         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
12736         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
12737
12738 2002-01-11  Richard Henderson  <rth@redhat.com>
12739
12740         * config/i386/mmintrin.h: New file.
12741         * config/i386/xmmintrin.h: New file.
12742         * config.gcc (i?86-*-*): Add extra_headers.
12743         * simplify-rtx.c (simplify_unary_operation): Handle saturating
12744         truncation codes.
12745         (simplify_binary_operation): Handle saturating arithmetic codes.
12746         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
12747         not the lowpart subreg.
12748         (ix86_expand_builtin): Return a TImode dummy register instead of 0
12749         on error.
12750         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12751
12752 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12753
12754         * conflict.c (conflict_graph_compute): Free regsets when finished.
12755         * ssa.c (compute_coalesced_reg_partition): Likewise.
12756
12757 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12758
12759         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12760         every where we allocate a register.
12761
12762 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12763
12764         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12765         * lcm.c (compute_earliest, compute_farthest): Likewise.
12766
12767 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
12768
12769         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12770
12771 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
12772
12773         * doc/rtl.texi (Insns): Fix 2 typos.
12774
12775 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
12776
12777         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
12778         options.  Use @table @gcctabopt for MMIX options.  Add index
12779         entries for MMIX options.  Start new paragraph with first
12780         heading of the machine-dependent options.
12781
12782 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12783
12784         PR other/5299
12785         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12786         * combine.c (force_to_mode): Same.
12787         * reload1.c (clear_reload_reg_in_use): Same.
12788
12789 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
12790
12791         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12792         and 'subtargets'.
12793
12794 2002-01-11  Andreas Jaeger  <aj@suse.de>,
12795             Brad Lucier <lucier@math.purdue.edu>
12796
12797         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12798         mcpu.
12799
12800 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
12801
12802         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
12803         Protect with IN_LIBGCC.
12804         (LINK_EH_SPEC): Add required trailing space.
12805
12806 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
12807
12808         * c-tree.h: Move function declarations so that they are listed
12809         under the filename which contains them.
12810         (check_identifier, finish_decl_top_level,
12811         lookup_name_current_level_global, shadow_record_fields): Remove.
12812
12813 2002-01-11  Andreas Jaeger  <aj@suse.de>
12814
12815         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12816         march.
12817
12818 2002-01-10  Richard Henderson  <rth@redhat.com>
12819
12820         * config/alpha/alpha.c (print_operand): Add 'J'.
12821         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
12822         new operand with the sequence number for the lituse.  When splitting
12823         the insns, use gen_movdi_er_high_g and generate a sequence number.
12824         (gen_movdi_er_high_g): Print the sequence number if non-zero.
12825
12826 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
12827
12828         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12829         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12830         stvxl.
12831         (altivec_expand_builtin): Same.
12832         (altivec_expand_stv_builtin): New.
12833
12834         * config/rs6000/rs6000.h (rs6000_builtins): Same.
12835
12836         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
12837         ("altivec_lvehx"): New.
12838         ("altivec_lvewx"): New.
12839         ("altivec_lvxl"): New.
12840         ("altivec_lvx"): New.
12841         ("altivec_stvx"): New.
12842         ("altivec_stvebx"): New.
12843         ("altivec_stvehx"): New.
12844         ("altivec_stvewx"): New.
12845         ("altivec_stvxl"): New.
12846
12847 2002-01-10  Richard Henderson  <rth@redhat.com>
12848
12849         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
12850         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
12851         care not to delete instructions twice.
12852
12853 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
12854
12855         * toplev.c: Don't declare environ (it's not used anywhere).
12856         * configure.in: Don't check for declaration of environ.
12857         * config/i386/xm-mingw32.h: Don't #define environ.
12858         * config.in, configure: Regenerate.
12859
12860 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
12861
12862         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12863         * configure: Regenerate.
12864
12865         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
12866         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
12867         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
12868         alpha/xm-vms.h.
12869         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
12870         LIMITS_H_TEST here, not in m68k/x-next.
12871         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
12872         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
12873
12874         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
12875         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
12876         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
12877
12878         * config/i386/x-djgpp: Renamed i386/t-djgpp.
12879         * config/m88k/x-dolph: Renamed m88k/t-dolph.
12880         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
12881         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
12882         replacement of quadlib.asm with quadlib.c.
12883
12884         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
12885         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
12886         config/rs6000/xm-beos.h: Delete file.
12887
12888         * config.gcc: Update to match above changes.
12889
12890 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12891
12892         * config/h8300/h8300.h: Fix comment typos.
12893         * config/h8300/h8300.md: Likewise.
12894         * config/h8300/lib1funcs.asm: Likewise.
12895
12896 2002-01-10  Dale Johannesen  <dalej@apple.com>
12897
12898         PR optimization/5269
12899         * unroll.c (precondition_loop_p): Make *increment be the correct
12900         sign when n_iterations known, to avoid confusing caller.
12901
12902 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12903
12904         * doc/extend.texi (deprecated): Fix a typo.
12905
12906 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12907
12908         * basic-block.h (update_br_prob_note): Declare.
12909         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
12910         (try_forward_edges): Care negative frequencies and update note.
12911         (outgoing_edges_match): Tweek conditional merging heuristics.
12912         (try_crossjump_to_edge): use update_br_prob_note.
12913         * cfglayout.c (fixup_reorder_chain): Likewise.
12914         * cfrtl.c (update_br_prob_note): New.
12915         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
12916
12917         * i386.c (ix86_decompose_address): Return -1 if address contains
12918         shift.
12919         (legitimate_address_p): Require ix86_decompose_address to return 1.
12920
12921         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12922         (cprop_insn): Likewise.
12923
12924 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12925
12926         * toplev.c: Fix formatting.
12927         * tree.c: Likewise.
12928         * tree-dump.c: Likewise.
12929         * unroll.c: Likewise.
12930         * unwind-dw2.c: Likewise.
12931         * unwind-dw2-fde.c: Likewise.
12932         * unwind-dw2-fde-glibc.c: Likewise.
12933         * unwind-sjlj.c: Likewise.
12934
12935 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
12936
12937         * doc/invoke.texi: Document PDP-11 options.
12938
12939 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12940
12941         * config/h8300/h8300.h: Fix formatting.
12942
12943 2002-01-10  Ira Ruben   <ira@apple.com>
12944
12945         Add __attribute__ ((deprecated)).
12946         * extend.texi: Document __attribute__ ((deprecated)).
12947         * invoke.texi: Document -Wno-deprecated-declarations.
12948         * testsuite/g++.dg/other/deprecated.C: New C++ test.
12949         * testsuite/gcc.dg/deprecated.c: New C test.
12950         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
12951         (c_common_attribute_table): Add "deprecated" entry.
12952         (handle_deprecated_attribute): New function.
12953         * c-decl.c (deprecated_states): New enum.
12954         deprecated_state: State of "deprecated" handling.
12955         (start_decl): Set deprecated_state based on attributes.
12956         (grokdeclarator): Test for deprecated uses, propagate attribute.
12957         * c-typeck.c (build_component_ref): Test for deprecated fields.
12958         (build_external_ref): Test for deprecated primaries.
12959         * diagnostic.c (warn_deprecated_use) New function to issue
12960         warnings about __attribute__ ((depricated)) references.
12961         * flags.h (warn_deprecated_decl): Extern declared for
12962         -W[no-]deprecated-declarations option.
12963         * print-tree.c (print_node): Show deprecated flag status.
12964         * toplev.c (warn_deprecated_decl): Defined.
12965         (W_options): Added "deprecated-declaration".
12966         * toplev.h (warn_deprecated_use): Extern declared.
12967         * tree.h (struct tree_common): Define deprecated_flag.
12968         (TREE_DEPRECATED): New macro to access flag.
12969         * cp/call.c (build_call): Test for deprecated calls.
12970         * cp/class.c (add_implicitly_declared_members): Set global
12971         flag to tell grokdeclarator to not issue deprecated warnings.
12972         * cp/cp-tree.h: Add extern for adding_implicit_members.
12973         * cp/decl.c (deprecated_states): New enum.
12974         (start_decl): Set deprecated_state based on attributes.
12975         (grokdeclarator): Test for deprecated uses, propagate attribute.
12976         * cp/lex.c (do_identifier): Test for deprecated primaries.
12977         * cp/typeck.c (build_component_ref): Test for deprecated fields.
12978
12979 2002-01-10  Ira Ruben   <ira@apple.com>
12980
12981         Fix to assign attributes to inline member functions.
12982         * cp/decl.c (start_method): Handle attrlist.
12983
12984 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12985
12986         * combine.c (expand_field_assignment): Use subreg_lsb().
12987
12988 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
12989
12990         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
12991         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
12992         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
12993         Recurse for any operand of AND as long as constant is non-zero.
12994
12995 2002-01-10  Kazu Hirata  <kazu@hxi.com>
12996
12997         * config/h8300/h8300.md: Remove constraints from expanders.
12998
12999 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13000
13001         * varasm.c: Fix formatting.
13002         * varray.c: Likewise.
13003         * vmsdbgout.c: Likewise.
13004         * xcoffout.c: Likewise.
13005
13006 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13007
13008         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13009         update edge probabilities to match.
13010
13011 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13012
13013         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13014         dependencies.
13015         * doc/languages.texi, doc/sourcebuild.texi: New files.
13016         * doc/configfiles.texi: Make a subsubsection.  Update.
13017         * doc/configterms.texi: Add @node.  Remove warning that this isn't
13018         instructions for building GCC.
13019         * doc/makefile.texi: Make a subsection.
13020         * doc/gccint.texi: Update.
13021
13022 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
13023
13024         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13025
13026 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13027
13028         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13029
13030 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
13031
13032         * optabs.c (expand_fix): Look for wider integer modes first.
13033
13034         * i386.md (mov?f): Avoid the fake const double trick for medium
13035         memory model.
13036         (min?f*/max?f*): Prohibit memory operands for i387 variant.
13037         (fop_df_4): Disable for SSE compilation.
13038
13039 2002-01-10  Graham Stott  <grahams@redhat.com>
13040
13041         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13042         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13043
13044 2002-01-10  Richard Henderson  <rth@redhat.com>
13045
13046         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13047
13048 2002-01-10  Richard Henderson  <rth@redhat.com>
13049
13050         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13051         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
13052
13053 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13054
13055         * combine.c (can_combine_p): Fix a comment typo.
13056
13057 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
13058
13059         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13060         empty list correctly.  Change loop index $t to $f for
13061         consistency with rest of Makefile.
13062
13063 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
13064
13065         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13066         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13067
13068         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13069         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13070         (altivec_init_builtins): Same.
13071         (altivec_expand_unop_builtin): Return NULL_RTX on error.
13072         (altivec_expand_binop_builtin): Same.
13073         (altivec_expand_ternop_builtin): Same.
13074         (bdesc_dst): New.
13075
13076         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13077         ("altivec_vctuxs"): Fix typo.
13078         ("altivec_vnmsubfp"): Same.
13079         ("altivec_dssall"): New.
13080         ("altivec_mfvscr"): New.
13081         ("altivec_dss"): New.
13082         ("altivec_lvsl"): New.
13083         ("altivec_lvsr"): New.
13084         ("altivec_dstt"): New.
13085         ("altivec_dstst"): New.
13086         ("altivec_dststt"): New.
13087         ("altivec_dst"): New.
13088
13089         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13090         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13091
13092 2002-01-09  Richard Henderson  <rth@redhat.com>
13093
13094         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13095
13096 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
13097
13098         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13099         function.
13100         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13101         prototype.
13102         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13103
13104 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13105
13106         * read-rtl.c: Fix formatting.
13107         * real.c: Likewise.
13108         * regclass.c: Likewise.
13109         * regrename.c: Likewise.
13110         * reg-stack.c: Likewise.
13111         * reload1.c: Likewise.
13112         * reload.c: Likewise.
13113         * rtl.c: Likewise.
13114
13115 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13116
13117         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13118         to extract items in the expr_list chain.
13119
13120 2002-01-09  Richard Henderson  <rth@redhat.com>
13121
13122         * config/vax/vax.c (vax_rtx_cost): Never abort.
13123
13124         * config/vax/vax.h (REAL_ARITHMETIC): Define.
13125
13126 2002-01-09  Jan Hubicka  <jh@suse.cz>
13127
13128         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13129
13130 2002-01-09  Richard Henderson  <rth@redhat.com>
13131
13132         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13133         Unify code from various alternatives.
13134
13135 2002-01-09  Richard Henderson  <rth@redhat.com>
13136
13137         * regrename.c (copy_value): Ignore the copy if the source register
13138         is present in the value chain with a narrower mode.
13139
13140 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
13141
13142         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13143         for the c4x target. Also improve layout.
13144
13145 2002-01-09  Richard Henderson  <rth@redhat.com>
13146
13147         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13148         * config/m32r/m32r.md (and ior xor splitters): Swap operands
13149         to match insn patterns.
13150
13151 2002-01-09  Richard Henderson  <rth@redhat.com>
13152
13153         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13154         (copyprop_hardreg_forward_1): Likewise.
13155
13156 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13157
13158         * pa.md (decrement_and_branch_until_zero): Change predicate for
13159         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13160
13161 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
13162
13163         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13164         gets undefined. For Darwin.
13165
13166 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13167
13168         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13169
13170 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13171
13172         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13173
13174 2002-01-08  Richard Henderson  <rth@redhat.com>
13175
13176         * regrename.c (copy_value): Ignore overlapping copies.
13177
13178 2002-01-08  Richard Henderson  <rth@redhat.com>
13179
13180         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13181         as needed to avoid shared structure.
13182
13183 2002-01-08  Kazu Hirata  <kazu@hxi.com>
13184
13185         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13186         H8/300H and H8/S.
13187
13188 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13189
13190         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13191         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13192         documentation of obsolete macros.
13193         * system.h: Poison these macros.
13194         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13195         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13196         config/c4x/c4x.h, config/clipper/clipper.h,
13197         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13198         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13199         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13200         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13201         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13202         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13203         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13204         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13205         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13206         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13207         config/sparc/sparc.h, config/stormy16/stormy16.h,
13208         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13209         definitions and commented out definitions of obsolete macros.
13210         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13211         of MAX_INT_TYPE_SIZE.
13212
13213 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13214
13215         * config/s390/s390.c (s390_preferred_reload_class): Never
13216         return ADDR_REGS if it isn't a subset of the given class.
13217         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13218         FP_REGS, but all superclasses as well.
13219
13220         * config/s390/s390.c (s390_function_profiler): Fix thinko.
13221
13222         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13223         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13224         must not be a const_int.
13225
13226 2002-01-08  Richard Henderson  <rth@redhat.com>
13227
13228         * Makefile.in (toplev.o): Depend on options.h.
13229         (gcc.o): Depend on specs.h.
13230
13231 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
13232
13233         * expr.c (store_expr): Convert VOIDmode constants back to target's
13234         mode.
13235
13236 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13237
13238         * doc/invoke.texi: Markup gcc as @command.  Refer to
13239         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13240         of http://gcc.gnu.org/thanks.html.
13241
13242 2002-01-08  Dale Johannesen  <dalej@apple.com>
13243
13244         * config/rs6000/rs6000.md: Add missing int register
13245         target case to movdf_low.
13246
13247 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
13248
13249         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13250         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
13251         (cppinit.o): Depend on except.h.
13252         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13253         s-specs): New rules.
13254
13255         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13256         Don't create specs.h/options.h/gencheck.h here.  Remove
13257         unnecessary variable settings from last argument of AC_OUTPUT.
13258         * config.in, configure: Regenerate.
13259         * intl.c: Hardcode package name as "gcc".
13260
13261         * cppinit.c: Include except.h.
13262         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13263         appropriate.
13264         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13265         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13266         (!)USING_SJLJ_EXCEPTIONS.
13267         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13268
13269 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13270
13271         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13272         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13273         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13274         documentation of obsolete macros.
13275         * system.h: Poison these macros.
13276         * config/d30v/d30v.h, config/ns32k/encore.h,
13277         config/stormy16/stormy16.h: Remove definitions and commented out
13278         definitions of obsolete macros.
13279
13280 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
13281
13282         * objc/objc-act.c (handle_class_ref): Mark the declaration of
13283         %sobjc_class_ref_%s as used - to prevent unwanted compiler
13284         warnings.
13285
13286 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13287
13288         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13289         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13290         to insn adjusting stack/frame pointer.
13291         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13292         accept operands that cause the insn to be non-splittable.
13293
13294 2002-01-08  Graham Stott  <grahams@redhat.com>
13295
13296         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13297         (C_TYPE_FIELDS_VOLATILE): Likewise.
13298         (C_TYPE_BEING_DEFINED): Likewise.
13299         (C_IS_RESERVED_WORD): Likewise.
13300         (C_TYPE_VARIABLE_SIZE): Likewise.
13301         (C_DECL_VARIABLE_SIZE): Likewise.
13302         (C_MISSING_PROTOTYPE_WARNED): Likewise.
13303         (C_SET_EXP_ORIGINAL_CODE): Likewise.
13304         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13305         parenthesis.
13306         (C_DECL_ANTICIPATED): Likewise.
13307         (c_build_type_variant): Add parenthesis.
13308
13309 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13310
13311         * gcc.c (option_map): Remove --version.
13312         (process_command): Handle -fversion following the GNU Coding
13313         Standards.  Partially addresses PR other/704.
13314
13315 2002-01-08  Graham Stott  <grahams@redhat.com>
13316
13317         * combine.c (combine_instructions): Fix typo.
13318
13319 2002-01-08  Graham Stott  <grahams@redhat.com>
13320
13321         * debug.h: Use "tree" and "rtx" throughout.
13322
13323         * debug.c: Likewise.
13324
13325 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
13326
13327         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13328         constant pool, use the pool's version of the symbol instead.
13329
13330 2002-01-07  Richard Henderson  <rth@redhat.com>
13331
13332         * regrename.c (find_oldest_value_reg): Ignore the value chain if
13333         the original register was copied in a mode with a fewer number of
13334         hard registers than the desired mode.
13335         (copyprop_hardreg_forward_1): Likewise.
13336         (debug_value_data): Fix loop test.
13337         * toplev.c (parse_options_and_default_flags): Reenable
13338         -fcprop-registers at -O1.
13339
13340 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13341
13342         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13343         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13344
13345         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13346         predicates.
13347
13348         * config/rs6000/rs6000.md: Add altivec predicate patterns.
13349
13350 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13351
13352         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13353         (pa_output_function_prologue): Output local label at the beginning of
13354         the prologue when profiling.
13355         (hppa_profile_hook): Use the local label rather than the function label.
13356         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13357
13358 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13359
13360         * config/rs6000/rs6000.c (print_operand): Remove extra space.
13361         (altivec_expand_unop_builtin): Fix thinko.
13362         (altivec_expand_binop_builtin): Same.
13363         (altivec_expand_ternop_builtin): Same.
13364         (altivec_expand_builtin): Same.
13365
13366 2002-01-07  Richard Henderson  <rth@redhat.com>
13367
13368         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13369
13370 2002-01-07  Jason Merrill  <jason@redhat.com>
13371
13372         * unwind-dw2.c (execute_cfa_program): Use < again.
13373
13374 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
13375
13376         * predict.c (combine_predictions_for_insn): Avoid division by zero.
13377
13378 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
13379
13380         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13381         Don't allow -1 - x -> ~x simplifications in the first pass.
13382
13383 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13384
13385         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13386         arguments.
13387         (altivec_expand_binop_builtin): Same.
13388         (altivec_expand_unop_builtin): Same.
13389         (print_operand): Fix typo.
13390         (bdesc_1arg): Add vupk* variants.
13391
13392         * rs6000.h (rs6000_builtins): Add vupk* enums.
13393
13394         * rs6000.md: Add altivec_vupk* variants.
13395
13396 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13397
13398         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13399         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13400         and last update dates.
13401
13402 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
13403
13404         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13405
13406 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13407
13408         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13409         * config/avr/avr.h (CPP_SPEC): Likewise.
13410         (LINK_SPEC): Likewise.
13411         (CRT_BINUTILS_SPECS): Likewise.
13412         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13413         * doc/invoke.texi (AVR Options): Document them.
13414
13415 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13416
13417         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13418         LABEL_NUSES.
13419
13420 2002-01-07  Graham Stott  <grahams@redhat.com>
13421
13422         * config/i386/i386.h: Update copyright date.
13423         (HALF_PIC_PTR): Add parenthesis.
13424         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13425         (CONSTANT_ALIGNMENT): Add parenthesis.
13426         (DATA_ALIGNMENT): Likewise.
13427         (LOCAL_ALIGNMENT): Likewise.
13428         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13429         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13430         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13431         (HARD_REGNO_NREGS): Add paranethesis.
13432         (VALID_SSE_REG_MODE): Whitespace.
13433         (VALID_MMX_REG_MODE): Whitespace.
13434         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13435         (ix86_hard_regno_mode_ok): Add parenthesis.
13436         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13437         (RETURN_IN_MEMORY): Whitespace.
13438         (N_REG_CLASSES): Add parenthesis.
13439         (INTEGER_CLASS_P): Add parenthesis and wrap.
13440         (FLOAT_CLASS_P): Likewise.
13441         (SSE_CLASS_P): Likewise.
13442         (MMX_CLASS_P): Likewise.
13443         (MAYBE_INTEGER_CLASS_P): Likewise.
13444         (MAYBE_FLOAT_CLASS_P): Likewise.
13445         (MAYBE_SSE_CLASS_P): Likewise.
13446         (MAYBE_MMX_CLASS_P): Likewise.
13447         (Q_CLASS_P): Likewise.
13448         (GENERAL_REGNO_P): Uppercase macro parameter.
13449         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13450         (FP_REGNO_P): Likewise.
13451         (ANY_FP_REGNO_P): Uppercase macro parameter.
13452         (SSE_REGNO_P): Likewise.
13453         (SSE_REGNO): Likewise.
13454         (SSE_REG_P): Likewise.
13455         (SSE_FLOAT_MODE_P): Likewise.
13456         (MMX_REGNO_P): Likewise.
13457         (MMX_REG_P):Likewise.
13458         (STACK_REG_P): Likewise.
13459         (NON_STACK_REG_P): Likewise.
13460         (STACK_TOP_P): Likewise.
13461         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13462         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13463         (SECONDARY_MEMORY_NEEDED): Likewise.
13464         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13465         (MD_ASM_CLOBBERS): Whitespace and wrap.
13466         (MUST_PASS_IN_STACK): Whitespace and wrap.
13467         (RETURN_POPS_ARGS): Add parenthesis.
13468         (INIT_CUMULATIVE_ARGS): Likewise.
13469         (FUNCTION_ARG): Likewise.
13470         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13471         (SETUP_INCOMING_VARARGS): Likewise.
13472         (BUILD_VA_LIST_TYPE):  Add parenthesis.
13473         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13474         parenthsis.
13475         (EXPAND_BUILTIN_VA_ARG): Likewise.
13476         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13477         (INITIALIZE_TRAMPOLINE): Add parenthesis.
13478         (INITIAL_ELIMINATION_OFFSET): Likewise.
13479         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13480         (REGNO_OK_FOR_BASE_P): Likewise.
13481         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13482         (REGNO_OK_FOR_DIREG_P): Likewise.
13483         (REG_OK_FOR_INDEX_P): Whitespace.
13484         (REG_OK_FOR_BASE_P): Whitespace.
13485         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13486         parenthesis.
13487         (FIND_BASE_TERM): Fix typo.
13488         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
13489         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13490         (SYMBOLIC_CONST; Whitespace.
13491         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
13492         (ENCODE_SECTION_INFO): Whitespace.
13493         (FINALIZE_PIC): Remove do { ... } while (0).
13494         (PROMOTE_MODE): Wrap in do { ... } while (0).
13495         (CONST_COSTS): Whitespace.
13496         (RTX_COSTS): Add paramethesis, whitespace and wrap.
13497         (REGISTER_MOVE_COST): Add parenthesis.
13498         (MEMORY_MOVE_COST): Likewise.
13499         (EXTRA_CC_MODES): Whitespace.
13500         (SELECT_CC_MODE): Add parenthesis and whitespace.
13501         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13502         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13503         (ASM_OUTPUT_LABEL): Add paramethesis.
13504         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13505         (ASM_OUTPUT_REG_POP): Likewise.
13506         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13507         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13508
13509         * config/i386/i386.c: Update copyright.
13510         (CHECK_STACK_LIMIT): Add parenthesis.
13511         (AT_BP): Uppercase macro parameter.
13512         (x86_64_int_parameter_registers): Constify.
13513         (x86_64_int_return_registers): Likewise.
13514         (ix86_compare_op0): Use rtx.
13515         (construct_container): Constify INTREG parameter.
13516         (function_arg): Use rtx.
13517
13518         * diagnostic.h: Update copyright date.
13519         (output_buffer_state): Add parenthesis.
13520         (output_buffer_format_args): Likewise.
13521
13522         * combine.c (combine_instructions): Replace XEXP (links, 0)
13523         with link.
13524
13525 2002-01-06  H.J. Lu <hjl@gnu.org>
13526
13527         * cfgcleanup.c (thread_jump): Fix 2 typos.
13528
13529 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
13530
13531         * config.gcc: Add support for --enable-altivec.
13532
13533 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13534
13535         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13536
13537 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
13538
13539         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13540         __objc_class_name_*.
13541
13542 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13543
13544         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13545
13546 2002-01-06  Richard Henderson  <rth@redhat.com>
13547
13548         * reorg.c (emit_delay_sequence): Remove death notes, not merely
13549         nop them out.  Increment label reference count for REG_LABEL.
13550         (fill_slots_from_thread): Frob label reference count around
13551         delete_related_insns.
13552
13553 2002-01-05  Richard Henderson  <rth@redhat.com>
13554
13555         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13556         jump threading.
13557
13558 2002-01-05  Richard Henderson  <rth@redhat.com>
13559
13560         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13561         * integrate.c (output_inline_function): Likewise.
13562         * toplev.c (rest_of_compilation): Do it here instead.  Move call
13563         to remove_unnecessary_notes after emitting abstract instance.
13564         Force an emitted nested function to have its parent emited as well.
13565         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13566         for null.
13567         (rtl_for_decl_location): Do not look at reload data structures
13568         before reload has run.
13569
13570 2002-01-05  Kazu Hirata  <kazu@hxi.com>
13571
13572         * cse.c: Fix formatting.
13573         * dwarf2asm.c: Likewise.
13574         * dwarf2out.c: Likewise.
13575         * explow.c: Likewise.
13576         * expmed.c: Likewise.
13577         * function.c: Likewise.
13578         * gcov.c: Likewise.
13579         * gencheck.c: Likewise.
13580         * genrecog.c: Likewise.
13581         * ggc-common.c: Likewise.
13582         * ggc-page.c: Likewise.
13583         * global.c: Likewise.
13584
13585 2002-01-05  Kazu Hirata  <kazu@hxi.com>
13586
13587         * combine.c: Fix formatting.
13588
13589 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
13590
13591         PR middle-end/1557
13592         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13593
13594 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
13595
13596         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13597         as 1 for __powerpc64__ as well.
13598
13599         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13600
13601         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13602         return it.
13603
13604 2002-01-05  Daniel Berlin  <dan@dberlin.org>
13605
13606         * lcm.c: Revert change, due to performance regression it causes on
13607         SPEC because it's slightly more conservative (sigh, I hate
13608         edge-based LCM).
13609
13610 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
13611
13612         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13613
13614 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
13615
13616         * doc/cppinternals.texi: Update.
13617
13618 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
13619
13620         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13621         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13622         negatives.
13623         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
13624         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13625         kludge for pre-october-14th mmix versions to handle new-found bug
13626         with PUSHJ/PUSHGO and the register stack.
13627         * config/mmix/mmix.h (struct machine_function): Rename member
13628         has_call_value_without_parameters to has_call_without_parameters.
13629         All referers changed.
13630         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13631         TARGET_MASK_BRANCH_PREDICT): New macros.
13632         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13633         -mno-reg-stack-fill-bug-workaround.
13634         * config/mmix/mmix.md ("call"): Set struct machine member
13635         has_call_without_parameters.
13636
13637 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
13638
13639         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13640
13641 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
13642
13643         * cfgcleanup.c: Include tm_p.h
13644         (mark_effect): Fix handling of hard register; fix handling of SET
13645
13646 2002-01-04  Kazu Hirata  <kazu@hxi.com>
13647
13648         * config/h8300/h8300.md (anonymous patterns): Check that
13649         operands are registers before using REGNO on them.
13650
13651 2002-01-03  Roland McGrath  <roland@frob.com>
13652
13653         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13654
13655 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
13656
13657         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13658         * c-common.h (genrtl_expr_stmt_value): Likewise.
13659         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13660         (expand_expr_stmt_value): Add maybe_last argument.
13661         Don't warn about statement with no effect if it is the last statement
13662         in expression statement.
13663         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13664         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13665         expand_expr_stmt_value.
13666         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13667         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13668         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13669         as maybe_last to expand_expr_stmt_value.
13670
13671 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
13672
13673         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13674         be passed in, do not build it.
13675         (c_begin_if_stmt): New function.
13676         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13677         * c-common.h (c_expand_start_cond): Update prototype.
13678         (c_begin_if_stmt): Prototype new function.
13679         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13680         * c-parse.in (if_prefix): Use c_begin_if_stmt,
13681         c_begin_while_stmt and c_finish_while_stmt_cond.
13682
13683 2002-01-04  William Cohen  <wcohen@redhat.com>
13684
13685         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13686         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13687         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13688         * config/pa/som.h (ASM_FILE_START): Likewise.
13689
13690 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
13691
13692         * lcm.c: Include df.h.
13693         Add available_transfer_function prototype.
13694         (compute_available): Rework to use iterative dataflow framework.
13695         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13696         with bb_info in df.h
13697         (available_transfer_function): New function.
13698
13699         * Makefile.in (lcm.o): add df.h to dependencies.
13700
13701 2002-01-04  Richard Henderson  <rth@redhat.com>
13702
13703         * config/alpha/alpha.c (some_operand): Accept HIGH.
13704         (input_operand): Likewise; accept simple references to globals.
13705         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13706         (alpha_const_double_ok_for_letter_p): Likewise.
13707         (alpha_extra_constraint): Likewise.
13708         (alpha_preferred_reload_class): Likewise.  Do not force
13709         symbolic constants to memory.
13710         (alpha_legitimate_address_p): Accept simple references
13711         to small_symbolic_operand.
13712         (alpha_legitimize_address): New arg scratch.  Be prepared to be
13713         called when no_new_pseudos.  Emit simple symbolic references.
13714         Split integers into low, high, and rest.
13715         (alpha_expand_mov): Use alpha_legitimize_address.
13716         (some_small_symbolic_mem_operand): New.
13717         (split_small_symbolic_mem_operand): New.
13718         * config/alpha/alpha-protos.h: Update.
13719         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13720         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13721         (EXTRA_CONSTRAINT): Likewise.
13722         (PREFERRED_RELOAD_CLASS): Likewise.
13723         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13724         (PREDICATE_CODES): Update.
13725         * config/alpha/alpha.md: New post-reload splitters to convert
13726         simplfied symbolic operands to the form that references $29.
13727         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
13728         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
13729
13730 2002-01-03  Richard Henderson  <rth@redhat.com>
13731
13732         * local-alloc.c (function_invariant_p): Update commentary.
13733
13734 2002-01-04  H.J. Lu <hjl@gnu.org>
13735
13736         * toplev.c (rest_of_compilation): Fix a typo when calling
13737         cleanup_cfg.
13738
13739 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13740
13741         * c-common.c: Fix formatting.
13742         * diagnostic.c: Likewise.
13743         * doloop.c: Likewise.
13744         * dwarf2out.c: Likewise.
13745
13746 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13747
13748         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13749         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13750
13751 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13752
13753         * cpperror.c: Update comments and copyright.
13754         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
13755         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
13756
13757 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13758
13759         * collect2.c (main): Use strcmp when testing for "-shared".
13760
13761 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13762
13763         * cppmacro.c: Don't include intl.h.  Update comments.
13764         (new_number_token): Allocate enough buffer for 64-bit unsigned
13765         integers; update prototype.
13766         * cppmain.c: Update comments.
13767
13768 2002-01-03  William Cohen  <wcohen@redhat.com>
13769
13770         * function.h (struct function): Add profile.
13771         (current_function_profile): New.
13772         doc/extend.texi: Update documentation.
13773         * final.c (final_start_function): Use current_function_profile
13774         instead of profile_flag.
13775         (profile_after_prologue): Likewise.
13776         * function.c (expand_function_start): Likewise.
13777         (expand_function_start): Likewise.
13778         * config/alpha/alpha.c (direct_call_operand):
13779         (alpha_does_function_need_gp): Likewise.
13780         (alpha_expand_prologue): Likewise.
13781         * config/arm/arm.c (arm_expand_prologue): Likewise.
13782         thumb_expand_prologue: Likewise.
13783         * config/d30v/d30v.c (d30v_stack_info): Likewise.
13784         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13785         (fr30_expand_prologue): Likewise.
13786         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13787         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13788         * config/i386/i386.h (FINALIZE_PIC): Likewise.
13789         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13790         * config/i960/i960.c (i960_output_function_prologue): Likewise.
13791         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13792         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13793         (m32r_expand_prologue): Likewise.
13794         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13795         (m88k_expand_prologue): Likewise.
13796         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13797         * config/mips/mips.c (compute_frame_size): Likewise.
13798         (mips_expand_prologue): Likewise.
13799         (mips_can_use_return_insn): Likewise.
13800         * config/pa/elf.h (ASM_FILE_START): Likewise.
13801         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13802         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13803         * config/pa/som.h (ASM_FILE_START): Likewise.
13804         * config/romp/romp.c (romp_using_r14): Likewise.
13805         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
13806         (rs6000_stack_info): Likewise.
13807         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13808         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13809         * config/v850/v850.c (compute_register_save_size): Likewise.
13810
13811 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
13812
13813         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13814         gen_lowpart_common fails, use gen_lowpart_SUBREG.
13815
13816 2002-01-03  Turly O'Connor  <turly@apple.com>
13817
13818         * darwin.c (machopic_output_possible_stub_label): Don't generate
13819         stub routines for pseudo-stubs which we've just defined.
13820
13821 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13822
13823         * builtins.c: Fix formatting.
13824         * c-typeck.c: Likewise.
13825         * combine.c: Likewise.
13826         * expr.c: Likewise.
13827         * loop.c: Likewise.
13828
13829 2002-01-03  Andreas Schwab  <schwab@suse.de>
13830
13831         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
13832         and return true if _cpp_push_next_buffer pushed a new include
13833         file.
13834         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
13835         _cpp_pop_file_buffer did not push a new file.
13836         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
13837
13838 2002-01-02  Eric Christopher  <echristo@redhat.com>
13839
13840         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
13841         FIND_REG_INC_NOTE call. Update copyright.
13842         * loop.c (canonicalize_condition): Ditto.
13843         * reorg.c (delete_scheduled_jump): Ditto.
13844
13845 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13846
13847         * gcse.c: Fix formatting.
13848
13849 2002-01-03  Graham Stott  <grahams@redhat.com>
13850
13851         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
13852         forward defs for struct tags rtx_def, union_tree, rtvec_def
13853         also output corresponding typedefs for rtx, tree, and rtvec.
13854
13855         * system.h: Move forward defs for struct tags rtx_def, union_tree,
13856         rtvec_def along with corresponding typedefs for rtx, tree, and
13857         rtvec to config.h, hconfig.h, tconfig.h.
13858
13859 2002-01-03  Graham Stott  <grahams@redhat.com>
13860
13861         * tree.h: Update copyright date.
13862         (IS_EXPR_CODE_CLASS): Add parenthesis.
13863         (TREE_SET_CODE): Add whitespace.
13864         (TREE_CHECK): Add parenthesis.
13865         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
13866         (CST_OR_CONSTRUCTOR_CHECK):
13867         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
13868         (TREE_SYMBOL_REFERENCED): Whitespace.
13869         (INT_CST_LT): Likewise.
13870         (INT_CST_LT_UNSIGNED): Likewise.
13871         (tree_real_cst): Unwrap comment.
13872         (tree_string): Likewise.
13873         (tree_complex): Likewise.
13874         (IDENTIFIER_POINTER): correct cast.
13875         (SAVE_EXPR_CONTEXT): Whitespace.
13876         (EXPR_WFL_FILENAME_NODE): Likewise.
13877         (EXPR_WFL_FILENAME): Remove parenthesis.
13878         (DECL_ORIGIN): Add parenthesis.
13879         (DECL_FROM_INLINE): Use NULL_TREE.
13880         (build_int_2): Whitespace.
13881         (build_type_variant): Add parenthesis.
13882
13883         * gcc/jcf-parse.c: Update copyright date.
13884         (yyparse): Constify resource_filename.
13885
13886 2002-01-03  Graham Stott  <grahams@redhat.com>
13887
13888         * rtl.h: Update copyright date.
13889         (RTL_CHECK1): Wrap long line.
13890         (RTL_CHECK2): Likewise.
13891         (RTL_CHECKC1): Wrap long line and whitespace.
13892         (RTL_CHECKC2): Likewise.
13893         (XWINT): Whitespace.
13894         (XINT): Likewise.
13895         (XSTR): Likewise.
13896         (XEXP): Likewise.
13897         (XVEC): Likewise.
13898         (XMODE): Likewise.
13899         (XBITMAP): Likewise.
13900         (XTREE): Likewise.
13901         (XBBDEF): Likewise.
13902         (XTMPL): Likewise.
13903         (X0WINT): Likewise.
13904         (X0INT):Likewise.
13905         (X0UINT): Likewise.
13906         (X0STR): Likewise.
13907         (X0EXP): Likewise.
13908         (X0VEC): Likewise.
13909         (X0MODE): Likewise.
13910         (X0BITMAP): Likewise.
13911         (X0TREE): Likewise.
13912         (X0BBDEF): Likewise.
13913         (X0ADVFLAGS): Likewise.
13914         (X0CSELIB): Likewise.
13915         (X0MEMATTR): Likewise.
13916         (XCWINT): Likewise.
13917         (XCINT): Likewise.
13918         (XCUINT): Likewise.
13919         (XCSTR): Likewise.
13920         (XCEXP): Likewise.
13921         (XCVEC): Likewise.
13922         (XCMODE): Likewise.
13923         (XCBITMAP): Likewise.
13924         (XCTREE): Likewise.
13925         (XCBBDEF): Likewise.
13926         (XCADVFLAGS): Likewise.
13927         (XCCSELIB): Likewise.
13928         (XC2EXP): Likewise.
13929         (INSN_UID): Likewise.
13930         (PREV_INSN): Likewise.
13931         (PATTERN): Likewise.
13932         (INSN_CODE): Likewise.
13933         (PUT_REG_NOTE_KIND): Likewise.
13934         (CODE_LABEL_NUMBER): Likewise.
13935         (NOTE_SOURCE_FILE): Likewise.
13936         (NOTE_BLOCK): Likewise.
13937         (NOTE_EH_HANDLER): Likewise.
13938         (NOTE_RANGE_INFO): Likewise.
13939         (NOTE_LIVE_INFO): Likewise.
13940         (NOTE_BASIC_BLOCK): Likewise.
13941         (NOTE_EXPECTED_VALUE): Likewise.
13942         (NOTE_LINE_NUMBER): Likewise.
13943         (LABEL_NAME): Likewise.
13944         (LABEL_NUSES): Likewise.
13945         (LABEL_ALTERNATE_NAME): Likewise.
13946         (ADDRESSOF_DECL): Likewise.
13947         (JUMP_LABEL): Likewise.
13948         (LABEL_NEXTREF): Likewise.
13949         (REGNO): Likewise.
13950         (ORIGINAL_REGNO: Likewise.
13951         (HARD_REGISTER_NUM_P): Add parenthesis.
13952         (SUBREG_REG): Whitespace.
13953         (SUBREG_BYTE): Likewise.
13954         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
13955         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
13956         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
13957         (ASM_OPERANDS_INPUT_VEC): Likewise.
13958         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
13959         (ASM_OPERANDS_INPUT): Likewise.
13960         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
13961         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
13962         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
13963         (ASM_OPERANDS_INPUT_MODE): Likewise.
13964         (ASM_OPERANDS_SOURCE_FILE): Likewise.
13965         (ASM_OPERANDS_SOURCE_LINE): Likewise.
13966         (MEM_SET_IN_STRUCT_P): Minor reformat.
13967         (TRAP_CONDITION): Whitespace.
13968         (TRAP_CODE): Likewise.
13969         (COND_EXEC_TEST): Likewise.
13970         (COND_EXEC_CODE): Likewise.
13971         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
13972         (PHI_NODE_P): Add parenthesis.
13973         (plus_constant): Whitespace and add parenthesis.
13974
13975 2002-01-03  Kazu Hirata  <kazu@hxi.com>
13976
13977         * config/avr/avr.c: Fix comment typos.
13978         * config/c4x/c4x.md: Likewise.
13979         * config/dsp16xx/dsp16xx.h: Likewise.
13980         * config/dsp16xx/dsp16xx.md: Likewise.
13981         * config/i386/i386.md: Likewise.
13982         * config/ia64/ia64.c: Likewise.
13983         * config/m32r/m32r.h: Likewise.
13984         * config/m68hc11/m68hc11.md: Likewise.
13985         * config/mmix/mmix.c: Likewise.
13986         * config/mn10200/mn10200.c: Likewise.
13987         * config/romp/romp.c: Likewise.
13988         * config/sh/sh.c: Likewise.
13989         * config/stormy16/stormy16.c: Likewise.
13990         * config/stormy16/stormy16.h: Likewise.
13991         * config/stormy16/stormy16.md: Likewise.
13992
13993 2002-01-03  Graham Stott  <grahams@redhat.com>
13994
13995         * loop.h: Update copyright date.
13996         (LOOP_MOVABLES): Fix typo.
13997         (LOOP_REGS): Likewise.
13998         (LOOP_IVS): Likewise.
13999
14000 2002-01-03  Graham Stott  <grahams@redhat.com>
14001
14002         * cppinit.c: Update copyright date.
14003         Don't include output.h
14004         * Makefile.in: Update copyright date.
14005         Update dependency.
14006
14007 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14008
14009         PR c/5226
14010         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14011         (-pthread) Add to RS/6000 options.
14012
14013 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14014
14015         * except.c: Fix comment typos.
14016         * loop.c: Likewise.
14017         * varasm.c: Likewise.
14018         * doc/tm.texi: Fix a typo.
14019
14020 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
14021
14022         * c-typeck.c (output_init_element): Allow initializing static storage
14023         duration objects with compound literals.
14024
14025 2002-01-02  Richard Henderson  <rth@redhat.com>
14026
14027         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14028         after abusing it.
14029
14030 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14031
14032         * gcc.c (default_compilers): Const-ify.
14033         * mips-tdump.c (stab_names): Likewise.
14034         * mips-tfile.c (map_coff_types, map_coff_storage,
14035         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14036         pseudo_ops_t, pseudo_ops): Likewise.
14037         * protoize.c (default_include): Likewise
14038
14039         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14040         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14041         Add array size in declaration.
14042         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14043         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14044         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14045         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14046         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14047         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14048         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14049         emtens, make_nan): Const-ify.
14050         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14051         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14052
14053 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
14054
14055         * config.gcc (ia64-*-*): Set extra_headers.
14056         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
14057         * config/alpha/t-osf: Remove.
14058         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14059
14060 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
14061
14062         * config/rs6000/t-aix43: Revert previous change.
14063
14064 2002-01-02  Jason Merrill  <jason@redhat.com>
14065
14066         * c-decl.c (c_expand_body): Call outlining_inline_function when
14067         emitting an inline function out of line.
14068
14069 2002-01-02  Richard Henderson  <rth@redhat.com>
14070
14071         * dwarf2out.c (limbo_die_node): Add created_for member.
14072         (new_die): New argument created_for.  Update all callers.
14073         (mark_limbo_die_list): New.
14074         (dwarf2out_init): Register limbo_die_list as a root.
14075         (dwarf2out_finish): Force insert limbo dies into their function
14076         context.
14077
14078 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
14079
14080         PR c++/5089
14081         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14082
14083 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14084
14085         * config/h8300/fixunssfsi.c: Update copyright.
14086         Fix comment typos.
14087         Fix formatting.
14088         * config/h8300/h8300.c: Update copyright.
14089         Eliminate warnings.
14090
14091 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14092
14093         * config/romp/romp.c: Fix comment formatting.
14094         * config/romp/romp.h: Likewise.
14095         * config/romp/romp.md: Likewise.
14096         * config/s390/s390.c: Likewise.
14097         * config/stormy16/stormy16.c: Likewise.
14098         * config/stormy16/stormy16.h: Likewise.
14099
14100 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
14101
14102         * c-common.h (genrtl_expr_stmt_value): Declare.
14103         * c-semantics.c (genrtl_goto_stmt): Redirect to...
14104         (genrtl_goto_stmt_value): ... this new function.  Pass new
14105         argument down to expand_expr_stmt_value, taking
14106         TREE_ADDRESSABLE into account.
14107         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14108         STMT_EXPR as addressable, i.e., one whose result we want.
14109         * expr.c (expand_expr): Don't save expression statement value
14110         of labeled_blocks or loop_exprs.
14111         * stmt.c (expand_expr_stmt): Redirect to...
14112         (expand_expr_stmt_value): ... this new function.  Use new
14113         argument to tell whether to save expression value.
14114         (expand_end_stmt_expr): Reset last_expr_type and
14115         last_expr_value if we don't have either.
14116         * tree-inline.c (declare_return_variable): Mark its use
14117         statement as addressable.
14118         * tree.h: Document new use of TREE_ADDRESSABLE.
14119         (expand_expr_stmt_value): Declare.
14120
14121 2002-01-01  Tom Rix  <trix@redhat.com>
14122
14123         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14124         rs6000_emit_allocate_stack.
14125
14126 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
14127
14128         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14129         ${srcdir}/ginclude/ to every entry in extra_headers.
14130         * configure: Regenerate.
14131         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14132         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14133         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14134         * ginclude/proto.h: Rename to config/convex/proto.h.
14135
14136 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14137
14138         * attribs.c (handle_vector_size_attribute): Use host_integerp
14139         and tree_int_cst; remove warnings.
14140         * caller-save.c (insert_restore): Add cast to get rid of warning.
14141         (insert_save): Likewise.
14142         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14143         * regmove.c (find_matches): Add temporary var to kill a warning.
14144
14145 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
14146
14147         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14148         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14149         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14150         (vms-dwarf2eh.o): Add Makefile rule.
14151         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14152         * config/alpha/vms-dwarf2eh.asm: New file.
14153
14154         * gcc.c (delete_if_ordinary): Delete all versions.
14155
14156 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
14157
14158         * config/mmix/mmix.md: Update FIXME to not mention
14159         define_constants.
14160         (MMIX_rJ_REGNUM): New define_constants constant.
14161         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14162         "*movdicc_real"): Adjust contraints formatting.
14163         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14164         for branch prediction.
14165         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14166         output template.
14167         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14168         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14169         number.  Delete related FIXMEs.
14170         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14171         from number to MMIX_rJ_REGNUM.
14172         (TARGET_MASK_BRANCH_PREDICT): New.
14173         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14174         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
14175         value.  Add -mbranch-predict and -mno-branch-predict.
14176         (TARGET_VERSION): Drop date.
14177         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14178         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14179         for finding out global symbols.
14180         (mmix_asm_output_labelref): Revert condition for global symbol.
14181         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14182         (mmix_print_operand_punct_valid_p): A '+' is valid.
14183
14184 See ChangeLog.6 for earlier changes.